/* DC — Site Header (top bar + sticky main bar + mega menu + mobile drawer) */
.dc-section.dc-header,
.dc-section.dc-header * {
  /* override .dc-section { overflow: clip } from core.css so the mega panel can render outside */
  overflow: visible;
}
/* …except sub-areas that genuinely need clipping */
.dc-section.dc-header .dc-header__mega-side-media,
.dc-section.dc-header .dc-header__brand img,
.dc-section.dc-header .dc-header__mega-inner { overflow: hidden; }

.dc-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--sf-cream);
  padding: 0;
  font-family: var(--dc-font-sans);
  color: var(--sf-ink);
}
/* Green glow blob — shared with .dc-hero__blob--green so the header and hero
   read as one continuous surface. Lives above the header background but below
   the header content, so it stays visible across both bars. */
.dc-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: -120px;
  width: 40vw;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 74, 61, 0.24) 0%, transparent 70%);
  filter: blur(72px);
  z-index: 0;
  pointer-events: none;
}
.dc-header.is-stuck .dc-header__top { transform: translateY(-100%); height: 0; opacity: 0; pointer-events: none; }
.dc-header.is-stuck .dc-header__bar { box-shadow: 0 14px 30px -18px rgba(13, 74, 61, 0.28); }

/* ============ TOP BAR ============ */
.dc-header__top {
  position: relative;
  z-index: 200;                    /* above .dc-header__backdrop (199) */
  background: transparent;
  color: var(--sf-ink);
  font-family: var(--dc-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: transform .35s var(--dc-ease), opacity .35s var(--dc-ease), height .35s var(--dc-ease);
}
.dc-header__top-inner {
  /* positioned (no z-index) so it paints above the ::before glow
     without forming a stacking context that would trap the mega panel */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-block: 9px;
}
.dc-header__top-left,
.dc-header__top-right { display: inline-flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }

.dc-header__top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(13,74,61,0.08);
  color: var(--sf-green);
  font-weight: 700;
  letter-spacing: 0.16em;
}
.dc-header__top-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sf-yellow);
  box-shadow: 0 0 0 0 rgba(255,216,74,0.7);
  animation: dc-hd-dot 2s ease-out infinite;
}
@keyframes dc-hd-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255,216,74,0.6); }
  100% { box-shadow: 0 0 0 8px rgba(255,216,74,0); }
}

.dc-header__top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sf-ink);
  font-weight: 600;
  transition: color var(--dc-dur) var(--dc-ease);
}
.dc-header__top-link:hover { color: var(--sf-green); }
.dc-header__top-link svg { width: 13px; height: 13px; color: var(--sf-green); }

.dc-header__top-hours {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sf-ink-soft);
  font-weight: 600;
}
.dc-header__top-hours svg { width: 13px; height: 13px; color: var(--sf-green); }

/* ============ MAIN BAR ============ */
.dc-header__bar {
  position: relative;
  z-index: 200;                    /* above .dc-header__backdrop (199) so the
                                      trigger link is never covered by it —
                                      the mega panel (z-index 210) still wins
                                      inside this context */
  background: transparent;
  transition: box-shadow var(--dc-dur) var(--dc-ease);
}
.dc-header__bar-inner {
  /* positioned (no z-index) so it paints above the ::before glow
     without forming a stacking context that would trap the mega panel */
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

/* Brand */
.dc-header__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sf-ink); }
.dc-header__brand img { max-height: 44px; width: auto; }
.dc-header__brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sf-green);
  color: var(--sf-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dc-header__brand-mark svg { width: 22px; height: 22px; }
.dc-header__brand-meta { display: flex; flex-direction: column; line-height: 1.05; }
.dc-header__brand-meta strong {
  font-family: var(--dc-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dc-header__brand-meta small {
  font-family: var(--dc-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sf-red);
  margin-top: 3px;
  font-weight: 700;
}

/* NAV */
.dc-header__nav { justify-self: end; }
/* direct child only — must not leak into the mega menu's own <ul> lists */
.dc-header__nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* static (not relative) so the mega panel anchors to .dc-header__bar
   and can centre itself across the full bar width, not the tiny <li> */
.dc-header__nav-item { position: static; }
.dc-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sf-ink);
  transition: background var(--dc-dur) var(--dc-ease), color var(--dc-dur) var(--dc-ease);
}
.dc-header__nav-link:hover { background: var(--sf-green-tint); color: var(--sf-green); }
.dc-header__nav-item--mega .dc-header__nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-top: -2px;
  transition: transform var(--dc-dur) var(--dc-ease);
}
.dc-header__nav-item.is-open .dc-header__nav-link {
  background: var(--sf-green-tint);
  color: var(--sf-green);
}
.dc-header__nav-item.is-open .dc-header__nav-link::after { transform: rotate(225deg); margin-top: 2px; }

/* Actions */
.dc-header__actions { display: inline-flex; align-items: center; gap: 12px; }
.dc-header__call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  transition: background var(--dc-dur) var(--dc-ease);
}
.dc-header__call:hover { background: var(--sf-surface); }
.dc-header__call-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sf-green);
  color: var(--sf-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dc-header__call-ico svg { width: 14px; height: 14px; }
.dc-header__call-meta { display: flex; flex-direction: column; line-height: 1.05; }
.dc-header__call-meta small {
  font-family: var(--dc-font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-ink-mute);
  font-weight: 700;
}
.dc-header__call-meta strong { font-size: 13px; font-weight: 700; color: var(--sf-ink); margin-top: 2px; }

.dc-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: var(--sf-red);
  color: var(--sf-light);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px -12px rgba(200,35,59,0.45);
  transition: background var(--dc-dur) var(--dc-ease), transform var(--dc-dur) var(--dc-ease);
}
.dc-header__cta:hover { background: var(--sf-ink); transform: translateY(-2px); }
.dc-header__cta i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sf-light);
  color: var(--sf-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dc-dur) var(--dc-ease);
}
.dc-header__cta i svg { width: 13px; height: 13px; }
.dc-header__cta:hover i { transform: rotate(-8deg) translate(1px, -1px); }

.dc-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.dc-header__burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--sf-ink);
}

/* ============ MEGA MENU ============ */
/* Anchored to .dc-header__bar so it centres across the full bar width. */
.dc-header__bar { position: relative; }
.dc-header__mega {
  position: absolute;
  top: calc(100% - 14px);          /* reaches up to the nav link — no gap to lose hover in */
  left: 50%;
  width: min(960px, calc(100vw - 32px));
  padding-top: 26px;               /* transparent, hover-safe bridge to the visible card */
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .26s var(--dc-ease), transform .26s var(--dc-ease);
  z-index: 210;
}
/* Opens via JS (.is-open) AND via pure CSS hover/focus — so it works even
   if the script has not loaded yet. The panel is a DOM child of the <li>,
   so :hover stays true while the cursor is anywhere over the panel. */
.dc-header__nav-item.is-open .dc-header__mega,
.dc-header__nav-item--mega:hover > .dc-header__mega,
.dc-header__nav-item--mega:focus-within > .dc-header__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dc-header__mega-inner {
  background: var(--sf-cream);
  border: 1px solid var(--sf-line);
  border-radius: 20px;
  box-shadow: 0 40px 80px -28px rgba(13, 74, 61, 0.35);
  padding: 20px;
}
.dc-header__mega-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1180px) {
  .dc-header__mega { width: min(820px, calc(100vw - 32px)); }
}

/* ----- LEFT: category list ----- */
.dc-header__mega-head { margin-bottom: 14px; }
.dc-header__mega-head .dc-eyebrow { margin-bottom: 9px; }
.dc-header__mega-head h3 {
  margin: 0;
  font-family: var(--dc-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--sf-ink);
}
.dc-header__mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dc-header__mega-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid transparent;
  transition: background var(--dc-dur) var(--dc-ease), border-color var(--dc-dur) var(--dc-ease);
}
.dc-header__mega-list a:hover { background: var(--sf-surface); border-color: var(--sf-line); }

.dc-header__mega-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sf-green-tint);
  color: var(--sf-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dc-dur) var(--dc-ease), color var(--dc-dur) var(--dc-ease);
}
.dc-header__mega-list a:hover .dc-header__mega-ico { background: var(--sf-green); color: var(--sf-light); }
.dc-header__mega-ico svg { width: 17px; height: 17px; }

.dc-header__mega-meta strong { display: block; font-size: 13px; font-weight: 700; color: var(--sf-ink); }
.dc-header__mega-meta small {
  display: block;
  font-size: 11px;
  color: var(--sf-ink-mute);
  margin-top: 1px;
  line-height: 1.35;
}
.dc-header__mega-count {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--dc-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-red);
  font-weight: 700;
}
.dc-header__mega-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sf-surface);
  color: var(--sf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sf-line);
  transition: background var(--dc-dur) var(--dc-ease), color var(--dc-dur) var(--dc-ease), transform var(--dc-dur) var(--dc-ease);
}
.dc-header__mega-arrow svg { width: 11px; height: 11px; }
.dc-header__mega-list a:hover .dc-header__mega-arrow {
  background: var(--sf-red);
  color: var(--sf-light);
  border-color: var(--sf-red);
  transform: rotate(-12deg);
}

/* ----- RIGHT: image + USPs + CTA ----- */
.dc-header__mega-side {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 16px;
  background: var(--sf-green);
  color: var(--sf-light);
}
.dc-header__mega-side-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  border: 2px solid rgba(252, 250, 243, 0.16);
}
.dc-header__mega-side-media img { width: 100%; height: 100%; object-fit: cover; }
.dc-header__mega-side-eye {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sf-yellow);
  color: var(--sf-ink);
  font-family: var(--dc-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.dc-header__mega-side-title {
  font-family: var(--dc-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--sf-light);
  margin-top: 12px;
}
.dc-header__mega-side-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(252, 250, 243, 0.76);
  margin-top: 4px;
}
.dc-header__mega-usps {
  list-style: none;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid rgba(252, 250, 243, 0.16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.dc-header__mega-usps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--dc-font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(252, 250, 243, 0.9);
}
.dc-header__mega-usps svg { width: 13px; height: 13px; color: var(--sf-yellow); flex-shrink: 0; }

.dc-header__mega-side-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: var(--sf-yellow);
  color: var(--sf-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform var(--dc-dur) var(--dc-ease);
}
.dc-header__mega-side-cta:hover { transform: translateY(-2px); }
.dc-header__mega-side-cta i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sf-ink);
  color: var(--sf-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dc-dur) var(--dc-ease);
}
.dc-header__mega-side-cta i svg { width: 12px; height: 12px; }
.dc-header__mega-side-cta:hover i { transform: rotate(-12deg); }

/* Backdrop */
.dc-header__backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(13, 74, 61, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--dc-ease);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.dc-header.is-mega-open .dc-header__backdrop { opacity: 1; pointer-events: auto; }

/* ============ MOBILE DRAWER ============ */
.dc-header__drawer[hidden] { display: none; }
.dc-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--sf-cream);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
}
.dc-header__drawer-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dc-header__drawer-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: rotate(45deg);
  color: var(--sf-ink);
}
.dc-header__drawer-close svg { width: 18px; height: 18px; }
.dc-header__drawer nav ul { list-style: none; padding: 0; margin: 0; }
.dc-header__drawer nav li { border-bottom: 1px solid var(--sf-line); }
.dc-header__drawer nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: var(--dc-font-display);
  font-size: 22px;
  color: var(--sf-ink);
  font-weight: 600;
}
.dc-header__drawer nav svg { width: 18px; height: 18px; color: var(--sf-red); }
.dc-header__drawer-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  color: var(--sf-ink);
  font-weight: 700;
  width: max-content;
}
.dc-header__drawer-call svg { width: 14px; height: 14px; color: var(--sf-red); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .dc-header__nav { display: none; }
  .dc-header__call { display: none; }
  .dc-header__burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .dc-header__top-inner { gap: 12px; flex-wrap: wrap; }
  .dc-header__top-left,
  .dc-header__top-right { gap: 12px; }
}
@media (max-width: 640px) {
  .dc-header__top { font-size: 10px; }
  .dc-header__top-hours,
  .dc-header__top-link[href^="mailto"] { display: none; }
  .dc-header__cta span { display: none; }
  .dc-header__cta { padding: 10px 10px; }
}
