/*
Theme Name: Google Cloud Architect
Theme URI: https://googlecloudarchitect.us/
Author: Anuj Varma
Author URI: https://anuj.com
Description: A responsive, professional WordPress theme for an independent, hands-on Google Cloud architecture practice. Converts the original static site into a fully dynamic theme with a one-page front page, a working contact form with admin and visitor email notifications, and a complete blog. Preserves the original visual identity: ink #172b45, primary blue #2367dc, Arial-based typography, the 1200px content grid and the original responsive breakpoints (900px and 680px).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: googlecloudarchitect
Tags: one-column, two-columns, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, blog, full-width-template, accessibility-ready
*/

/*
 * This file provides the WordPress theme metadata (above) and the styles that
 * the original buildless site did not need: blog listings, single posts,
 * forms, pagination, comments and WordPress core classes.
 *
 * The original site stylesheet is preserved verbatim at
 * assets/css/styles.css and is enqueued before this file.
 *
 * All colours reuse the original design tokens:
 *   --ink   #172b45
 *   --muted #5d6c7e
 *   --blue  #2367dc
 *   --line  #dde4ed
 *   --paper #f6f8fc
 */

/* -------------------------------------------------------------------------
 * Accessibility: skip link
 * ---------------------------------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 18px;
	background: #164ea9;
	color: #fff;
	border-radius: 0 0 6px 0;
	font-size: 13px;
	font-weight: 600;
}
.skip-link:focus {
	left: 0;
	outline: 3px solid #e4a62a;
	outline-offset: 2px;
}

/* WordPress admin bar offset for the sticky header. */
body.admin-bar header.site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar header.site-header { top: 46px; }
}

/* -------------------------------------------------------------------------
 * Header / navigation adjustments for WordPress menus
 * ---------------------------------------------------------------------- */
header.site-header { top: 0; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-logo .custom-logo-link { display: flex; align-items: center; }
.brand-logo img.custom-logo { max-height: 48px; width: auto; height: auto; }
.brand-text a { color: inherit; }
.nav .links a.current-menu-item:not([href*="#"]),
.nav .links a.current_page_item:not([href*="#"]) { color: var(--blue); }
.nav .links a.btn { color: #fff; }

/* Dropdown support (the original menu is flat; sub-menus are supported). */
.links .has-submenu { position: relative; }
.links .caret { font-size: 9px; }
.links .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 18px 40px #172b4514;
	padding: 8px;
	display: none;
	flex-direction: column;
	gap: 2px;
	z-index: 20;
}
.links .has-submenu:hover > .sub-menu,
.links .has-submenu:focus-within > .sub-menu { display: flex; }
.links .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--ink);
}
.links .sub-menu a:hover { background: var(--paper); color: var(--blue); }

/* -------------------------------------------------------------------------
 * Generic page / archive hero
 * ---------------------------------------------------------------------- */
.archive-hero,
.page-hero {
	background: radial-gradient(ellipse at 85% 30%, #e8f0fe 0, transparent 55%), var(--paper);
	border-bottom: 1px solid var(--line);
	padding: 64px 0 56px;
}
.archive-hero .eyebrow,
.page-hero .eyebrow { margin-bottom: 6px; }
.page-title,
.entry-title {
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.12;
	letter-spacing: -1.6px;
	margin: 14px 0 0;
}
.archive-hero p,
.page-hero p { max-width: 720px; font-size: 15px; }
.archive-hero .archive-description p { margin: 12px 0 0; }

.section-pad { padding: 64px 0 80px; }
.content-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* No-results block */
.no-results {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 40px;
	text-align: center;
}
.no-results h2 { font-size: 24px; margin: 12px 0 10px; }
.no-results p { margin: 0 auto 22px; }
.no-results .search-form { margin: 0 auto; }

/* Contact page intro lead */
.contact-page .contact-lead { max-width: 680px; }
.contact-page .contact-lead p { font-size: 15px; }

/* Front-page latest posts section */
.blog-section { border-bottom: 1px solid var(--line); }
.blog-section .section-head { margin-bottom: 35px; }
.blog-section-actions { margin-top: 36px; text-align: center; }
.blog-section-actions .btn.secondary:hover { border-color: #9cbcf0; }

/* -------------------------------------------------------------------------
 * Blog listing
 * ---------------------------------------------------------------------- */
.entries {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.entry-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.entry-card:hover {
	border-color: #bcd0ee;
	transform: translateY(-3px);
	box-shadow: 0 20px 45px #294f8212;
}
.entry-card .entry-thumb { display: block; line-height: 0; }
.entry-card .entry-thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
.entry-card .entry-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 11px;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}
.entry-meta a { color: var(--blue); }
.entry-meta .sep { color: var(--line); }
.entry-card .entry-title { font-size: 20px; letter-spacing: -.5px; line-height: 1.3; margin: 0 0 12px; }
.entry-card .entry-title a:hover { color: var(--blue); }
.entry-card .entry-excerpt { font-size: 13.5px; }
.entry-card .entry-excerpt p { font-size: 13.5px; line-height: 1.75; margin: 0 0 16px; }
.read-more {
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--blue);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.read-more:hover { gap: 12px; }

/* -------------------------------------------------------------------------
 * Single post / page
 * ---------------------------------------------------------------------- */
.entry-single { padding: 64px 0 80px; }
.entry-single .entry-header { margin-bottom: 26px; }
.entry-single .entry-title { font-size: clamp(32px, 4.4vw, 52px); }
.entry-single .entry-meta { margin: 16px 0 0; }
.entry-single .featured {
	margin: 0 0 34px;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}
.entry-single .featured img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 16px; line-height: 1.85; color: var(--ink); }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content p,
.entry-content li { color: #33465e; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; margin-top: 1.3em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul,
.entry-content ol { padding-left: 22px; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	background: var(--paper);
	border-left: 3px solid var(--blue);
	border-radius: 0 8px 8px 0;
}
.entry-content blockquote p { margin: 0; }
.entry-content img,
.entry-content figure img { max-width: 100%; height: auto; border-radius: 10px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content code {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: .9em;
}
.entry-content pre {
	background: #182f4f;
	color: #e8eefc;
	padding: 20px;
	border-radius: 10px;
	overflow: auto;
}
.entry-content pre code { background: none; border: 0; color: inherit; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content .wp-block-button__link { color: #fff; text-decoration: none; }

.entry-footer {
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}
.entry-footer a { color: var(--blue); }
.entry-footer .tags a {
	display: inline-block;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 5px 9px;
	font-size: 11px;
	text-decoration: none;
	margin: 0 4px 4px 0;
}

/* Post navigation */
.post-navigation {
	margin-top: 44px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.post-navigation .nav-links { display: contents; }
.post-navigation a {
	display: block;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 18px 20px;
	background: #fff;
}
.post-navigation a:hover { border-color: #bcd0ee; background: var(--paper); }
.post-navigation .nav-subtitle { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 8px; }
.post-navigation .nav-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.post-navigation .nav-next { text-align: right; }

/* Author bio */
.author-bio {
	margin-top: 40px;
	padding: 26px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.author-bio img { border-radius: 50%; width: 64px; height: 64px; }
.author-bio h3 { margin: 0 0 6px; font-size: 16px; }
.author-bio p { font-size: 13px; margin: 0; }

/* -------------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------------- */
.pagination { margin-top: 44px; }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
}
.pagination .page-numbers:hover { border-color: #9cbcf0; color: var(--blue); }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* -------------------------------------------------------------------------
 * Search form
 * ---------------------------------------------------------------------- */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ink);
	background: #fff;
}
.search-form .search-submit { border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 14px 20px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.search-form .search-submit:hover { background: #164ea9; }

/* -------------------------------------------------------------------------
 * Contact form
 * ---------------------------------------------------------------------- */
.contact-page { background: var(--paper); border-bottom: 1px solid var(--line); }
.contact-page .contact-head { padding: 64px 0 0; }
.contact-page .contact-head .eyebrow { margin-bottom: 8px; }
.contact-page .contact-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.contact-page .contact-head p { max-width: 640px; }

.contact-layout {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 60px;
	padding: 50px 0 80px;
	align-items: start;
}
.contact-aside .detail-block {
	background: #182f4f;
	color: #fff;
	border-radius: 10px;
	padding: 34px;
	position: relative;
	overflow: hidden;
}
.contact-aside .detail-block:after {
	content: '';
	position: absolute;
	width: 200px;
	height: 200px;
	right: -110px;
	top: -90px;
	border: 36px solid #ffffff08;
	border-radius: 50%;
}
.contact-aside h2 { color: #fff; font-size: 24px; margin: 0 0 14px; letter-spacing: -.6px; }
.contact-aside .detail-block p { color: #bfd0e5; font-size: 13px; }
.contact-aside .detail-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid #ffffff20; padding-top: 20px; }
.contact-aside .detail-list li { font-size: 13px; color: #dbe6f5; padding: 7px 0; }
.contact-aside .detail-list a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-aside .detail-list b { display: block; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #8fb0dd; margin-bottom: 3px; font-weight: 700; }

.contact-form-wrap {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 36px;
	box-shadow: 0 22px 60px #294f820d;
}
.contact-form-wrap h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.contact-form-wrap .form-intro { font-size: 13px; margin: 0 0 24px; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .form-field { margin-bottom: 18px; }
.contact-form label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	color: var(--ink);
	margin-bottom: 8px;
}
.contact-form label .req { color: var(--blue); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 14px 15px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ink);
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #9cbcf0;
	box-shadow: 0 0 0 3px #2367dc1a;
}
.contact-form .form-field.has-error input,
.contact-form .form-field.has-error textarea { border-color: #c0392b; }
.contact-form .field-error {
	display: block;
	color: #c0392b;
	font-size: 12px;
	margin-top: 7px;
}
.contact-form .form-actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.contact-form .form-actions .btn { border: 1px solid var(--blue); }
.contact-form .form-note { font-size: 11px; color: var(--muted); margin: 0; }

/* Honeypot field: hidden from humans and assistive tech. */
.contact-form .gca-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Notices */
.form-notice {
	border-radius: 8px;
	padding: 16px 18px;
	font-size: 13.5px;
	line-height: 1.6;
	margin-bottom: 22px;
	border: 1px solid transparent;
}
.form-notice.is-success { background: #edf7f2; border-color: #b5dcca; color: #1e6b47; }
.form-notice.is-error { background: #fdf1ef; border-color: #f0c4bc; color: #a5341f; }
.form-notice ul { margin: 10px 0 0; padding-left: 20px; }
.form-notice li { margin-bottom: 4px; }

/* -------------------------------------------------------------------------
 * Footer additions (menu row)
 * ---------------------------------------------------------------------- */
.foot-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}
.foot-menu a { color: var(--muted); }
.foot-menu a:hover { color: var(--blue); }

.footnote { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 20px; }

/* -------------------------------------------------------------------------
 * 404 page
 * ---------------------------------------------------------------------- */
.error-404 { padding: 90px 0; text-align: center; }
.error-404 .error-code { font-size: 88px; font-weight: 700; letter-spacing: -4px; color: var(--blue); line-height: 1; }
.error-404 h1 { font-size: clamp(28px, 4vw, 44px); margin: 18px 0; }
.error-404 p { max-width: 560px; margin: 0 auto 26px; }
.error-404 .search-form { margin: 0 auto 30px; }
.error-404 .quick-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
 * Comments
 * ---------------------------------------------------------------------- */
.comments-area {
	margin-top: 50px;
	padding-top: 34px;
	border-top: 1px solid var(--line);
}
.comments-title,
.comment-reply-title { font-size: 22px; letter-spacing: -.5px; margin: 0 0 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 26px; }
.comment-body {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 22px;
	margin-bottom: 18px;
}
.comment-author { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { color: var(--muted); font-weight: 400; }
.comment-metadata { font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: 14px; }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { font-size: 12px; font-weight: 700; color: var(--blue); }
.comment-respond { margin-top: 30px; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ink);
}
.comment-form textarea { min-height: 150px; }
.comment-form .submit {
	border: 1px solid var(--blue);
	background: var(--blue);
	color: #fff;
	padding: 15px 24px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
}
.comment-form .submit:hover { background: #164ea9; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; font-size: 13px; }

/* -------------------------------------------------------------------------
 * WordPress core classes
 * ---------------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	clip-path: none;
	color: var(--blue);
	display: block;
	font-size: 14px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; }
.sticky .entry-title:before { content: '★ '; color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 1.5em; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: 8px; }
.wp-block-image, .wp-block-gallery { margin-bottom: 1.5em; }
.wp-block-quote { border-left: 3px solid var(--blue); padding-left: 20px; }
.post-password-form input[type="password"] { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.post-password-form input[type="submit"] { border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 6px; }
.wp-block-table { margin-bottom: 1.5em; }

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.entries { grid-template-columns: repeat(2, 1fr); }
	.contact-layout { gap: 32px; }
}

@media (max-width: 680px) {
	.entries { grid-template-columns: 1fr; }
	.contact-layout { grid-template-columns: 1fr; padding: 34px 0 60px; gap: 26px; }
	.contact-form .form-row { grid-template-columns: 1fr; }
	.contact-form-wrap { padding: 24px; }
	.contact-aside .detail-block { padding: 26px; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.author-bio { flex-direction: column; }
	.entry-single { padding: 40px 0 60px; }
	.section-pad { padding: 44px 0 60px; }
	.error-404 { padding: 60px 0; }
	.error-404 .error-code { font-size: 64px; }
	.links .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 4px 0 4px 12px; }
}
