:root {
  --header-height: 88px;
  --header-surface: #fcfcf9;
}

html { scroll-padding-top: calc(var(--header-height) + 20px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-surface);
  border-bottom: 1px solid rgba(25, 62, 53, .12);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 5px 20px rgba(16, 44, 38, .07); }
.header-inner {
  max-width: 1520px;
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 48px);
}
.brand-lockup {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  margin-right: auto;
  color: var(--green);
  font-family: var(--sans);
  line-height: 1;
}
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: .13em; }
.brand-caption { font-size: 12px; font-weight: 500; letter-spacing: .245em; }
.primary-nav { align-self: stretch; }
.primary-nav ul { display: flex; align-items: stretch; gap: clamp(22px, 2.4vw, 36px); height: 100%; }
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  height: 100%;
  padding-inline: 1px;
  color: #52645b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s;
}
.primary-nav a::after {
  position: absolute;
  content: '';
  left: 1px;
  right: 1px;
  bottom: 24px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: var(--green); }
.primary-nav a:hover::after, .primary-nav a[aria-current="location"]::after { transform: scaleX(1); }
.primary-nav a:focus-visible { outline-offset: -6px; }
.header-actions { display: flex; align-items: center; flex: 0 0 auto; padding-left: 28px; border-left: 1px solid #d7dfd5; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: white;
  background: var(--green);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.header-cta:hover { background: var(--green-dark); border-color: var(--green-dark); }
.header-menu-toggle { display: none; }
.mobile-nav { display: none; }
.hero-fullscreen { height: calc(100svh - var(--header-height)); }

@media (max-width: 1000px) {
  :root { --header-height: 76px; }
  .primary-nav, .header-cta { display: none; }
  .header-inner { gap: 20px; }
  .header-actions { padding-left: 22px; }
  .brand-name { font-size: 20px; }
  .brand-caption { font-size: 12px; letter-spacing: .19em; }
  .header-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green);
  }
  .menu-label { font-size: 14px; font-weight: 500; line-height: 1.4; }
  .menu-icon { display: flex; flex-direction: column; justify-content: space-between; width: 21px; height: 9px; }
  .menu-icon i { display: block; width: 21px; height: 1px; background: currentColor; transition: transform .2s; }
  .header-menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(4px) rotate(45deg); }
  .header-menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav:not([hidden]) {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
    background: var(--header-surface);
  }
  .mobile-nav-label { margin: 0 0 20px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
  .mobile-nav > a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 68px;
    padding-block: 17px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .mobile-nav > a[aria-current="location"] { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .mobile-nav > a.mobile-contact { justify-content: center; min-height: 52px; margin-top: 22px; padding: 14px 20px; border: 1px solid var(--green); border-radius: var(--radius); background: var(--green); color: white; font-size: 15px; font-weight: 600; letter-spacing: 0; }
  .mobile-nav-footer { margin: auto 0 0; padding-top: 36px; color: var(--muted); font-size: 12px; line-height: 1.8; }
}

@media (max-width: 370px) {
  .header-inner { gap: 12px; }
  .header-actions { padding-left: 16px; }
  .brand-name { font-size: 18px; }
  .brand-caption { font-size: 11px; }
  .header-menu-toggle { gap: 10px; }
  .menu-label { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .primary-nav a, .primary-nav a::after, .header-cta, .menu-icon i { transition: none; }
}
