/* ==========================================================================
   LAYOUT — containers, grids, sections, header, footer
   Editorial/asymmetric by default. Avoid four-equal-boxes rows.
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }

/* Two bands of the same colour in a row read as one block — collapse the
   doubled padding where they actually meet. */
.section--dark + .section--dark,
.section--bone2 + .section--bone2 { padding-top: calc(var(--section-y) * .75); }

.section--dark {
  background: var(--navy);
  color: var(--text-on-dark-soft);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.section--bone2 { background: var(--bone-2); }

/* Diagonal edge between light and dark bands — subtle architectural cut */
.section--cut-top { clip-path: polygon(0 2.2vw, 100% 0, 100% 100%, 0 100%); margin-top: -2.2vw; }
.section--cut-bot { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.2vw), 0 100%); }

/* ---- Section heading block ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  flex: none;
}
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 60ch; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: var(--fs-lead); color: var(--text-body); }
.section--dark .section-head p { color: var(--text-on-dark-soft); }
.section-head--center p { margin-inline: auto; }

/* ---- Editorial split: intentionally asymmetric (7/5), not 50/50 ---- */
.split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.6vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--reverse { grid-template-columns: 5fr 7fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---- Auto grid ---- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Offset grid — every 2nd card drops down, breaking the flat row rhythm.
   The container gets matching bottom padding so the dropped cards don't
   collide with whatever follows. */
@media (min-width: 1000px) {
  .grid--offset > *:nth-child(even) { transform: translateY(1.75rem); }
  .grid--offset { padding-bottom: 1.75rem; }
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: var(--text-on-dark-soft);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  min-height: 2.75rem;
  padding-block: var(--s-2);
}
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;            /* WCAG minimum touch target */
  color: var(--text-on-dark-soft);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}
.topbar__item:hover { color: var(--gold); }
.topbar__item svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.topbar__hours { color: #9FB4C2; }

.social { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.social li { margin: 0; }
.social__link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;   /* WCAG minimum touch target */
  border-radius: var(--r-sm);
  color: var(--text-on-dark-soft);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.social__link:hover { color: var(--navy); background: var(--gold); }
.social__link svg { width: 17px; height: 17px; }

@media (max-width: 860px) {
  .topbar__hours, .topbar__addr { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-base) ease, box-shadow var(--t-base) ease,
              backdrop-filter var(--t-base) ease;
}
.header--scrolled {
  background: var(--glass-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-brd);
  box-shadow: var(--sh-3);
}
/* Solid fallback where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header--scrolled { background: var(--navy-deep); }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 5.25rem;
  transition: min-height var(--t-base) var(--ease-out);
}
.header--scrolled .header__inner { min-height: 4.25rem; }

/* --- BRAND: image-only. No text wordmark is ever rendered here. --- */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  width: auto;
  height: clamp(58px, 4.6vw, 82px);
  transition: height var(--t-base) var(--ease-out), filter var(--t-base) ease;
}
.header--scrolled .brand img { height: clamp(46px, 3.4vw, 60px); }
/* The logo is navy + gold on transparent. On the dark scrolled bar the navy
   outlines disappear, so lift it with a subtle glow rather than inverting
   (inverting would destroy the brand colours). */
.header--scrolled .brand img {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 6px rgba(255,255,255,.35));
}

/* ---- Primary nav ---- */
.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__list { display: contents; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; list-style: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-3) var(--s-4);
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.header--scrolled .nav__link { color: var(--white); }
.nav__link svg { width: 12px; height: 12px; opacity: .6; transition: transform var(--t-base) var(--ease-out); }

/* Animated underline sweep — transform only, no layout shift */
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-4); right: var(--s-4);
  bottom: .55rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__item--open > .nav__link::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-dark); }
.header--scrolled .nav__link[aria-current="page"] { color: var(--gold); }
.nav__item--open > .nav__link svg { transform: rotate(180deg); }

/* ---- Mega menu ---- */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: var(--z-dropdown);
  width: min(94vw, 760px);
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              visibility var(--t-base);
}
.mega--sm { width: min(94vw, 340px); }
.nav__item--open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-5); }
.mega__col-title {
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-dark);
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li { margin: 0; }
.mega__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  margin-left: calc(var(--s-3) * -1);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.mega__link:hover { color: var(--navy); background: var(--gold-soft); }

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  flex: none;                  /* keep the 46px tap target from being squeezed */
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--text);
}
.header--scrolled .nav-toggle { color: var(--white); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  /* Keep the CTA on tablet, but compact it so it never crowds the toggle.
     .btn sets display:inline-flex, so this needs equal specificity to win. */
  .header__cta.btn { padding-inline: var(--s-4); font-size: var(--fs-xs); }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: var(--z-dropdown);
    width: min(88vw, 400px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-6) var(--s-5) calc(var(--s-10) + env(safe-area-inset-bottom, 0px));
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease-out);
  }
  /* Off-canvas while closed. `visible: hidden` alone does not remove the
     panel from the document scroll width in Chromium, so the drawer is also
     clipped to zero width until it opens. Both revert on open. */
  .nav { visibility: hidden; max-width: 0; overflow: hidden; }
  .nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    max-width: min(88vw, 400px);
    overflow-y: auto;
  }
  .nav__link { color: var(--white); padding: var(--s-4) var(--s-2); font-size: 1.0625rem; }
  .nav__link::after { display: none; }
  .nav__item { border-bottom: 1px solid rgba(255,255,255,.09); }
  .nav__link { justify-content: space-between; width: 100%; }
  .mega {
    position: static;
    width: auto;
    max-height: 0;
    padding: 0 0 0 var(--s-3);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transform: none;
    transition: max-height var(--t-slow) var(--ease-out), padding var(--t-slow) var(--ease-out);
  }
  .nav__item--open > .mega { max-height: 1200px; padding-bottom: var(--s-4); transform: none; }
  .mega__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .mega__col-title { color: var(--gold); border-bottom-color: rgba(255,255,255,.12); }
  .mega__link { color: var(--text-on-dark-soft); }
  .mega__link:hover { color: var(--navy); }
}

/* Below 620px the header estimate CTA is dropped — the sticky Call /
   WhatsApp bar carries conversion on phones instead. */
@media (max-width: 620px) {
  .header__cta.btn { display: none; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0,33,47,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) ease, visibility var(--t-base);
}
.nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
@media (min-width: 1081px) { .nav-scrim { display: none; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--navy-deep);
  color: var(--text-on-dark-soft);
  padding-top: var(--s-11);
}
.footer h4 {
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}
.footer__grid {
  display: grid;
  gap: var(--s-8) var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: var(--s-9);
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
.footer__brand img { height: 68px; width: auto; margin-bottom: var(--s-5); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: var(--s-2); }
.footer__list a, .footer__contact a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--t-fast) ease;
}
.footer__list a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: var(--s-3); font-size: var(--fs-sm); font-style: normal; }
.footer__contact > div { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gold); }

.footer__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(240,200,48,.35);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--gold);
  background: rgba(240,200,48,.07);
}
.badge svg { width: 13px; height: 13px; }

.footer__bottom {
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  font-size: var(--fs-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer__legal a { color: #8FA6B4; text-decoration: none; }
.footer__legal a:hover { color: var(--gold); }
.credit { margin: 0; color: #8FA6B4; }
.credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.crumbs { padding-block: var(--s-4); font-size: var(--fs-xs); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--text-muted); }
.crumbs li:not(:last-child)::after { content: "/"; opacity: .45; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-dark); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }
