/* advance2global theme styles — supplements theme.json */

/* Equal-width buttons: every button in a row shares the same size,
   regardless of label length, and shrinks gracefully on small screens. */
.wp-block-buttons {
	row-gap: 1rem;
}
.wp-block-buttons .wp-block-button {
	flex: 0 1 300px;
	max-width: 100%;
}
.wp-block-buttons .wp-block-button .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.wp-block-buttons .wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

/* Stack buttons full-width on phones for easier tapping. */
@media (max-width: 480px) {
	.wp-block-buttons .wp-block-button {
		flex-basis: 100%;
	}
}

/* "Insights & Resources" CTA row: both buttons need to look and read
   as a matched pair. The base equal-width rule above (flex-basis
   300px) wasn't quite wide enough for "Browse the Downloads Center",
   so that label wrapped to two lines while the shorter button stayed
   one line -- same width, different height, and visually misaligned.
   Widen this row's basis and force one line on both. */
.a2g-cta-buttons {
	align-items: center;
}
.a2g-cta-buttons .wp-block-button {
	flex: 0 1 340px;
}
.a2g-cta-buttons .wp-block-button__link {
	white-space: nowrap;
}
@media (max-width: 380px) {
	.a2g-cta-buttons .wp-block-button__link {
		white-space: normal;
	}
}

/* Section vertical rhythm scales down on tablet and phone so the
   homepage doesn't feel overly tall/padded on small screens. */
@media (max-width: 782px) {
	.a2g-section {
		padding-top: 2.75rem !important;
		padding-bottom: 2.75rem !important;
	}
}
@media (max-width: 480px) {
	.a2g-section {
		padding-top: 2rem !important;
		padding-bottom: 2rem !important;
	}
	.a2g-section h1 {
		font-size: 2rem !important;
	}
}

/* Hero background graphic: abstract globe/network motif behind the
   hero text. Decorative only (aria-hidden). Uses an explicit low
   z-index for the graphic and an explicit higher z-index on the
   actual copy, rather than a negative z-index, so stacking is
   unambiguous regardless of how WordPress wraps the block's
   background. Hidden on small screens so it never competes with
   the headline. */
.a2g-hero {
	position: relative;
	overflow: hidden;
}
.a2g-hero-graphic {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 640px;
	max-width: 70vw;
	z-index: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
}
.a2g-hero-graphic svg {
	width: 100%;
	height: auto;
	display: block;
}
.a2g-hero > h1,
.a2g-hero > p,
.a2g-hero > .wp-block-buttons {
	position: relative;
	z-index: 1;
}
@media (max-width: 600px) {
	.a2g-hero-graphic {
		display: none;
	}
}

/* Message-pillar cards (section 2): icon badge + card treatment
   instead of plain text columns. */
.a2g-pillar-card {
	background: #ffffff;
	border-radius: 10px;
	padding: 2rem 1.5rem;
	text-align: center;
	box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
.a2g-pillar-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(11, 37, 69, 0.12);
}
.a2g-icon-badge {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
}
.a2g-icon-badge svg {
	width: 28px;
	height: 28px;
}
.a2g-icon-badge--gold {
	background: rgba(200, 155, 60, 0.12);
}
.a2g-icon-badge--teal {
	background: rgba(18, 116, 117, 0.12);
}
.a2g-icon-badge--navy {
	background: rgba(11, 37, 69, 0.08);
}

/* Primary navigation (header) */
.wp-block-navigation .wp-block-navigation-item > a,
.wp-block-navigation .wp-block-navigation-item__content {
	color: #1A1A1A;
}
.wp-block-navigation .wp-block-navigation-item > a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #127475;
}

/* Footer sitemap columns */
.a2g-footer-columns h4 {
	margin-bottom: 1rem;
}
.a2g-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.a2g-footer-links li {
	margin-bottom: 0.6rem;
}
.a2g-footer-links a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 0.95rem;
}
.a2g-footer-links a:hover {
	color: #C89B3C;
	text-decoration: underline;
}
.a2g-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
}
@media (max-width: 600px) {
	.a2g-footer-columns {
		flex-wrap: wrap;
	}
	.a2g-footer-columns .wp-block-column {
		flex-basis: 50% !important;
		margin-bottom: 2rem;
	}
}

/* Primary navigation layout fixes: left-align items, give every
   top-level item real breathing room, and make sure dropdown
   submenus stack correctly instead of overlapping their neighbors. */
.wp-block-navigation {
	flex-wrap: wrap;
	row-gap: 0.75rem;
}
.wp-block-navigation .wp-block-navigation__container {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2.5rem;
}
.wp-block-navigation-item {
	position: relative;
}
.wp-block-navigation-item > a,
.wp-block-navigation-item > .wp-block-navigation-item__content {
	padding-left: 0;
	padding-right: 0;
}
.wp-block-navigation__submenu-container {
	z-index: 30;
	left: 0;
}

/* "Choose Your Path" practice cards (section 3): equal-width cards
   with the same hover-lift treatment as the pillar cards, plus an
   icon badge per practice. Icon badge and button are centered (via
   the base .a2g-icon-badge rule and the justify-content below);
   the eyebrow/heading/tagline/body text is left-aligned (no textAlign
   was set on them, so it's the block default). Note: the card's
   wp:group block intentionally omits a "layout" attribute (plain
   flow, not "constrained") -- WordPress's is-layout-constrained
   global style forces !important auto side-margins on every child,
   which combined with this card's display:flex;flex-direction:column
   causes flex's align-items:stretch to be ignored on any child with
   an auto cross-axis margin, so short single-line children (eyebrow,
   heading, tagline) shrink-to-fit and self-center instead of staying
   left-aligned. Keep this card layout-attribute-free to avoid
   reintroducing that bug. */
.a2g-practice-cards-row {
	align-items: stretch;
}
.a2g-practice-card {
	flex: 1 1 380px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a2g-practice-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(11, 37, 69, 0.12);
}
.a2g-practice-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 1rem;
	justify-content: center;
}

/* "Results, not a product pitch" case-study cards (section 4):
   three equal-height cards in a row, each with a client logo above
   the heading. Same layout-attribute-free pattern as the practice
   cards above -- the wp:group block omits "layout" entirely so
   WordPress never injects is-layout-constrained's auto-margin rule,
   which is what breaks left alignment when a card is also
   display:flex;flex-direction:column (see the note above). */
.a2g-case-cards-row {
	align-items: stretch;
}
.a2g-case-card {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a2g-case-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(11, 37, 69, 0.12);
}
.a2g-case-card p:last-child {
	margin-top: auto;
	padding-top: 0.5rem;
}
.a2g-case-logo {
	display: flex;
	align-items: center;
	height: 40px;
	margin-bottom: 1.25rem;
}
.a2g-case-logo img {
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Newsletter signup form (section 6): input and button are both
   full-width of their navy card, box-sizing:border-box on both so
   padding/border never make one wider than the other, and identical
   height/padding/font-size/border-radius so they read as one matched
   unit rather than two differently-sized controls. */
.a2g-newsletter-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}
.a2g-newsletter-form input,
.a2g-newsletter-form button {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 1rem;
	border-radius: 4px;
	border: none;
	font-size: 1rem;
	font-family: inherit;
	line-height: 46px;
}
.a2g-newsletter-form input {
	margin-bottom: 0.75rem;
	color: #1A1A1A;
}
.a2g-newsletter-form button {
	background: #C89B3C;
	color: #1A1A1A;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.a2g-newsletter-form button:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

/* Honeypot field: invisible to real users (off-canvas, not
   display:none, since some spam bots specifically skip
   display:none/visibility:hidden fields), left in the tab order
   only via a negative tabindex so screen reader / keyboard users
   never land on it either. !important guarantees this wins over
   the general input sizing rule above regardless of selector order. */
.a2g-newsletter-form input.a2g-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	opacity: 0;
}
.a2g-newsletter-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}
.a2g-newsletter-message {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	min-height: 1.25em;
}
.a2g-newsletter-message--success {
	color: #8FE3B0;
}
.a2g-newsletter-message--error {
	color: #FF9B9B;
}

/* --------------------------------------------------------------
   How We Work: process steps (new section, between Choose Your
   Path and Results).
   -------------------------------------------------------------- */
.a2g-process-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	counter-reset: a2g-process;
}
.a2g-process-step {
	flex: 1 1 220px;
	text-align: center;
	padding: 0 0.5rem;
}
.a2g-process-number {
	counter-increment: a2g-process;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #127475;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}
.a2g-process-number::before {
	content: counter(a2g-process);
}
.a2g-process-step h3 {
	margin: 0 0 0.5rem;
}
.a2g-process-step p {
	margin: 0;
	color: #5A5A5A;
}

/* --------------------------------------------------------------
   FAQ accordion — native <details>/<summary>, no JS required,
   works with keyboard/screen readers out of the box.
   -------------------------------------------------------------- */
.a2g-faq-item {
	border-bottom: 1px solid #E4E4E4;
	padding: 1.1rem 0;
}
.a2g-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	position: relative;
	padding-right: 2rem;
	color: #0B2545;
}
.a2g-faq-item summary::-webkit-details-marker {
	display: none;
}
.a2g-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.35rem;
	line-height: 1;
	color: #127475;
}
.a2g-faq-item[open] summary::after {
	content: "\2212";
}
.a2g-faq-item p {
	margin: 0.75rem 0 0;
	color: #5A5A5A;
}

/* --------------------------------------------------------------
   Cookie consent banner (site-wide, injected via footer template
   part so it renders on every page — see inc/consent.php).
   -------------------------------------------------------------- */
.a2g-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #0B2545;
	color: #fff;
	padding: 1rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.a2g-consent-banner[hidden] {
	display: none;
}
.a2g-consent-banner p {
	margin: 0;
	font-size: 0.875rem;
	max-width: 640px;
}
.a2g-consent-banner a {
	color: #C89B3C;
}
.a2g-consent-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.a2g-consent-actions button {
	border: none;
	border-radius: 4px;
	padding: 0.6rem 1.2rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.875rem;
}
.a2g-consent-accept {
	background: #C89B3C;
	color: #1A1A1A;
}
.a2g-consent-decline {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------
   "Stay in the Loop" band: two asymmetric cards (light + dark)
   replacing what used to be two back-to-back centered sections
   (Insights & Resources, then LinkedIn) that read as too similar.
   -------------------------------------------------------------- */
.a2g-loop-row {
	align-items: stretch;
	gap: 2rem;
}
.a2g-loop-card {
	flex: 1 1 380px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a2g-loop-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(11, 37, 69, 0.12);
}
.a2g-loop-card--dark {
	box-shadow: 0 4px 14px rgba(11, 37, 69, 0.2);
}
.a2g-loop-card--dark:hover {
	box-shadow: 0 16px 32px rgba(11, 37, 69, 0.32);
}
.a2g-loop-card h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
}
.a2g-loop-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 1.75rem;
	flex-direction: column;
	align-items: stretch;
}
.a2g-loop-card .wp-block-buttons .wp-block-button {
	flex: none;
	width: 100%;
}
.a2g-loop-card .wp-block-buttons .wp-block-button__link {
	white-space: nowrap;
}
@media (max-width: 380px) {
	.a2g-loop-card .wp-block-buttons .wp-block-button__link {
		white-space: normal;
	}
}
.a2g-loop-icon {
	display: block;
	width: 44px !important;
	height: 44px !important;
	flex: none;
	margin-bottom: 1.25rem;
}
.a2g-loop-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}
.a2g-loop-icon--teal {
	color: #127475;
}
.a2g-loop-icon--gold {
	color: #C89B3C;
}

/* --------------------------------------------------------------
   Resource / PDF download placeholder card (Industries pages):
   dashed border + muted "Coming Soon" badge signal a resource
   that's planned but not yet built, so it never reads as a dead
   or broken link. The "button" is a plain <span>, not an <a>, so
   there is nothing to click through to a 404.
   -------------------------------------------------------------- */
.a2g-resource-card {
	background: #ffffff;
	border: 2px dashed rgba(11, 37, 69, 0.18);
	border-radius: 10px;
	padding: 2rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.a2g-resource-icon {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: rgba(200, 155, 60, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}
.a2g-resource-icon svg {
	width: 26px;
	height: 26px;
}
.a2g-resource-body {
	flex: 1 1 260px;
}
.a2g-resource-body h3 {
	margin: 0 0 0.35rem;
}
.a2g-resource-body p {
	margin: 0;
	color: #5A5A5A;
}
.a2g-resource-badge {
	display: inline-block;
	margin-top: 0.6rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(11, 37, 69, 0.07);
	color: #0B2545;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.a2g-resource-btn {
	flex: none;
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: 4px;
	background: rgba(11, 37, 69, 0.06);
	color: #7A7A7A;
	font-weight: 700;
	font-size: 0.95rem;
	border: 1px solid rgba(11, 37, 69, 0.12);
	cursor: not-allowed;
	white-space: nowrap;
}


/* --------------------------------------------------------------
   Insights hub (/insights/) post grid — Query Loop block styled
   as a card grid rather than a plain title+excerpt list. Targets
   .wp-block-post-template directly (rather than relying on
   Gutenberg's own grid layout attribute, whose exact markup isn't
   guaranteed) so it renders correctly regardless of li/div wrapper.
   -------------------------------------------------------------- */
.a2g-post-grid.wp-block-post-template {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.a2g-post-grid.wp-block-post-template > * {
	flex: 1 1 300px;
}
.a2g-post-card {
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a2g-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(11, 37, 69, 0.12);
}
.a2g-post-card .wp-block-post-title {
	margin: 0.6rem 0 0.5rem;
}
.a2g-post-card .wp-block-post-title a {
	color: #0B2545;
	text-decoration: none;
}
.a2g-post-card .wp-block-post-excerpt {
	color: #5A5A5A;
	flex: 1;
}
.a2g-post-card .wp-block-post-date {
	color: #7A7A7A;
	margin-top: 0.75rem;
	display: block;
}

/* Downloads Center — compact resource list rows */
.a2g-download-group {
	margin-bottom: 3rem;
}
.a2g-download-group:last-child {
	margin-bottom: 0;
}
.a2g-download-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.a2g-download-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #F5F7FA;
	border: 1px dashed #C89B3C;
	border-radius: 8px;
	flex-wrap: wrap;
}
.a2g-download-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.a2g-download-title {
	flex: 1 1 240px;
	font-weight: 600;
	color: #0B2545;
	margin: 0;
}
.a2g-download-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	margin-left: auto;
}
.a2g-download-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #C89B3C;
	border: 1px solid #C89B3C;
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
	white-space: nowrap;
}
.a2g-download-btn {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #94A3B8;
	white-space: nowrap;
	cursor: not-allowed;
}
@media (max-width: 600px) {
	.a2g-download-item {
		align-items: flex-start;
	}
	.a2g-download-meta {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
	}
}

/* Sticky header — stays visible on scroll.
   WordPress wraps the header template part in its own <header class="wp-block-template-part">
   element; stickiness has to apply to THAT wrapper (the containing block), not the inner
   block, otherwise there's no scroll room for it to stick within and it just scrolls away. */
body > .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
}
.a2g-site-header {
	box-shadow: 0 2px 10px rgba(11, 37, 69, 0.08);
}
