/* ------------------------------------------------------------------
   Header dropdowns and phone menu (assets/menu.js)
   ------------------------------------------------------------------ */
.site-header .container { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); inset-inline: 0; z-index: 40;
  padding: 24px; border-radius: var(--r-xl); background: var(--cream); color: var(--body);
  box-shadow: 0 30px 80px rgb(5 25 20 / .28), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.mega::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; } /* hover bridge between link and panel */
/* Services: each service heads a column of everything it includes (text only) */
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mega-col__links { columns: 2; column-gap: 24px; }
.mega-col__links .mega-link { break-inside: avoid; }
.mega-col { display: grid; align-content: start; padding: 4px 28px 6px; }
.mega-col:first-child { padding-inline-start: 4px; }
.mega-col + .mega-col { border-inline-start: 1px solid var(--line); }
.mega-head { display: grid; gap: 4px; margin-bottom: 14px; color: inherit; }
.mega-head small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.mega-head b { display: flex; align-items: center; gap: 8px; font: 400 26px/1.15 var(--serif); letter-spacing: -0.02em; color: var(--coach); }
.mega-head b svg { flex: none; width: 15px; height: 15px; opacity: 0; translate: -6px 0; transition: opacity .3s ease, translate .4s var(--ex); }
.mega-head:hover b svg, .mega-head:focus-visible b svg { opacity: 1; translate: 0 0; }
.mega-head span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mega-link { display: block; padding: 7px 0; font-size: 15px; font-weight: 500; color: var(--coach); transition: color .2s ease, translate .3s var(--ex); }
.mega-link:hover, .mega-link:focus-visible { color: var(--teal-ink); translate: 4px 0; outline: none; }
/* Industries: a small panel under its link, five short rows */
.mega-list { display: grid; }
.mega[data-menu="industries"] { inset-inline-end: auto; width: 340px; padding: 14px 16px 16px; }
.mega[data-menu="industries"] .mega-foot { margin-top: 10px; padding-top: 12px; border-top: 0; }
.mega-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; color: inherit; transition: background-color .3s ease; }
.mega-row:last-child { border-bottom: 0; }
.mega-row__n { font: 600 11px/1 var(--font); letter-spacing: .12em; color: var(--teal-ink); }
.mega-row b { font: 400 19px/1.2 var(--serif); letter-spacing: -0.015em; color: var(--coach); }
.mega-row svg { width: 13px; height: 13px; opacity: 0; translate: -8px 0; transition: opacity .3s ease, translate .4s var(--ex); }
.mega-row:hover, .mega-row:focus-visible { background: var(--soft); outline: none; }
.mega-row:hover svg, .mega-row:focus-visible svg { opacity: 1; translate: 0 0; }
.mega .mega-cols > *, .mega .mega-row { animation: mega-in .5s var(--ex) both; }
.mega .mega-col:nth-child(2), .mega .mega-row:nth-child(2) { animation-delay: .04s; }
.mega .mega-col:nth-child(3), .mega .mega-row:nth-child(3) { animation-delay: .08s; }
.mega .mega-row:nth-child(4) { animation-delay: .12s; }
.mega .mega-row:nth-child(5) { animation-delay: .16s; }
@keyframes mega-in { from { opacity: 0; translate: 0 8px; } }

.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding: 16px 2px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.mega-foot .u-link { font-size: 14.5px; }
.nav a[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav a svg { transition: transform .2s ease; }

/* The phone menu: full screen, big serif links, sections that open smoothly, items that rise in one after another */
.drawer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--neon) 14%, #fff) 0%, #fff 55%); visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.drawer.open { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.drawer-open, .drawer-open body { overflow: hidden; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 560px; height: 58px; margin: 0 auto; padding: 0 0 0 4px; }
.drawer__top .logo-svg { display: block; width: auto; height: 22px; }
.drawer__close { position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--coach); cursor: pointer; transition: transform .5s var(--ex); }
.drawer__close i { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: #fff; rotate: 45deg; }
.drawer__close i + i { rotate: -45deg; }
.drawer.open .drawer__close { transform: rotate(90deg); }
.drawer__nav { display: grid; width: 100%; max-width: 560px; margin: 26px auto 0; }
.drawer__big { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 400 36px/1.1 var(--serif); letter-spacing: -0.025em; text-align: start; color: var(--coach); cursor: pointer; }
.drawer__count { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 100px; background: var(--soft); font: 600 11.5px/1 var(--font); letter-spacing: 0; color: var(--teal-ink); }
.drawer__plus { position: relative; width: 16px; height: 16px; margin-inline-start: auto; }
.drawer__plus::before, .drawer__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--coach); transition: rotate .45s var(--ex); }
.drawer__plus::after { rotate: 90deg; }
.drawer__group.is-open .drawer__plus::after { rotate: 0deg; }
/* the section opens by growing its row (no jump) */
.drawer__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ex); }
.drawer__group.is-open .drawer__panel { grid-template-rows: 1fr; }
.drawer__inner { min-height: 0; overflow: hidden; }
.drawer__group.is-open .drawer__inner { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.drawer__group.is-open > .drawer__big { border-bottom-color: transparent; }
.drawer__sub { display: grid; gap: 2px; padding: 12px 2px; color: inherit; }
.drawer__sub b { font-size: 17px; font-weight: 600; color: var(--coach); }
.drawer__sub small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.drawer__all { display: inline-flex; align-items: center; gap: 8px; margin: 6px 2px 8px; font-size: 15px; font-weight: 600; color: var(--teal-ink); }
.drawer__all svg { width: 13px; height: 13px; }
.drawer__cta { display: grid; gap: 10px; width: 100%; max-width: 560px; margin: auto auto 0; padding-top: 30px; }
.drawer__cta .btn { width: 100%; height: 54px; justify-content: center; font-size: 16px; }
.drawer__wa { background: transparent; box-shadow: inset 0 0 0 1.5px var(--coach); color: var(--coach); }
.drawer__note { margin: 6px 0 0; font-size: 12.5px; text-align: center; color: var(--muted); }
/* items rise in one after another when the menu opens */
.drawer :is(.drawer__nav, .drawer__cta) > * { opacity: 0; translate: 0 18px; }
.drawer.open :is(.drawer__nav, .drawer__cta) > * { opacity: 1; translate: none; transition: opacity .6s var(--ex), translate .7s var(--ex); transition-delay: calc(.08s + var(--i, 0) * .05s); }
@media (min-width: 641px) { .drawer__big { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__close, .drawer__panel, .drawer__plus::before, .drawer__plus::after { transition: none; }
  .drawer :is(.drawer__nav, .drawer__cta) > * { opacity: 1; translate: none; transition: none; }
}

@media (max-width: 1100px) {
  .mega-grid--4 { grid-template-columns: 1fr 1fr; }
  .mega-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .mega { display: none; }
}

/* Header that stays on screen once the hero has scrolled away */
.site-header.is-stuck { position: fixed; z-index: 60; padding-block: 8px; background: color-mix(in srgb, var(--midnight) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgb(0 0 0 / .2); animation: header-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes header-in { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-stuck { animation: none; } }

/* Homepage: a chat bar at the bottom of the screen, from the first second (centred on wide screens) */
.askbar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border: 2px solid transparent; border-radius: 100px;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ring-a, 0deg), var(--neon), var(--cyan), var(--teal), #c9f7e4, var(--neon)) border-box;
  box-shadow: 0 14px 40px rgb(1 220 217 / .22), 0 8px 24px rgb(5 25 20 / .1); animation: ring-spin 5s linear infinite; }
.askbar .agent--bar { --s: 36px; border-radius: 50%; }
.askbar .agent--bar::after { width: 10px; height: 10px; min-width: 0; min-height: 0; top: -1px; right: -1px; }
.askbar__tag { flex: none; padding: 5px 9px; border-radius: 100px; background: color-mix(in srgb, var(--neon) 18%, #fff); font: 700 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.askbar__wa { display: none; }
@media (max-width: 860px) {
  .askbar__tag { display: none; }
  .askbar__wa { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -4px; border-radius: 50%; background: #25d366; color: #fff; }
  .askbar__wa .wa-icon { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .askbar { animation: none; } }
.askbar input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; font-size: 16px; color: var(--coach); outline: none; }
.askbar input::placeholder { color: color-mix(in srgb, var(--coach) 62%, #fff); }
.askbar button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lettuce); color: var(--coach); cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.askbar button svg { width: 18px; height: 18px; }
.askbar button:active { transform: scale(.92); }
.askbar:focus-within { box-shadow: 0 14px 40px rgb(1 220 217 / .3), 0 0 0 4px color-mix(in srgb, var(--neon) 30%, transparent); }
.askbar button:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 2px; }
.drawer-open .askbar { display: none; }
@media (min-width: 861px) {
  .askbar { left: 50%; right: auto; bottom: 22px; width: min(520px, calc(100% - 220px)); transform: translateX(-50%); }
}

/* Phones: Leak Audit and WhatsApp always one tap away */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { position: fixed; inset: auto 0 0; z-index: 55; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -10px 30px rgb(5 25 20 / .12); transform: translateY(110%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .past-hero .mbar { transform: none; }
  .mbar .btn { flex: 1; justify-content: center; min-height: 48px; }
  .mbar .mbar__wa { flex: 0 0 auto; gap: 8px; }
  .has-mbar body { padding-bottom: 72px; }
  .has-mbar .sm-toggle { bottom: 86px; }
  .drawer-open .mbar { display: none; }
}

/* ------------------------------------------------------------------
   Header (Parallel-style, every page): a floating glass pill fixed to the top.
   Logo on the left, "/ Your Business. Simplified. /" in the middle, menus and
   the Leak Audit on the right. Over dark sections it turns dark (.on-dark).
   ------------------------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; padding: 14px 0 0; pointer-events: none; }
.site-header .container { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 64px; padding: 0 8px 0 22px; border-radius: 120px; pointer-events: auto; }
.site-header .container::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgb(255 255 255 / .82), rgb(255 255 255 / .58)); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px rgb(2 23 20 / .07), inset 0 0 0 1px rgb(2 23 20 / .07); transition: background .45s ease, box-shadow .45s ease; }
.site-header.is-scrolled .container::before { box-shadow: 0 14px 36px rgb(2 23 20 / .12), inset 0 0 0 1px rgb(2 23 20 / .08); }
.site-header .logo { justify-self: start; color: var(--coach); transition: color .4s ease; }
.site-header .logo-svg { display: block; height: 24px; width: auto; }
.logo img { height: 24px; }

.sentence { display: flex; align-items: center; gap: 30px; margin: 0; font: 500 17px/28px var(--font); color: var(--coach); white-space: nowrap; transform-origin: 50% 50%; transition: color .4s ease; }
.sentence > span { display: inline-block; transition: transform .35s cubic-bezier(.22, 1, .36, 1), color .4s ease; }
.sentence .w:hover { transform: scale(1.15); }
.sentence .in { font-style: italic; font-weight: 400; color: color-mix(in srgb, var(--coach) 55%, transparent); }
.sentence .bracket { font-weight: 400; transform: scaleY(1.2); }

.site-header .header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.site-header .nav { display: flex; gap: 4px; }
.site-header .nav a { padding: 10px 12px; border-radius: 100px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--coach); transition: background-color .25s ease, color .4s ease; }
.site-header .nav a:hover { text-decoration: none; background: rgb(2 23 20 / .06); }
.site-header .nav .nav__extra { display: none; }
.btn--ink { background: var(--coach); color: #fff; }
.btn--ink:hover { background: var(--midnight); }
.site-header .header-cta { height: 46px; padding-inline: 20px; transition: background-color .4s ease, color .4s ease; }
.site-header .menu-btn { display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--coach); color: #fff; cursor: pointer; transition: background-color .4s ease, color .4s ease; }
.site-header .menu-btn svg { width: 18px; height: 18px; }

/* Over a dark section */
.site-header.on-dark .container::before { background: linear-gradient(180deg, rgb(4 35 31 / .62), rgb(4 35 31 / .34)); box-shadow: 0 10px 30px rgb(0 0 0 / .2), inset 0 0 0 1px rgb(255 255 255 / .1); }
.site-header.on-dark :is(.logo, .sentence, .nav a) { color: #fff; }
.site-header.on-dark .sentence .in { color: rgb(255 255 255 / .55); }
.site-header.on-dark .nav a:hover { background: rgb(255 255 255 / .1); }
.site-header.on-dark :is(.header-cta, .menu-btn) { background: #fff; color: var(--coach); }

@media (max-width: 1180px) {
  .site-header .nav { display: none; }
  .site-header .menu-btn { display: inline-grid; }
}
@media (max-width: 860px) {
  .site-header .container { grid-template-columns: 1fr auto; height: 58px; padding-inline: 18px 6px; }
  .sentence, .site-header .header-cta { display: none; }
  .site-header .logo-svg { height: 21px; }
}
@media (prefers-reduced-motion: reduce) { .sentence > span { transition: none; } }

/* The logo in its own colours on light backgrounds (green, deep teal, cyan), white on dark */
.logo-svg { fill: currentColor; }
.site-header .logo-svg, .drawer .logo-svg { fill: url(#g-logo); }
.site-header.on-dark .logo-svg { fill: #fff; }
