/* ============================================================
   Ascential Test & Measurement Systems — rebrand overlay
   Loaded AFTER the Sentric tailwind bundle to override brand.
   - Font: Inter (replaces Favorit / FavoritExpanded / Diatype)
   - Palette: purple #5522dd primary, orange #dd7722 accent
   - A slight modern lift: softer radii, refined shadows, smoother motion
   ============================================================ */

/* ---- Inter font, remapped onto Sentric's font-family names ---- */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;
  src:url(brand/inter-regular.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;
  src:url(brand/inter-700.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;
  src:url(brand/inter-800.woff2) format("woff2")}

/* Override Sentric's faces so ALL existing text renders in Inter without markup changes */
@font-face{font-family:Favorit;font-style:normal;font-weight:300;font-display:swap;src:url(brand/inter-regular.woff2) format("woff2")}
@font-face{font-family:Favorit;font-style:normal;font-weight:400;font-display:swap;src:url(brand/inter-regular.woff2) format("woff2")}
@font-face{font-family:Favorit;font-style:normal;font-weight:700;font-display:swap;src:url(brand/inter-700.woff2) format("woff2")}
@font-face{font-family:FavoritExpanded;font-style:normal;font-weight:400;font-display:swap;src:url(brand/inter-700.woff2) format("woff2")}
@font-face{font-family:FavoritExpanded;font-style:normal;font-weight:700;font-display:swap;src:url(brand/inter-800.woff2) format("woff2")}
@font-face{font-family:Diatype;font-style:normal;font-weight:400;font-display:swap;src:url(brand/inter-regular.woff2) format("woff2")}

:root{
  --asc-purple:#5522dd;
  --asc-purple-dark:#4019b8;
  --asc-orange:#dd7722;
  --asc-orange-dark:#c4641a;
}

/* Inter benefits from slightly tighter tracking at display sizes */
body, .font-sans{font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji" !important;}
h1,h2,h3,.type-alpha,.type-beta,.type-gamma,.type-delta{letter-spacing:-.02em;}

/* ---- Recolor: Sentric orange (#ffb338) -> Ascential accent; CTAs -> purple ---- */
.bg-orange{background-color:var(--asc-purple) !important;}
.text-orange{color:var(--asc-purple) !important;}
.border-orange{border-color:var(--asc-purple) !important;}
.hover\:bg-orange\/90:hover,.active\:bg-orange\/70:active{background-color:var(--asc-purple-dark) !important;}

/* Section rhythm: a touch more breathing room (the "slight lift upward") */
.py-section{padding-top:clamp(3.5rem,6vw,6rem) !important;padding-bottom:clamp(3.5rem,6vw,6rem) !important;}

/* Images: soften corners for a contemporary feel */
main img:not([aria-hidden="true"]){border-radius:.75rem;}

/* Footer accent line on top */
footer.bg-lightgray{border-top:3px solid var(--asc-purple);}

/* Footer email overflow fix — the mailto inherits uppercase + wide
   tracking from the nav-label style, which overflows the viewport on
   mobile. Keep the email lowercase, normal tracking, and allow wrap. */
footer a[href^="mailto:"]{
  text-transform:none !important;
  letter-spacing:0 !important;
  max-width:100%;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}
footer a[href^="mailto:"] .text-xs{
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

/* Logo lockup spacing */
header > a:first-child{display:inline-flex;align-items:center;}

/* Quote-form placeholder: brand-tint the dashed box */
.quote-form-placeholder{border-color:var(--asc-purple) !important;background:#f5f3fe !important;color:#4019b8 !important;}

/* Selection color */
::selection{background:var(--asc-purple);color:#fff;}

/* ============================================================
   Buttons — EXACT match to adastrustednetwork.com .glassy-btn.
   primary  = .ascential-btn / a.bg-orange  (purple #5522dd)
   secondary= .ascential-btn-ghost          (orange #dd7722)
   Both: solid fill + white text -> hover transparent bg,
   colored text+border, box-shadow none. transition .3s ease.
   Hover is identical on every surface (incl. the dark hero),
   per Adam: "all styles incl. hover must match ATN."
   ============================================================ */
.ascential-btn,
.ascential-btn-ghost,
a.bg-orange{
  display:inline-flex; align-items:center; justify-content:center;
  position:relative; cursor:pointer; text-decoration:none;
  padding:12px 24px; line-height:1.4;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-weight:600; font-size:14px; text-align:center;
  color:#fff !important;
  background-image:none !important;
  background-color:var(--asc-purple) !important;
  border:2px solid var(--asc-purple) !important; border-radius:8px !important;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06) !important;
  clip-path:none !important;
  transition:all .3s ease !important;
}
/* primary (purple) hover -> transparent bg, purple text+border */
.ascential-btn:hover,
a.bg-orange:hover{
  background-color:transparent !important;
  color:var(--asc-purple) !important;
  border-color:var(--asc-purple) !important;
  box-shadow:none !important;
}
.ascential-btn:hover span,
a.bg-orange:hover span{ color:var(--asc-purple) !important; }

/* Catch-all: ANY purple-filled button/link gets white text (kills the
   leftover Sentric `text-black` on cloned CTAs). Resting state only —
   transparent-hover states above override back to colored text. */
.bg-orange:not(:hover), button.bg-orange:not(:hover), a.bg-orange:not(:hover),
.bg-purple:not(:hover), button.bg-purple:not(:hover), a.bg-purple:not(:hover){
  color:#fff !important;
}
.bg-orange:not(:hover) *, button.bg-orange:not(:hover) *, a.bg-orange:not(:hover) *,
.bg-purple:not(:hover) *, button.bg-purple:not(:hover) *, a.bg-purple:not(:hover) *{
  color:#fff !important;
}

/* secondary (orange) — orange fill, hover -> transparent + orange text+border */
.ascential-btn-ghost{
  background-color:var(--asc-orange) !important;
  border-color:var(--asc-orange) !important;
}
.ascential-btn-ghost:hover{
  background-color:transparent !important;
  color:var(--asc-orange) !important;
  border-color:var(--asc-orange) !important;
  box-shadow:none !important;
}
.ascential-btn-ghost:hover span{ color:var(--asc-orange) !important; }



/* ============================================================
   Fixed scroll-aware header (transparent over hero -> solid white)
   ============================================================ */
.site-header{
  position:fixed !important; top:0; left:0; width:100%; z-index:9000;
  transition:background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header > .container{ padding-top:1.1rem !important; padding-bottom:1.1rem !important; }
/* transparent over hero: a soft text-shadow keeps white legible, no harsh band */
.site-header.is-transparent{ background:transparent !important; background-color:transparent !important; box-shadow:none !important; -webkit-backdrop-filter:none; backdrop-filter:none; }
.site-header.is-transparent .site-logo img,
.site-header.is-transparent nav a span{ filter:drop-shadow(0 1px 6px rgba(0,0,0,.45)); text-shadow:0 1px 6px rgba(0,0,0,.45); }
/* on scroll: frosted glass (matches adastrustednetwork) */
.site-header.is-solid{
  background:rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 10px 40px -10px rgba(85,34,221,.15), 0 4px 6px -2px rgba(0,0,0,.05);
  border-bottom:1px solid rgba(221,119,34,.2);
}
/* logo sizing + swap (Tailwind h-8/h-9 not present in cloned build) */
.site-logo{ display:inline-flex; align-items:center; position:relative; }
.site-logo img{ height:34px !important; width:auto !important; }
@media (min-width:768px){ .site-logo img{ height:40px !important; } }
.site-logo .logo-light{ display:none; }
.is-transparent .site-logo .logo-dark{ display:none; }
.is-transparent .site-logo .logo-light{ display:inline-block; }
/* nav link colors over hero */
.is-transparent nav a span{ color:#fff !important; }
.is-transparent nav a{ color:#fff !important; }
.is-solid nav a span{ color:#111 !important; }
/* push non-hero pages below the fixed header */
body:not(.has-hero) #content-wrapper{ padding-top:84px; }

/* ============================================================
   Fullscreen hero with dark overlay + white copy
   ============================================================ */
.hero-full{
  position:relative; min-height:100svh; display:flex; align-items:center;
  overflow:hidden; isolation:isolate;
}
.hero-full-bg{
  position:absolute; inset:0; z-index:-2;
  background-size:cover; background-position:center 65%; background-repeat:no-repeat;
  transform:scale(1.04);
}
.hero-full-overlay{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(8,7,18,.78) 0%, rgba(8,7,18,.42) 28%, rgba(8,7,18,.45) 70%, rgba(8,7,18,.72) 100%),
    linear-gradient(90deg, rgba(8,7,18,.72) 0%, rgba(8,7,18,.30) 55%, rgba(8,7,18,0) 100%);
}
.hero-full-inner{ width:100%; padding-top:7rem; padding-bottom:5rem; }
.hero-full .hero-copy{ max-width:760px; }
.hero-full .hero-eyebrow{
  font-family:Inter,sans-serif; font-weight:700; font-size:.82rem;
  letter-spacing:.16em; text-transform:uppercase; color:#fff; opacity:.85; margin:0 0 1.1rem;
}
.hero-full .hero-title{
  font-family:Inter,sans-serif; font-weight:800;
  font-size:clamp(2.4rem,5.6vw,4.6rem); line-height:1.02;
  letter-spacing:-.03em; color:#fff; margin:0 0 1.5rem; text-wrap:balance;
}
.hero-full .hero-lede{
  font-family:Inter,sans-serif; font-size:clamp(1.05rem,1.5vw,1.32rem);
  line-height:1.6; color:rgba(255,255,255,.88); max-width:54ch; margin:0 0 2.2rem;
}
.hero-full .hero-actions{ display:flex; flex-wrap:wrap; gap:1rem; }
.hero-scroll-cue{
  position:absolute; left:50%; bottom:2rem; transform:translateX(-50%);
  width:24px; height:38px; border:2px solid rgba(255,255,255,.55); border-radius:13px;
}
.hero-scroll-cue::before{
  content:""; position:absolute; left:50%; top:7px; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:#fff;
  animation:scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue{ 0%,100%{opacity:0;transform:translate(-50%,0);} 50%{opacity:1;transform:translate(-50%,7px);} }

/* shared hero text helpers (kept for any other use) */
.hero-eyebrow{ font-family:Inter,sans-serif; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--asc-purple); }

/* ============================================================
   Locations page
   ============================================================ */
.loc-hero{
  padding:clamp(3.5rem,7vw,6rem) 0 clamp(2rem,4vw,3rem);
  background:#fafafe;
  border-bottom:1px solid #eee;
  text-align:center;
}
.loc-hero-title{
  font-family:Inter,sans-serif; font-weight:800;
  font-size:clamp(2.1rem,4.6vw,3.6rem); line-height:1.05;
  letter-spacing:-.03em; color:#0c0c0f; margin:.6rem auto 1.1rem; max-width:18ch;
  text-wrap:balance;
}
.loc-hero-lede{
  font-family:Inter,sans-serif; font-size:clamp(1.02rem,1.4vw,1.22rem);
  line-height:1.55; color:#3f3f46; max-width:60ch; margin:0 auto;
}
.loc-section{ padding-top:clamp(2.5rem,5vw,4rem); padding-bottom:clamp(3.5rem,7vw,6rem); }
.loc-grid{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:clamp(1.5rem,3vw,2.5rem); max-width:1040px; margin:0 auto;
}
@media (max-width:860px){ .loc-grid{ grid-template-columns:1fr; } }

.loc-card{
  display:flex; flex-direction:column; overflow:hidden;
  background:#fff; border-radius:18px;
  box-shadow:0 1px 2px rgba(20,16,60,.06), 0 18px 40px -24px rgba(20,16,60,.28);
  border:1px solid #f0eefb; transition:transform .25s ease, box-shadow .25s ease;
}
.loc-card:hover{ transform:translateY(-4px); box-shadow:0 1px 2px rgba(20,16,60,.06), 0 28px 60px -26px rgba(85,34,221,.45); }
.loc-card-map{
  position:relative; height:190px; overflow:hidden;
  background:#eef0f4;
}
/* Mapbox container fills the card top, fully non-interactive */
.loc-map{
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none !important;
}
.loc-map canvas{ pointer-events:none !important; }
/* hide mapbox logo/attribution inside the decorative card map */
.loc-card-map .mapboxgl-ctrl-logo,
.loc-card-map .mapboxgl-ctrl-attrib,
.loc-card-map .mapboxgl-ctrl-bottom-left,
.loc-card-map .mapboxgl-ctrl-bottom-right{ display:none !important; }
/* subtle gradient scrim at the bottom for the card seam */
.loc-card-map::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:40px; z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 100%);
}
.loc-pin{
  position:absolute; left:50%; top:44%; transform:translate(-50%,-50%); z-index:3;
  width:46px; height:46px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 22px -8px rgba(0,0,0,.5);
}
.loc-card-body{ padding:clamp(1.5rem,2.4vw,2rem); display:flex; flex-direction:column; flex:1; }
.loc-region{
  font-family:Inter,sans-serif; font-weight:700; font-size:.72rem;
  letter-spacing:.13em; text-transform:uppercase; color:var(--asc-purple);
}
.loc-card-title{
  font-family:Inter,sans-serif; font-weight:800; letter-spacing:-.02em;
  font-size:clamp(1.5rem,2.4vw,2rem); color:#0c0c0f; margin:.3rem 0 .1rem;
}
.loc-card-sub{ font-weight:600; color:#52525b; margin:0 0 .9rem; }
.loc-card-copy{ color:#3f3f46; line-height:1.55; margin:0 0 1.1rem; }
.loc-feats{ list-style:none; padding:0; margin:0 0 1.6rem; display:flex; flex-direction:column; gap:.5rem; }
.loc-feats li{
  position:relative; padding-left:1.6rem; color:#27272a; font-size:.96rem;
}
.loc-feats li::before{
  content:""; position:absolute; left:0; top:.34em; width:14px; height:14px;
  background:var(--asc-purple);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
}
.loc-cta{ margin-top:auto; align-self:flex-start; }

.loc-bottom{
  max-width:1040px; margin:clamp(3rem,5vw,4.5rem) auto 0; text-align:center;
  padding:clamp(2.2rem,4vw,3.2rem); border-radius:20px;
  background:#0c0c0f; color:#fff;
}
.loc-bottom-title{ font-family:Inter,sans-serif; font-weight:800; letter-spacing:-.02em;
  font-size:clamp(1.5rem,2.6vw,2.2rem); margin:0 0 .6rem; color:#fff; }
.loc-bottom-copy{ color:#c8c4d6; margin:0 0 1.6rem; }

/* ============================================================
   ATN site-wide style match (adastrustednetwork.com)
   Bold purple section headings, Inter, clean light sections.
   Applies to ALL pages via the cloned .type-* heading classes.
   ============================================================ */
/* Section headings -> bold purple, like ATN's H2s */
main .type-alpha,
main h2.type-alpha,
main .type-beta{
  color:var(--asc-purple) !important;
  font-family:Inter,sans-serif !important;
  font-weight:800 !important; letter-spacing:-.02em !important;
  line-height:1.05 !important;
}
/* But keep headings white when on a dark section */
main .bg-black .type-alpha,
main .bg-black .type-beta,
main .bg-black h2,
main .bg-black h3,
.loc-bottom .loc-bottom-title{ color:#fff !important; }

/* Body prose: ATN's comfortable gray */
main .prose p,
main .prose li{ color:#3f3f46; line-height:1.65; }
main .bg-black .prose p,
main .bg-black .prose-invert p{ color:rgba(255,255,255,.85) !important; }

/* Light section background tone (ATN uses very light gray) */
main section.bg-lightgray{ background:#f7f7fb !important; }

/* Inter everywhere for headings (kill any residual display face) */
main h1, main h2, main h3, main h4,
main .type-alpha, main .type-beta, main .type-gamma, main .type-delta,
main .font-expanded{ font-family:Inter,sans-serif !important; }

/* Links in body -> purple, like ATN */
main .prose a:not(.ascential-btn):not(.bg-orange){ color:var(--asc-purple); text-underline-offset:3px; }

/* Generous section rhythm to match ATN's airy spacing */
main section{ scroll-margin-top:90px; }

/* ============================================================
   Mobile nav: hamburger + dropdown (ATN-clean)
   ============================================================ */
/* Hamburger button: bare icon only — no box, no fill */
.site-header .xl\:hidden button[\@click],
.site-header button[type="button"][\@click]{
  background:transparent !important; color:inherit !important;
  border-radius:0 !important; padding:0 !important;
}
/* toggle is a bare icon: never a frosted/colored box */
.site-header button[type="button"][\@click],
.site-header.is-transparent button[type="button"][\@click],
.site-header .mobile-toggle{
  background:transparent !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  box-shadow:none !important; border:0 !important;
}
/* ---- Animated hamburger -> X toggle (no Sentric flourish) ---- */
.mobile-toggle{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; margin:0; border:0; background:transparent;
  cursor:pointer; -webkit-appearance:none; appearance:none;
}
.mobile-toggle-bars{ position:relative; display:block; width:26px; height:18px; }
.mobile-toggle-bars span{
  position:absolute; left:0; height:2.5px; width:100%; border-radius:2px;
  background:var(--asc-purple); transition:transform .3s cubic-bezier(.16,1,.3,1),
  opacity .2s ease, background .2s ease, top .3s cubic-bezier(.16,1,.3,1);
}
.mobile-toggle-bars span:nth-child(1){ top:0; }
.mobile-toggle-bars span:nth-child(2){ top:50%; transform:translateY(-50%); }
.mobile-toggle-bars span:nth-child(3){ top:100%; transform:translateY(-100%); }
/* on transparent (hero) nav, bars are white */
.site-header.is-transparent .mobile-toggle-bars span{ background:#fff; }
/* OPEN state -> morph into an X (white, sits above overlay) */
.site-header.menu-open .mobile-toggle-bars span{ background:#fff; }
.site-header.menu-open .mobile-toggle-bars span:nth-child(1){ top:50%; transform:translateY(-50%) rotate(45deg); }
.site-header.menu-open .mobile-toggle-bars span:nth-child(2){ opacity:0; }
.site-header.menu-open .mobile-toggle-bars span:nth-child(3){ top:50%; transform:translateY(-50%) rotate(-45deg); }

/* ============================================================
   Full-screen mobile overlay menu with staggered link reveal
   ============================================================ */
.mobile-overlay{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:stretch; justify-content:flex-start;
  background:radial-gradient(120% 90% at 0% 0%, #181232 0%, #0c0a18 55%, #08060f 100%);
  -webkit-backdrop-filter:blur(26px); backdrop-filter:blur(26px);
}
/* dedicated close (X) button, top-right of the overlay */
.mobile-overlay-close{
  position:absolute; top:18px; right:18px; z-index:10000;
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  background:transparent; border:0; padding:0; cursor:pointer; -webkit-appearance:none; appearance:none;
}
.mobile-overlay-close .mobile-toggle-bars{ position:relative; display:block; width:26px; height:18px; }
.mobile-overlay-close .mobile-toggle-bars span{
  position:absolute; left:0; height:2.5px; width:100%; border-radius:2px; background:#fff;
  transition:transform .3s cubic-bezier(.16,1,.3,1), opacity .2s ease;
}
.mobile-overlay-close .mobile-toggle-bars span:nth-child(1){ top:50%; transform:translateY(-50%) rotate(45deg); }
.mobile-overlay-close .mobile-toggle-bars span:nth-child(2){ opacity:0; }
.mobile-overlay-close .mobile-toggle-bars span:nth-child(3){ top:50%; transform:translateY(-50%) rotate(-45deg); }
/* brand logo, top-left of the overlay */
.mobile-overlay-logo{
  position:absolute; top:22px; left:clamp(1.75rem,7vw,3rem); z-index:10000;
  display:inline-flex; align-items:center;
}
.mobile-overlay-logo img{ height:30px; width:auto; display:block; }
/* Alpine transition classes: overlay fade */
.mo-enter{ transition:opacity .35s ease; }
.mo-enter-start{ opacity:0; }
.mo-enter-end{ opacity:1; }
.mo-leave{ transition:opacity .3s ease; }
.mo-leave-start{ opacity:1; }
.mo-leave-end{ opacity:0; }

.mobile-overlay-nav{
  width:100%; max-width:560px;
  padding:clamp(6rem,16vh,9rem) clamp(1.75rem,7vw,3rem) 2.5rem;
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
  margin-top:auto; margin-bottom:auto;
}
.mobile-overlay-nav ul{ list-style:none; margin:0 0 2rem; padding:0; width:100%; text-align:left; }
.mobile-overlay-nav li{
  opacity:0; transform:translateY(18px);
  animation:moItem .55s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay:calc(var(--i) * .07s + .14s);
  border-top:1px solid rgba(255,255,255,.09);
}
.mobile-overlay-nav li:last-child{ border-bottom:1px solid rgba(255,255,255,.09); }
.mobile-overlay-nav li a{
  position:relative; display:flex; align-items:baseline; gap:1rem;
  padding:1.25rem .25rem; text-decoration:none;
  font-family:Inter,sans-serif; font-weight:600; letter-spacing:-.02em;
  font-size:clamp(1.9rem,8.5vw,2.7rem); line-height:1; color:#fff;
  transition:padding-left .35s cubic-bezier(.16,1,.3,1), color .25s ease;
}
/* thin index numeral, eg 01 02 03 */
.mobile-overlay-nav li a::before{
  content:counter(navidx,decimal-leading-zero);
  font-size:.72rem; font-weight:500; letter-spacing:.12em; line-height:1;
  color:rgba(170,150,255,.55); transform:translateY(-.55em);
  transition:color .25s ease;
}
.mobile-overlay-nav ul{ counter-reset:navidx; }
.mobile-overlay-nav li{ counter-increment:navidx; }
/* sliding arrow that fades in on hover */
.mobile-overlay-nav li a::after{
  content:"→"; margin-left:auto; align-self:center;
  font-size:1.4rem; font-weight:400; color:var(--asc-orange);
  opacity:0; transform:translateX(-12px);
  transition:opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.mobile-overlay-nav li a:hover,
.mobile-overlay-nav li a:active{ padding-left:1rem; color:#fff; }
.mobile-overlay-nav li a:hover::before,
.mobile-overlay-nav li a:active::before{ color:var(--asc-orange); }
.mobile-overlay-nav li a:hover::after,
.mobile-overlay-nav li a:active::after{ opacity:1; transform:translateX(0); }
.mobile-overlay-nav li a span{ transition:color .25s ease; }
.mobile-overlay-cta{
  opacity:0; transform:translateY(18px);
  animation:moItem .55s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay:calc(var(--i) * .07s + .14s);
  margin-top:.5rem; align-self:flex-start; min-width:0; width:100%;
  justify-content:center;
}
@keyframes moItem{ to{ opacity:1; transform:translateY(0);} }
/* when overlay is open, morph hamburger into an X (handled by Alpine !rotate-45) */

/* ============================================================
   Prose list bullets -> ATN purple checkmarks
   ============================================================ */
main .prose ul{ list-style:none !important; padding-left:0 !important; }
main .prose ul > li{ list-style:none !important;
  position:relative; padding-left:2rem; margin-bottom:.7rem; line-height:1.6;
}
main .prose ul > li::marker{ content:"" !important; color:transparent !important; font-size:0 !important; }
main .prose ul > li::before{
  content:""; position:absolute; left:0; top:.28em; width:18px; height:18px;
  background:var(--asc-purple);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
}
/* On dark sections, checkmarks go orange for contrast */
main .bg-black .prose ul > li::before,
main .prose-invert ul > li::before{ background:var(--asc-orange); }
/* don't restyle the empty absolute-positioned helper ULs */
main .prose ul.inset-0,
main ul.inset-0{ list-style:none !important; }
main ul.inset-0 > li::before{ display:none !important; }

/* ============================================================
   KILL Sentric remnant: the four-square "S" logo baked into
   blockquote::before (orange #FFB338) by the cloned Tailwind
   bundle. Replace with the Ascential mark in purple.
   ============================================================ */
main .prose blockquote::before,
.prose blockquote::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none'><path fill='%235522dd' d='M13 7.794V5.32H7.948a.242.242 0 0 0-.243.242v1.992c0 .133.11.241.243.241H13ZM0 5.322v2.474h5.052a.242.242 0 0 0 .243-.242V5.562a.242.242 0 0 0-.243-.241H0ZM5.252 13H7.75V7.993a.242.242 0 0 0-.244-.24h-2.01a.242.242 0 0 0-.244.24V13h.001ZM7.747 0H5.251v5.123c0 .133.11.24.244.24h2.01a.242.242 0 0 0 .243-.24V0Z'/></svg>") !important;
}
/* Tailwind focus-ring + any leftover Sentric orange -> Ascential accent */
*{ --tw-ring-color:rgba(85,34,221,.5) !important; }
.focus\:ring-orange:focus{ --tw-ring-color:rgba(85,34,221,1) !important; }
.text-orange{ color:var(--asc-purple) !important; }

/* Overlay is teleported to <body>; nav + menu sit above everything. */
@media (max-width:1279px){
  .site-header{ z-index:9000 !important; }
  .mobile-overlay{ z-index:9999 !important; }     /* above the header */
  .site-header .mobile-toggle{ position:relative; z-index:9001; }
}
/* Lock body scroll + kill horizontal overflow while the menu is open */
body.mobile-menu-open{ overflow:hidden !important; }
html, body{ overflow-x:hidden; }
.mobile-overlay{ width:100vw; max-width:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; }

/* ============================================================
   Quote request form (styled, ATN-clean)
   ============================================================ */
.bp-form-wrap{
  background:#fff; border:1px solid #ece9fb; border-radius:18px;
  box-shadow:0 1px 2px rgba(20,16,60,.05), 0 24px 50px -30px rgba(20,16,60,.30);
  padding:clamp(1.5rem,3vw,2.5rem); margin-top:.5rem;
}
.bp-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem 1.25rem; }
@media (max-width:640px){ .bp-form-grid{ grid-template-columns:1fr; } }
.bp-field{ display:flex; flex-direction:column; gap:.4rem; }
.bp-field-full{ grid-column:1 / -1; }
.bp-field > span{
  font-family:Inter,sans-serif; font-weight:600; font-size:.82rem;
  letter-spacing:.01em; color:#3f3f46;
}
.bp-field input,
.bp-field select,
.bp-field textarea{
  font-family:Inter,sans-serif; font-size:.98rem; color:#18181b;
  background:#fafafe; border:1.5px solid #e4e1f5; border-radius:10px;
  padding:.7rem .85rem; transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width:100%;
}
.bp-field input::placeholder,
.bp-field textarea::placeholder{ color:#a1a1aa; }
.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus{
  outline:none; border-color:var(--asc-purple); background:#fff;
  box-shadow:0 0 0 3px rgba(85,34,221,.12);
}
.bp-field textarea{ resize:vertical; min-height:96px; }
.bp-form-submit{ margin-top:1.4rem; width:100%; }
.bp-form-note{
  margin:.9rem 0 0; text-align:center; font-size:.82rem; color:#71717a;
  font-family:Inter,sans-serif;
}

/* ============================================================
   Vertical rhythm normalization — kill redundant my-* margins
   that stack on top of py-section padding (uneven big gaps).
   Dark feature bands now sit flush with consistent inner padding.
   ============================================================ */
main section.py-section{ margin-top:0 !important; margin-bottom:0 !important; }
/* Slightly tighter, consistent section padding site-wide */
main section.py-section{ padding-top:clamp(3rem,5.5vw,5rem) !important; padding-bottom:clamp(3rem,5.5vw,5rem) !important; }
/* Dark feature bands: a touch more presence, but no external margin */
main section.bg-black{ padding-top:clamp(3.5rem,6vw,5.5rem) !important; padding-bottom:clamp(3.5rem,6vw,5.5rem) !important; }

/* ============================================================
   Testimonial cards (home) — lift the plain quotes into cards
   ============================================================ */
.bp-testimonials > div{ border-top:0 !important; gap:1.5rem !important; }
.bp-testimonials > div > div{
  background:#fff; border:1px solid #efedfa; border-radius:16px;
  padding:clamp(1.5rem,2.5vw,2rem) !important;
  box-shadow:0 1px 2px rgba(20,16,60,.05), 0 16px 36px -26px rgba(20,16,60,.30);
  border-top:1px solid #efedfa !important;
  transition:transform .25s ease, box-shadow .25s ease;
}
.bp-testimonials > div > div:hover{
  transform:translateY(-3px);
  box-shadow:0 1px 2px rgba(20,16,60,.05), 0 26px 50px -28px rgba(85,34,221,.40);
}
/* quote-mark icon bubble -> brand tint */
.bp-testimonials .bg-gray-200{ background:#efe9fe !important; }
.bp-testimonials .bg-gray-200 svg path{ fill:var(--asc-purple) !important; }
/* attribution name */
.bp-testimonials header.type-delta{ color:#0c0c0f !important; font-weight:700; }
/* quote body */
.bp-testimonials .prose p{ color:#3f3f46; font-size:1.02rem; line-height:1.6; font-style:italic; }

/* ============================================================
   Recolor the Sentric-orange flat illustration -> brand purple
   (hue-rotate shifts orange #FFB338 toward Ascential purple)
   ============================================================ */
.bp-recolor-illo{ filter:hue-rotate(212deg) saturate(1.15); }
