/* Header styles shared by all pages. Loaded after each page's inline styles. */

/* Self-hosted fonts (Latin subset from Google Fonts) — saves a trip to Google before text can render. */
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cinzel-decorative-400.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(fonts/cormorant-garamond.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap; src: url(fonts/cormorant-garamond-italic.woff2) format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 200 700; font-display: swap; src: url(fonts/raleway.woff2) format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/raleway-italic.woff2) format('woff2'); }

.btn-coffee { background: transparent; color: var(--amber); }
.name-slant { font-style: italic; }

/* Header grows with its larger bold text instead of clipping it. */
.nav {
  height: auto;
  min-height: 130px;
  padding-top: .75rem;
  padding-bottom: .75rem;
  gap: 1.5rem;
}
.nav-logo { min-width: min-content; flex: 0 1 auto; }
.nav-links, .btn-coffee { flex-shrink: 0; }
.nav-links { gap: 1.75rem; }

@media (max-width: 1180px) {
  .nav-links { gap: 1.1rem; }
  .nav { gap: 1rem; }
}
@media (max-width: 860px) {
  .nav-links, .nav-sub, .nav-tagline-short { display: none; }
  .nav { min-height: 90px; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: .5rem; }
}

/* ── Phone / small-tablet menu ─────────────────────── */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .btn-coffee { order: 1; min-height: 44px; }
  .nav-toggle {
    order: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(232,154,24,0.35);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .2s, opacity .2s;
  }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.menu-open {
    flex-wrap: wrap;
    background: rgba(7,9,15,0.97);
    border-bottom-color: rgba(232,154,24,0.18);
  }
  .nav.menu-open .nav-links {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    gap: 0;
    padding-top: .25rem;
    border-top: 1px solid rgba(232,154,24,0.18);
  }
  .nav.menu-open .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* On phones the menu button sits beside the name; the coffee link drops to its own row. */
@media (max-width: 640px) {
  .nav-toggle { order: 1; }
  .btn-coffee { order: 2; }
}
