/* ==========================================================================
 * Amax Marketing — main stylesheet (Phase 3A v2)
 *
 * Ported 1:1 from v6 preview's inline <style> block. Scope:
 *   - Tokens + typography
 *   - Skip link
 *   - Buttons (.amx-btn, .amx-btn-primary, .amx-btn-ghost, .amx-arrow-link)
 *   - Mega menu (.has-mega, .mega, .mega-link, .mega-col-title)
 *   - Mobile drawer (.mobile-drawer, .mobile-backdrop, <details> styling)
 *   - Floating CTA (.floating-cta)
 *   - Defensive theme-header hide (only when body.amx-has-custom-header)
 *
 * Homepage-only components (hero, trophy strip, marquee, service cards,
 * stat cards, FAQ, contact form) are NOT in this file — they belong to
 * Phase 2 / Phase 3B and will be shipped there.
 *
 * Version: 2.0.0
 * ======================================================================== */


/* ==========================================================================
 *   1. TOKENS
 *   Kept as CSS custom properties so non-Tailwind overrides work cleanly.
 * ======================================================================== */

:root {
	--navy:       #003E79;
	--navy-deep:  #001F3D;
	--navy-dark:  #00152A;
	--coral:      #FF6B4A;
	--coral-hot:  #FF5733;
	--mint:       #00A676;
	--amber:      #F5A623;
	--violet:     #6B5CF5;
	--pink:       #E85CA1;
	--sky:        #5BA8E8;
	--cream:      #F4F3EE;
	--border:     #E5E3DB;
}

/* ==========================================================================
 *   2. BASE TYPOGRAPHY + BODY
 *   Matches preview: General Sans body, cream bg, navy-dark ink.
 *
 *   Scoped to `body.amx-has-custom-header` so we never override
 *   pages where Amax chrome isn't active (admin preview, Elementor editor, etc.)
 * ======================================================================== */

html { scroll-behavior: smooth; }

body.amx-has-custom-header,
body.amx-has-custom-footer {
	font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
	background: var(--cream);
	color: var(--navy-dark);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.serif-i {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* ==========================================================================
 *   3. SKIP LINK (accessibility)
 * ======================================================================== */

.amx-skip-link {
	position: absolute;
	left: -9999px;
	top: -9999px;
	z-index: 9999;
	background: var(--navy);
	color: #fff;
	padding: 10px 14px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}
.amx-skip-link:focus {
	left: 12px;
	top: 12px;
}

/* ==========================================================================
 *   4. BUTTONS
 *   .amx-btn          — shared base (pill, flex)
 *   .amx-btn-primary  — coral, with hover shine sweep
 *   .amx-btn-ghost    — transparent with navy/15 border
 *   .amx-arrow-link   — text link with gap-on-hover arrow
 * ======================================================================== */

.amx-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.01em;
	transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	border: 0;
}

.amx-btn-primary {
	background: var(--coral);
	color: #fff;
	box-shadow: 0 8px 24px -12px rgba(255,107,74,0.5);
}
.amx-btn-primary::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}
.amx-btn-primary:hover::before { transform: translateX(100%); }
.amx-btn-primary:hover {
	background: var(--coral-hot);
	transform: translateY(-1px);
	box-shadow: 0 12px 32px -10px rgba(255,107,74,0.65);
	color: #fff;
}

.amx-btn-ghost {
	color: var(--navy);
	border: 1.5px solid rgba(0,62,121,0.15);
	background: transparent;
}
.amx-btn-ghost:hover {
	border-color: var(--navy);
	background: rgba(0,62,121,0.04);
	color: var(--navy);
}

.amx-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--navy);
	font-weight: 500;
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}
.amx-arrow-link:hover {
	gap: 12px;
	color: var(--coral);
}
.amx-arrow-link.on-dark { color: rgba(244,243,238,0.85); }


/* ==========================================================================
 *   5. MEGA MENU
 *   Positioned absolutely under its trigger. Opens on hover/focus-within.
 *   Services mega is 920px wide (3-col); Sectors is set inline to 640px.
 * ======================================================================== */

.has-mega { position: relative; }

.mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	width: 920px;
	max-width: calc(100vw - 48px);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 28px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	box-shadow: 0 30px 60px -30px rgba(0,31,61,0.25);
	z-index: 50;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.mega-col-title {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(0,31,61,0.5);
	font-weight: 600;
	margin-bottom: 12px;
}

.mega-link {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
body .mega .mega-link {
	color: var(--navy);
}
body .mega .mega-link:hover,
body .mega .mega-link:focus-visible {
	background: rgba(255,107,74,0.08);
	color: var(--coral) !important;
	padding-left: 16px;
	text-decoration: none;
}

.mega-link-desc {
	display: block;
	font-size: 12px;
	color: rgba(0,31,61,0.55);
	font-weight: 400;
	margin-top: 2px;
}


/* ==========================================================================
 *   6. FLOATING CTA
 *   Hidden by default; JS adds .visible once hero scrolls out of view.
 * ======================================================================== */

.floating-cta {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 40;
	opacity: 0;
	transform: translateY(14px) scale(0.97);
	transition: all 0.3s ease;
	pointer-events: none;
}
.floating-cta.visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}


/* ==========================================================================
 *   7. MOBILE DRAWER
 *   Right-slide aside, 420px max. Backdrop blurs content behind it.
 *   Uses <details> for accordion submenus.
 * ======================================================================== */

.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100%);
	background: #fff;
	padding: 24px;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 70;
	overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,21,42,0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.mobile-backdrop.open {
	opacity: 1;
	visibility: visible;
}

/* Tailwind's `group-open:rotate-180` doesn't ship out of the box on the
 * CDN preset we use, so we mirror it here explicitly for the caret icons. */
details[open] > summary > span.group-open\:rotate-180 {
	transform: rotate(180deg);
}
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }


/* ==========================================================================
 *   8. RESPONSIVE TWEAKS (mirrors v6 preview @ 640px)
 * ======================================================================== */

@media (max-width: 640px) {
	.max-w-container {
		padding-left: 20px;
		padding-right: 20px;
	}
	.px-6 {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
	.floating-cta {
		bottom: 16px;
		right: 16px;
		font-size: 13px;
		padding: 10px 16px;
	}
}


/* ==========================================================================
 *   9. DEFENSIVE: hide theme header/footer ONLY when Amax rendered its own
 *
 *   If our PHP fails for any reason, these rules stay inert (body classes
 *   missing) and the theme header stays visible — no naked page.
 * ======================================================================== */

.amx-has-custom-header > header#site-header,
.amx-has-custom-header > .site-header,
.amx-has-custom-footer > footer#site-footer,
.amx-has-custom-footer > .site-footer {
	display: none !important;
}

/* Hello Elementor puts a .site-header wrapper INSIDE <body>; sometimes it's
 * not a direct child because of Hello's <div id="page"> wrapper. Cover that too. */
.amx-has-custom-header #page > header,
.amx-has-custom-header #page > .site-header,
.amx-has-custom-footer #page > footer,
.amx-has-custom-footer #page > .site-footer {
	display: none !important;
}


/* ==========================================================================
 *  10. REDUCED MOTION
 * ======================================================================== */

@media (prefers-reduced-motion: reduce) {
	.amx-btn,
	.amx-btn-primary::before,
	.mega,
	.mobile-drawer,
	.mobile-backdrop,
	.floating-cta {
		transition: none !important;
		animation: none !important;
	}
}


/* ==========================================================================
 *  11. HELLO ELEMENTOR OVERRIDES
 *
 *  Hello Elementor's theme-style.css sets a global `a:hover { color: ... }`
 *  that otherwise bleeds into our nav + mega + footer links. Explicit,
 *  namespaced overrides below beat that without !important on the base
 *  colors — only on :hover where parity matters most.
 * ======================================================================== */

/* Main nav links (desktop) */
body .amx-site-header nav a,
body .amx-site-header nav button {
	color: var(--navy);
}
body .amx-site-header nav a:hover,
body .amx-site-header nav button:hover {
	color: var(--coral) !important;
}

/* Utility bar links */
body .amx-site-header .text-navy\/70 a {
	color: rgba(0,62,121,0.7);
}
body .amx-site-header .text-navy\/70 a:hover {
	color: var(--coral) !important;
}

/* Logo + logo sub-lockup */
body .amx-site-header a[href="/"],
body .amx-site-header a[href$="hostingersite.com/"] {
	color: var(--navy);
	text-decoration: none;
}

/* Arrow-link (Get free audit →) */
body .amx-arrow-link { color: var(--navy); }
body .amx-arrow-link:hover { color: var(--coral) !important; }

/* Mobile drawer links */
body .mobile-drawer a,
body .mobile-drawer summary {
	color: var(--navy);
}
body .mobile-drawer a:hover {
	color: var(--coral) !important;
}

/* Footer links (dark bg → cream default, coral on hover) */
body .amx-site-footer a {
	color: rgba(244,243,238,0.8);
	text-decoration: none;
}
body .amx-site-footer a:hover {
	color: var(--coral) !important;
}
body .amx-site-footer .text-cream\/60 {
	color: rgba(244,243,238,0.6);
}
body .amx-site-footer .text-cream\/50 {
	color: rgba(244,243,238,0.5);
}
body .amx-site-footer .text-cream {
	color: var(--cream);
}

/* Button color locks (Hello's a:hover tried to change button text) */
body .amx-btn-primary,
body .amx-btn-primary:hover,
body .amx-btn-primary:visited,
body .amx-btn-primary:focus {
	color: #fff !important;
	text-decoration: none;
}
body .amx-btn-ghost,
body .amx-btn-ghost:visited,
body .amx-btn-ghost:focus {
	color: var(--navy);
	text-decoration: none;
}
body .amx-btn-ghost:hover {
	color: var(--navy) !important;
	text-decoration: none;
}


/* ==========================================================================
 *  ============================================================
 *   PHASE 2 v2 — HOMEPAGE COMPONENTS (ported 1:1 from v6 preview)
 *  ============================================================
 *
 *  All styles below are for the homepage only. They come straight from
 *  the preview's <style> block so the v6 design is faithfully reproduced.
 *  Duplicate rules (buttons, mega, drawer, reveal) are harmless — the
 *  earlier Amax-site sections above still define the canonical versions
 *  and the Hello Elementor override block at the end still wins last.
 * ========================================================================== */


/* ---------- IMAGE PLACEHOLDERS ---------- */
.img-slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--img-a, #003E79), var(--img-b, #FF6B4A));
}
.img-slot::before {
  content: attr(data-label);
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.img-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---------- LAYOUT HELPERS ---------- */
.bg-editorial-grid {
  background-image:
    linear-gradient(rgba(0,62,121,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,62,121,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: blob-drift 18s ease-in-out infinite;
}
.blob-coral { background: radial-gradient(circle, rgba(255,107,74,0.22), transparent 65%); }
.blob-mint  { background: radial-gradient(circle, rgba(0,166,118,0.18), transparent 65%); }
.blob-violet{ background: radial-gradient(circle, rgba(107,92,245,0.20), transparent 65%); }
.blob-sky   { background: radial-gradient(circle, rgba(91,168,232,0.20), transparent 65%); }
@keyframes blob-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.08); }
  66%     { transform: translate(-30px,40px) scale(0.95); }
}

.section-pad { padding-top: 100px; padding-bottom: 100px; }
@media (max-width: 768px) { .section-pad { padding-top: 64px; padding-bottom: 64px; } }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: rgba(0,31,61,0.55);
}
.section-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--coral); display: inline-block;
}
.section-eyebrow.on-dark { color: rgba(244,243,238,0.6); }

/* ---------- BUTTONS ---------- */
.amx-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap; position: relative; overflow: hidden;
}
.amx-btn-primary {
  background: var(--coral); color: #fff;
  box-shadow: 0 8px 24px -12px rgba(255,107,74,0.5);
}
.amx-btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.amx-btn-primary:hover::before { transform: translateX(100%); }
.amx-btn-primary:hover {
  background: #FF5733;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(255,107,74,0.65);
}
.amx-btn-ghost {
  color: var(--navy);
  border: 1.5px solid rgba(0,62,121,0.15);
  background: transparent;
}
.amx-btn-ghost:hover { border-color: var(--navy); background: rgba(0,62,121,0.04); }

.amx-arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 500;
  transition: gap 0.2s ease, color 0.2s ease;
}
.amx-arrow-link:hover { gap: 12px; color: var(--coral); }
.amx-arrow-link.on-dark { color: rgba(244,243,238,0.85); }

/* ==========================================
   HERO v5 — distinctive + creative
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

/* Backdrop: subtle animated colour + grid */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 90% 10%, rgba(255,107,74,0.20), transparent 55%),
    radial-gradient(ellipse 50% 50% at 5% 90%, rgba(0,166,118,0.15), transparent 60%);
  animation: hero-bg-drift 28s ease-in-out infinite alternate;
}
@keyframes hero-bg-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-3%, 2%) scale(1.04); }
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,62,121,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,62,121,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}

.hero-content { position: relative; z-index: 2; }

/* Headline */
.hero-h1 {
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--navy);
  position: relative;
  max-width: 12ch;
}
.hero-h1 .hero-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-line-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-h1 .hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-h1 .hero-line:nth-child(2) { animation-delay: 0.28s; }
.hero-h1 .hero-line:nth-child(3) { animation-delay: 0.46s; }
@keyframes hero-line-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Coral accent word */
.hero-accent-word {
  color: var(--coral);
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  position: relative;
}

/* Underline sweep on "Ranks" — applied via class, uses pure CSS so no overflow clip */
.hero-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.hero-underline::after {
  content: '';
  position: absolute;
  left: 2%; right: 2%;
  bottom: -2px;
  height: 6px;
  background: var(--coral);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-sweep 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
@keyframes underline-sweep {
  to { transform: scaleX(1); }
}

/* Hero eyebrow + supporting text */
.hero-eyebrow-anim {
  opacity: 0;
  animation: hero-line-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-sub {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-line-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}
.hero-ctas {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-line-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

/* ---------- SERP VISUAL ---------- */
/* Shows a faux search result panel climbing from position 8 up to position 1.
   Each row animates its "position number" on a cycle. */
.hero-serp {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 20px 22px;
  box-shadow: 0 30px 80px -30px rgba(0,31,61,0.2);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-line-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.hero-serp::before {
  content: '';
  position: absolute;
  top: -16px; left: 24px;
  width: 48px; height: 3px;
  background: var(--coral);
  border-radius: 2px;
}

.hero-serp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-serp-logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-serp-logo .g1 { color: #4285F4; }
.hero-serp-logo .g2 { color: #EA4335; }
.hero-serp-logo .g3 { color: #FBBC05; }
.hero-serp-logo .g4 { color: #4285F4; }
.hero-serp-logo .g5 { color: #34A853; }
.hero-serp-logo .g6 { color: #EA4335; }
.hero-serp-search {
  flex: 1;
  background: #F4F3EE;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(0,31,61,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-serp-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,31,61,0.45);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Each SERP row */
.hero-serp-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,62,121,0.06);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.hero-serp-row:last-child { border-bottom: 0; }

.hero-serp-pos {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(0,62,121,0.05);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-feature-settings: "tnum" on;
  transition: all 0.4s ease;
}
.hero-serp-site {
  font-size: 13px;
  color: rgba(0,31,61,0.55);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-serp-delta {
  font-size: 11px;
  color: rgba(0,31,61,0.35);
  font-weight: 500;
}

/* "You" row — the winner, gets highlight */
.hero-serp-row.you {
  padding: 14px 14px;
  margin: 4px -14px;
  background: linear-gradient(90deg, rgba(255,107,74,0.08), rgba(255,107,74,0.02));
  border-radius: 12px;
  border-bottom: 0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-serp-row.you .hero-serp-pos {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(255,107,74,0.5);
}
.hero-serp-row.you .hero-serp-site {
  color: var(--navy);
  font-weight: 600;
}
.hero-serp-row.you .hero-serp-delta {
  color: var(--mint);
  font-weight: 600;
}

/* Up arrow indicator */
.hero-rank-up {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.hero-rank-up::before {
  content: '↑';
  font-size: 10px;
}

/* "You're climbing" progress indicator bar */
.hero-serp-progress {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(0,31,61,0.65);
}
.hero-serp-progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
  animation: pulse-dot-sm 2s ease-in-out infinite;
}
@keyframes pulse-dot-sm {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,166,118,0.4); }
  50%     { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,166,118,0); }
}
.hero-serp-progress strong { color: var(--navy); font-weight: 600; }

/* Floating decorative badges around the SERP */
.hero-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 20px 40px -20px rgba(0,31,61,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-line-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-badge.b1 {
  top: -18px;
  right: -20px;
  animation-delay: 1.4s;
  background: var(--navy-deep);
  color: var(--cream);
  border-color: transparent;
}
.hero-badge.b2 {
  bottom: -20px;
  left: -24px;
  animation-delay: 1.65s;
}
@media (max-width: 1024px) {
  .hero-badge.b1 { top: -14px; right: 8px; }
  .hero-badge.b2 { bottom: -14px; left: 8px; }
}
@media (max-width: 640px) {
  .hero-badge { padding: 8px 10px; font-size: 11px; }
  .hero-badge-value { font-size: 14px; }
}
.hero-badge-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-badge-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-badge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 2px;
}

/* Ambient floating dots */
.hero-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: dot-float 4s ease-in-out infinite, dot-fade 1s ease forwards;
}
.hero-dot.d1 { top: 20%; left: 45%; width: 8px; height: 8px; background: var(--coral); animation-delay: 1.8s, 1.8s; }
.hero-dot.d2 { top: 60%; left: 38%; width: 6px; height: 6px; background: var(--mint); animation-delay: 2.0s, 2.0s; }
.hero-dot.d3 { top: 75%; left: 55%; width: 10px; height: 10px; background: var(--violet); animation-delay: 2.2s, 2.2s; }
@keyframes dot-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@keyframes dot-fade {
  to { opacity: 0.4; }
}

/* Trophy strip (below, now smaller) */
.hero-trophies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  opacity: 0;
  animation: hero-line-in 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}
@media (max-width: 768px) {
  .hero-trophies {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }
}
.hero-trophy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229,227,219,0.7);
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.hero-trophy:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -20px rgba(0,31,61,0.18);
  border-color: var(--coral);
}
.hero-trophy.dark {
  background: var(--navy-deep);
  border-color: transparent;
  color: var(--cream);
}
.hero-trophy.dark .hero-trophy-label { color: rgba(244,243,238,0.55); }
.hero-trophy.dark .hero-trophy-client { color: rgba(244,243,238,0.7); }

.hero-trophy-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-trophy-body { flex: 1; min-width: 0; }
.hero-trophy-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,31,61,0.5);
  font-weight: 600;
}
.hero-trophy-value {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 2px;
  font-feature-settings: "tnum" on;
}
.hero-trophy-client {
  font-size: 10px;
  color: rgba(0,31,61,0.6);
  margin-top: 3px;
}

/* Marquee — logo + text pairs */
.marquee { overflow: hidden; position: relative; }
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--cream), transparent); }

.marquee-track {
  display: flex; gap: 48px;
  animation: marquee-scroll 55s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 14px;
  transition: background 0.2s ease;
}
.marquee-item:hover { background: rgba(0,31,61,0.04); }
.marquee-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--logo-bg, #fff);
  border: 1px solid var(--border);
  color: var(--logo-color, var(--navy));
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.marquee-logo::after {
  content: attr(data-label);
  position: absolute;
  bottom: -2px; right: -2px;
  font-size: 6px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  background: var(--navy);
  padding: 1px 3px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marquee-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.marquee-client {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.marquee-metric {
  font-size: 11px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.02em;
}


/* ==========================================
   STAT CARDS
   ========================================== */
.stat-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--stat-accent, var(--coral));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--stat-accent, var(--coral));
  box-shadow: 0 20px 40px -20px rgba(0,31,61,0.18);
}
.stat-value {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1; font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-feature-settings: "tnum" on;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.svc-card::before {
  content: ''; position: absolute;
  top: -2px; left: -2px; right: -2px; height: 6px;
  background: linear-gradient(90deg, var(--svc-accent, #FF6B4A), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--svc-accent, #FF6B4A);
  box-shadow: 0 30px 60px -30px rgba(0,31,61,0.2);
}
.svc-card > * { position: relative; z-index: 1; }
.svc-eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,62,121,0.05); color: var(--navy);
}
.svc-title {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--navy);
  margin-top: 16px;
}
.svc-desc { color: rgba(0,31,61,0.7); font-size: 15px; margin-top: 10px; line-height: 1.55; }

.svc-card .svc-cta-arrow { display: inline-block; transition: transform 0.3s ease; }
.svc-card:hover .svc-cta-arrow { transform: translateX(6px); }


/* ==========================================
   CASE CARDS
   ========================================== */
.case-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px -30px rgba(0,31,61,0.3);
}
.case-card .img-slot {
  height: 220px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover .img-slot { transform: scale(1.04); }

.case-metric-float {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(8px);
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover .case-metric-float { transform: translateY(-4px); }
.case-metric-value {
  font-size: 28px; font-weight: 600;
  color: var(--navy); line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" on;
}


/* ==========================================
   HEADER / MEGA MENU
   ========================================== */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 920px; max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 30px 60px -30px rgba(0,31,61,0.25);
  z-index: 50;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-col-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(0,31,61,0.5); font-weight: 600; margin-bottom: 12px;
}
.mega-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 15px; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.mega-link:hover { background: rgba(255,107,74,0.08); color: var(--coral); padding-left: 16px; }
.mega-link-desc {
  display: block; font-size: 12px;
  color: rgba(0,31,61,0.55); font-weight: 400; margin-top: 2px;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 40;
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition: all 0.3s ease;
  pointer-events: none;
}
.floating-cta.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }


/* Reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }


/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%; text-align: left;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500; font-size: 18px;
  color: var(--navy);
  cursor: pointer; gap: 20px;
  transition: color 0.2s ease;
  background: transparent;
  border: 0;
}
.faq-trigger:hover { color: var(--coral); }
.faq-trigger .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(0,62,121,0.2);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  color: var(--navy);
}
.faq-item.open .faq-trigger {
  color: var(--coral);
}
.faq-item.open .faq-trigger .icon {
  background: var(--coral); border-color: var(--coral);
  color: #fff; transform: rotate(45deg);
}
.faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), padding-bottom 0.35s ease;
  color: rgba(0,31,61,0.72); line-height: 1.65;
}
.faq-item.open .faq-content { max-height: 400px; padding-bottom: 24px; }


/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 70;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,21,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-backdrop.open { opacity: 1; visibility: visible; }

/* Form */
.field {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.field:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,107,74,0.12);
}
.field-label {
  font-size: 13px; font-weight: 500; color: var(--navy);
  display: block; margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   MOBILE RESPONSIVE REFINEMENTS
   Audit pass: tested at 375px / 414px / 768px / 1024px
   ========================================================================== */

/* ---- Tablet & below: 1024px ---- */
@media (max-width: 1024px) {
  /* Hero: space between stacked columns */
  .hero { overflow-x: clip; }
  .hero .grid { gap: 48px !important; }

  /* Ambient decorative dots - hide so they don't cover text on narrow widths */
  .hero-dot { display: none; }

  /* SERP panel — tighter padding */
  .hero-serp { padding: 18px; }
}

/* ---- Tablet & below: 768px ---- */
@media (max-width: 768px) {

  /* Utility bar: hide on very small mobile - save vertical space */
  /* (keeping visible on small tablet — already handled by md: prefixes) */

  /* Hero fine-tuning */
  .hero-h1 {
    font-size: clamp(44px, 11vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }

  /* Hero padding */
  .hero {
    padding-top: 0 !important;
  }
  .hero > div.max-w-container {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
  }

  /* Hero eyebrow spacing */
  .hero-eyebrow-anim { margin-bottom: 20px !important; font-size: 11px; }
  .hero-sub { margin-top: 24px !important; }
  .hero-ctas { margin-top: 24px !important; }
  .hero-ctas .amx-btn {
    padding: 14px 22px !important;
    font-size: 14px !important;
  }
  /* CTAs stack full-width on mobile */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .amx-btn {
    justify-content: center;
    width: 100%;
  }

  /* Trophy cards in hero — more breathing room */
  .hero-trophies {
    margin-top: 32px !important;
    gap: 10px;
  }
  .hero-trophy { padding: 14px; }

  /* SERP panel — remove floating badge offsets (they'd hang off screen) */
  .hero-badge.b1,
  .hero-badge.b2 {
    position: static !important;
    margin-top: 12px;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    display: inline-flex;
  }
  .hero-badge.b2 { margin-left: 8px; }
  .hero-badge-wrap {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  /* Section eyebrow becomes smaller */
  .section-eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .section-eyebrow::before { width: 20px; }

  /* Generic section headings */
  .section-pad h2,
  section h2 {
    font-size: 32px !important;
    line-height: 1.1 !important;
  }
  .hero-h1 { font-size: clamp(44px, 11vw, 72px) !important; }

  /* Service cards — tighter padding */
  .svc-card { padding: 24px; }
  .svc-title { font-size: 22px; }
  .svc-desc { font-size: 14px; }

  /* Stat cards — tighter padding */
  .stat-card { padding: 20px; }
  .stat-value { font-size: 40px !important; }

  /* Why Amax: image column should have reasonable height on mobile, not 420px */
  #why-amax-image,
  .why-amax-section .img-slot { min-height: 280px !important; }

  /* Case study cards — tighter */
  .case-card .img-slot { height: 180px; }
  .case-metric-float { padding: 10px 14px; bottom: 14px; left: 14px; }
  .case-metric-value { font-size: 22px; }

  /* Testimonials, blog cards: smaller padding */
  .stat-card .text-5xl { font-size: 36px; }

  /* FAQ — tighter */
  .faq-trigger { font-size: 16px; padding: 20px 0; }

  /* Marquee: smaller items on mobile */
  .marquee-track { gap: 28px; }
  .marquee-item { padding: 6px 10px; gap: 10px; }
  .marquee-logo { width: 34px; height: 34px; font-size: 13px; }
  .marquee-client { font-size: 13px; }
  .marquee-metric { font-size: 10px; }
  .marquee::before, .marquee::after { width: 60px; }

  /* Contact widget slot — stack properly, no wide form mock */
  #contact .grid { gap: 28px !important; }
  #contact h2 { font-size: 24px !important; }

  /* Footer: better stacking */
  footer .grid { gap: 32px !important; }
  footer .lg\:col-span-4 { grid-column: 1 / -1; }

  /* Mega menus — already have max-width: calc(100vw - 48px), fine */
}

/* ---- Phone: 640px and below ---- */
@media (max-width: 640px) {

  /* Hero eyebrow fits on one line */
  .hero-eyebrow-anim {
    font-size: 10px;
    white-space: normal;
  }

  /* Max-width-container side padding — tight */
  .max-w-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .px-6 { padding-left: 20px !important; padding-right: 20px !important; }

  /* Floating CTA — hide on small mobile (bottom drawer nav could conflict) */
  .floating-cta { bottom: 16px; right: 16px; font-size: 13px; padding: 10px 16px; }

  /* Section headings smaller */
  section h2 { font-size: 28px !important; }

  /* Hero H1 — even tighter */
  .hero-h1 { font-size: clamp(40px, 10vw, 54px) !important; }
  .hero-h1 .hero-line { display: block; }

  /* Trophy cards go full width stacking */
  .hero-trophies { gap: 8px; }

  /* SERP: reduce complexity, remove search bar for space */
  .hero-serp { padding: 16px; border-radius: 16px; }
  .hero-serp-head { margin-bottom: 14px; gap: 8px; }
  .hero-serp-search { font-size: 11px; padding: 5px 10px; }
  .hero-serp-row { padding: 8px 0; gap: 10px; }
  .hero-serp-row.you { padding: 10px 10px; margin: 2px -10px; }
  .hero-serp-pos { width: 24px; height: 24px; font-size: 12px; }
  .hero-serp-site { font-size: 12px; }
  .hero-serp-delta { font-size: 10px; }

  /* USP icons */
  .stat-card .w-11, .stat-card .w-12 { width: 36px !important; height: 36px !important; font-size: 16px; }

  /* Services card badges ("Most requested") wrap nicely */
  .svc-card .svc-eyebrow { font-size: 10px; }

  /* Contact widget placeholder stays readable */
  #audit .bg-cream { padding: 16px !important; }

  /* FAQ questions tighter */
  .faq-trigger { font-size: 15px; gap: 12px; }
  .faq-trigger .icon { width: 24px; height: 24px; }

  /* Testimonial cards — avatar smaller */
  .stat-card .w-10 { width: 32px !important; height: 32px !important; }
}

/* ---- Very small: 380px ---- */
@media (max-width: 380px) {
  .hero-h1 { font-size: 38px !important; }
  .hero-serp-site { font-size: 11px; }
  .hero-serp-row { grid-template-columns: 22px 1fr auto; gap: 8px; }
  .marquee-client { font-size: 12px; }
  .marquee-text { gap: 1px; }
}

/* ---- Landscape mobile / short viewport ---- */
@media (max-height: 640px) and (orientation: landscape) {
  .hero > div.max-w-container {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}


/* ==========================================================================
 *  12. HELLO ELEMENTOR OVERRIDES — HOMEPAGE (Phase 2 v2)
 *
 *  The homepage is rendered via `the_content`, so it lives inside
 *  .entry-content. Hello Elementor applies `.entry-content a { text-decoration:
 *  underline }` and default button chrome that bleed into our service cards,
 *  case cards, and FAQ triggers. Targeted overrides below.
 * ========================================================================== */

/* -------- Kill underline on everything inside homepage card links -------- */

body .svc-card,
body .svc-card:hover,
body .svc-card:focus,
body .svc-card:visited,
body .case-card,
body .case-card:hover,
body .case-card:focus,
body .case-card:visited,
body .amx-case-card,
body .amx-case-card:hover,
body .amx-case-card:focus,
body .amx-case-card:visited,
body .marquee-item,
body .entry-content .svc-card,
body .entry-content .case-card,
body .entry-content .amx-case-card,
body .page-content .amx-case-card,
body .page-content .amx-case-card:hover,
body .page-content .amx-case-card:focus,
body .page-content .amx-case-card:visited {
	text-decoration: none !important;
}

/* Child text inside cards — paragraph + heading underlines from Hello's
 * .entry-content a rules can cascade to nested spans/p/h3 too. */
body .svc-card *,
body .case-card *,
body .amx-case-card *,
body .entry-content .svc-card *,
body .entry-content .case-card *,
body .entry-content .amx-case-card *,
body .page-content .amx-case-card * {
	text-decoration: none !important;
}

/* Any link inside Amax header/footer/homepage sections — force no underline
 * unless it's an explicit in-body inline link (e.g. FAQ pitch "Ask us
 * directly.") which we let keep its underline. */
body .amx-site-header a,
body .amx-site-footer a,
body .hero a:not(.underline),
body .hero-ctas a,
body section .amx-arrow-link,
body section .amx-arrow-link:hover,
body .marquee a,
body .stat-card a,
body .page-content .amx-btn,
body .page-content .amx-btn:hover,
body .page-content .amx-btn:focus,
body .page-content .amx-btn:visited,
body .page-content .amx-arrow-link,
body .page-content .amx-arrow-link:hover,
body .page-content .amx-case-card-arrow,
body .post-type-archive-amx_case .amx-btn,
body .post-type-archive-amx_case .amx-arrow-link,
body .post-type-archive-amx_case .amx-case-card-arrow,
body .single-amx_case .amx-btn,
body .single-amx_case .amx-arrow-link,
body .single-amx_case .amx-case-card-arrow {
	text-decoration: none !important;
}

/* -------- FAQ accordion — strip Hello's default <button> styling -------- */

body .faq-item,
body .entry-content .faq-item {
	border-bottom: 1px solid var(--border);
	border-top: 0;
	border-left: 0;
	border-right: 0;
	background: transparent;
	padding: 0;
	margin: 0;
}

body .faq-trigger,
body .entry-content .faq-trigger {
	width: 100%;
	text-align: left;
	padding: 24px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
	font-size: 18px;
	color: var(--navy);
	cursor: pointer;
	gap: 20px;
	transition: color 0.2s ease;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	font-family: inherit;
	min-height: 0;
	text-decoration: none;
}
body .faq-trigger:hover,
body .entry-content .faq-trigger:hover {
	color: var(--coral) !important;
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none;
	transform: none;
}
body .faq-trigger:focus,
body .faq-trigger:focus-visible {
	outline: 2px solid rgba(255,107,74,0.35);
	outline-offset: 4px;
	background: transparent !important;
}

body .faq-trigger .icon,
body .entry-content .faq-trigger .icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 1.5px solid rgba(0,62,121,0.2);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
	color: var(--navy);
	background: transparent;
	font-weight: 400;
	font-size: 16px;
}
body .faq-item.open .faq-trigger,
body .entry-content .faq-item.open .faq-trigger {
	color: var(--coral);
}
body .faq-item.open .faq-trigger .icon,
body .entry-content .faq-item.open .faq-trigger .icon {
	background: var(--coral);
	border-color: var(--coral);
	color: #fff;
	transform: rotate(45deg);
}

body .faq-content,
body .entry-content .faq-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), padding-bottom 0.35s ease;
	color: rgba(0,31,61,0.72);
	line-height: 1.65;
	padding: 0;
	background: transparent;
}
body .faq-item.open .faq-content,
body .entry-content .faq-item.open .faq-content {
	max-height: 400px;
	padding-bottom: 24px;
}

/* -------- Service card inner elements — Hello Elementor sometimes styles
 *          h3 inside .entry-content with its own color + spacing. -------- */
body .entry-content .svc-card h3,
body .entry-content .case-card h3,
body .entry-content .stat-card h3 {
	margin-top: 0;
	margin-bottom: 0;
	color: var(--navy);
}
body .entry-content .svc-card p,
body .entry-content .case-card p,
body .entry-content .stat-card p {
	margin: 0;
}

/* -------- Section h2s inside the_content — kill Hello's default margin -------- */
body .entry-content section h2 {
	margin-top: 0;
}


/* ==========================================================================
 *  13. LOGO IMAGE (Phase 3A polish)
 *
 *  When the ACF site-logo image is set, amx_render_logo() outputs an <img>
 *  with class .amx-logo-img. These rules size it sensibly in both the
 *  header (light bg) and footer (dark bg) and suppress the text wordmark
 *  that would otherwise sit next to it.
 * ========================================================================== */

.amx-logo-img {
	display: block;
	height: auto;
	max-height: 40px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
}

@media (max-width: 640px) {
	.amx-logo-img {
		max-height: 36px;
		max-width: 180px;
	}
}

/* Footer logo can go slightly larger */
.amx-site-footer .amx-logo-img {
	max-height: 44px;
	max-width: 260px;
}

/* When an image logo is rendered, hide the "marketing" serif sub-lockup
 * (which only makes sense next to the text wordmark). */
.amx-logo-link:has(.amx-logo-img) .serif-i,
.amx-footer-logo:has(.amx-logo-img) .serif-i {
	display: none !important;
}


/* ==========================================================================
 *  14. HEADER <button> RESETS (Phase 3A Polish hotfix)
 *
 *  Hello Elementor applies default button chrome (background colour,
 *  border, border-radius, box-shadow, hover fill) to ALL <button> elements.
 *  That was leaking into our mega menu triggers, hamburger, and mobile
 *  close button. Explicit resets below.
 * ========================================================================== */

/* All buttons inside the Amax header + mobile drawer — strip theme chrome */
body .amx-site-header button,
body .amx-site-header nav button,
body .amx-site-header .has-mega > button,
body #mobileToggle,
body #mobileClose,
body .mobile-drawer button,
body #mobileDrawer button {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
	line-height: inherit;
	min-height: 0;
	min-width: 0;
	margin: 0;
	transform: none !important;
	text-decoration: none !important;
}

/* Re-apply the small padding on mega triggers (stripped above) */
body .amx-site-header .has-mega > button {
	padding: 0.5rem 1rem; /* Tailwind px-4 py-2 */
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--navy);
	font-weight: 500;
	font-size: 15px;
}
body .amx-site-header .has-mega > button:hover,
body .amx-site-header .has-mega > button:focus-visible {
	color: var(--coral) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}
body .amx-site-header .has-mega > button:focus-visible {
	outline: 2px solid rgba(255,107,74,0.35);
	outline-offset: 4px;
}

/* Hamburger icon button */
body #mobileToggle {
	padding: 0.5rem;
	color: var(--navy);
	cursor: pointer;
}
body #mobileToggle:hover {
	color: var(--coral) !important;
	background: transparent !important;
}
body #mobileToggle:focus-visible {
	outline: 2px solid rgba(255,107,74,0.35);
	outline-offset: 2px;
}

/* Mobile close button */
body #mobileClose {
	padding: 0.5rem;
	color: var(--navy);
	cursor: pointer;
}
body #mobileClose:hover {
	color: var(--coral) !important;
	background: transparent !important;
}

/* Also reset <summary> element (mobile drawer accordion) which some themes
 * apply button-like styles to. */
body .mobile-drawer summary,
body #mobileDrawer summary {
	background: transparent !important;
	border: 0;
	box-shadow: none;
	color: var(--navy);
}

/* Safety net — any other <button> anywhere inside header/footer/homepage
 * sections that isn't one of our explicit .amx-btn-* variants gets its
 * theme chrome stripped. Our own buttons (.amx-btn-primary etc.) still
 * win because they're declared earlier with their own !important rules. */
body .amx-site-header button:not(.amx-btn),
body .amx-site-footer button:not(.amx-btn),
body .mobile-drawer button:not(.amx-btn) {
	appearance: none;
	-webkit-appearance: none;
}


/* ==========================================================================
 *  15. INNER PAGE COMPONENTS (Phase 3B)
 *
 *  Styles for the compact inner-page hero, ghost-on-dark button variant,
 *  numbered process-step cards, and .amx-prose wrapper for WP-edited content.
 * ========================================================================== */

/* Inner hero — no animated headline lines (those are homepage-specific) */
.amx-inner-hero {
	position: relative;
	isolation: isolate;
	background: var(--cream);
}
.amx-inner-hero.bg-navy-deep {
	background: var(--navy-deep);
}
.amx-inner-hero h1 {
	text-wrap: balance;
}

/* Ghost button variant for use on dark backgrounds (CTA strip, dark hero) */
.amx-btn-ghost--on-dark {
	color: rgba(244, 243, 238, 0.9) !important;
	border-color: rgba(244, 243, 238, 0.25) !important;
	background: transparent !important;
}
.amx-btn-ghost--on-dark:hover {
	color: #fff !important;
	border-color: #fff !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

/* Process step card — extends .stat-card with a numeric badge */
.amx-process-grid { list-style: none; padding: 0; }
.amx-process-step {
	position: relative;
	counter-increment: amx-step;
}
.amx-process-num {
	display: inline-block;
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 44px;
	line-height: 1;
	color: var(--coral);
	opacity: 0.9;
	letter-spacing: -0.02em;
}

/* Section eyebrow — support centered display when needed */
.section-eyebrow[style*="inline-flex"] {
	display: inline-flex !important;
}

/* CTA strip eyebrow alignment (centred) */
.amx-cta-strip .section-eyebrow {
	justify-content: center;
}

/* ==========================================================================
 *  16. AMX-PROSE — styling for WP-editor-rendered content
 *
 *  Used for legal pages (Privacy, Cookies, Terms) and any service CPT
 *  post that falls through to the default renderer. Gives WP-editor
 *  content sensible typography without Hello Elementor bleed-through.
 * ========================================================================== */

.amx-prose {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	color: rgba(0, 31, 61, 0.85);
	font-size: 17px;
	line-height: 1.7;
}
.amx-prose h1,
.amx-prose h2,
.amx-prose h3,
.amx-prose h4 {
	color: var(--navy);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.amx-prose h1 { font-size: 2.5rem; margin-top: 0; margin-bottom: 1rem; }
.amx-prose h2 { font-size: 1.875rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.amx-prose h3 { font-size: 1.375rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.amx-prose h4 { font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.amx-prose p  { margin: 0 0 1.25rem; }
.amx-prose ul,
.amx-prose ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}
.amx-prose ul { list-style: disc; }
.amx-prose ol { list-style: decimal; }
.amx-prose li { margin-bottom: 0.5rem; }
.amx-prose a {
	color: var(--coral);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.amx-prose a:hover { text-decoration-thickness: 2px; }
.amx-prose blockquote {
	border-left: 3px solid var(--coral);
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	color: rgba(0, 31, 61, 0.7);
	font-style: italic;
}
.amx-prose code {
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	background: rgba(0, 62, 121, 0.06);
	padding: 0.125rem 0.375rem;
	border-radius: 4px;
	font-size: 0.9em;
}
.amx-prose strong { color: var(--navy); font-weight: 600; }
.amx-prose hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 2.5rem 0;
}
.amx-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1.5rem 0;
}
.amx-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
}
.amx-prose th,
.amx-prose td {
	border-bottom: 1px solid var(--border);
	padding: 0.75rem 0.5rem;
	text-align: left;
}
.amx-prose th {
	font-weight: 600;
	color: var(--navy);
	background: rgba(0, 62, 121, 0.03);
}

/* ==========================================================================
 *  17. INNER PAGE HELLO-ELEMENTOR OVERRIDES
 *
 *  Reinforce button/link resets for the dynamic-route inner pages the same
 *  way we did for the homepage.
 * ========================================================================== */

body .amx-inner-hero a:not(.underline),
body .amx-cta-strip a {
	text-decoration: none !important;
}

/* Arrow links inside inner pages keep underline-free behaviour */
body section .amx-arrow-link,
body section .amx-arrow-link:hover,
body section .amx-arrow-link:visited {
	text-decoration: none !important;
}

/* Role cards (careers page) — make sure no underline on hover */
body .case-card,
body .case-card *,
body .case-card:hover,
body .case-card:hover * {
	text-decoration: none !important;
}


/* ==========================================================================
 *  18. CUSTOM LAYOUT — full-bleed breakout (Phase 3B hotfix 1)
 *
 *  When our dispatcher renders a page, body.amx-custom-layout is added.
 *  This section:
 *    (a) hides the theme's native page title / entry header (avoids the
 *        duplicate "SEO" H1 above our hero)
 *    (b) forces our top-level sections to break out of any content wrapper
 *        Hello Elementor imposes, so section backgrounds stretch to the
 *        viewport edges exactly like on the homepage.
 * ========================================================================== */

/* Hide the theme's default page-title / entry-header markup on our
 * custom-rendered pages. */
.amx-custom-layout .page-header,
.amx-custom-layout .entry-header,
.amx-custom-layout > .entry-title,
.amx-custom-layout .site-main > .entry-title,
.amx-custom-layout .site-main > header.entry-header,
.amx-custom-layout .site-main > article > header.entry-header,
.amx-custom-layout article > .entry-title,
.amx-custom-layout article > header.entry-header {
	display: none !important;
}

/* Remove content wrapper width-constraint + padding on custom-layout pages.
 * Hello Elementor typically wraps content in either .site-content /
 * .content-area / .site-main / .entry-content with a max-width. We null
 * those containers so our own sections can full-bleed. */
.amx-custom-layout .site-content,
.amx-custom-layout .site-main,
.amx-custom-layout #content,
.amx-custom-layout .content-area,
.amx-custom-layout article,
.amx-custom-layout article > .entry-content,
.amx-custom-layout .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Belt-and-braces: also force our section wrappers to viewport width in
 * case any ancestor container still has max-width we missed. */
.amx-custom-layout .amx-inner-hero,
.amx-custom-layout .amx-cta-strip,
.amx-custom-layout .amx-site-header,
.amx-custom-layout .amx-site-footer,
.amx-custom-layout > main > section,
.amx-custom-layout .entry-content > section {
	width: 100%;
	max-width: 100vw;
	margin-left: 0;
	margin-right: 0;
}

/* On the homepage the first render hits inside .entry-content too, and
 * homepage sections should also full-bleed. Same treatment. */
body.home .entry-content > section,
body.home .site-main > section {
	width: 100%;
	max-width: 100vw;
}


/* ==========================================================================
 *  19. BREADCRUMBS (Phase 4A)
 * ========================================================================== */

.amx-breadcrumbs {
	padding: 14px 0 0;
	font-size: 13px;
	color: rgba(0, 31, 61, 0.55);
}
.amx-breadcrumbs ol {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-wrap: wrap;
	align-items: center; gap: 6px;
}
.amx-breadcrumbs li {
	display: inline-flex; align-items: center; gap: 6px;
}
.amx-breadcrumbs a {
	color: rgba(0, 31, 61, 0.6);
	text-decoration: none;
}
.amx-breadcrumbs a:hover { color: var(--coral); }
.amx-breadcrumbs__sep { color: rgba(0, 31, 61, 0.3); }
.amx-breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 500; }


/* ==========================================================================
 *  20. INFOGRAPHICS — shared wrappers
 * ========================================================================== */

.amx-infographic {
	margin: 40px 0;
	padding: 0;
}
.amx-ig-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 31, 61, 0.55);
	margin-bottom: 16px;
}
.amx-ig-caption {
	font-size: 14px;
	color: rgba(0, 31, 61, 0.6);
	margin-top: 12px;
}
.amx-ig-label { fill: var(--navy); }
.amx-ig-value { fill: var(--navy); }

/* Stat bar */
.amx-ig-bar svg { max-width: 100%; height: auto; }

/* Process flow */
.amx-ig-flow-steps {
	display: flex; align-items: stretch; gap: 0;
	overflow-x: auto;
	padding: 4px 0 16px;
}
.amx-ig-flow-step {
	display: flex; align-items: center; gap: 14px;
	flex: 0 0 auto;
	min-width: 240px;
	padding: 20px; border: 1px solid var(--border); border-radius: 14px;
	background: #fff;
	border-top: 3px solid var(--step-color, var(--coral));
}
.amx-ig-flow-num {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic; font-weight: 400; font-size: 28px; line-height: 1;
	color: var(--step-color, var(--coral));
	flex-shrink: 0;
}
.amx-ig-flow-body { flex: 1; min-width: 0; }
.amx-ig-flow-label { font-weight: 600; color: var(--navy); font-size: 16px; }
.amx-ig-flow-desc { font-size: 13px; color: rgba(0, 31, 61, 0.65); margin-top: 3px; line-height: 1.4; }
.amx-ig-flow-arrow { color: rgba(0, 31, 61, 0.3); flex-shrink: 0; margin: 0 -6px; }

@media (max-width: 768px) {
	.amx-ig-flow-steps { flex-direction: column; }
	.amx-ig-flow-step { min-width: 0; width: 100%; }
	.amx-ig-flow-arrow { transform: rotate(90deg); margin: -6px auto; }
}

/* Comparison */
.amx-ig-comparison-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.amx-ig-comparison-col {
	padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
	border-top: 3px solid var(--col-color, var(--coral));
}
.amx-ig-comparison-heading {
	font-weight: 600; color: var(--navy); font-size: 18px;
	padding-bottom: 12px; margin-bottom: 14px;
	border-bottom: 1px solid var(--border);
}
.amx-ig-comparison-list { list-style: none; margin: 0; padding: 0; }
.amx-ig-comparison-list li {
	font-size: 14px; color: rgba(0, 31, 61, 0.8);
	padding: 8px 0; line-height: 1.55;
	display: flex; align-items: flex-start; gap: 8px;
}
.amx-ig-comparison-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--col-color, var(--coral));
	color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
	margin-top: 2px;
}
.amx-ig-comparison-col--left .amx-ig-comparison-icon { background: rgba(0,31,61,0.35); }

@media (max-width: 768px) {
	.amx-ig-comparison-grid { grid-template-columns: 1fr; }
}

/* Funnel */
.amx-ig-funnel-stages { display: grid; gap: 12px; }
.amx-ig-funnel-row {
	display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center;
}
.amx-ig-funnel-label {
	font-size: 13px; font-weight: 500;
	color: rgba(0, 31, 61, 0.75); text-align: right;
}
.amx-ig-funnel-bar-wrap { display: flex; align-items: stretch; }
.amx-ig-funnel-bar {
	height: 38px; border-radius: 6px;
	display: flex; align-items: center; justify-content: flex-end;
	padding: 0 14px; color: #fff; font-weight: 600; font-size: 13px;
	min-width: 70px; transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}

@media (max-width: 640px) {
	.amx-ig-funnel-row { grid-template-columns: 100px 1fr; gap: 10px; }
	.amx-ig-funnel-label { font-size: 12px; }
	.amx-ig-funnel-bar { height: 32px; font-size: 12px; padding: 0 10px; }
}

/* Timeline */
.amx-ig-timeline-list { list-style: none; margin: 0; padding: 0; position: relative; }
.amx-ig-timeline-list::before {
	content: ''; position: absolute;
	left: 11px; top: 8px; bottom: 8px;
	width: 2px; background: rgba(0, 62, 121, 0.12);
}
.amx-ig-timeline-item {
	position: relative; padding: 0 0 24px 40px;
}
.amx-ig-timeline-dot {
	position: absolute; left: 4px; top: 6px;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--coral); border: 3px solid var(--cream);
}
.amx-ig-timeline-date {
	font-size: 12px; font-weight: 600; color: var(--coral);
	text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.amx-ig-timeline-title { font-weight: 600; color: var(--navy); font-size: 16px; }
.amx-ig-timeline-desc { font-size: 14px; color: rgba(0,31,61,0.7); margin-top: 4px; line-height: 1.5; }

/* Donut */
.amx-ig-donut {
	display: flex; flex-direction: column; align-items: center;
	padding: 20px;
}
.amx-ig-donut-label {
	font-size: 14px; font-weight: 600; color: var(--navy);
	margin-top: 8px; text-align: center;
}

/* KPI row */
.amx-ig-kpi-row {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px; padding: 24px 0;
	border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.amx-ig-kpi {
	text-align: center; padding: 10px;
	border-right: 1px solid var(--border);
}
.amx-ig-kpi:last-child { border-right: 0; }
.amx-ig-kpi-value {
	font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
	font-size: 40px; line-height: 1; color: var(--kpi-color, var(--coral)); letter-spacing: -0.02em;
}
.amx-ig-kpi-label {
	font-size: 13px; font-weight: 500;
	color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em;
	margin-top: 10px;
}
.amx-ig-kpi-note {
	font-size: 12px; color: rgba(0,31,61,0.55);
	margin-top: 4px;
}

@media (max-width: 640px) {
	.amx-ig-kpi { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
	.amx-ig-kpi:last-child { border-bottom: 0; }
}


/* ==========================================================================
 *  21. RELATED CARDS (Phase 4A)
 * ========================================================================== */

.amx-related {
	padding-top: 72px; padding-bottom: 72px;
}
.amx-related-card {
	position: relative;
	display: block;
	padding: 28px;
	border: 1px solid var(--border); border-radius: 18px;
	background: #fff;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
	text-decoration: none;
}
.amx-related-card:hover {
	border-color: rgba(255,107,74,0.4);
	transform: translateY(-3px);
	box-shadow: 0 20px 40px -30px rgba(0, 31, 61, 0.22);
}
.amx-related-card-title {
	font-size: 20px; font-weight: 600; color: var(--navy);
	letter-spacing: -0.01em; line-height: 1.3;
}
.amx-related-card-desc {
	font-size: 14px; color: rgba(0, 31, 61, 0.7);
	margin-top: 8px; line-height: 1.5;
}
.amx-related-card-arrow {
	margin-top: 20px;
	color: var(--coral); font-weight: 500; font-size: 18px;
	transition: transform 0.22s ease;
}
.amx-related-card:hover .amx-related-card-arrow {
	transform: translateX(6px);
}


/* ==========================================================================
 *  22. GALLERY + VIDEO BLOCKS (Phase 4A)
 * ========================================================================== */

.amx-gallery-grid {
	display: grid; gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.amx-gallery-item {
	margin: 0;
	border-radius: 14px; overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--border);
}
.amx-gallery-item img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.amx-gallery-item:hover img { transform: scale(1.04); }

.amx-video-wrap {
	position: relative;
	border-radius: 20px; overflow: hidden;
	max-width: 1040px; margin: 0 auto;
	background: #000;
	aspect-ratio: 16 / 9;
	box-shadow: 0 30px 70px -40px rgba(0,31,61,0.35);
}
.amx-video-wrap iframe,
.amx-video-wrap video,
.amx-video-wrap embed,
.amx-video-wrap object {
	position: absolute; inset: 0;
	width: 100% !important; height: 100% !important;
	border: 0;
}


/* ==========================================================================
 *  23. INNER-HERO IMAGE VARIANTS (Phase 4A)
 *
 *  Supports: right column (default), left column, full-width background,
 *  below-copy full-width band.
 * ========================================================================== */

.amx-inner-hero[data-hero-layout="right"] .amx-inner-hero-grid,
.amx-inner-hero[data-hero-layout="left"]  .amx-inner-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}
@media (min-width: 1024px) {
	.amx-inner-hero[data-hero-layout="right"] .amx-inner-hero-grid,
	.amx-inner-hero[data-hero-layout="left"]  .amx-inner-hero-grid {
		grid-template-columns: 1.1fr 0.9fr;
	}
	.amx-inner-hero[data-hero-layout="left"] .amx-inner-hero-grid {
		grid-template-columns: 0.9fr 1.1fr;
	}
	.amx-inner-hero[data-hero-layout="left"]  .amx-inner-hero-copy  { order: 2; }
	.amx-inner-hero[data-hero-layout="left"]  .amx-inner-hero-image { order: 1; }
}
.amx-inner-hero-image img {
	display: block; width: 100%; height: auto;
	border-radius: 22px;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	box-shadow: 0 30px 60px -30px rgba(0,31,61,0.25);
}

/* Full-width background hero */
.amx-inner-hero[data-hero-layout="full"] {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.amx-inner-hero[data-hero-layout="full"]::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(244,243,238,0.92) 0%, rgba(244,243,238,0.75) 60%, rgba(244,243,238,0.95) 100%);
	z-index: 0;
}
.amx-inner-hero[data-hero-layout="full"] > * { position: relative; z-index: 1; }

/* Below-copy full-width band */
.amx-inner-hero[data-hero-layout="below"] .amx-inner-hero-image {
	margin-top: 40px;
}
.amx-inner-hero[data-hero-layout="below"] .amx-inner-hero-image img {
	aspect-ratio: 21 / 9;
	max-height: 460px;
}


/* ==========================================================================
 *  24. LONG-FORM SECTION COMPONENTS (Phase 4B)
 *
 *  Styling for: problem cards, pricing principles, case-spotlight KPIs,
 *  prose-section layouts.
 * ========================================================================== */

/* ----- Problem cards ----- */
.amx-problem-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.amx-problem-label {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 31, 61, 0.5);
	margin-bottom: 2px;
}
.amx-problem-label--fix {
	color: var(--coral);
	margin-top: 14px;
}
.amx-problem-q {
	font-size: 18px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.3;
	margin: 0;
	letter-spacing: -0.01em;
}
.amx-problem-a {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(0, 31, 61, 0.75);
	margin: 0;
}

/* ----- Pricing principles ----- */
.amx-pricing-principle {
	display: flex;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--border);
}
.amx-pricing-principle:last-child { border-bottom: 0; }
.amx-pricing-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(0, 166, 118, 0.12);
	color: var(--mint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}
.amx-pricing-body { flex: 1; min-width: 0; }
.amx-pricing-body h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--navy);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}
.amx-pricing-body p {
	font-size: 15px;
	line-height: 1.55;
	color: rgba(0, 31, 61, 0.75);
	margin: 0;
}

/* ----- Case spotlight KPIs ----- */
.amx-case-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	padding: 20px 0 4px;
	border-top: 1px solid rgba(244, 243, 238, 0.15);
	margin-top: 20px;
}
.amx-case-kpi { padding-right: 14px; }
.amx-case-kpi-value {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 36px;
	line-height: 1;
	letter-spacing: -0.02em;
}
.amx-case-kpi-label {
	font-size: 12px;
	letter-spacing: 0.05em;
	color: rgba(244, 243, 238, 0.65);
	margin-top: 8px;
	line-height: 1.4;
}

/* Arrow-link on-dark variant (used in case spotlight) */
.amx-arrow-link.on-dark,
body .amx-arrow-link.on-dark {
	color: var(--coral);
}
.amx-arrow-link.on-dark:hover { color: #fff; }


/* ==========================================================================
 *  25. HERO VISUALS (Phase 4C)
 *
 *  Inline-SVG hero graphics for service + sector pages. Each visual lives
 *  inside .amx-inner-hero-media wrapped in .amx-hero-visual-wrap for
 *  positioning + subtle drop shadow.
 * ========================================================================== */

.amx-hero-visual-wrap {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin-inline: auto;
	padding: 8px;
	filter: drop-shadow(0 30px 40px rgba(0, 31, 61, 0.08));
}

.amx-hero-visual {
	display: block;
	width: 100%;
	height: auto;
	max-height: 440px;
}

/* Mobile — shrink the visual so it doesn't dominate the stacked hero */
@media (max-width: 1023px) {
	.amx-hero-visual-wrap {
		max-width: 380px;
	}
	.amx-hero-visual {
		max-height: 320px;
	}
}

@media (max-width: 640px) {
	.amx-hero-visual-wrap {
		max-width: 320px;
		padding: 4px;
	}
}

/* --- Animations ---------------------------------------------------------- */

@keyframes amx-hv-float {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-6px); }
}
@keyframes amx-hv-pulse {
	0%, 100% { transform: scale(1);    opacity: 1; }
	50%      { transform: scale(1.14); opacity: 0.88; }
}
@keyframes amx-hv-pulse-soft {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.82; }
}
@keyframes amx-hv-rotate-slow {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
@keyframes amx-hv-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-5px); }
}
@keyframes amx-hv-flow-dash {
	to { stroke-dashoffset: -80; }
}
@keyframes amx-hv-route-draw {
	from { stroke-dashoffset: 400; opacity: 0.4; }
	to   { stroke-dashoffset: 0;   opacity: 1; }
}

.amx-hv-float {
	animation: amx-hv-float 3.2s ease-in-out infinite alternate;
	transform-origin: center;
	transform-box: fill-box;
}
.amx-hv-pulse {
	animation: amx-hv-pulse 2.4s ease-in-out infinite;
	transform-origin: center;
	transform-box: fill-box;
}
.amx-hv-pulse-soft {
	animation: amx-hv-pulse-soft 2.8s ease-in-out infinite;
}
.amx-hv-rotate-slow {
	animation: amx-hv-rotate-slow 24s linear infinite;
	transform-origin: center;
	transform-box: fill-box;
}
.amx-hv-bounce {
	animation: amx-hv-bounce 2.4s ease-in-out infinite;
	transform-origin: center;
	transform-box: fill-box;
}

/* SVG elements already have transforms applied — use nested transforms for these */
.amx-hv-removals .amx-hv-bounce {
	animation: amx-hv-bounce 2.4s ease-in-out infinite;
}
.amx-hv-removals .amx-hv-float {
	animation: amx-hv-float 3.6s ease-in-out infinite alternate;
}
.amx-hv-drainage .amx-hv-float {
	animation: amx-hv-float 3.6s ease-in-out infinite alternate;
}
.amx-hv-construction .amx-hv-rotate-slow {
	animation: amx-hv-rotate-slow 24s linear infinite;
}

/* Flowing pipe dashes for drainage */
.amx-hv-drainage .amx-hv-flow {
	animation: amx-hv-flow-dash 2.2s linear infinite;
}

/* Dashed route draw-in for removals (plays on reveal) */
.amx-hv-removals .amx-hv-route {
	stroke-dashoffset: 0;
}
.reveal:not(.revealed) .amx-hv-removals .amx-hv-route {
	stroke-dashoffset: 400;
	opacity: 0.4;
}
.revealed .amx-hv-removals .amx-hv-route {
	animation: amx-hv-route-draw 1.6s ease-out 0.3s both;
}

/* Bars reveal slide-up on SEO visual */
.amx-hv-seo .amx-hv-bars rect {
	transform-origin: bottom;
	transform-box: fill-box;
}

/* Reduced-motion preference — kill all infinite animations */
@media (prefers-reduced-motion: reduce) {
	.amx-hv-float,
	.amx-hv-pulse,
	.amx-hv-pulse-soft,
	.amx-hv-rotate-slow,
	.amx-hv-bounce,
	.amx-hv-drainage .amx-hv-flow,
	.amx-hv-removals .amx-hv-bounce,
	.amx-hv-removals .amx-hv-float,
	.amx-hv-drainage .amx-hv-float,
	.amx-hv-construction .amx-hv-rotate-slow,
	.revealed .amx-hv-removals .amx-hv-route {
		animation: none !important;
	}
}

/* Visual-specific polish */
.amx-hv-seo,
.amx-hv-ppc,
.amx-hv-construction,
.amx-hv-removals {
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.35);
}
.amx-hv-social,
.amx-hv-storage,
.amx-hv-builder,
.amx-hv-drainage {
	border-radius: 20px;
}
.amx-hv-web {
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(0, 62, 121, 0.02) 0%, rgba(244, 243, 238, 0) 100%);
}


/* ==========================================================================
 *  25. HERO VISUALS (Phase 4C)
 *
 *  Abstract SVG hero illustrations for service/sector pages. Shared
 *  animation keyframes + element-specific classes.
 * ========================================================================== */

/* Wrapper — sits inside .amx-inner-hero-image slot when no real image */
.amx-hero-visual-wrap {
	width: 100%;
	aspect-ratio: 5 / 4;
	display: block;
}
.amx-hero-visual {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.amx-hv-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.amx-hv-float,
	.amx-hv-float--delay,
	.amx-hv-float--delay2,
	.amx-hv-pulse,
	.amx-hv-pulse-dot,
	.amx-hv-orbit,
	.amx-hv-orbit--delay,
	.amx-hv-grow,
	.amx-hv-draw,
	.amx-hv-cursor,
	.amx-hv-pipe-flow,
	.amx-hv-route,
	.amx-hv-truck {
		animation: none !important;
	}
}

/* ----- Floating motion (used by multiple visuals) ----- */
.amx-hv-float {
	animation: amx-hv-float 4s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}
.amx-hv-float--delay {
	animation: amx-hv-float 4.5s ease-in-out -1.2s infinite;
	transform-box: fill-box;
	transform-origin: center;
}
.amx-hv-float--delay2 {
	animation: amx-hv-float 5s ease-in-out -2.4s infinite;
	transform-box: fill-box;
	transform-origin: center;
}
@keyframes amx-hv-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}

/* ----- Pulse (scale + glow on key element) ----- */
.amx-hv-pulse {
	animation: amx-hv-pulse 2.6s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}
.amx-hv-pulse-dot {
	animation: amx-hv-pulse-dot 1.6s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}
@keyframes amx-hv-pulse {
	0%, 100% { transform: scale(1);    opacity: 1; }
	50%      { transform: scale(1.07); opacity: 0.92; }
}
@keyframes amx-hv-pulse-dot {
	0%, 100% { opacity: 1;   transform: scale(1); }
	50%      { opacity: 0.5; transform: scale(1.25); }
}

/* ----- Orbit — subtle rotation drift (for PPC £ badges) ----- */
.amx-hv-orbit {
	animation: amx-hv-orbit 7s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}
.amx-hv-orbit--delay {
	animation: amx-hv-orbit 8s ease-in-out -2s infinite;
	transform-box: fill-box;
	transform-origin: center;
}
@keyframes amx-hv-orbit {
	0%, 100% { transform: translate(0, 0); }
	50%      { transform: translate(6px, -4px); }
}

/* ----- Grow — subtle expand (builder extension outline) ----- */
.amx-hv-grow {
	animation: amx-hv-grow 5s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center bottom;
}
@keyframes amx-hv-grow {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.015); opacity: 0.9; }
}

/* ----- Draw — stroke-dash draw-on animation (blueprint lines) ----- */
.amx-hv-draw > * {
	stroke-dasharray: 800;
	stroke-dashoffset: 800;
	animation: amx-hv-draw 2.8s ease-out forwards;
}
.amx-hv-draw > *:nth-child(2) { animation-delay: 0.2s; }
.amx-hv-draw > *:nth-child(3) { animation-delay: 0.4s; }
.amx-hv-draw > *:nth-child(4) { animation-delay: 0.5s; }
.amx-hv-draw > *:nth-child(5) { animation-delay: 0.6s; }
.amx-hv-draw > *:nth-child(6) { animation-delay: 0.7s; }
.amx-hv-draw > *:nth-child(7) { animation-delay: 0.8s; }
.amx-hv-draw > *:nth-child(8) { animation-delay: 0.9s; }
.amx-hv-draw > *:nth-child(9) { animation-delay: 1.0s; }
@keyframes amx-hv-draw {
	to { stroke-dashoffset: 0; }
}

/* ----- Cursor blink ----- */
.amx-hv-cursor {
	animation: amx-hv-cursor 1.1s steps(2) infinite;
}
@keyframes amx-hv-cursor {
	0%, 49%   { opacity: 1; }
	50%, 100% { opacity: 0.2; }
}

/* ----- Pipe/arrow flow — dash-offset shift ----- */
.amx-hv-pipe-flow > * {
	animation: amx-hv-flow 1.4s linear infinite;
}
@keyframes amx-hv-flow {
	to { stroke-dashoffset: -32; }
}

/* ----- Route drawing (removals) ----- */
.amx-hv-route {
	stroke-dasharray: 8 6;
	animation: amx-hv-route 2s linear infinite;
}
@keyframes amx-hv-route {
	to { stroke-dashoffset: -28; }
}

/* ----- Truck bob ----- */
.amx-hv-truck {
	animation: amx-hv-truck 3s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}
@keyframes amx-hv-truck {
	0%, 100% { transform: translate(0, 0); }
	50%      { transform: translate(0, -3px); }
}

/* ----- Mobile tweak — the hero-image slot on mobile is smaller; visuals stay fluid ----- */
@media (max-width: 1023px) {
	.amx-hero-visual-wrap {
		max-width: 560px;
		margin: 0 auto;
	}
}


/* ==========================================================================
 *  26. CASE STUDIES (Phase 4F)
 *
 *  Styles for:
 *   - Case card (used on archive + homepage + related sections)
 *   - Case study single page: hero metric, service pills, KPI cards,
 *     pull quote, gallery.
 * ========================================================================== */

/* ----- CASE CARD ----- */
.amx-case-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
	position: relative;
}
.amx-case-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 40px -30px rgba(0, 31, 61, 0.25);
	border-color: var(--coral);
}

.amx-case-card-media {
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: rgba(0, 62, 121, 0.06);
	position: relative;
}
.amx-case-card-media--gradient {
	background: linear-gradient(135deg, var(--img-a, #FF6B4A) 0%, var(--img-b, #003E79) 100%);
}

.amx-case-card-metric {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-radius: 14px;
	padding: 10px 14px 12px;
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.2);
	max-width: calc(100% - 28px);
}
.amx-case-card-metric-value {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 28px;
	line-height: 1;
	color: var(--navy);
	letter-spacing: -0.02em;
}
.amx-case-card-metric-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 31, 61, 0.6);
	margin-top: 4px;
}

.amx-case-card-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.amx-case-card-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 31, 61, 0.5);
	margin-bottom: 10px;
}
.amx-case-card-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}
.amx-case-card-summary {
	font-size: 14px;
	color: rgba(0, 31, 61, 0.7);
	line-height: 1.55;
	margin: 0 0 16px;
	flex: 1;
}
.amx-case-card-arrow {
	color: var(--coral);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap 180ms ease;
}
.amx-case-card:hover .amx-case-card-arrow {
	gap: 8px;
}


/* ----- CASE SINGLE HERO ----- */
.amx-case-hero {
	background: linear-gradient(180deg, var(--cream) 0%, rgba(244, 243, 238, 0.4) 100%);
}

.amx-case-hero-metric {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.amx-case-hero-metric-value {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 76px;
	line-height: 0.95;
	color: var(--coral);
	letter-spacing: -0.03em;
}
@media (max-width: 640px) { .amx-case-hero-metric-value { font-size: 56px; } }

.amx-case-hero-metric-label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(0, 31, 61, 0.7);
	max-width: 32ch;
	line-height: 1.4;
}

.amx-case-service-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(0, 62, 121, 0.08);
	color: var(--navy);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.amx-case-hero-image {
	border-radius: 24px;
	overflow: hidden;
	/* 16/10 matches the widescreen mockups from production (1024×576 = 16:9)
	 * with a tiny bit of top/bottom padding buffer so letterbox bars stay
	 * subtle. Was 5/4 — that cropped the laptop edges off widescreen screenshots. */
	aspect-ratio: 16 / 10;
	box-shadow: 0 40px 80px -40px rgba(0, 31, 61, 0.4);
	/* Soft fill for any letterbox/pillarbox space when the image doesn't
	 * exactly match the container aspect ratio. Navy-tinted, nearly invisible,
	 * blends with the cream page background but still reads as intentional
	 * framing rather than empty space. */
	background: rgba(0, 62, 121, 0.04);
}
.amx-case-hero-image img {
	width: 100%;
	height: 100%;
	/* contain (not cover) — this is a feature image, not decorative. Never
	 * crop a laptop mockup just to fill an aspect ratio; always show the
	 * whole thing, letterbox if you must. */
	object-fit: contain;
	display: block;
}
.amx-case-hero-image--gradient {
	background: linear-gradient(135deg, var(--img-a, #FF6B4A) 0%, var(--img-b, #003E79) 100%);
}


/* ==========================================================================
 *  BALANCED GRID — count-aware layouts that prevent orphan cards.
 *
 *  Different case studies have different item counts (4, 5, 6, 7 KPIs, etc).
 *  A fixed 3-column grid leaves 1-2 lonely orphans on the last row for any
 *  count that isn't a multiple of 3. This ruleset picks a layout per count
 *  so the last row always balances:
 *
 *    1 → 1 col (centered, constrained width)
 *    2 → 2 cols
 *    3 → 3 cols
 *    4 → 4 cols single row
 *    5 → 3 top + 2 centered bottom  (via 6-col simulation)
 *    6 → 3 × 2
 *    7 → 4 top + 3 centered bottom  (via 12-col simulation)
 *    8 → 4 × 2
 *    9 → 3 × 3
 *   10 → 5 × 2
 *   11 → 4+4+3 centered
 *   12 → 4 × 3
 *
 *  Tablet (md): collapses to 2 columns for most counts.
 *  Mobile: single column always.
 * ========================================================================== */

.amx-balanced-grid {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.amx-balanced-grid { grid-template-columns: repeat(2, 1fr); }
	/* Odd counts on tablet: center the last lonely item across both cols */
	.amx-balanced-grid[data-count="1"] > *:last-child,
	.amx-balanced-grid[data-count="3"] > *:last-child,
	.amx-balanced-grid[data-count="5"] > *:last-child,
	.amx-balanced-grid[data-count="7"] > *:last-child,
	.amx-balanced-grid[data-count="9"] > *:last-child,
	.amx-balanced-grid[data-count="11"] > *:last-child {
		grid-column: 1 / -1;
		max-width: 500px;
		justify-self: center;
	}
}

@media (min-width: 1024px) {
	.amx-balanced-grid { grid-template-columns: repeat(3, 1fr); }

	/* Reset the tablet odd-count last-child centering on desktop.
	 * Must match the tablet rule's specificity (selectors targeting
	 * the same [data-count="N"] > *:last-child chains) otherwise the
	 * tablet max-width: 500px wins due to higher specificity and
	 * clamps the last card below its intended grid span width. */
	.amx-balanced-grid[data-count="1"] > *:last-child,
	.amx-balanced-grid[data-count="3"] > *:last-child,
	.amx-balanced-grid[data-count="5"] > *:last-child,
	.amx-balanced-grid[data-count="7"] > *:last-child,
	.amx-balanced-grid[data-count="9"] > *:last-child,
	.amx-balanced-grid[data-count="11"] > *:last-child {
		grid-column: auto;
		max-width: none;
		justify-self: auto;
	}

	/* Per-count desktop layouts */
	.amx-balanced-grid[data-count="1"] {
		grid-template-columns: minmax(0, 640px);
		justify-content: center;
	}
	.amx-balanced-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
	.amx-balanced-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
	.amx-balanced-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }

	/* 5 items: 3 on row 1 + 2 centered on row 2. Uses 6-col simulation. */
	.amx-balanced-grid[data-count="5"] { grid-template-columns: repeat(6, 1fr); }
	.amx-balanced-grid[data-count="5"] > * { grid-column: span 2; }
	.amx-balanced-grid[data-count="5"] > *:nth-child(4),
	.amx-balanced-grid[data-count="5"] > *:nth-child(5) { grid-column: span 3; }

	.amx-balanced-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }

	/* 7 items: 4 on row 1 + 3 centered on row 2. Uses 12-col simulation. */
	.amx-balanced-grid[data-count="7"] { grid-template-columns: repeat(12, 1fr); }
	.amx-balanced-grid[data-count="7"] > * { grid-column: span 3; }
	.amx-balanced-grid[data-count="7"] > *:nth-child(5),
	.amx-balanced-grid[data-count="7"] > *:nth-child(6),
	.amx-balanced-grid[data-count="7"] > *:nth-child(7) { grid-column: span 4; }

	.amx-balanced-grid[data-count="8"]  { grid-template-columns: repeat(4, 1fr); }
	.amx-balanced-grid[data-count="9"]  { grid-template-columns: repeat(3, 1fr); }
	.amx-balanced-grid[data-count="10"] { grid-template-columns: repeat(5, 1fr); }

	/* 11 items: 4+4+3 centered. 12-col simulation. */
	.amx-balanced-grid[data-count="11"] { grid-template-columns: repeat(12, 1fr); }
	.amx-balanced-grid[data-count="11"] > * { grid-column: span 3; }
	.amx-balanced-grid[data-count="11"] > *:nth-child(9),
	.amx-balanced-grid[data-count="11"] > *:nth-child(10),
	.amx-balanced-grid[data-count="11"] > *:nth-child(11) { grid-column: span 4; }

	.amx-balanced-grid[data-count="12"] { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
 *  CASE STUDIES FILTER PILLS (Phase 4G)
 *
 *  Uses button.amx-case-filter-pill selector (not just the class) to beat
 *  Hello Elementor's reset.css which has [type="button"], button rules
 *  using a pink #cc3366 that was bleeding through my hover state.
 *
 *  Hover treatment intentionally subtle — light navy tint, no coral.
 *  Case-card hover uses coral; pill hover is quieter so the active state
 *  (solid navy) is the confident UI signal, not every hover.
 * ========================================================================== */

.amx-case-filter-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.amx-case-filter-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	flex-shrink: 0;
}

.amx-case-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

button.amx-case-filter-pill,
.amx-case-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1.5px solid rgba(0, 62, 121, 0.15);
	background: transparent;
	color: var(--navy) !important;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	min-height: 0;
	box-shadow: none;
}

button.amx-case-filter-pill:hover,
.amx-case-filter-pill:hover {
	background: rgba(0, 62, 121, 0.06);
	border-color: rgba(0, 62, 121, 0.35);
	color: var(--navy) !important;
	transform: translateY(-1px);
}

button.amx-case-filter-pill:focus-visible,
.amx-case-filter-pill:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 2px;
}

button.amx-case-filter-pill.is-active,
.amx-case-filter-pill.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--cream) !important;
}
button.amx-case-filter-pill.is-active:hover,
.amx-case-filter-pill.is-active:hover {
	/* Subtle lift only — no coral swap. Active state is already the loud signal. */
	background: var(--navy);
	border-color: var(--navy);
	color: var(--cream) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -10px rgba(0, 31, 61, 0.5);
}

.amx-case-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0, 62, 121, 0.08);
	color: rgba(0, 62, 121, 0.55);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	transition: background 180ms ease, color 180ms ease;
}
.amx-case-filter-pill:hover .amx-case-filter-count {
	background: rgba(0, 62, 121, 0.12);
	color: rgba(0, 62, 121, 0.75);
}
.amx-case-filter-pill.is-active .amx-case-filter-count {
	background: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.9);
}

/* When filtering hides cards, collapse any gaps in the balanced grid
 * gracefully — the grid's auto-flow handles it, but a subtle fade in/out
 * keeps the transition from feeling jarring. */
.amx-case-card {
	transition: opacity 200ms ease;
}

@media (max-width: 640px) {
	.amx-case-filter-bar {
		gap: 10px;
	}
	.amx-case-filter-label {
		width: 100%;
		margin-bottom: -4px;
	}
	.amx-case-filter-pill {
		padding: 8px 14px;
		font-size: 13px;
	}
}


/* ----- RESULTS KPI CARDS (on dark navy background) ----- */
.amx-case-kpi-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(244, 243, 238, 0.12);
	border-radius: 20px;
	padding: 28px;
}
.amx-case-kpi-card-value {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 58px;
	line-height: 0.95;
	color: var(--cream);
	letter-spacing: -0.03em;
	display: flex;
	align-items: baseline;
	gap: 2px;
}
.amx-case-kpi-affix {
	font-size: 0.6em;
}
.amx-case-kpi-card-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--cream);
	margin-top: 14px;
	line-height: 1.35;
}
.amx-case-kpi-card-note {
	font-size: 12px;
	color: rgba(244, 243, 238, 0.55);
	margin-top: 6px;
	letter-spacing: 0.02em;
}


/* ----- PULL QUOTE ----- */
.amx-case-quote {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 0 0 0;
	position: relative;
}
.amx-case-quote-mark {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-size: 120px;
	line-height: 0.6;
	color: var(--coral);
	position: absolute;
	top: 0;
	left: -10px;
	pointer-events: none;
	opacity: 0.3;
}
.amx-case-quote-body {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.3;
	color: var(--navy);
	letter-spacing: -0.01em;
	margin: 0 0 28px;
	padding-left: 32px;
}
@media (max-width: 640px) { .amx-case-quote-body { font-size: 22px; padding-left: 20px; } .amx-case-quote-mark { font-size: 80px; left: -4px; } }

.amx-case-quote-footer {
	padding-left: 32px;
}
.amx-case-quote-author {
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: -0.01em;
}
.amx-case-quote-role {
	font-size: 13px;
	color: rgba(0, 31, 61, 0.6);
	margin-top: 3px;
}


/* ----- GALLERY ----- */
.amx-case-gallery-item {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--border);
}
.amx-case-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}
.amx-case-gallery-item figcaption {
	padding: 12px 18px;
	font-size: 13px;
	color: rgba(0, 31, 61, 0.7);
	border-top: 1px solid var(--border);
}


/* ----- PROSE (shared with other long-form sections) ----- */
.amx-prose p {
	font-size: 17px;
	line-height: 1.7;
	color: rgba(0, 31, 61, 0.78);
	margin: 0 0 18px;
}
.amx-prose p:last-child { margin-bottom: 0; }
.amx-prose h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--navy);
	margin: 28px 0 10px;
	letter-spacing: -0.01em;
}


/* ==========================================================================
 *  BLOG SYSTEM (Phase 4J)
 *
 *  Styles for:
 *    - /blog/ archive (hero, featured post, card grid, category filter)
 *    - /blog/[slug]/ single (hero, byline, article prose, author bio, related)
 *    - /blog/category/[slug]/ etc.
 * ========================================================================== */

/* ----- CATEGORY FILTER PILLS (Phase 4J Hotfix 5 — refined) ----- */

.amx-blog-filter-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 36px;
	flex-wrap: wrap;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(0, 62, 121, 0.08);
}
.amx-blog-filter-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.5);
	flex-shrink: 0;
	position: relative;
	padding-right: 16px;
}
.amx-blog-filter-label::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background: rgba(0, 62, 121, 0.15);
}
.amx-blog-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
a.amx-blog-filter-pill,
.amx-blog-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1.5px solid rgba(0, 62, 121, 0.15);
	background: transparent;
	color: var(--navy) !important;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
	line-height: 1;
	white-space: nowrap;
}
a.amx-blog-filter-pill:hover,
.amx-blog-filter-pill:hover {
	background: rgba(0, 62, 121, 0.06);
	border-color: rgba(0, 62, 121, 0.35);
	color: var(--navy) !important;
	transform: translateY(-1px);
}
a.amx-blog-filter-pill.is-active,
.amx-blog-filter-pill.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--cream) !important;
}
.amx-blog-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(0, 62, 121, 0.08);
	color: rgba(0, 62, 121, 0.55);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}
.amx-blog-filter-pill.is-active .amx-blog-filter-count {
	background: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
	.amx-blog-filter-bar {
		gap: 12px;
	}
	.amx-blog-filter-label {
		width: 100%;
		padding-right: 0;
		margin-bottom: -4px;
	}
	.amx-blog-filter-label::after { display: none; }
}

/* ----- FEATURED POST (big card, top of blog index) ----- */

.amx-blog-featured {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 28px;
	overflow: hidden;
	margin-bottom: 48px;
	text-decoration: none !important;
	color: inherit;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
	position: relative;
}
@media (min-width: 900px) {
	.amx-blog-featured { grid-template-columns: 1.15fr 1fr; }
}
.amx-blog-featured:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 50px -30px rgba(0, 31, 61, 0.3);
	border-color: var(--coral);
}
.amx-blog-featured-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: rgba(0, 62, 121, 0.04);
	overflow: hidden;
}
@media (min-width: 900px) {
	.amx-blog-featured-media { aspect-ratio: auto; min-height: 420px; }
}
.amx-blog-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.amx-blog-featured-media-gradient {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #FF6B4A 0%, #003E79 100%);
}
.amx-blog-featured-body {
	padding: 36px 36px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (min-width: 900px) {
	.amx-blog-featured-body { padding: 48px 56px; }
}
.amx-blog-featured-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
}
.amx-blog-featured-badge {
	background: var(--coral);
	color: var(--cream);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 10px;
}
.amx-blog-featured-category {
	color: rgba(0, 62, 121, 0.55);
}
.amx-blog-featured-title {
	font-size: 32px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}
@media (min-width: 900px) {
	.amx-blog-featured-title { font-size: 40px; }
}
.amx-blog-featured-excerpt {
	font-size: 17px;
	line-height: 1.55;
	color: rgba(0, 62, 121, 0.75);
	margin: 0 0 24px;
}
.amx-blog-featured-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(0, 62, 121, 0.6);
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.amx-blog-featured-cta {
	font-size: 15px;
	font-weight: 500;
	color: var(--coral);
}

/* ----- STANDARD POST CARD (grid) ----- */

a.amx-blog-card,
.amx-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.amx-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 40px -30px rgba(0, 31, 61, 0.25);
	border-color: var(--coral);
}
.amx-blog-card-media {
	aspect-ratio: 16 / 10;
	background: rgba(0, 62, 121, 0.04);
	overflow: hidden;
}
.amx-blog-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.amx-blog-card-media-gradient {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--img-a, #FF6B4A) 0%, var(--img-b, #003E79) 100%);
}
.amx-blog-card-body {
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.amx-blog-card-eyebrow {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	font-weight: 600;
}
.amx-blog-card-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.25;
	letter-spacing: -0.005em;
	margin: 0;
}
.amx-blog-card-excerpt {
	font-size: 14px;
	color: rgba(0, 62, 121, 0.7);
	line-height: 1.55;
	margin: 0;
}
.amx-blog-card-cta {
	margin-top: auto;
	padding-top: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--coral);
}

.amx-blog-meta-dot {
	opacity: 0.35;
}

/* ----- SINGLE POST HERO ----- */

/* ----- SINGLE POST HERO (Phase 4J Hotfix 4 — tightened + constrained) -----
 * Design intent: focused, scannable, quick to reach body content.
 * Title at 44/52px (not 64px) — less overwhelming on long titles.
 * Vertical padding reduced. Featured image capped at ~500px height.
 * Category tag hidden when it's the default "Blog/Blogs" WP category.
 */
.amx-post-hero {
	padding: 16px 0 32px;
}
.amx-post-hero-inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}
.amx-post-hero-eyebrow {
	margin-bottom: 16px;
}
.amx-post-hero-eyebrow:empty { margin-bottom: 0; }

.amx-post-category-tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 107, 74, 0.12);
	color: var(--coral);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 180ms ease, color 180ms ease;
}
a.amx-post-category-tag:hover {
	background: var(--coral);
	color: var(--cream);
}

/* Title: responsive but never overwhelming. Max-width in ch keeps
 * 2-line limit on most titles across breakpoints. */
.amx-post-hero-title {
	font-size: 34px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 auto 16px;
	max-width: 22ch;
}
@media (min-width: 640px)  { .amx-post-hero-title { font-size: 40px; max-width: 24ch; } }
@media (min-width: 1024px) { .amx-post-hero-title { font-size: 48px; max-width: 20ch; } }
@media (min-width: 1440px) { .amx-post-hero-title { font-size: 52px; max-width: 20ch; } }

.amx-post-hero-dek {
	font-size: 17px;
	line-height: 1.55;
	color: rgba(0, 62, 121, 0.72);
	max-width: 620px;
	margin: 0 auto 24px;
}

.amx-post-meta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 18px 8px 8px;
	background: rgba(0, 62, 121, 0.05);
	border-radius: 999px;
	font-size: 13px;
}
.amx-post-meta-avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}
.amx-post-meta-text {
	text-align: left;
	display: flex;
	align-items: center;
	gap: 10px;
}
.amx-post-meta-author {
	font-weight: 600;
	color: var(--navy);
}
.amx-post-meta-bits {
	color: rgba(0, 62, 121, 0.6);
}

/* Hero featured image — capped height so it doesn't push content down
 * a full screen on tall aspect-ratio images. */
.amx-post-hero-media {
	margin: 0 0 40px;
}
.amx-post-hero-media img {
	display: block;
	width: 100%;
	max-width: 1040px;
	max-height: 520px;
	margin: 0 auto;
	border-radius: 20px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	box-shadow: 0 24px 50px -35px rgba(0, 31, 61, 0.35);
}
@media (max-width: 768px) {
	.amx-post-hero-media img {
		border-radius: 14px;
		max-height: 320px;
	}
}

/* Hide the generic WP default "Blog"/"Blogs" category tag — it's
 * redundant with the /blog/ breadcrumb and visually noisy. */
.amx-post-category-tag[data-cat-slug="blog"],
.amx-post-category-tag[data-cat-slug="blogs"],
.amx-post-category-tag[data-cat-slug="uncategorized"],
.amx-post-hero-eyebrow:has(.amx-post-category-tag[data-cat-slug="blog"]),
.amx-post-hero-eyebrow:has(.amx-post-category-tag[data-cat-slug="blogs"]),
.amx-post-hero-eyebrow:has(.amx-post-category-tag[data-cat-slug="uncategorized"]) {
	display: none;
}

/* ----- ARTICLE PROSE (.amx-prose) ----- */

.amx-post-body {
	padding: 0 0 64px;
}
/* Prose container — widened to 1040px so media can breathe.
 * Text elements below are constrained to 760px for comfortable reading. */
.amx-prose {
	max-width: 1040px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.7;
	color: rgba(0, 31, 61, 0.85);
}

/* Text elements: narrow measure centered within the 1040px container.
 * Direct-child selector means nested text inside figures/blockquotes/
 * tables/Elementor wrappers keeps their parent's width. */
.amx-prose > p,
.amx-prose > h2,
.amx-prose > h3,
.amx-prose > h4,
.amx-prose > h5,
.amx-prose > h6,
.amx-prose > ul,
.amx-prose > ol,
.amx-prose > blockquote,
.amx-prose > dl {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.amx-prose p {
	margin: 0 0 24px;
}
.amx-prose p:first-child { margin-top: 0; }
.amx-prose p:last-child  { margin-bottom: 0; }

.amx-prose h2 {
	font-size: 30px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 48px 0 18px;
}
.amx-prose h3 {
	font-size: 22px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.3;
	margin: 36px 0 14px;
}
.amx-prose h4 {
	font-size: 18px;
	font-weight: 600;
	color: var(--navy);
	margin: 28px 0 12px;
}

.amx-prose a {
	color: var(--coral);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	transition: color 180ms ease;
}
.amx-prose a:hover { color: var(--navy); }

.amx-prose ul, .amx-prose ol {
	margin: 0 0 24px;
	padding-left: 24px;
}
.amx-prose li {
	margin-bottom: 10px;
}
.amx-prose li::marker {
	color: var(--coral);
}

.amx-prose blockquote {
	border-left: 4px solid var(--coral);
	padding: 4px 0 4px 24px;
	margin: 32px 0;
	font-size: 22px;
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	color: var(--navy);
	line-height: 1.4;
}
.amx-prose blockquote p { margin: 0 0 10px; }
.amx-prose blockquote cite {
	display: block;
	font-size: 14px;
	font-family: inherit;
	font-style: normal;
	color: rgba(0, 62, 121, 0.65);
	margin-top: 12px;
	font-weight: 500;
}

.amx-prose img,
.amx-prose figure {
	max-width: 100%;
	margin: 32px auto;
	border-radius: 16px;
	display: block;
}
.amx-prose figure img { border-radius: 16px; }
.amx-prose figcaption {
	font-size: 13px;
	color: rgba(0, 62, 121, 0.6);
	text-align: center;
	margin-top: 10px;
}

.amx-prose hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

.amx-prose code {
	background: rgba(0, 62, 121, 0.06);
	color: var(--navy);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}
.amx-prose pre {
	background: #003E79;
	color: #F4F3EE;
	padding: 20px 24px;
	border-radius: 14px;
	overflow-x: auto;
	margin: 28px 0;
	font-size: 14px;
	line-height: 1.55;
}
.amx-prose pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

.amx-prose table {
	border-collapse: collapse;
	width: 100%;
	margin: 28px 0;
	font-size: 15px;
}
.amx-prose th, .amx-prose td {
	border: 1px solid var(--border);
	padding: 12px 16px;
	text-align: left;
}
.amx-prose th {
	background: rgba(0, 62, 121, 0.04);
	font-weight: 600;
	color: var(--navy);
}

/* ----- AUTHOR BYLINE (end of article) ----- */

.amx-post-author {
	padding: 40px 0 80px;
	border-top: 1px solid var(--border);
}
.amx-post-author-inner {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.amx-post-author-avatar {
	width: 72px;
	height: 72px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}
.amx-post-author-text { flex: 1; }
.amx-post-author-eyebrow {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	font-weight: 600;
	margin-bottom: 4px;
}
.amx-post-author-name {
	font-size: 22px;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 8px;
}
.amx-post-author-name a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}
.amx-post-author-name a:hover { color: var(--coral); }
.amx-post-author-bio {
	font-size: 15px;
	line-height: 1.55;
	color: rgba(0, 62, 121, 0.75);
	margin: 0;
}

/* ----- RELATED POSTS SECTION ----- */

.amx-post-related {
	background: rgba(0, 62, 121, 0.03);
}

/* ----- BREADCRUMBS ON SINGLES ----- */

body.single-post .amx-breadcrumbs,
body.amx-blog-context .amx-breadcrumbs {
	padding: 0;
	font-size: 13px;
	color: rgba(0, 62, 121, 0.55);
}
body.amx-blog-context .amx-breadcrumbs a {
	color: rgba(0, 62, 121, 0.7);
	text-decoration: none;
}
body.amx-blog-context .amx-breadcrumbs a:hover {
	color: var(--coral);
}
body.amx-blog-context .amx-breadcrumb-sep {
	margin: 0 8px;
	opacity: 0.4;
}

.section-pad-sm {
	padding: 20px 0 0;
}

/* ----- UNDERLINE OVERRIDES — kill Hello Elementor's .page-content a rules
 *        that would otherwise underline blog component links ----- */

body.amx-blog-context .amx-blog-card,
body.amx-blog-context .amx-blog-card *,
body.amx-blog-context .amx-blog-featured,
body.amx-blog-context .amx-blog-featured *,
body.amx-blog-context .amx-blog-filter-pill,
body.amx-blog-context .amx-blog-filter-pill *,
body.amx-blog-context .amx-post-category-tag,
body.amx-blog-context .amx-post-meta,
body.amx-blog-context .amx-post-meta *,
body.amx-blog-context .amx-post-author-name a,
body.amx-blog-context .amx-btn,
body.amx-blog-context .amx-btn *,
body.amx-blog-context .amx-arrow-link,
body.amx-blog-context .amx-breadcrumbs a {
	text-decoration: none !important;
}

/* Prose links KEEP their underline — in-body links should be visibly linked */
body.amx-blog-context .amx-prose a {
	text-decoration: underline !important;
}


/* ==========================================================================
 *  PHASE 4M-EXTRAS
 *  Self-storage sub-nav · plugin lineup gallery · live demo embed
 * ========================================================================== */

/* ----- STICKY SUB-NAV (between SEO / PPC / Web Dev / Plugins) ----- */

.amx-storage-subnav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(0, 62, 121, 0.08);
	margin-bottom: 0;
}
.amx-storage-subnav-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px 0;
	flex-wrap: wrap;
}
.amx-storage-subnav-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	flex-shrink: 0;
	position: relative;
	padding-right: 18px;
}
.amx-storage-subnav-label::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background: rgba(0, 62, 121, 0.15);
}
.amx-storage-subnav-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
}
a.amx-storage-subnav-pill,
.amx-storage-subnav-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--navy) !important;
	text-decoration: none !important;
	border: 1.5px solid transparent;
	background: transparent;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
	line-height: 1;
	white-space: nowrap;
}
a.amx-storage-subnav-pill:hover,
.amx-storage-subnav-pill:hover {
	background: rgba(0, 62, 121, 0.06);
	border-color: rgba(0, 62, 121, 0.2);
	transform: translateY(-1px);
}
a.amx-storage-subnav-pill.is-current,
.amx-storage-subnav-pill.is-current {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--cream) !important;
}

@media (max-width: 640px) {
	.amx-storage-subnav-inner { gap: 12px; padding: 10px 0; }
	.amx-storage-subnav-label { width: 100%; padding-right: 0; }
	.amx-storage-subnav-label::after { display: none; }
	.amx-storage-subnav-pill { padding: 6px 12px; font-size: 12px; }
}


/* ----- PLUGIN LINEUP GALLERY (3 cards on /self-storage-plugins/) ----- */

.amx-plugin-lineup {
	background: rgba(0, 62, 121, 0.025);
}
.amx-plugin-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 24px;
	overflow: hidden;
	scroll-margin-top: 100px; /* offset for sticky sub-nav when anchor-scrolled */
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.amx-plugin-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 50px -35px rgba(0, 31, 61, 0.3);
	border-color: rgba(0, 62, 121, 0.2);
}

/* Mock UI panel (top portion of card) */
.amx-plugin-card-mock {
	background: linear-gradient(135deg, var(--plg-a, #FF6B4A) 0%, var(--plg-b, #003E79) 100%);
	padding: 16px;
	min-height: 240px;
	display: flex;
	flex-direction: column;
}
.amx-plugin-mock-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 10px 10px 0 0;
	margin: 0 0 0;
}
.amx-plugin-mock-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	flex-shrink: 0;
}
.amx-plugin-mock-title {
	margin-left: 8px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(0, 62, 121, 0.7);
	letter-spacing: 0.02em;
}
.amx-plugin-mock-body {
	background: #fff;
	border-radius: 0 0 10px 10px;
	padding: 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Stora X mock — list rows */
.amx-plugin-mock-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	background: rgba(0, 62, 121, 0.04);
	border-radius: 6px;
	font-size: 12px;
}
.amx-plugin-mock-key { color: var(--navy); font-weight: 500; }
.amx-plugin-mock-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.amx-plugin-mock-pill--green { background: rgba(0, 166, 118, 0.12); color: #008f63; }
.amx-plugin-mock-pill--amber { background: rgba(245, 166, 35, 0.15); color: #b87a0f; }
.amx-plugin-mock-pulse {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 11px;
	color: rgba(0, 62, 121, 0.55);
	font-weight: 500;
}
.amx-plugin-mock-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #00A676;
	box-shadow: 0 0 0 0 rgba(0, 166, 118, 0.7);
	animation: amxPulse 1.6s infinite;
}
@keyframes amxPulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 166, 118, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(0, 166, 118, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 166, 118, 0); }
}

/* Storage Quoter mock — numbered steps */
.amx-plugin-mock-step {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: rgba(0, 62, 121, 0.8);
}
.amx-plugin-mock-step-num {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(255, 107, 74, 0.15);
	color: var(--coral);
	font-weight: 700;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.amx-plugin-mock-step-text strong { color: var(--navy); font-weight: 600; }
.amx-plugin-mock-quote {
	margin-top: auto;
	padding: 10px 12px;
	background: linear-gradient(135deg, rgba(255,107,74,0.08), rgba(245,166,35,0.08));
	border: 1px dashed rgba(255, 107, 74, 0.3);
	border-radius: 8px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 12px;
	color: rgba(0, 62, 121, 0.65);
}
.amx-plugin-mock-price {
	font-size: 22px;
	color: var(--coral);
	font-weight: 700;
	letter-spacing: -0.02em;
}
.amx-plugin-mock-price span {
	font-size: 12px;
	font-weight: 500;
	color: rgba(0, 62, 121, 0.55);
	margin-left: 2px;
}

/* Storage Booking mock — form rows */
.amx-plugin-mock-form-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.amx-plugin-mock-field-label {
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	font-weight: 600;
}
.amx-plugin-mock-field {
	height: 26px;
	background: rgba(0, 62, 121, 0.05);
	border: 1px solid rgba(0, 62, 121, 0.08);
	border-radius: 5px;
	margin-bottom: 4px;
}
.amx-plugin-mock-field--narrow { width: 60%; }
.amx-plugin-mock-field--card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	font-size: 11px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	color: rgba(0, 62, 121, 0.7);
	height: 28px;
}
.amx-plugin-mock-card-mark {
	width: 22px;
	height: 14px;
	background: linear-gradient(135deg, #5BA8E8, #003E79);
	border-radius: 2px;
}
.amx-plugin-mock-cta-btn {
	margin-top: 4px;
	padding: 8px 12px;
	background: var(--mint, #00A676);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: default;
	pointer-events: none;
}
.amx-plugin-mock-confirmed {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: rgba(0, 166, 118, 0.85);
	font-weight: 500;
	margin-top: 4px;
}
.amx-plugin-mock-tick {
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: rgba(0, 166, 118, 0.15);
	color: #00A676;
	font-size: 10px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Card body (description below mock) */
.amx-plugin-card-body {
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.amx-plugin-card-eyebrow {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	font-weight: 600;
}
.amx-plugin-card-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--navy);
	letter-spacing: -0.005em;
	margin: 0;
}
.amx-plugin-card-desc {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(0, 62, 121, 0.75);
	margin: 0;
}


/* ----- LIVE DEMO EMBED (on /self-storage-web-development/) ----- */

.amx-storage-demo {
	background: rgba(0, 62, 121, 0.025);
}
.amx-storage-demo-frame {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 60px -40px rgba(0, 31, 61, 0.4);
}
.amx-storage-demo-frame-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	background: rgba(0, 62, 121, 0.04);
	border-bottom: 1px solid var(--border);
}
.amx-storage-demo-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	flex-shrink: 0;
}
.amx-storage-demo-url {
	margin-left: 10px;
	font-size: 12px;
	color: rgba(0, 62, 121, 0.6);
	font-family: ui-monospace, Menlo, Consolas, monospace;
}
.amx-storage-demo-iframe {
	display: block;
	width: 100%;
	height: 800px;
	max-height: 80vh;
	border: 0;
	background: #fff;
}
@media (max-width: 768px) {
	.amx-storage-demo-iframe { height: 700px; }
	.amx-storage-demo-url { font-size: 10px; }
}
.amx-storage-demo-footnote {
	margin-top: 16px;
	text-align: center;
	font-size: 14px;
	color: rgba(0, 62, 121, 0.65);
}
.amx-storage-demo-footnote a {
	color: var(--coral);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.amx-storage-demo-footnote a:hover {
	color: var(--navy);
}


/* ==========================================================================
 *  PHASE 4N — Custom 404 page styles
 * ========================================================================== */

.amx-404-hero {
	padding: 60px 0 50px;
}
.amx-404-inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.amx-404-eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 107, 74, 0.12);
	color: var(--coral);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.amx-404-title {
	font-size: 44px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}
@media (min-width: 768px)  { .amx-404-title { font-size: 56px; } }
@media (min-width: 1024px) { .amx-404-title { font-size: 64px; } }
.amx-404-dek {
	font-size: 18px;
	line-height: 1.55;
	color: rgba(0, 62, 121, 0.72);
	max-width: 580px;
	margin: 0 auto 32px;
}
.amx-404-path {
	background: rgba(0, 62, 121, 0.06);
	color: var(--navy);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

/* Search form */
.amx-404-search {
	display: flex;
	max-width: 520px;
	margin: 0 auto;
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}
.amx-404-search:focus-within {
	border-color: var(--coral);
	box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.12);
}
.amx-404-search-input {
	flex: 1;
	padding: 14px 22px;
	border: 0;
	font-size: 16px;
	color: var(--navy);
	background: transparent;
	outline: none;
	font-family: inherit;
}
.amx-404-search-input::placeholder {
	color: rgba(0, 62, 121, 0.45);
}
.amx-404-search-btn {
	padding: 14px 26px;
	border: 0;
	background: var(--navy);
	color: var(--cream);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 180ms ease;
	font-family: inherit;
}
.amx-404-search-btn:hover { background: var(--coral); }

/* Suggestions section */
.amx-404-suggestions {
	background: rgba(0, 62, 121, 0.025);
}
.amx-404-suggestions-header {
	max-width: 600px;
	margin: 0 auto 36px;
	text-align: center;
}

.amx-404-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 28px 24px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 18px;
	text-decoration: none !important;
	color: inherit;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.amx-404-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -30px rgba(0, 31, 61, 0.25);
	border-color: var(--coral);
}
.amx-404-card-eyebrow {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(0, 62, 121, 0.55);
	font-weight: 600;
}
.amx-404-card-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--navy);
	letter-spacing: -0.005em;
	margin: 0;
}
.amx-404-card-desc {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(0, 62, 121, 0.7);
	margin: 0;
}
.amx-404-card-cta {
	margin-top: auto;
	padding-top: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--coral);
}

/* Underline overrides on 404 cards (same pattern as blog cards) */
body.amx-404-context .amx-404-card,
body.amx-404-context .amx-404-card *,
body.amx-404-context .amx-arrow-link {
	text-decoration: none !important;
}


/* ==========================================================================
 *  PHASE 4P — Mobile horizontal overflow fix
 *
 *  Root causes fixed:
 *
 *  1. Decorative .blob elements (background gradients in FAQ + CTA sections)
 *     are absolutely positioned and extend ~120-180px past viewport on mobile.
 *     Their parent sections have `overflow: hidden` but it doesn't reliably
 *     clip on x-axis when the section's containing block can grow. Adding
 *     `overflow-x: clip` to all sections guarantees blob clipping regardless.
 *
 *  2. Inner-page sections use `.grid lg:grid-cols-12` (Tailwind) without an
 *     explicit mobile column count. On viewports < lg (1024px), `grid` alone
 *     is `display: grid` with `grid-template-columns: none`, which creates
 *     an implicit grid sized by content. Wide content (FAQ accordions, long
 *     prose blocks) forces those implicit columns past the viewport. Setting
 *     `grid-template-columns: minmax(0, 1fr)` collapses to a single column
 *     and `min-width: 0` on children lets them shrink below their content's
 *     min-content width.
 *
 *  3. Belt-and-braces `html, body { overflow-x: clip }` ensures no element
 *     anywhere can create horizontal scroll on the page. We use `clip` (not
 *     `hidden`) because `clip` doesn't break `position: sticky` on
 *     descendants — important for the self-storage sub-nav (Phase 4M-extras)
 *     which relies on sticky positioning.
 *
 *  Verified on: /self-storage-web-development/ (607→500), /self-storage-plugins/
 *  (686→500), /self-storage-seo/ (529→500), and confirmed no regressions on
 *  /our-work/, /our-work/[case]/, /blog/, /[blog-single]/, /about-us/.
 * ========================================================================== */

html,
body {
	overflow-x: clip;
}

section,
[class*="section-pad"],
.amx-cta-strip {
	overflow-x: clip;
}

@media (max-width: 1023px) {
	/* Collapse 12-column Tailwind grids to single column on mobile so wide
	 * content doesn't force the implicit grid past viewport bounds. */
	[class*="grid-cols-12"] {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	[class*="grid-cols-12"] > * {
		min-width: 0 !important;
	}
}


/* ==========================================================================
 *  PHASE 4R — Hero visual animations for new sectors
 *  Stora X arrow flow + plugins card stagger
 * ========================================================================== */

/* Animated dashes flowing from STORA → WORDPRESS in Stora X hero */
.amx-hv-flow-stora {
	stroke-dasharray: 3 2;
	animation: amx-hv-flow-dash 1.4s linear infinite;
}

/* Plugin cards float at staggered intervals (2nd and 3rd card delays) */
.amx-hv-float--delay {
	animation-delay: -1.1s;
}
.amx-hv-float--delay2 {
	animation-delay: -2.2s;
}

/* Make the new visuals feel a touch more alive — slightly stronger float */
.amx-hv-webdev .amx-hv-float,
.amx-hv-plugins .amx-hv-float {
	animation-duration: 3.6s;
}

@media (prefers-reduced-motion: reduce) {
	.amx-hv-flow-stora,
	.amx-hv-webdev .amx-hv-float,
	.amx-hv-plugins .amx-hv-float {
		animation: none !important;
	}
}
