/* ==========================================================================
   AMI — HEADER + HERO v4 (final)
   Full replace of ami-header-hero.css
   ========================================================================== */

:root { --green:#2D6A4F; --green-light:#52B788; --green-soft:#D8F3DC; }

/* Kill old strips */
.topbar { display:none !important; }
body > .nav, #primary-nav.nav { display:none !important; }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
  position:fixed !important;
  top:0; left:0; right:0; z-index:200;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  box-shadow:0 1px 12px rgba(0,0,0,.06);
  height:68px !important;
  transition:background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Transparent phase */
.header.over-hero {
  background:rgba(255,255,255,0) !important;
  border-bottom-color:transparent !important;
  box-shadow:none !important;
}
.header.over-hero .logo__t .n    { color:#fff; }
.header.over-hero .hdr-nav .navlink { color:rgba(255,255,255,.92); }
.header.over-hero .hdr-nav .navlink:hover { color:#fff; }
.header.over-hero .hdr-actions .iconbtn { color:#fff; }
.header.over-hero .hdr-actions .iconbtn:hover { background:rgba(255,255,255,.15); }
.header.over-hero .hdr-cta {
  background:transparent !important;
  border-color:rgba(255,255,255,.7) !important;
  color:#fff !important;
}
.header.over-hero .hdr-cta:hover {
  background:#fff !important; color:var(--ink) !important;
}

/* Inner flex row */
.hdr-wrap {
  display:flex !important; align-items:center !important;
  height:68px !important; padding:0 40px !important;
  max-width:100% !important; margin:0 !important; gap:0 !important;
}

/* Logo */
.header .logo {
  display:flex; align-items:center; gap:10px;
  text-decoration:none; flex:0 0 auto; margin-right:52px;
}
.header .logo__mark {
  width:28px; height:26px; background:var(--red);
  clip-path:polygon(50% 0,100% 100%,62% 100%,50% 58%,38% 100%,0 100%);
  flex:0 0 auto;
}
.header .logo__t .n {
  font-family:var(--serif); font-weight:600; font-size:18px;
  color:var(--ink); white-space:nowrap; line-height:1;
  transition:color .3s ease;
}

/* Nav */
.hdr-nav {
  flex:1 !important; display:flex !important;
  align-items:center !important; height:68px !important;
}
.hdr-nav > div {
  display:flex !important; align-items:center !important;
  gap:0 !important; padding:0 !important; max-width:none !important;
}
.hdr-nav .navlink {
  font-family:var(--sans); font-size:14px; font-weight:500;
  color:var(--ink); padding:0 16px; height:68px;
  display:inline-flex; align-items:center; gap:5px;
  white-space:nowrap; transition:color .2s ease; position:relative;
}
.hdr-nav .navlink:hover { color:var(--red); }
.hdr-nav .navlink.active::after {
  content:""; position:absolute; bottom:0; left:16px; right:16px;
  height:2px; background:var(--red); border-radius:2px;
}
/* Chevron icon in nav */
.hdr-nav .navlink .ic.chev,
.hdr-nav .navlink svg.chev {
  width:14px; height:14px; stroke:currentColor; fill:none;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
  transition:transform .3s ease; flex:0 0 auto;
}
.has-mega:hover .navlink svg.chev { transform:rotate(180deg); }
.hdr-nav .push { display:none !important; }

/* Mega */
.hdr-nav .mega { top:68px !important; }
/* Strip chevron from mega links */
.mega a { display:flex; align-items:center; }
.mega a .ic { display:none !important; }

/* Right actions */
.hdr-actions {
  flex:0 0 auto; display:flex; align-items:center;
  gap:4px; margin-left:auto;
}
.hdr-actions .iconbtn {
  width:40px; height:40px; border-radius:50%;
  display:grid; place-items:center;
  background:none; border:none; color:var(--ink);
  cursor:pointer; position:relative;
  transition:background .2s ease, color .2s ease;
}
.hdr-actions .iconbtn:hover { background:var(--mist); }
.hdr-actions .iconbtn .ic { width:19px; height:19px; }
.hdr-actions .iconbtn .count {
  position:absolute; top:4px; right:4px;
  min-width:15px; height:15px; padding:0 3px;
  background:var(--red); color:#fff;
  font-size:9px; font-weight:700; border-radius:100px;
  display:grid; place-items:center;
}
/* Hide account icon */
.hdr-actions [data-account] { display:none !important; }

/* Configure Yours pill */
.hdr-cta {
  margin-left:14px !important; padding:10px 22px !important;
  font-family:var(--sans) !important; font-size:13.5px !important;
  font-weight:600 !important; gap:7px !important;
  white-space:nowrap !important; border-radius:100px !important;
  background:var(--ink) !important; color:#fff !important;
  border:1.5px solid var(--ink) !important;
  display:inline-flex !important; align-items:center !important;
  text-decoration:none !important;
  transition:background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease !important;
}
.hdr-cta:hover {
  background:var(--red) !important; border-color:var(--red) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 6px 20px rgba(190,10,10,.25) !important;
}
.hdr-cta .ic { width:15px !important; height:15px !important; }

/* Mobile burger */
.hdr-actions .burger {
  display:none; background:none; border:none;
  color:var(--ink); cursor:pointer; padding:6px;
}
.hdr-actions .burger .ic { width:24px; height:24px; }

/* Search expand */
.hdr-search-wrap {
  display:none; align-items:center; gap:8px;
  position:absolute; top:0; left:0; right:0; height:68px;
  background:rgba(255,255,255,.98); backdrop-filter:blur(12px);
  padding:0 40px; z-index:30; border-bottom:1px solid var(--line);
}
.hdr-search-wrap.open { display:flex; }
.hdr-search-field {
  flex:1; max-width:640px; margin:0 auto;
  display:flex; align-items:center; gap:10px;
  background:var(--mist); border-radius:100px; padding:0 20px; height:44px;
}
.hdr-search-field .ic { color:var(--slate); width:17px; height:17px; }
.hdr-search-field input {
  flex:1; border:none; background:none; outline:none;
  font-family:var(--sans); font-size:15px; color:var(--ink);
}
.hdr-search-field input::placeholder { color:var(--faint); }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.ami-hero {
  position:relative; background:#F5F4F1;
  min-height:100vh; overflow:hidden; display:block;
}
.ami-hero__bg {
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse 40% 60% at 22% 50%, rgba(190,10,10,.03) 0%, transparent 65%);
}
.ami-hero__wrap {
  display:grid !important; grid-template-columns:1fr 1fr !important;
  min-height:100vh !important; gap:0 !important;
  padding:0 !important; max-width:100% !important;
  margin:0 !important; width:100% !important; position:relative; z-index:1;
}

/* Left copy */
.ami-hero__copy {
  display:flex; flex-direction:column; justify-content:center;
  padding:120px 60px 80px 64px; max-width:680px;
}
.ami-hero__eyebrow {
  font-family:var(--sans); font-size:10.5px; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--slate); margin-bottom:20px;
}
.ami-hero__h1 {
  font-family:var(--serif);
  font-size:clamp(40px,4.5vw,68px); font-weight:400;
  line-height:1.04; letter-spacing:-.03em; color:var(--ink); margin-bottom:22px;
}
.ami-hero__p {
  font-size:16px; color:var(--slate); line-height:1.7;
  max-width:400px; margin-bottom:38px;
}
.ami-hero__ctas {
  display:flex; align-items:center; gap:22px;
  flex-wrap:wrap; margin-bottom:60px;
}
.ami-hero__btn-primary {
  font-size:14px !important; padding:13px 28px !important;
  border-radius:100px !important; background:var(--ink) !important;
  color:#fff !important; border-color:var(--ink) !important;
  display:inline-flex !important; align-items:center !important;
  gap:8px !important; font-weight:600 !important;
  transition:background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
}
.ami-hero__btn-primary:hover {
  background:var(--red) !important; border-color:var(--red) !important;
  transform:translateY(-2px) !important;
  box-shadow:0 10px 28px rgba(190,10,10,.22) !important;
}
.ami-hero__btn-primary .ic { width:16px !important; height:16px !important; }
.ami-hero__btn-video {
  display:inline-flex; align-items:center; gap:14px;
  font-family:var(--sans); font-size:14px; font-weight:500;
  color:var(--ink); background:none; border:none; cursor:pointer; padding:0;
  transition:gap .3s ease, color .3s ease;
}
.ami-hero__btn-video:hover { gap:19px; color:var(--red); }
.ami-hero__play {
  width:46px; height:46px; border-radius:50%;
  border:1.5px solid rgba(0,0,0,.1); background:#fff;
  display:grid; place-items:center; color:var(--ink); flex:0 0 auto;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.ami-hero__btn-video:hover .ami-hero__play {
  background:var(--ink); color:#fff; transform:scale(1.06);
}

/* Stats */
.ami-hero__stats { display:flex; align-items:center; gap:32px; }
.ami-hero__stat strong {
  display:block; font-family:var(--serif); font-size:28px;
  font-weight:400; color:var(--ink); line-height:1; margin-bottom:4px;
}
.ami-hero__stat span { font-size:12px; color:var(--faint); }
.ami-hero__stat-sep { width:1px; height:36px; background:var(--line); }

/* Right visual — full bleed */
.ami-hero__visual {
  position:relative !important; display:block !important;
  min-height:100vh !important; overflow:hidden !important;
}
.ami-hero__laptop-img {
  position:absolute !important; inset:0 !important;
  width:100% !important; height:100% !important;
  object-fit:cover !important; object-position:35% center !important;
  animation:none !important; filter:none !important;
}
.ami-hero__laptop-ph,.ami-hero__vert-text,.ami-hero__script { display:none !important; }

/* Floating card */
.ami-hero__card {
  position:absolute; bottom:40px; right:40px;
  background:#fff; border-radius:16px;
  box-shadow:0 16px 48px rgba(0,0,0,.13);
  padding:14px 16px; display:flex; align-items:center; gap:12px;
  min-width:240px; z-index:3; border:1px solid rgba(0,0,0,.06);
  animation:ami-card-in .9s ease both .4s;
}
@keyframes ami-card-in { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:none } }
.ami-hero__card-img {
  width:48px; height:48px; border-radius:10px;
  background:var(--mist); overflow:hidden; flex:0 0 auto; display:grid; place-items:center;
}
.ami-hero__card-img img { width:48px; height:48px; object-fit:cover; }
.ami-hero__card-name {
  font-family:var(--serif); font-size:13.5px; font-weight:500;
  color:var(--ink); line-height:1.2; margin-bottom:2px;
}
.ami-hero__card-sub { font-size:11px; color:var(--faint); margin-bottom:3px; }
.ami-hero__card-price { font-family:var(--serif); font-size:15px; color:var(--ink); font-weight:500; }
.ami-hero__card-btn {
  width:34px; height:34px; border-radius:50%;
  background:var(--ink); color:#fff;
  display:grid; place-items:center; flex:0 0 auto; margin-left:auto;
  transition:background .2s ease, transform .2s ease; text-decoration:none;
}
.ami-hero__card-btn:hover { background:var(--red); transform:scale(1.1); }
.ami-hero__card-btn .ic { width:16px; height:16px; }

/* Admin bar offset */
.admin-bar .header { top:32px !important; }
@media (max-width:782px) { .admin-bar .header { top:46px !important; } }

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  .hdr-nav { display:none !important; }
  .hdr-actions .burger { display:block !important; }
  .hdr-cta { display:none !important; }
  .hdr-search-btn { display:none !important; }
  .hdr-wrap { padding:0 20px !important; }
  .ami-hero__wrap { grid-template-columns:1fr !important; min-height:auto !important; }
  .ami-hero__copy { padding:100px 24px 40px !important; max-width:100% !important; }
  .ami-hero__visual { min-height:340px !important; }
  .ami-hero__card { bottom:12px; right:12px; min-width:200px; }
}
@media (max-width:640px) {
  .ami-hero__h1 { font-size:38px !important; }
  .ami-hero__stats { flex-wrap:wrap; gap:20px; }
  .ami-hero__stat-sep { display:none; }
}

/* ══════════════════════════════════
   ASSURANCE STRIP (Nexa-exact)
══════════════════════════════════ */
.ami-assure-strip {
  background:#F5F4F1; /* same as hero bg — strip sits INSIDE hero */
  position:relative; z-index:2;
  padding-bottom:48px; /* gap before hero ends */
}
.ami-assure-inner {
  /* contained width via .wrap, but with a card inside */
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 2px 16px rgba(0,0,0,.05);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  overflow:hidden;
}
.ami-assure-item {
  display:flex; align-items:center; gap:16px;
  padding:24px 28px;
  border-right:1px solid rgba(0,0,0,.06);
  transition:background .25s ease;
}
.ami-assure-item:last-child { border-right:none; }
.ami-assure-item:hover { background:#F5F9FF; }
.ami-assure-icon {
  width:44px; height:44px; flex:0 0 44px;
  display:grid; place-items:center;
  background:#EFF6FF; border-radius:10px;
  transition:background .25s ease;
}
.ami-assure-item:hover .ami-assure-icon { background:#DBEAFE; }
.ami-assure-icon svg { width:28px; height:28px; }
.ami-assure-text strong {
  display:block; font-family:var(--sans);
  font-size:13.5px; font-weight:600; color:var(--ink);
  margin-bottom:3px; line-height:1.2;
}
.ami-assure-text span {
  font-size:12px; color:var(--slate); line-height:1.4;
}

/* ══════════════════════════════════
   LIVE SEARCH OVERLAY
══════════════════════════════════ */
.ami-search-overlay {
  position:fixed; inset:0; z-index:500;
  visibility:hidden; pointer-events:none;
  transition:visibility .25s;
}
.ami-search-overlay.open {
  visibility:visible; pointer-events:all;
}
.ami-search-backdrop {
  position:absolute; inset:0;
  background:rgba(0,0,0,.4);
  backdrop-filter:blur(4px);
  opacity:0; transition:opacity .25s ease;
}
.ami-search-overlay.open .ami-search-backdrop { opacity:1; }

.ami-search-box {
  position:absolute; top:0; left:0; right:0;
  background:#fff;
  box-shadow:0 8px 40px rgba(0,0,0,.14);
  transform:translateY(-100%);
  transition:transform .3s cubic-bezier(.4,0,.2,1);
  max-height:80vh; display:flex; flex-direction:column;
}
.ami-search-overlay.open .ami-search-box { transform:translateY(0); }

.ami-search-input-row {
  display:flex; align-items:center; gap:14px;
  padding:18px 32px; border-bottom:1px solid var(--line);
  flex:0 0 auto;
}
.ami-search-ic { width:22px; height:22px; color:var(--slate); flex:0 0 auto; }
.ami-search-input {
  flex:1; border:none; outline:none;
  font-family:var(--sans); font-size:18px;
  font-weight:400; color:var(--ink);
  background:none;
}
.ami-search-input::placeholder { color:var(--faint); }
.ami-search-close {
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--line); background:#fff;
  display:grid; place-items:center; cursor:pointer;
  color:var(--slate); flex:0 0 auto;
  transition:background .2s, color .2s;
}
.ami-search-close:hover { background:var(--ink); color:#fff; border-color:var(--ink); }

.ami-search-results {
  overflow-y:auto; flex:1;
  padding:16px 32px 24px;
  max-height:calc(80vh - 80px);
}
.ami-search-hint,.ami-search-empty {
  font-size:14px; color:var(--faint);
  padding:20px 0; text-align:center;
}
.ami-search-empty strong { color:var(--ink); }

/* Loading dots */
.ami-search-loading {
  display:flex; gap:6px; justify-content:center; padding:24px 0;
}
.ami-search-loading span {
  width:8px; height:8px; border-radius:50%;
  background:var(--line); animation:ami-dot .9s ease infinite;
}
.ami-search-loading span:nth-child(2) { animation-delay:.15s; }
.ami-search-loading span:nth-child(3) { animation-delay:.3s; }
@keyframes ami-dot { 0%,80%,100%{transform:scale(.6);opacity:.4} 40%{transform:scale(1);opacity:1} }

.ami-search-list { display:flex; flex-direction:column; gap:4px; }
.ami-sr-item {
  display:flex; align-items:center; gap:14px;
  padding:10px 12px; border-radius:10px;
  text-decoration:none; color:var(--ink);
  transition:background .2s ease;
}
.ami-sr-item:hover { background:var(--mist); }
.ami-sr-img {
  width:48px; height:48px; border-radius:8px;
  background:var(--mist); overflow:hidden; flex:0 0 48px;
  display:grid; place-items:center;
}
.ami-sr-img img { width:48px; height:48px; object-fit:cover; }
.ami-sr-name { font-size:14px; font-weight:500; color:var(--ink); margin-bottom:3px; }
.ami-sr-price { font-family:var(--serif); font-size:13px; color:var(--slate); }
.ami-sr-arr { color:var(--faint); margin-left:auto; flex:0 0 auto; }
.ami-sr-item:hover .ami-sr-arr { color:var(--red); }

.ami-sr-all {
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:12px; padding:12px;
  font-size:13px; font-weight:600; color:var(--red);
  border:1.5px solid var(--red-soft); border-radius:10px;
  text-decoration:none; transition:background .2s;
}
.ami-sr-all:hover { background:var(--red-soft); }

/* Responsive assurance */
@media (max-width:900px) {
  .ami-assure-inner { grid-template-columns:1fr 1fr; }
  .ami-assure-item:nth-child(2) { border-right:none; }
  .ami-assure-item:nth-child(1),
  .ami-assure-item:nth-child(2) { border-bottom:1px solid rgba(0,0,0,.06); }
}
@media (max-width:560px) {
  .ami-assure-inner { grid-template-columns:1fr; }
  .ami-assure-item { border-right:none !important; border-bottom:1px solid rgba(0,0,0,.06) !important; }
  .ami-assure-item:last-child { border-bottom:none !important; }
  .ami-search-input-row { padding:14px 20px; }
  .ami-search-results { padding:12px 20px 20px; }
}

/* filename: ami-header-hero.css (append at the end of the file) */

/* Hero is light, so keep dark text while the header is transparent */
.header.over-hero .logo__t .n,
.header.over-hero .hdr-nav .navlink,
.header.over-hero .hdr-actions .iconbtn {
  color: var(--ink) !important;
}
.header.over-hero .hdr-nav .navlink .ic { color: var(--slate) !important; }
.header.over-hero .hdr-nav .navlink:hover { color: var(--red) !important; }
.header.over-hero .hdr-actions .iconbtn:hover { background: rgba(0,0,0,.06) !important; }

/* "Configure Yours" stays a solid dark pill over the hero */
.header.over-hero .hdr-cta {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff !important;
}
.header.over-hero .hdr-cta:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}