/* ==========================================================================
   Site chrome: sticky navy header with a Services menu, phone/tablet menu,
   closing photo CTA, navy footer. Uses the tokens from site.css.
   ========================================================================== */

/* ── Header ───────────────────────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 90; background: var(--navy); color: var(--ivory); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.hd :focus-visible { outline-color: var(--gold); }
.hd-bar { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 40px; height: 36px; overflow: visible; }
.bm-heart { fill: var(--gold); transition: transform .5s var(--ease); transform-origin: 24px 22px; }
.bm-pulse, .bm-pulse-out { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 0; }
.bm-pulse { stroke: var(--navy); }
.bm-pulse-out { stroke: var(--gold); }
.brand:hover .bm-heart { transform: scale(1.06); }
.brand:hover .bm-pulse, .brand:hover .bm-pulse-out { animation: beat 1.1s var(--ease); }
@keyframes beat { 0% { stroke-dashoffset: 90; } 100% { stroke-dashoffset: 0; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 500 1.3rem/1 var(--font-display); letter-spacing: .005em; color: var(--ivory); white-space: nowrap; }
.brand-text small { margin-top: 5px; font: 600 .62rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hd-links { display: flex; align-items: center; gap: 4px; }
.hd-links > a, .hd-links > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 0; background: none; border-radius: var(--r);
  color: rgba(247, 244, 239, .86); font: 500 .95rem/1 var(--font-ui); text-decoration: none; cursor: pointer; transition: color .2s, background .2s;
}
.hd-links > a:hover, .hd-links > button:hover, .hd-links > button[aria-expanded="true"] { color: var(--ivory); background: rgba(255, 255, 255, .06); }
.hd-links > .is-active { color: var(--ivory); }
.hd-links > .is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold); }
.hd-links .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.hd-links button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hd-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hd-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r); color: var(--ivory); text-decoration: none; font: 600 .95rem/1 var(--font-ui); white-space: nowrap; transition: background .2s; }
.hd-phone:hover { background: rgba(255, 255, 255, .06); }
.hd-phone .ic { color: var(--gold); }
.hd-phone-text { display: inline; }
.hd-cta { --bg: var(--gold); --fg: var(--navy); }
.hd-cta:hover { --bg: var(--gold-hover); box-shadow: none; transform: none; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--ivory); cursor: pointer; }
.burger:hover { background: rgba(255, 255, 255, .08); }
.burger-lines { display: grid; gap: 5px; width: 20px; }
.burger-lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; }

/* ── Services menu (desktop) ──────────────────────────────────────────── */
.hd-mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--white); color: var(--navy); border-bottom: 1px solid var(--hairline); box-shadow: 0 24px 40px -30px rgba(21, 34, 51, .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.hd-mega :focus-visible { outline-color: var(--navy); }
.canopy-open .hd-mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 30px 0 22px; }
.mega-group { padding-left: 20px; border-left: 1px solid var(--hairline); }
.mega-group:first-child { padding-left: 0; border-left: 0; }
.mega-label { margin: 0 0 12px; font: 600 .72rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.mega-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--navy); font-weight: 500; transition: color .2s; }
.mega-item:hover, .mega-item:focus-visible { color: var(--gold-ink); }
.mega-item small { display: block; font-size: .84rem; color: var(--muted); font-weight: 400; }
.mega-item .ic { flex: none; width: 18px; height: 18px; color: var(--gold); }
.mega-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 0 26px; border-top: 1px solid var(--hairline); }
.mega-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy); }
.mega-call:hover { color: var(--gold-ink); }
.mega-call .ic { color: var(--gold); }
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(21, 34, 51, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* ── Phone / tablet menu ──────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; color: var(--ivory); background: var(--navy);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.overlay.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.overlay :focus-visible { outline-color: var(--gold); }
.ov-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ov-close { width: 44px; height: 44px; border-radius: var(--r); border: 0; background: rgba(255, 255, 255, .08); color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.ov-body { flex: 1; overflow-y: auto; padding: 10px 20px 20px; }
.ov-label { margin: 22px 0 4px; font: 600 .7rem/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ov-body > a { display: block; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--ivory); text-decoration: none; font: 500 1.2rem/1.2 var(--font-display); }
.ov-body > a:hover, .ov-body > a:active { color: var(--gold-hover); }
.ov-small { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ov-small a { padding: 9px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: var(--ivory); text-decoration: none; font-weight: 500; font-size: .92rem; }
.ov-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .1); }
.ov-tile { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: var(--ivory); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ov-tile .ic { color: var(--gold); }
.ov-tile.is-gold { background: var(--gold); color: var(--navy); }
.ov-tile.is-gold .ic { color: var(--navy); }

/* ── Closing photo CTA (inner pages) ──────────────────────────────────── */
.cta-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--r-lg); color: var(--ivory); background: var(--navy-deep); }
.cta-photo > img { position: absolute; left: 0; top: -9%; z-index: -2; width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--par, 0px), 0); }
.cta-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(21, 34, 51, .92) 0%, rgba(21, 34, 51, .66) 50%, rgba(21, 34, 51, .2) 100%); }
.cta-photo-in { padding: clamp(32px, 6vw, 64px); max-width: 860px; min-width: 0; }
.cta-photo .kicker { display: inline-block; margin-bottom: 14px; font: 600 .74rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cta-photo h2 { color: var(--ivory); font-size: clamp(1.75rem, 3.2vw, 2.5rem); text-wrap: balance; }
.cta-photo p { color: rgba(247, 244, 239, .84); font-size: 1.05rem; margin-bottom: 24px; max-width: 52ch; }
.cta-photo :focus-visible { outline-color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.ft { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(48px, 7vw, 96px); background: var(--navy-deep); color: rgba(247, 244, 239, .8); font-size: .95rem; }
.ft > .wrap { position: relative; z-index: 1; }
/* Vector background: a quiet wall of isometric cubes, lit from above, in navy with hairline gold edges.
   Faces differ by a few percent in brightness so the text above keeps its contrast. */
.ft-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.cf-top { fill: rgba(255, 255, 255, .05); }
.cf-left { fill: rgba(255, 255, 255, .012); }
.cf-right { fill: rgba(0, 0, 0, .12); }
.cf-edge { fill: none; stroke: rgba(201, 168, 108, .14); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ft::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(70% 60% at 100% 100%, rgba(201, 168, 108, .12), transparent 70%), linear-gradient(180deg, var(--navy-deep) 0%, rgba(21, 34, 51, 0) 22%); }
body[data-page="home"] .ft { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ft :focus-visible { outline-color: var(--gold); }
.ft a { color: rgba(247, 244, 239, .92); text-decoration: none; }
.ft a:hover { color: var(--gold-hover); }
.ft .brand-text b { color: var(--ivory); }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: 36px; padding: clamp(44px, 6vw, 64px) 0 clamp(32px, 4vw, 44px); }
.ft-about p { margin: 18px 0 18px; max-width: 34ch; }
.ft-a11y { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: var(--ivory); font: 600 .88rem/1 var(--font-ui); cursor: pointer; }
.ft-a11y:hover { background: rgba(255, 255, 255, .14); }
.ft-a11y svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.ft-h { margin: 6px 0 16px; font: 600 .72rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ft-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ft-col address { font-style: normal; display: grid; gap: 10px; }
.ft-col address .ic { width: 16px; height: 16px; color: var(--gold); margin-top: 3px; }
.ft-col address > * { display: flex; gap: 10px; align-items: flex-start; }
.ft-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 22px 0 0; font-size: .88rem; }
.ft-note .ic { flex: none; color: var(--gold); margin-top: 2px; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 0 28px; font-size: .84rem; }
.ft-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-top { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: var(--ivory); font: 600 .84rem/1 var(--font-ui); cursor: pointer; }
.ft-top:hover { background: rgba(255, 255, 255, .14); }
.ft-top .ic { width: 16px; height: 16px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  /* Laptop widths: tighten the header so the booking button doesn't run off the right edge. */
  .hd-bar { gap: 14px; }
  .hd-links { gap: 0; }
  .hd-links > a, .hd-links > button { padding: 0 9px; }
  .hd-phone { padding: 0 8px; }
}
@media (max-width: 1140px) {
  .ft-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-grid > .ft-about { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .hd-links { display: none; }
  .burger { display: inline-flex; }
  .hd-mega { display: none; }
}
@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .hd-phone-text { display: none; }
  .hd-phone { width: 44px; padding: 0; justify-content: center; }
  .hd-bar { gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 31px; }
  .brand-text b { font-size: 1.1rem; }
  .brand-text small { display: none; }
  .hd-cta { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ft-grid > .ft-about { grid-column: 1 / -1; }
  .ft-col ul { gap: 12px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .ft-top { margin-left: 0; }
  .cta-photo { min-height: 420px; }
  .cta-photo::after { background: linear-gradient(180deg, rgba(21, 34, 51, .35) 0%, rgba(21, 34, 51, .92) 62%); }
}
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .overlay, .hd-mega { transition: none !important; } }
@media print { .hd, .ft, .overlay, .scrim { display: none !important; } }

/* Narrow phones: "Request a Consultation" buttons stretch instead of overflowing the band. */
@media (max-width: 400px) {
  .cta-photo-in { padding: 28px 20px; }
  .cta-photo .btn-row .btn { width: 100%; justify-content: center; }
}
