/* Shared site header — linked on every page. Sticky: stays on top while scrolling. */
@font-face {
  font-family: "Corporate A Cond";
  src: url("../fonts/CorporateACondPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
:root { --header-h: 84px; }
html { scroll-padding-top: var(--header-h); } /* anchors land below the header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e0da;
  font-family: "Corporate A Cond", "Roboto Condensed", Arial, sans-serif;
  font-weight: 300;
}
/* logo and section links on the left, phone and the button on the right */
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__logo { flex: none; margin-right: 20px; }
.site-header__logo img { display: block; width: auto; height: 72px; }
.site-header__nav { display: flex; flex: 1; align-items: center; gap: 24px; }
.site-header__nav a { padding: 10px 0; font-size: 17px; color: #333; text-decoration: none; white-space: nowrap; }
.site-header__nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-header__phone { margin-left: auto; }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background: #2c2c2c;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__cta:hover { background: #000; }
.site-header__burger { display: none; }

/* Home page: the header floats over the first-screen photo with no backing and scrolls away with it;
   once the first screen is passed it slides back in, fixed, on white. */
.site-header--overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: none;
  border-bottom-color: transparent;
}
/* soft haze taller than the header, so dark links and the phone stay readable on the photo without a visible bar */
.site-header--overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 170%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.site-header--overlay.is-fixed::before { display: none; }
.site-header--overlay.is-fixed {
  position: fixed;
  background: #fff;
  border-bottom-color: #e5e0da;
  animation: site-header-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes site-header-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header--overlay.is-fixed { animation: none; } }
.site-header :focus-visible { outline: 2px solid #333; outline-offset: 3px; }

/* ---------- Header: burger menu ---------- */
@media (max-width: 1000px) {
  :root { --header-h: 64px; }
  .site-header__inner { gap: 12px; }
  .site-header__logo { margin-right: auto; }
  .site-header__logo img { height: 54px; }
  .site-header__phone { margin-left: 0; }
  /* slide-in panel from the right over a dimmed page */
  .site-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(86vw, 380px);
    padding: 76px var(--pad) 32px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.35s;
  }
  .site-header.is-open .site-header__nav { transform: none; visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(20, 20, 20, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }
  .site-header.is-open::after { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  html.menu-open { overflow: hidden; }
  .site-header__nav a { padding: 16px 0; font-size: 22px; border-bottom: 1px solid #e5e0da; white-space: normal; }
  .site-header__nav a:last-child { border-bottom: 0; }
  .site-header__cta { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .site-header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: #333;
    cursor: pointer;
    position: relative;
    z-index: 3; /* stays above the panel and works as the close button */
  }
  .site-header__burger svg { width: 24px; height: 24px; }
  .site-header__icon-close,
  .site-header.is-open .site-header__icon-open { display: none; }
  .site-header.is-open .site-header__icon-close { display: block; }
}
@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  .site-header__nav, .site-header::after { transition: none !important; }
}
