/*
Theme Name: AWS Security Architect
Theme URI: https://awssecurityarchitect.com/
Author: Anuj Varma
Author URI: https://anujvarma.com/
Description: A bespoke WordPress theme for independent, hands-on AWS architecture consulting. Converted faithfully from the original AWS Security Architect static site: light background, navy ink, blue-gray architecture panels and amber accents, with a reference-model diagram, service sections and a four-step engagement process. Includes a working, validated contact form with administrator and visitor email notifications, a full blog, and SEO-friendly, accessible, mobile-first markup.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: aws-security-architect
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio, right-sidebar, block-styles, wide-blocks, sticky-post
*/

/*
 * The original design system lives in assets/css/styles.css and is loaded first.
 * This file (the mandatory WordPress stylesheet) adds:
 *   - WordPress compatibility and accessibility helpers
 *   - Menu, blog, single, pagination, comment and form styling
 *   - Layout guards so WordPress core markup never fights the original design
 * All colours reuse the original custom properties from assets/css/styles.css.
 */

/* ---------------------------------------------------------------
 * Base helpers / WordPress compatibility
 * ------------------------------------------------------------- */
img,
svg,
video {
	max-width: 100%;
	height: auto;
}

.wp-caption,
.wp-caption-text,
.gallery-caption,
.bypostauthor,
.sticky {
	/* Required classes for the WordPress theme review guidelines. */
}

.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: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .2);
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-size: 13px;
	font-weight: 700;
	height: auto;
	left: 24px;
	line-height: normal;
	padding: 12px 18px;
	text-decoration: none;
	top: 20px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	outline: 3px solid #9da36d;
	outline-offset: 4px;
}

/* Admin bar offset for the mobile navigation panel. */
.admin-bar .navlinks {
	top: 122px;
}

/* WordPress default alignment classes. */
.alignleft {
	float: left;
	margin: .4em 1.6em 1.2em 0;
}

.alignright {
	float: right;
	margin: .4em 0 1.2em 1.6em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-block-image figcaption {
	color: var(--muted);
	font-size: 12px;
}

.wp-block-quote {
	border-left: 3px solid var(--green);
	padding-left: 20px;
	margin: 28px 0;
}

/* ---------------------------------------------------------------
 * Header navigation (WordPress menu markup)
 * ------------------------------------------------------------- */
.brand .brand-name {
	display: inline;
	font-size: 17px;
	font-weight: 750;
	letter-spacing: -.6px;
	text-transform: none;
	color: var(--ink);
}

.brand .brand-tagline {
	display: block;
	font-size: 10px;
	letter-spacing: 2.3px;
	text-transform: uppercase;
	color: var(--muted);
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.brand img,
.custom-logo {
	display: block;
	max-height: 44px;
	width: auto;
}

.navlinks ul {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navlinks ul li {
	position: relative;
}

.navlinks ul a {
	font-size: 13px;
	color: var(--ink);
}

.navlinks ul a:hover,
.navlinks ul .current-menu-item > a {
	color: var(--green);
}

/* Sub-menu / dropdown support. */
.navlinks ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 8px 0 0;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(23, 44, 64, .12);
	z-index: 5;
}

.navlinks ul li:hover > ul,
.navlinks ul li:focus-within > ul {
	display: flex;
}

.navlinks ul ul li a {
	display: block;
	padding: 8px 10px;
	border-radius: 4px;
}

.navlinks ul ul li a:hover {
	background: var(--paper);
}

/* ---------------------------------------------------------------
 * Shared page / section scaffolding for blog + pages
 * ------------------------------------------------------------- */
.site-main {
	min-height: 40vh;
}

.asa-section {
	padding: 80px 36px;
}

.asa-page-head {
	max-width: 760px;
	margin-bottom: 40px;
}

.asa-page-head h1,
.asa-page-head h2 {
	margin-top: 14px;
}

.asa-page-head .lede {
	max-width: 620px;
}

.asa-section-title {
	margin: 0 0 12px;
}

/* ---------------------------------------------------------------
 * Post cards (home, archive, search)
 * ------------------------------------------------------------- */
.asa-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.asa-card {
	display: flex;
	flex-direction: column;
	background: #fbfcfd;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	transition: transform .2s, border-color .2s;
}

.asa-card:hover {
	transform: translateY(-3px);
	border-color: #b9c7d3;
}

.asa-card-media {
	display: block;
	aspect-ratio: 3 / 2;
	background: #e9eef3;
	overflow: hidden;
}

.asa-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.asa-card-media--placeholder {
	position: relative;
}

.asa-card-media--placeholder::after {
	content: "AWS Security Architect";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.asa-card-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.asa-card .asa-card-cat {
	font: 11px monospace;
	color: var(--green);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.asa-card h2,
.asa-card h3 {
	font-size: 20px;
	letter-spacing: -.6px;
	margin: 12px 0 10px;
}

.asa-card h2 a:hover,
.asa-card h3 a:hover {
	color: var(--green);
}

.asa-card p {
	color: var(--muted);
	font-size: 13.5px;
	margin: 0 0 18px;
}

.asa-entry-meta {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 11px;
	color: var(--muted);
}

.asa-entry-meta a {
	color: var(--muted);
	text-decoration: underline;
}

/* ---------------------------------------------------------------
 * Single post + page content
 * ------------------------------------------------------------- */
.asa-single-head {
	max-width: 820px;
}

.asa-single-head .asa-single-cat {
	font: 11px monospace;
	color: var(--green);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.asa-featured {
	margin: 34px 0 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.asa-featured img {
	display: block;
	width: 100%;
}

.asa-featured figcaption {
	padding: 10px 16px;
	font-size: 12px;
	color: var(--muted);
	border-top: 1px solid var(--line);
}

.asa-entry-content {
	max-width: 820px;
	font-size: 16.5px;
}

.asa-entry-content > * {
	margin-top: 0;
	margin-bottom: 1.3em;
}

.asa-entry-content h2 {
	font-size: clamp(24px, 3vw, 32px);
	margin-top: 1.6em;
}

.asa-entry-content h3 {
	margin-top: 1.5em;
}

.asa-entry-content a {
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.asa-entry-content ul,
.asa-entry-content ol {
	padding-left: 1.3em;
}

.asa-entry-content li {
	margin-bottom: .5em;
}

.asa-entry-content blockquote {
	border-left: 3px solid var(--green);
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	color: var(--muted);
	font-size: 18px;
}

.asa-entry-content pre,
.asa-entry-content code {
	background: #eef2f6;
	border: 1px solid var(--line);
	border-radius: 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
}

.asa-entry-content code {
	padding: 2px 6px;
}

.asa-entry-content pre {
	padding: 18px;
	overflow: auto;
}

.asa-entry-content pre code {
	background: none;
	border: 0;
	padding: 0;
}

.asa-entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.asa-entry-content th,
.asa-entry-content td {
	border: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
}

.asa-entry-content th {
	background: #eef2f6;
}

.asa-entry-footer {
	max-width: 820px;
	margin-top: 40px;
	padding: 24px 0 0;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px 22px;
	font-size: 12px;
	color: var(--muted);
}

.asa-entry-footer a {
	color: var(--green);
	text-decoration: underline;
}

/* ---------------------------------------------------------------
 * Pagination + post navigation
 * ------------------------------------------------------------- */
nav.asa-pagination,
nav.post-navigation {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	justify-content: flex-start;
}

.asa-pagination {
	margin-top: 48px;
}

.asa-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.asa-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 13px;
	color: var(--ink);
	background: #fff;
}

.asa-pagination a.page-numbers:hover {
	border-color: var(--green);
	color: var(--green);
	transform: translateY(-1px);
}

.asa-pagination .page-numbers.current {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.asa-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

.post-navigation {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-subtitle {
	display: block;
	font: 11px monospace;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--green);
	margin-bottom: 6px;
}

.post-navigation .nav-title {
	font-size: 16px;
	font-weight: 600;
}

/* ---------------------------------------------------------------
 * Search form
 * ------------------------------------------------------------- */
.asa-searchform {
	display: flex;
	gap: 10px;
	max-width: 520px;
}

.asa-searchform input[type="search"] {
	flex: 1;
}

/* ---------------------------------------------------------------
 * Forms (search, comments, contact)
 * ------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 13px 14px;
}

textarea {
	min-height: 170px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	outline: 3px solid #9da36d;
	outline-offset: 2px;
	border-color: var(--green);
}

.asa-field {
	margin-bottom: 20px;
}

.asa-field label {
	display: block;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .4px;
	margin-bottom: 7px;
}

.asa-field .required {
	color: var(--green);
}

.asa-field-error input,
.asa-field-error textarea {
	border-color: #b3261e;
}

.asa-field-error .asa-error-text {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #b3261e;
}

/* Honeypot field: hidden from humans, visible to naive bots. */
.asa-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------
 * Contact page
 * ------------------------------------------------------------- */
.asa-contact-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 60px;
	align-items: start;
}

.asa-contact-aside {
	background: #e9eef3;
	border: 1px solid #d3dce5;
	border-radius: 12px;
	padding: 32px;
}

.asa-contact-aside h2 {
	font-size: 22px;
	letter-spacing: -.6px;
}

.asa-contact-aside p,
.asa-contact-aside li {
	font-size: 14px;
	color: var(--muted);
}

.asa-contact-aside ul {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.asa-contact-aside li {
	padding: 13px 0;
	border-top: 1px solid #d3dce5;
}

.asa-contact-aside a {
	color: var(--green);
	text-decoration: underline;
}

.asa-form-note {
	font-size: 11px;
	color: var(--muted);
	margin-top: 16px;
}

.asa-alert {
	border-radius: 6px;
	padding: 18px 20px;
	margin-bottom: 26px;
	font-size: 14px;
	border: 1px solid;
}

.asa-alert--success {
	background: #eef6ee;
	border-color: #b6d8b6;
	color: #1d4a1d;
}

.asa-alert--error {
	background: #fdf0ef;
	border-color: #e6b7b3;
	color: #7a1c17;
}

.asa-alert ul {
	margin: 10px 0 0;
	padding-left: 20px;
}

/* ---------------------------------------------------------------
 * Comments
 * ------------------------------------------------------------- */
.asa-comments {
	max-width: 820px;
	margin-top: 56px;
	padding-top: 36px;
	border-top: 1px solid var(--line);
}

.asa-comments .comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.asa-comments .comment-list ol.children {
	list-style: none;
	padding-left: 26px;
}

.asa-comments .comment-body {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 20px 22px;
	margin-bottom: 18px;
	background: #fbfcfd;
}

.asa-comments .comment-meta {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 10px;
}

.asa-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 650;
	color: var(--ink);
}

.asa-comments .comment-author img.avatar {
	border-radius: 50%;
}

.asa-comments .comment-metadata a {
	color: var(--muted);
	text-decoration: underline;
}

.asa-comments .comment-content {
	font-size: 14.5px;
}

.asa-comments .reply a {
	font-size: 12px;
	font-weight: 650;
	color: var(--green);
}

.asa-comments .comment-respond {
	margin-top: 40px;
}

.asa-comments .comment-reply-title {
	font-size: 22px;
	letter-spacing: -.6px;
}

.asa-comments .comment-form p {
	margin-bottom: 18px;
}

.asa-comments .comment-form label {
	display: block;
	font-size: 12px;
	font-weight: 650;
	margin-bottom: 7px;
}

.asa-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
}

.asa-comments .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.asa-comments .comment-form-cookies-consent input {
	width: auto;
	margin-top: 3px;
}

/* ---------------------------------------------------------------
 * Empty states / 404
 * ------------------------------------------------------------- */
.asa-empty {
	border: 1px dashed var(--line);
	border-radius: 8px;
	padding: 40px;
	background: #fbfcfd;
	max-width: 640px;
}

.asa-empty h2 {
	font-size: 24px;
	margin-top: 0;
}

.asa-empty p {
	color: var(--muted);
	font-size: 14px;
}

.asa-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* ---------------------------------------------------------------
 * Footer (WordPress menu)
 * ------------------------------------------------------------- */
.asa-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.asa-footer-menu a {
	color: var(--muted);
}

.asa-footer-menu a:hover {
	color: var(--green);
}

.site-footer {
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

/* Homepage blog section. */
.asa-home-blog-more {
	margin: 36px 0 0;
}

.asa-home-blog-more .btn {
	display: inline-flex;
}

.asa-home-blog .asa-card-title a:hover {
	color: var(--green);
}

/* ---------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.asa-posts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 850px) {
	.navlinks ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.navlinks ul li a {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
		font-size: 15px;
	}

	.navlinks ul ul {
		display: flex;
		position: static;
		box-shadow: none;
		border: 0;
		margin: 0;
		padding: 0 0 0 16px;
	}

	.contact-aside,
	.asa-contact-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.asa-posts {
		grid-template-columns: 1fr;
	}

	.asa-section {
		padding: 55px 24px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.asa-footer-menu {
		justify-content: flex-start;
	}

	.asa-entry-content {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asa-card {
		transition: none;
	}

	.asa-card:hover {
		transform: none;
	}
}
