/* ============================================================
   Site header / chrome
   ------------------------------------------------------------
   The new header visual, applied to every non-admin page that
   includes header.php. Loaded from header.php immediately after
   style.css, so page stylesheets still come later and win.

   This started life inside dashboard-new.css scoped to
   body.dashboard-new-page, covering /dashboard, /choose-plan and
   the QR print pages. It now lives here unscoped and applies
   sitewide; dashboard-new.css keeps only what is specific to
   those pages.

   Chrome only, by design. The Outfit body font stays with the
   redesigned pages - it is set on .header here so the bar itself
   matches, while page bodies keep Inter from style.css.

   Admin is excluded (see header.php): those pages are dense data
   tables built against the old header and want their own pass.
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("/vendor/fonts/outfit/Outfit-VariableFont_wght.ttf") format("truetype-variations"),
       url("/vendor/fonts/outfit/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.header {
  background-color: rgba(254, 253, 251, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #EFECE6;
  box-shadow: none;
  padding: 18px 0;
  /* Scoped to the bar rather than body: the chrome moves to Outfit,
     page content stays on Inter. */
  font-family: "Outfit", "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

.logo {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.625rem;            /* 26px */
  color: #9AA890;
  letter-spacing: -0.01em;
}
.logo .logo-amp { font-style: italic; font-weight: 400; }

/* Desktop nav links */
.nav-desktop ul { gap: 36px; }
.nav-desktop a {
  font-size: 15px;
  font-weight: 400;
  color: #7A7A7A;
}
/* The page you are on. This was a[href="/dashboard"] while the rules only
   applied to the dashboard; sitewide that would darken the Dashboard link on
   every page, so header.php now marks the current link instead. */
.nav-desktop a.is-current {
  color: #2C2C2C;
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:hover { color: #2C2C2C; }
}

/* "Log Out" / "Log In" pill. Solid fill, not transparent: the header itself is
   only 86% opaque, so page content scrolling under a see-through pill made the
   label unreadable. */
.nav-desktop .btn-secondary {
  font-size: 14px;
  font-weight: 500;
  color: #2C2C2C;
  background: #FEFDFB;
  border: 1px solid #E5E2DC;
  border-radius: 999px;
  padding: 10px 24px;
}
@media (hover: hover) and (pointer: fine) {
  .nav-desktop .btn-secondary:hover {
    background: #F1F4EE;
    border-color: #A8B9A0;
    color: #2C2C2C;
  }
}

/* "Try It Free" sits next to Log In on the public nav, which the dashboard
   never shows. Same geometry as the pill above so the pair match; the fill
   and text colour still come from style.css, so no new colour is introduced. */
.nav-desktop .btn-primary {
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 24px;
}

/* Hamburger - refined soft pill button (only rendered <=810px by the site).
   Kept out of a media query so it's styled across the whole visible range. */
.hamburger {
  width: 42px;
  height: 42px;
  border: 1px solid #E8E4DC;
  background: #FEFDFB;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(44, 44, 44, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hamburger span {
  width: 17px;
  height: 1.75px;
  border-radius: 2px;
  background-color: #3A3A3A;
}
/* re-centre the three bars in the 42px button */
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
/* active (X) state */
.hamburger.active { background: #F1F4EE; border-color: #C7D3C0; }
.hamburger.active span:nth-child(1) { top: 20px; transform: translateX(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 20px; transform: translateX(-50%) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .hamburger:hover {
    background: #F1F4EE;
    border-color: #C7D3C0;
    box-shadow: 0 2px 6px rgba(44, 44, 44, 0.07);
  }
}

/* Mobile: logo a touch smaller, and tighten the header's top/bottom spacing. */
@media (max-width: 768px) {
  .logo { font-size: 1.25rem; }   /* 20px */
  .header { padding: 10px 0; }
}
