/* ==========================================================================
   SHARED HEADER + PROMO BAR
   Extracted from home.css so the inner pages (menu, pricing, faq, about,
   blog, legal) get the same full-bleed header and seasonal ribbon instead of
   the older floating-pill header each of their page stylesheets still ships.
   Load AFTER the page's own stylesheet and BEFORE site-dark.css /
   theme-light.css, matching the order the homepage uses for home.css.
   ========================================================================== */

/* Inner pages offset <main> for the fixed header (their own rule says 130px,
   written before the ribbon existed). Sized off the .header--promo height so
   the first section clears the ribbon as well as the bar. */
html:has(.header--promo) main { padding-top: 164px; }
@media (max-width: 860px) {
  html:has(.header--promo) main { padding-top: 142px; }
}

/* ==========================================================================
   PROMO BAR: full-bleed seasonal-scarcity ribbon above the header bar.
   Scoped to .header--promo so pages without the banner keep the 130px header.
   ========================================================================== */
/* .header.header--promo, not .header--promo: `.header { height: 130px }`
   lives further down this file at equal (0,1,0) specificity and would win on
   source order. The two-class form wins regardless of position.
   .header is a centered flex row, so column mode is what stacks the ribbon
   above the nav bar instead of beside it. */
.header.header--promo {
  height: 164px;
  flex-direction: column; align-items: stretch; justify-content: flex-start;
}
html:has(.header--promo) { scroll-padding-top: 174px; }
.promo-bar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 6px max(28px, calc((100% - 1220px) / 2));
  background: linear-gradient(90deg, rgba(150,96,60,0.88), rgba(185,120,79,0.88));
  border-bottom: 2px solid var(--peach);
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.promo-bar__dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: bcc-promo-pulse 2.8s ease-out infinite;
}
@keyframes bcc-promo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.promo-bar__text {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .01em; color: #fff;
}
.promo-bar__cta {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.18); padding: 4px 10px; border-radius: 5px;
  transition: background .2s ease;
}
.promo-bar:hover .promo-bar__cta { background: rgba(0,0,0,0.3); }
.promo-bar__cta svg { transition: transform .2s ease; }
.promo-bar:hover .promo-bar__cta svg { transform: translateX(3px); }

@media (max-width: 1040px) {
  .promo-bar__cta { display: none; }
  .promo-bar__text { font-size: 12.5px; }
}
@media (max-width: 860px) {
  .header.header--promo { height: 142px; }
  html:has(.header--promo) { scroll-padding-top: 142px; }
  .promo-bar { padding: 5px 20px; gap: 6px; }
  .promo-bar__text { font-size: 10.5px; line-height: 1.35; text-align: center; text-wrap: balance; max-width: 34ch; }
}
@media (max-width: 400px) {
  .promo-bar__text { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-bar__dot { animation: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; width: 100%;
  height: 130px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: multiply;
}
.header::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 50% 120% at 88% -10%, rgba(211,168,124,.20) 0%, transparent 65%),
              radial-gradient(ellipse 35% 80%  at  3% 60%,  rgba(211,168,124,.12) 0%, transparent 55%);
}
.header::before, .header::after { display: none; }
/* Edge-to-edge bar, not a floating card: full width, square corners, a
   bottom border standing in for the old all-around card border/shadow.
   The inner max-width keeps logo/nav/CTA from spreading to the viewport
   edges on wide screens without constraining the bar's own background. */
.header__inner { position: relative; z-index: 2; width: 100%; max-width: none; margin: 0; padding: 20px max(28px, calc((100% - 1220px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: rgba(28,25,23,0.72); border: none; border-bottom: 1px solid rgba(232,217,197,0.14); border-radius: 0; box-shadow: 0 8px 28px rgba(0,0,0,0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Card styling, flat, no blur (avoids edge-halo artifacts against the flat body color) */

.header__logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.header__logo-mark { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgba(28,25,23,.12), 0 2px 8px rgba(28,25,23,.10); }
.header__logo-mark img { width: 46px; height: 46px; display: block; object-fit: cover; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1; }
.header__logo-name { font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--cream); }
.header__logo-tag { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-top: 2px; }

.header__nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; position: relative; z-index: 2; }
.header__nav-link { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: rgba(245,239,224,.78); text-decoration: none; padding: 10px 18px; border-radius: 6px; transition: color .18s, background .18s; white-space: nowrap; }
.header__nav-link:hover { color: var(--cream); background: rgba(245,239,224,.1); }
.header__nav-link.is-active { color: var(--terracotta); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; z-index: 2; }

.header__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; border-radius: 6px; transition: background .18s; }
.header__burger:hover { background: rgba(28,25,23,.07); }
.header__burger-bar { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transform-origin: center; transition: transform .28s ease, opacity .18s; }
.header.is-open .header__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .header__burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header.is-open .header__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.header__drawer {
  display: flex; position: absolute; top: calc(100% - 24px); left: 24px; right: 24px;
  background: rgba(28,25,23,0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); 
  padding: 0 14px; flex-direction: column; gap: 2px;
  border: 1px solid rgba(232,217,197,0.16); border-top: 0; border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.42); z-index: 999;
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; transform: translateY(-10px);
  transition: max-height .42s cubic-bezier(.4,0,.2,1), opacity .42s ease, transform .42s cubic-bezier(.4,0,.2,1), padding .42s cubic-bezier(.4,0,.2,1);
}
.header__drawer-cta { margin-top: 12px; width: 100%; }
.header__drawer.is-open { max-height: 420px; opacity: 1; pointer-events: auto; transform: translateY(0); padding: 14px 14px 18px; }
.header__drawer-link { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: rgba(245,239,224,.82); text-decoration: none; padding: 14px 10px; border-radius: 6px; border-bottom: 1px solid rgba(232,217,197,.12); transition: color .18s, background .18s; }
.header__drawer-link:last-of-type { border-bottom: none; }
.header__drawer-link:hover { color: var(--cream); background: rgba(245,239,224,.08); }
.header__drawer-link.is-active { color: var(--terracotta); font-weight: 600; }
.header.is-open .header__inner { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Header "More" dropdown: About Us + Reviews */
.header__more { position: relative; display: flex; align-items: center; }
/* Keeps hover alive across the gap between the button and the panel */
.header__more::after { content: ''; position: absolute; top: 100%; left: -8px; right: -8px; height: 16px; }
.header__more-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; }
.header__more-btn svg { width: 10px; height: 10px; transition: transform .22s ease; }
.header__more:hover .header__more-btn svg,
.header__more:focus-within .header__more-btn svg { transform: rotate(180deg); }
.header__more-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 168px; display: flex; flex-direction: column; gap: 2px;
  padding: 8px; border-radius: 10px; z-index: 5;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.header__more:hover .header__more-menu,
.header__more:focus-within .header__more-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.header__more-link { font-family: var(--font-body); font-size: 16px; font-weight: 500; text-decoration: none; padding: 9px 12px; border-radius: 6px; white-space: nowrap; transition: color .18s ease, background .18s ease; }

.header__more-menu { background: rgba(28,25,23,0.94); border: 1px solid rgba(232,217,197,0.16); box-shadow: 0 14px 34px rgba(0,0,0,0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header__more-link { color: rgba(245,239,224,0.82); }
.header__more-link:hover { color: var(--cream); background: rgba(245,239,224,0.1); }
.header__more-link.is-active { color: var(--terracotta); font-weight: 600; }

.header__actions .cta-btn { white-space: nowrap; }
/* Header CTA sits a touch smaller than the in-page buttons */
.header__actions .cta-btn { padding: 13px 28px; font-size: 14px; }


@media (max-width: 1020px) { .header__nav, .header__actions .cta-btn { display: none; } .header__burger { display: flex; } }
@media (max-width: 480px) { .header__inner { padding: 0 20px; } }
@media (max-width: 480px) {
  .grid-container.is-carousel .grid-quote { font-size: 11px; line-height: 1.5; max-height: 70px; }
}

@media (max-width: 480px) {
  .map-eyebrow-break { display: block; }
}

