/* ============================================================
   SITE HEADER — floating cream bar: logo · icon tiles · call · quote.
   ≥1024px: everything in one row.  <1024px: compact bar + burger; the
   same .hdr-panel drops down as a card (toggled by main.js).
   ============================================================ */
.header {
  --hdr-cream: rgba(251, 249, 244, .95);
  --hdr-line: #e6e0d4;
  --hdr-tile: #fbfaf7;
  --hdr-ink: #16191c;
  --hdr-muted: #6b6f73;
  --hdr-gold: #d9a83e;
  --hdr-gold-text: #9a6f1f;     /* 4.2:1 on the active tile */
  --hdr-active: #fdf1d8;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
}
.header .header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: none;
  height: 60px;
  margin: 0;
  padding: 0 18px;
  background: var(--hdr-cream);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hdr-line);
}
.header .brand { flex: 0 0 auto; margin-right: auto; }
.header .brand__logo { height: 40px; width: auto; }

/* ---------- Tiles ---------- */
.hdr-nav { display: flex; gap: 10px; }
.hdr-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  height: 70px;
  padding: 8px 12px;
  border: 1px solid var(--hdr-line);
  border-radius: 10px;
  background: var(--hdr-tile);
  color: var(--hdr-ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.hdr-tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hdr-tile:hover { border-color: #cfc6b4; background: #fff; transform: translateY(-1px); }
.hdr-tile.is-active,
.hdr-tile[aria-current="page"] { border-color: var(--hdr-gold); background: var(--hdr-active); color: var(--hdr-gold-text); }
.hdr-tile.is-active svg,
.hdr-tile[aria-current="page"] svg { stroke: #c2922f; }
.hdr-tile:focus-visible,
.hdr-call:focus-visible,
.hdr-cta:focus-visible,
.hdr-burger:focus-visible { outline: 2px solid var(--hdr-gold); outline-offset: 3px; }

.hdr-divider { width: 1px; height: 52px; background: var(--hdr-line); }

/* ---------- Call block ---------- */
.hdr-call { display: flex; align-items: center; gap: 14px; color: var(--hdr-ink); }
.hdr-call__icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #f7ecd6;
}
.hdr-call__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--hdr-ink); stroke-width: 1.7; stroke-linejoin: round; }
.hdr-call__text { display: grid; gap: 3px; line-height: 1.15; }
.hdr-call__text small { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hdr-muted); }
.hdr-call__text strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.hdr-call__text em { font-size: 12.5px; font-style: normal; color: var(--hdr-muted); white-space: nowrap; }
.hdr-call:hover .hdr-call__icon { background: #f1dfb8; }

/* ---------- Quote button ---------- */
.hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 14px;
  background: #171c20;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .2s var(--ease);
}
.hdr-cta svg { width: 20px; height: 20px; fill: none; stroke: var(--hdr-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.hdr-cta:hover { background: #2a3237; box-shadow: 0 10px 24px rgba(23, 28, 32, .25); }
.hdr-cta:hover svg { transform: translateX(3px); }

/* ---------- Burger ---------- */
.hdr-burger {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
.hdr-burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--hdr-ink); transition: transform .3s var(--ease), opacity .2s; }
.header.menu-open .hdr-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.menu-open .hdr-burger span:nth-child(2) { opacity: 0; }
.header.menu-open .hdr-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================= Desktop: one floating bar ======================= */
@media (min-width: 1024px) {
  .header { top: 12px; left: 16px; right: 16px; }
  .header .header__inner {
    height: 94px;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 clamp(18px, 2.4vw, 40px);
    border: 1px solid var(--hdr-line);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(40, 32, 16, .1);
  }
  .header .brand__logo { height: 58px; }
  .hdr-panel { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
  .hdr-burger, .hdr-backdrop { display: none; }
  /* anchor jumps land below the taller floating header */
  html { scroll-padding-top: 44px; }
}
/* Mid-size laptops: drop the hours line, then the whole call block. */
@media (min-width: 1024px) and (max-width: 1499px) {
  .hdr-nav { gap: 8px; }
  .hdr-tile { min-width: 80px; padding-inline: 6px; font-size: 13.5px; }
  .hdr-call__text em { display: none; }
  .hdr-cta { padding: 14px 20px; font-size: 16px; }
  .header .brand__logo { height: 50px; }
}
@media (min-width: 1024px) and (max-width: 1319px) {
  .hdr-call, .hdr-divider { display: none; }
}

/* ======================= Tablet & phone: drop-down card ======================= */
@media (max-width: 1023px) {
  .header .header__inner { position: relative; z-index: 2; }
  @media (min-width: 768px) { .header .header__inner { height: 66px; padding-inline: 24px; } .header .brand__logo { height: 44px; } }
  .hdr-panel {
    position: fixed;
    z-index: 1;
    top: calc(var(--hdr-h, 60px) + 10px);
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - var(--hdr-h, 60px) - 24px);
    overflow-y: auto;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--hdr-line);
    border-radius: 20px;
    background: #fbf9f4;
    box-shadow: 0 24px 60px rgba(20, 16, 8, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  }
  @media (min-width: 768px) { .hdr-panel { --hdr-h: 66px; left: auto; width: 440px; right: 16px; } }
  .header.menu-open .hdr-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .28s var(--ease); }
  .hdr-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hdr-tile { min-width: 0; height: 78px; font-size: 14px; }
  .hdr-divider { display: none; }
  .hdr-call { padding: 12px 14px; border: 1px solid var(--hdr-line); border-radius: 14px; background: #fff; }
  .hdr-cta { width: 100%; padding: 15px 20px; }
  .hdr-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(16, 20, 24, .38);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility 0s linear .22s;
  }
  body.menu-open .hdr-backdrop { opacity: 1; visibility: visible; transition: opacity .22s; }
}
@media (max-width: 600px) {
  .header .header__inner { height: 58px; }
  .hdr-panel { --hdr-h: 58px; }
  .header .brand__logo { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-panel, .hdr-tile, .hdr-cta, .hdr-cta svg { transition: none; }
}
