/* Header redesign: one row on desktop (logo | links | quote button).
   Tablets and phones keep the Menu button. */

/* Dark mode toggle is retired from the header. The element stays in the markup
   so main.js does not throw on it. */
.site-header #theme-toggle { display: none; }

/* Wordmark: two lines, like the brand mockup */
.site-header .nav-mark {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.site-header .nav-mark small {
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-top: 3px;
}
.site-header .nav-logo { height: 40px; }
.site-header #brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Open/closed badge is not in the mockup, so it stays out of this header */
.site-header .open-status { display: none !important; }

/* Desktop link row is hidden until the wide breakpoint */
.site-header .desktop-links { display: none; }

/* Gold quote button, the one call to action in the header */
.site-header .nav-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.site-header .nav-cta:hover {
  background: #b3841f;
  border-color: #b3841f;
  color: var(--navy);
}

@media (min-width: 1040px) {
  header.site-header { flex-wrap: nowrap; }
  .site-header .nav {
    height: 88px;
    gap: 20px;
    justify-content: space-between;
  }

  /* Links sit in the middle, on one line */
  .site-header .desktop-links {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: 0;
    width: auto;
    flex-basis: auto;
    order: 0;
  }
  .site-header .desktop-links > a,
  .site-header .desktop-links .has-sub > a {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0;
    white-space: nowrap;
    padding: 6px 0;
  }
  .site-header .desktop-links > a:hover,
  .site-header .desktop-links .has-sub > a:hover,
  .site-header .desktop-links > a:focus-visible { color: #b3841f; text-decoration: none; }

  /* Gold underline under the current page */
  .site-header .desktop-links > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
  }

  .site-header .caret { font-size: 10px; margin-left: 2px; opacity: 0.7; }

  .site-header .desktop-links .has-sub { position: relative; }
  .site-header .desktop-links .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -12px;
    z-index: 50;
    min-width: 240px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }
  .site-header .desktop-links .sub a {
    display: block;
    padding: 9px 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .site-header .desktop-links .sub a:hover { background: rgba(62,74,77,0.08); color: var(--ink); }
  .site-header .desktop-links .has-sub:hover .sub,
  .site-header .desktop-links .has-sub:focus-within .sub { display: block; }
  .site-header .desktop-links .has-sub::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    height: 14px;
  }

  .site-header .nav-actions { gap: 16px; flex-shrink: 0; }

  /* Phone menu is not needed on wide screens */
  .site-header #menu-toggle { display: none; }
  .site-header #nav-dropdown { display: none !important; }
}

/* Compact nav so all links fit on one row from 1040px */
@media (min-width: 1040px) {
  .site-header .nav { gap: 14px; }
  .site-header .nav-cta { font-size: 13px; padding: 9px 14px; }
  .site-header .nav-mark { font-size: 14px; }
  .site-header .nav-mark small { font-size: 9.5px; }
}
