/* ==========================================================================
   LAYOUT — header, navigation, heroes, breadcrumb, footer, floating actions
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 8, 0.55), rgba(10, 10, 8, 0));
  transition: opacity var(--t);
}
.site-header.is-solid, .header-solid .site-header {
  background: rgba(251, 250, 247, 0.97); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid, .header-solid .site-header { background: rgba(251, 250, 247, 0.9); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-solid::after, .header-solid .site-header::after { opacity: 0; }
.header-solid main { padding-top: var(--header-h); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 38px; height: 38px; color: var(--gold-light); }
.is-solid .brand-mark, .header-solid .brand-mark, .site-footer .brand-mark { color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }

.primary-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; padding: 10px 12px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.01em; position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--gold-light); }
.is-solid .nav-link[aria-current="page"], .is-solid .nav-link.is-active,
.header-solid .nav-link[aria-current="page"], .header-solid .nav-link.is-active { color: var(--gold-deep); }
.dd-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 32px; margin-left: -8px;
  background: none; border: 0; padding: 0; color: inherit;
}
.dd-toggle .icon { width: 14px; height: 14px; transition: transform var(--t); }
.dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 10px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.dd a { display: block; padding: 9px 12px; font-size: 0.9rem; text-decoration: none; color: var(--ink-2); border-radius: 2px; }
.dd a:hover, .dd a:focus-visible { background: var(--sand); color: var(--ink); }
.dd a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }
.has-dd:hover > .dd, .has-dd:focus-within > .dd, .has-dd.is-open > .dd { opacity: 1; visibility: visible; transform: none; }
.has-dd.is-open > .dd-toggle .icon { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { display: none; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-cta { min-height: 44px; padding: 10px 20px; }
.site-header:not(.is-solid) .header-cta { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold); }
.header-solid .site-header .header-cta, .site-header.is-solid .header-cta { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px;
  background: none; border: 1px solid currentColor; border-radius: var(--radius); color: inherit; text-decoration: none; opacity: 0.95;
}
.nav-toggle-bars { position: relative; width: 20px; height: 12px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--t), opacity var(--t); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-panel-extra { display: none; }
.nav-backdrop { display: none; }

@media (min-width: 1440px) { .header-phone { display: inline-flex; } }
@media (max-width: 1239px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; position: relative; z-index: 125; }
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(420px, 100%);
    background: var(--paper); color: var(--ink); margin: 0;
    padding: calc(var(--header-h) + 8px) 24px 32px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0.4s;
  }
  .nav-open .primary-nav { transform: none; visibility: visible; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(10, 10, 8, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ink); z-index: 130; background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .site-header::after { opacity: 0; }
  .nav-open .brand { visibility: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 0; font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"], .nav-link.is-active { color: var(--gold-deep); }
  .dd-toggle { width: 48px; height: 48px; margin: 0; border-left: 1px solid var(--line); }
  .dd-toggle .icon { width: 18px; height: 18px; }
  .dd { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-dd:hover > .dd, .has-dd:focus-within > .dd { display: none; }
  .has-dd.is-open > .dd { display: block; }
  .dd a { padding: 8px 0; color: var(--muted); }
  .nav-panel-extra { display: grid; gap: 12px; margin-top: 28px; }
  .nav-panel-extra p { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--muted); }
  .no-js .primary-nav { display: none; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.35rem; }
  .brand-tag { letter-spacing: 0.24em; }
  .brand-mark { width: 32px; height: 32px; }
}
body.nav-open { overflow: hidden; }

/* ---------- Home hero (video) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: max(640px, 100vh); min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(150px, 16vw, 190px);
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media video { position: absolute; inset: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.78) 0%, rgba(12, 11, 9, 0.5) 50%, rgba(12, 11, 9, 0.25) 100%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.75) 0%, rgba(12, 11, 9, 0.1) 55%),
    rgba(12, 11, 9, 0.12);
}
.hero-content { max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-lead { font-size: var(--fs-lg); color: rgba(255, 255, 255, 0.86); max-width: 56ch; margin-bottom: 32px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(150px, 16vw, 190px); display: none;
  writing-mode: vertical-rl; font-size: var(--fs-xs); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.hero-video-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 16px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  background: rgba(12, 11, 9, 0.45); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em;
}
.hero-video-toggle .icon { width: 14px; height: 14px; }
@media (min-width: 1024px) { .hero-scroll { display: block; } }

/* Search panel overlapping hero */
.hero-search-wrap { position: relative; z-index: 5; margin-top: calc(clamp(150px, 16vw, 190px) * -1 + 40px); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); background: var(--ink);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(48px, 6vw, 88px);
  min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end;
}
.page-hero.compact { min-height: 0; padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 11, 9, 0.82) 0%, rgba(12, 11, 9, 0.5) 60%, rgba(12, 11, 9, 0.3) 100%), linear-gradient(0deg, rgba(12,11,9,.5), rgba(12,11,9,0) 50%);
}
.page-hero h1 { color: var(--white); max-width: 18ch; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.84); margin-bottom: 0; }
.page-hero .btn-group { margin-top: 28px; }
.page-hero-credit { position: absolute; right: var(--gutter); bottom: 10px; font-size: 0.6875rem; color: rgba(255,255,255,.7); margin: 0; }
.page-hero-credit a { color: inherit; }

/* Breadcrumb */
.breadcrumb ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-sm); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.78); }
.breadcrumb li + li::before { content: "/"; opacity: 0.6; }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--gold-light); }
.breadcrumb.dark li { color: var(--muted); }
.breadcrumb.dark a { color: var(--ink); }
.breadcrumb.dark [aria-current] { color: var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.cta-band-media { position: absolute; inset: 0; z-index: -2; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,11,9,.9), rgba(12,11,9,.55)); }
.cta-band-inner { display: grid; gap: 32px; align-items: end; grid-template-columns: 1fr; padding-block: clamp(72px, 9vw, 130px); }
.cta-band h2 { color: var(--white); max-width: 16ch; margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,.82); font-size: var(--fs-lg); max-width: 52ch; margin: 0; }
@media (min-width: 960px) { .cta-band-inner { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-group { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.74); font-size: 0.9375rem; }
.footer-top { display: grid; gap: 48px 32px; padding-block: clamp(64px, 7vw, 96px) 48px; grid-template-columns: 1fr; }
.footer-brand p { max-width: 38ch; margin: 20px 0 24px; }
.site-footer .brand { color: var(--white); }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; color: var(--gold-light); width: 18px; height: 18px; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--white); transition: background var(--t), border-color var(--t); }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 24px 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: var(--fs-sm); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.8); }
.footer-bottom a:hover { color: var(--white); }
.footer-disclaimer { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); margin: 0; padding-bottom: 28px; max-width: 110ch; }
@media (min-width: 640px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; } }

/* ---------- Floating actions ---------- */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--wa); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45); transition: transform var(--t), background var(--t);
}
.float-wa:hover { background: var(--wa-hover); transform: translateY(-2px); }
.float-wa .icon { width: 28px; height: 28px; }
.back-to-top {
  position: fixed; right: 24px; bottom: 86px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top .icon { width: 18px; height: 18px; }
.nav-open .float-wa, .nav-open .back-to-top { visibility: hidden; }

.hero .eyebrow, .page-hero .eyebrow { color: #e9d3a6; }
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
