/* ===========================================================================
   AMPUS: Warm Editorial
   Bespoke flourishes layered on top of theme.json global styles.
   Uses WordPress preset custom properties so theme.json stays the single
   source of truth for colour/type/spacing.
   =========================================================================== */

:root {
  --ampus-shadow-sm: 0 1px 2px rgba(60,40,20,.06), 0 8px 24px -16px rgba(60,40,20,.18);
  --ampus-shadow-md: 0 2px 6px rgba(60,40,20,.07), 0 26px 50px -28px rgba(60,40,20,.32);
  --ampus-ring: rgba(194,85,44,.30);
  --ampus-r-md: 14px;
  --ampus-r-lg: 22px;
  --ampus-r-xl: 30px;
}

/* ---- Paper grain (very subtle warmth over the whole page) ---- */
body.wp-site-blocks::before,
.editor-styles-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* =====================================================================
   TYPE HELPERS: apply as "Additional CSS class" on heading/paragraph
   ===================================================================== */
.ampus-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.ampus-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.ampus-tag {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.ampus-ital { font-style: italic; color: var(--wp--preset--color--accent); }

.ampus-lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--wp--preset--color--ink-soft); line-height: 1.55; text-wrap: pretty; }
.ampus-muted { color: var(--wp--preset--color--muted); }

.ampus-pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .42em .9em;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--wp--preset--color--accent-tint);
  color: var(--wp--preset--color--accent-deep);
  width: fit-content;
}

/* =====================================================================
   BUTTON VARIANTS (block styles registered in functions.php)
   ===================================================================== */
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--ink);
  box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--line);
  transition: box-shadow .25s, transform .25s;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--ink);
  transform: translateY(-2px);
}
.wp-block-button.is-style-ink .wp-block-button__link {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--base);
}
.wp-block-button .wp-block-button__link {
  box-shadow: var(--ampus-shadow-sm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--ampus-shadow-md); }

/* On dark sections, swap the default button to a light fill */
.has-ink-background-color .wp-block-button:not(.is-style-ghost):not(.is-style-ink) .wp-block-button__link {
  background: var(--wp--preset--color--on-dark);
  color: var(--wp--preset--color--ink);
}

/* =====================================================================
   CARD BLOCK STYLES
   ===================================================================== */
.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--ampus-r-lg);
}
.wp-block-group.is-style-card-hover {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.wp-block-group.is-style-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--ampus-shadow-md);
  border-color: var(--wp--preset--color--accent-soft);
}

/* Icon chip used at the top of service / value cards */
.ampus-chip {
  width: 56px; height: 56px;
  border-radius: var(--ampus-r-md);
  background: var(--wp--preset--color--accent-tint);
  color: var(--wp--preset--color--accent-deep);
  display: grid; place-items: center;
}
.ampus-chip svg { width: 28px; height: 28px; }

/* =====================================================================
   AMPLIFY ARCS: decorative radiating background on hero & CTA
   ===================================================================== */
.ampus-section { position: relative; overflow: hidden; }
.ampus-section > * { position: relative; z-index: 1; }

.ampus-arcs-tr::before {
  content: "";
  position: absolute;
  top: -12%; right: -10%;
  width: min(56vw, 720px); height: min(56vw, 720px);
  z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none'%3E%3Cg stroke='%23EBB48E' stroke-width='1.5'%3E%3Ccircle cx='560' cy='120' r='80'/%3E%3Ccircle cx='560' cy='120' r='150'/%3E%3Ccircle cx='560' cy='120' r='220'/%3E%3Ccircle cx='560' cy='120' r='290'/%3E%3Ccircle cx='560' cy='120' r='360'/%3E%3Ccircle cx='560' cy='120' r='430'/%3E%3Ccircle cx='560' cy='120' r='500'/%3E%3C/g%3E%3C/svg%3E");
}
.ampus-arcs-bl::before {
  content: "";
  position: absolute;
  left: -8%; bottom: -40%;
  width: min(50vw, 520px); height: min(50vw, 520px);
  z-index: 0; pointer-events: none; opacity: .3;
  background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none'%3E%3Cg stroke='%23FBF5EC' stroke-width='1.6'%3E%3Ccircle cx='40' cy='560' r='90'/%3E%3Ccircle cx='40' cy='560' r='170'/%3E%3Ccircle cx='40' cy='560' r='250'/%3E%3Ccircle cx='40' cy='560' r='330'/%3E%3Ccircle cx='40' cy='560' r='410'/%3E%3C/g%3E%3C/svg%3E");
}

/* Animated amplify mark (logo + accents) */
@keyframes ampus-pulse { 0%,100% { opacity:.35 } 50% { opacity:1 } }
.ampus-mark .a1 { animation: ampus-pulse 3.2s ease-in-out infinite; }
.ampus-mark .a2 { animation: ampus-pulse 3.2s ease-in-out infinite .4s; }
.ampus-mark .a3 { animation: ampus-pulse 3.2s ease-in-out infinite .8s; }

/* =====================================================================
   LOGO (header / footer)
   ===================================================================== */
.ampus-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ampus-logo .ampus-wordmark {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em;
  color: var(--wp--preset--color--ink);
}
.ampus-footer .ampus-logo .ampus-wordmark { color: var(--wp--preset--color--on-dark); }

/* Footer link lists */
.ampus-footer-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ampus-footer-links li { margin: 0; }
.ampus-footer-links a { color: rgba(244,234,218,.7); text-decoration: none; transition: color .2s; }
.ampus-footer-links a:hover { color: var(--wp--preset--color--on-dark); }
.ampus-footer a { color: rgba(244,234,218,.7); }
.ampus-footer a:hover { color: var(--wp--preset--color--on-dark); }

/* =====================================================================
   STICKY NAV (header part gets .ampus-nav)
   ===================================================================== */
.ampus-nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.ampus-nav.is-scrolled {
  background: color-mix(in oklab, var(--wp--preset--color--base) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.ampus-nav .wp-block-navigation a { color: var(--wp--preset--color--ink-soft); font-weight: 500; }
.ampus-nav .wp-block-navigation a:hover { color: var(--wp--preset--color--ink); }
.ampus-nav .wp-block-navigation .current-menu-item a { color: var(--wp--preset--color--accent); }

/* =====================================================================
   MARQUEE strip
   ===================================================================== */
.ampus-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.ampus-marquee__track { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; animation: ampus-marq 32s linear infinite; }
.ampus-marquee__track span {
  display: inline-flex; align-items: center; gap: 22px; padding: 0 22px;
  font-family: var(--wp--preset--font-family--display); font-weight: 500;
  font-size: 1.7rem; color: var(--wp--preset--color--ink-soft);
}
.ampus-marquee__track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--accent); }
@keyframes ampus-marq { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* =====================================================================
   FORMS (contact pattern uses core HTML; style inputs)
   ===================================================================== */
.ampus-field { display: flex; flex-direction: column; gap: .5em; }
.ampus-field label { font-weight: 600; font-size: .92rem; }
.ampus-input, .ampus-textarea, .ampus-select {
  font-family: inherit; font-size: 1rem; color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface);
  border: 1.5px solid var(--wp--preset--color--line);
  border-radius: var(--ampus-r-md);
  padding: .85em 1em; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.ampus-input:focus, .ampus-textarea:focus, .ampus-select:focus {
  outline: none; border-color: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 4px var(--ampus-ring);
}
.ampus-textarea { resize: vertical; min-height: 130px; }

/* Contact cards (left column) */
.ampus-contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--ampus-r-lg);
  padding: 16px 20px; text-decoration: none;
  color: var(--wp--preset--color--ink);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ampus-contact-card:hover { border-color: var(--wp--preset--color--accent-soft); transform: translateY(-2px); box-shadow: var(--ampus-shadow-sm); }
.ampus-contact-card .ampus-chip { width: 46px; height: 46px; flex: 0 0 auto; }
.ampus-contact-card .ampus-chip svg { width: 20px; height: 20px; }
.ampus-contact-card span span { display: block; }
.ampus-contact-card strong { font-size: 1.05rem; }

/* Enquiry form */
.ampus-form { display: flex; flex-direction: column; gap: 18px; }
.ampus-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .ampus-form-row { grid-template-columns: 1fr; } }
.ampus-submit {
  font-family: inherit; font-weight: 600; font-size: 1.06rem;
  background: var(--wp--preset--color--accent); color: var(--wp--preset--color--surface);
  border: 0; border-radius: 999px; padding: 1.05em 1.6em; cursor: pointer;
  box-shadow: var(--ampus-shadow-sm);
  transition: transform .25s, box-shadow .25s, background .2s;
}
.ampus-submit:hover { background: var(--wp--preset--color--accent-deep); transform: translateY(-2px); box-shadow: var(--ampus-shadow-md); }

/* =====================================================================
   REVEAL-ON-SCROLL (added by ampus.js)
   ===================================================================== */
@keyframes ampus-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ampus-reveal { opacity: 0; }
.ampus-reveal.ampus-in { animation: ampus-rise .8s cubic-bezier(.2,.8,.2,1) forwards; }

/* The editor canvas and reduced-motion users always see content */
.editor-styles-wrapper .ampus-reveal { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ampus-reveal { opacity: 1 !important; animation: none !important; }
  .ampus-mark .a1, .ampus-mark .a2, .ampus-mark .a3 { animation: none; opacity: 1; }
  .ampus-marquee__track { animation: none; }
}

/* =====================================================================
   SMALL UTILITIES
   ===================================================================== */
.ampus-rule { height: 1px; background: var(--wp--preset--color--line); border: 0; }
.ampus-stars { color: var(--wp--preset--color--gold); letter-spacing: 2px; font-size: 1.3rem; }


/* =====================================================================
   FIXES CARRIED OVER FROM ampus.co.uk (WCAG contrast, mobile overflow)
   ===================================================================== */
/* --- Ampus site fixes (managed via Global Styles) --- */

/* Lead + muted text must invert inside dark bands (WCAG contrast) */
.has-ink-background-color .ampus-lead,
.has-on-dark-color .ampus-lead,
.has-ink-background-color p.ampus-lead {
  color: var(--wp--preset--color--on-dark);
}
.has-ink-background-color .ampus-muted,
.has-on-dark-color .ampus-muted { color: #C3B7A4; }
.has-ink-background-color .ampus-tag,
.has-on-dark-color .ampus-tag { color: #B6A892; }
.has-ink-background-color ul li,
.has-on-dark-color ul li { color: var(--wp--preset--color--on-dark); }
.has-ink-background-color a:not(.wp-element-button),
.has-on-dark-color a:not(.wp-element-button) { color: var(--wp--preset--color--gold); }

/* Ghost buttons on dark backgrounds */
.has-ink-background-color .wp-block-button.is-style-ghost .wp-element-button {
  color: var(--wp--preset--color--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(244,234,218,.38);
}
.has-ink-background-color .wp-block-button.is-style-ghost .wp-element-button:hover {
  box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--on-dark);
}

/* Light button style used on dark/accent bands */
.wp-block-button.is-style-light .wp-element-button {
  background: var(--wp--preset--color--on-dark);
  color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-light .wp-element-button:hover {
  background: #FFFFFF; transform: translateY(-2px);
}

/* Service detail lists */
.ampus-ticks { list-style: none; padding-left: 0; }
.ampus-ticks li {
  position: relative; padding-left: 1.9em; margin-bottom: .65em;
}
.ampus-ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.05em; height: 1.05em; border-radius: 999px;
  background: var(--wp--preset--color--accent-tint);
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent);
}
.has-ink-background-color .ampus-ticks li::before {
  background: rgba(217,154,54,.18);
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--gold);
}

/* Skip link visibility */
.skip-link:focus { outline: 3px solid var(--wp--preset--color--accent); }

/* Focus visibility across the site */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Post cards: keep excerpt readable */
.ampus-post-card .ampus-muted { color: var(--wp--preset--color--muted); }


/* --- WCAG 2.1 AA contrast fixes (measured with axe-core) --- */
/* Clay #C2552C on paper only reaches 4.18-4.46:1 at body sizes; accent-deep
   #9C3F1E reaches 6.2:1 and is already the palette's hover colour. */
.ampus-eyebrow { color: var(--wp--preset--color--accent-deep); }

.wp-block-post-content a:not(.wp-element-button):not(.ampus-logo),
.ampus-card a:not(.wp-element-button),
.wp-block-group a:not(.wp-element-button):not(.ampus-logo):not(.ampus-footer-links a) {
  color: var(--wp--preset--color--accent-deep);
}
.wp-block-post-content a:not(.wp-element-button):hover,
.ampus-card a:not(.wp-element-button):hover { color: var(--wp--preset--color--accent); }

/* Pure white on clay = 4.54:1 and passes; #FFFDF9 was 4.49:1 and did not. */
.wp-element-button, .wp-block-button__link { color: #FFFFFF; }
.wp-block-button.is-style-ghost .wp-element-button { color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-light .wp-element-button { color: var(--wp--preset--color--ink); }

/* accent-soft on paper is 1.69:1 and unreadable. Promote to accent (4.19:1,
   which passes the 3:1 large-text threshold at 24px). */
[style*="accent-soft"]:not(svg):not(path) { color: var(--wp--preset--color--accent) !important; }

/* Footer + dark bands keep their own inverted treatment */
.ampus-footer a, .has-ink-background-color a:not(.wp-element-button) {
  color: var(--wp--preset--color--gold);
}
.has-ink-background-color .ampus-eyebrow { color: var(--wp--preset--color--gold); }


/* Footer / dark-band links must win over the light-background link rule above.
   accent-deep on ink is 2.52:1; gold on ink is 7.4:1. */
.ampus-footer a:not(.wp-element-button):not(.ampus-logo),
.has-ink-background-color a:not(.wp-element-button):not(.ampus-logo),
.has-on-dark-color a:not(.wp-element-button):not(.ampus-logo) {
  color: var(--wp--preset--color--gold) !important;
}
.ampus-footer a:hover:not(.wp-element-button),
.has-ink-background-color a:hover:not(.wp-element-button) {
  color: var(--wp--preset--color--on-dark) !important;
}


/* --- Mobile layout fixes --- */
/* Hero CTA pairs were forcing 404px of layout into a 390px viewport. */
.wp-block-buttons { flex-wrap: wrap; }
.wp-block-button__link { max-width: 100%; }

/* Belt and braces on the marquee, which is deliberately wider than the screen. */
.ampus-marquee { overflow: hidden; max-width: 100%; }

/* Larger tap targets in the footer and on inline meta links (WCAG 2.2 target size) */
.ampus-footer-links li { margin-bottom: 2px; }
.ampus-footer-links a { display: inline-block; padding: 5px 0; }

@media (max-width: 480px) {
  .wp-block-buttons { gap: 10px; }
  .wp-block-button { width: 100%; }
  .wp-block-button__link { display: block; text-align: center; }
}


/* The sticky header CTA was the actual overflow source (403px in a 390px viewport):
   a nowrap flex row with a fixed-size pill. Let it shrink instead. */
.ampus-nav .wp-block-group { min-width: 0; }
@media (max-width: 600px) {
  .ampus-nav .wp-block-buttons .wp-block-button__link { padding: .62em .95em; font-size: .9rem; }
}
@media (max-width: 430px) {
  .ampus-nav .wp-block-buttons .wp-block-button__link { padding: .6em .8em; font-size: .82rem; }
}
/* ...but never full-width, which the generic mobile rule below would otherwise do */
@media (max-width: 480px) {
  .ampus-nav .wp-block-button { width: auto; }
  .ampus-nav .wp-block-button__link { display: inline-flex; }
}


/* Very small handsets (360px and below) */
@media (max-width: 400px) {
  .ampus-nav { padding-left: 4px; padding-right: 4px; }
  .ampus-nav .wp-block-buttons .wp-block-button__link { padding: .55em .7em; font-size: .74rem; }
  .ampus-logo .ampus-wordmark { font-size: 1.15rem; }
  .ampus-logo .ampus-mark { width: 24px; height: 24px; }
}
@media (max-width: 340px) {
  .ampus-nav .wp-block-buttons .wp-block-button__link { font-size: .7rem; padding: .5em .6em; }
}


/* 320px (iPhone SE 1st gen, Fold cover screen): let the header wrap rather than overflow */
@media (max-width: 345px) {
  .ampus-nav .wp-block-group.is-nowrap,
  .ampus-nav > .wp-block-group { flex-wrap: wrap !important; row-gap: 8px; }
}


/* Footer now carries five columns (brand, Explore, Services, Sectors, Contact).
   Let them wrap rather than squeezing "AI Implementation" onto three lines. */
.ampus-footer .wp-block-columns { flex-wrap: wrap; row-gap: 34px; }
.ampus-footer .wp-block-column { flex-basis: auto; min-width: 165px; }
.ampus-footer .wp-block-column:first-child { min-width: 240px; flex-basis: 26%; }
.ampus-footer-links a { text-wrap: pretty; }
@media (max-width: 900px) {
  .ampus-footer .wp-block-column { min-width: 44%; }
  .ampus-footer .wp-block-column:first-child { min-width: 100%; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .ampus-footer .wp-block-column { min-width: 100%; }
}


/* =====================================================================
   MICROSITE HEADER. One bar: logo, a short list of anchor links, a CTA.
   No JavaScript: mobile uses a hidden checkbox.
   ===================================================================== */
.ampus-nav { padding-top: 14px; padding-bottom: 14px; }
.awn { display: flex; align-items: center; justify-content: space-between; gap: clamp(8px, 2vw, 24px); min-width: 0; }
.awn-logo { flex: 0 0 auto; }
.awn-logo .awn-sub {
  font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-deep);
  margin-left: 6px; padding-left: 10px; border-left: 1.5px solid var(--wp--preset--color--line);
}
.awn-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.awn-links li { margin: 0; }
.wp-block-group.ampus-nav .awn .awn-links a.awn-link {
  color: var(--wp--preset--color--ink-soft); font-weight: 500; text-decoration: none; font-size: 1rem;
  padding: 6px 0; display: inline-block;
}
.wp-block-group.ampus-nav .awn .awn-links a.awn-link:hover { color: var(--wp--preset--color--ink); }
.wp-block-group.ampus-nav .awn a.awn-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--wp--preset--color--accent); color: #FFFFFF; font-weight: 600; font-size: 1rem;
  border-radius: 999px; padding: .8em 1.35em; text-decoration: none;
  box-shadow: var(--ampus-shadow-sm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s;
}
.wp-block-group.ampus-nav .awn a.awn-cta:hover { background: var(--wp--preset--color--accent-deep); transform: translateY(-2px); box-shadow: var(--ampus-shadow-md); }
.awn-toggle, .awn-burger { display: none; }
.awn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .awn-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wp--preset--color--base);
    border-top: 1px solid var(--wp--preset--color--line);
    border-bottom: 1px solid var(--wp--preset--color--line);
    padding: 8px clamp(20px, 5vw, 48px) 18px;
    box-shadow: var(--ampus-shadow-md);
  }
  .awn-toggle:checked ~ .awn-links { display: flex; }
  .wp-block-group.ampus-nav .awn .awn-links a.awn-link {
    display: block; padding: 14px 0; font-family: var(--wp--preset--font-family--display);
    font-size: 1.4rem; color: var(--wp--preset--color--ink);
    border-bottom: 1px solid var(--wp--preset--color--line);
  }
  .awn-links li:last-child a.awn-link { border-bottom: 0; }
  .awn-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-left: auto; cursor: pointer;
    border: 1.5px solid var(--wp--preset--color--line); border-radius: 12px; background: var(--wp--preset--color--surface);
  }
  .awn-burger span { display: block; height: 2px; background: var(--wp--preset--color--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .awn-toggle:checked ~ .awn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .awn-toggle:checked ~ .awn-burger span:nth-child(2) { opacity: 0; }
  .awn-toggle:checked ~ .awn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .awn-toggle:focus-visible ~ .awn-burger { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
  .ampus-nav { position: sticky; }
  .ampus-nav > .wp-block-group { position: relative; }
  .wp-block-group.ampus-nav .awn a.awn-cta { padding: .66em 1em; font-size: .88rem; }
}
@media (max-width: 400px) {
  .awn-logo .awn-sub { display: none; }
  .wp-block-group.ampus-nav .awn a.awn-cta { padding: .6em .85em; font-size: .8rem; }
  .awn-burger { width: 40px; height: 40px; }
}

/* =====================================================================
   MICROSITE SECTIONS
   ===================================================================== */
/* Numbered steps */
.ampus-step-num {
  font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1;
  color: var(--wp--preset--color--accent); font-weight: 500; letter-spacing: -.02em;
}
/* Trust strip under the hero */
.ampus-proof { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.ampus-proof .wp-block-heading { margin-bottom: 4px; }
/* Simple FAQ with native details */
.ampus-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 4px 0; }
.ampus-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 18px 0; font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; font-weight: 500; line-height: 1.2;
  color: var(--wp--preset--color--ink);
}
.ampus-faq summary::-webkit-details-marker { display: none; }
.ampus-faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2px solid var(--wp--preset--color--accent-deep); border-bottom: 2px solid var(--wp--preset--color--accent-deep);
  transform: rotate(45deg); transition: transform .25s; margin-right: 6px;
}
.ampus-faq details[open] summary::after { transform: rotate(-135deg); }
.ampus-faq details p { margin: 0 0 18px; color: var(--wp--preset--color--ink-soft); max-width: 62ch; }
/* Two-column "enter / don't enter" panel */
.ampus-panel-good, .ampus-panel-bad { border-radius: var(--ampus-r-lg); padding: clamp(24px, 3vw, 36px); }
.ampus-panel-good { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); }
.ampus-panel-bad { background: var(--wp--preset--color--sand); border: 1px solid var(--wp--preset--color--line); }
/* Anchor offset so in-page links clear the sticky header */
[id^="s-"] { scroll-margin-top: 84px; }
/* Contact Form 7 inside the theme form styles */
.wpcf7 .ampus-form p { margin: 0; }
.wpcf7-not-valid-tip { color: var(--wp--preset--color--accent-deep); font-size: .88rem; margin-top: .35em; display: block; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border: 1.5px solid var(--wp--preset--color--line); border-radius: var(--ampus-r-md); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--accent); }
.wpcf7-spinner { display: none; }
.ampus-input, .ampus-textarea, .ampus-select { box-sizing: border-box; }

/* Centred eyebrows: the eyebrow is inline-flex, so text-align on it does nothing */
p.ampus-eyebrow.has-text-align-center { display: flex; justify-content: center; }

/* Smaller arcs for a card (the section-sized version swamps a 400px card) */
.ampus-arcs-sm::before {
  content: ""; position: absolute; top: -30px; right: -30px; width: 240px; height: 240px;
  z-index: 0; pointer-events: none; opacity: .55; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none'%3E%3Cg stroke='%23EBB48E' stroke-width='2'%3E%3Ccircle cx='560' cy='40' r='120'/%3E%3Ccircle cx='560' cy='40' r='230'/%3E%3Ccircle cx='560' cy='40' r='340'/%3E%3Ccircle cx='560' cy='40' r='450'/%3E%3C/g%3E%3C/svg%3E");
}

/* Proof strip: two by two on phones rather than a four-row stack */
@media (max-width: 781px) {
  .ampus-proof .wp-block-columns { flex-wrap: wrap !important; }
  .ampus-proof .wp-block-column { flex-basis: calc(50% - 20px) !important; min-width: 0; }
}
