/* ===== Design tokens ===== */
:root {
  --ink: #0E2A3D;
  --ink-2: #143A52;
  --paper: #FAF8F3;
  --paper-2: #F1EDE3;
  --teal: #1F8A70;
  --teal-dark: #146354;
  --amber: #E2A33D;
  --amber-dark: #B87F24;
  --slate: #5B6B73;
  --line: #DDD6C6;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--slate); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
  display: inline-block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }

/* ===== Utility top bar ===== */
.topbar {
  background: var(--ink-2);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-contact { display: flex; align-items: center; gap: 20px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); padding: 4px; }
.topbar-contact a:hover { color: var(--amber); }
.topbar-hours { color: rgba(255,255,255,0.6); white-space: nowrap; }
/* Below 600px: labels drop, icons + tel:/mailto: links stay fully functional */
@media (max-width: 600px) {
  .topbar-inner { justify-content: center; gap: 28px; padding: 8px 16px; }
  .topbar-label { display: none; }
  .topbar-hours { display: none; }
}

/* ===== Header ===== */
.site-header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 1;
  min-width: 0;
}
.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
}

/* Desktop nav: a plain inline row, living inside <header>. Only ever
   shown above 980px — it plays no part in the mobile off-canvas menu
   at all, so it can't be involved in that stacking. */
.main-nav-desktop { display: flex; align-items: center; gap: 15px; flex-wrap: nowrap; }
.main-nav-desktop a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav-desktop a:hover, .main-nav-desktop a.active { color: var(--white); border-bottom-color: var(--amber); }
@media (max-width: 980px) {
  .main-nav-desktop { display: none; }
}

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle, .nav-close { display: none; background: none; border: none; color: var(--white); cursor: pointer; line-height: 1; flex-shrink: 0; }
.nav-toggle { font-size: 22px; padding: 6px; }
.nav-close { position: absolute; top: 18px; right: 18px; font-size: 26px; padding: 6px; }

/* Below ~360px (small/older phones, or larger accessibility font
   sizes), drop the wordmark entirely and keep just the logo mark —
   this guarantees the hamburger and quote button can never be pushed
   off-screen regardless of device width or the user's text-size
   settings. */
@media (max-width: 360px) {
  .brand-text { display: none; }
}
.btn .btn-label { display: inline; }
.btn .btn-icon { display: none; font-size: 17px; }

/*
 * Mobile off-canvas nav (.main-nav-mobile) + its overlay are placed as
 * DIRECT SIBLINGS of <header> in the HTML — deliberately not nested
 * inside it. <header> uses `position: sticky`, which always creates a
 * new stacking context regardless of z-index; an earlier version of
 * this nav nested the off-canvas panel inside <header> and it got
 * silently trapped in paint order beneath .nav-overlay despite having
 * a nominally higher z-index — every link was invisible-but-present
 * and completely unclickable. Keeping these as structural siblings of
 * <header>, both direct children with no positioned ancestor besides
 * <body>, removes that entire bug class rather than patching z-index
 * numbers against it.
 */
@media (max-width: 980px) {
  .nav-toggle, .nav-close { display: flex; align-items: center; justify-content: center; }

  /* Header stays compact: the quote CTA drops to icon-only, the
     bottom action bar (mobile-action-bar) becomes the high-visibility
     call to action instead — see below. */
  .quote-btn .btn-label { display: none; }
  .quote-btn .btn-icon { display: inline; }
  .quote-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
}

.main-nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 84vw);
  background: var(--ink-2);
  flex-direction: column;
  align-items: flex-start;
  padding: 84px 28px 28px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 110;
  overflow-y: auto;
  box-shadow: -12px 0 32px rgba(0,0,0,0.3);
}
@media (max-width: 980px) {
  .main-nav-mobile { display: flex; }
}
.main-nav-mobile.open { transform: translateX(0); }
.main-nav-mobile a {
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}
.main-nav-mobile a:hover, .main-nav-mobile a.active { color: var(--white); border-bottom-color: var(--amber); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,42,61,0.55);
  z-index: 100;
}
.nav-overlay.open { display: block; }
body.nav-open { overflow: hidden; }

/* ===== Hero ===== */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 54px); }
.hero .lede { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--amber); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.7); }
.airflow-bg { position: absolute; inset: 0; z-index: 1; opacity: 0.5; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ===== Sections ===== */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
}
.card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(31,138,112,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 15px; }

.band {
  background: var(--paper-2);
}
.band-dark {
  background: var(--ink);
  color: var(--white);
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark p { color: rgba(255,255,255,0.78); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 15px; }
.list-check li svg { flex-shrink: 0; margin-top: 3px; }

.cta-strip {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
  border-radius: 16px;
  margin: 0 24px;
}
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: rgba(255,255,255,0.9); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); margin-bottom: 16px; }
.footer-grid a, .footer-grid p { display: block; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 10px; overflow-wrap: break-word; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
@media (max-width: 880px) {
  /* Stays 2 columns all the way down — single column is a last resort
     this layout deliberately never needs to reach. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
}

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ===== Pricing table ===== */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
}
.price-card.featured { border: 2px solid var(--teal); position: relative; }
.price-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
}
.price-card .amount { font-family: var(--font-display); font-size: 36px; margin: 12px 0; color: var(--ink); }
.price-card .amount span { font-size: 14px; color: var(--slate); font-family: var(--font-body); }

/* ===== Form ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/*
 * ===== Fixed/floating element coordination =====
 * Every fixed or floating UI element on the page reserves a layer on
 * this z-index scale so nothing can silently overlap another:
 *   50   .cta-strip (in-flow, not fixed — listed for contrast only)
 *   70   .mobile-action-bar   (bottom "Call Now" bar, mobile only)
 *   90   .site-header         (sticky top)
 *   100  .nav-overlay         (off-canvas backdrop)
 *   110  .main-nav-mobile     (off-canvas panel — a structural SIBLING
 *                              of <header> in the HTML, not nested
 *                              inside it. <header> uses `position:
 *                              sticky`, which always creates a new
 *                              stacking context regardless of z-index;
 *                              nesting the off-canvas panel inside it
 *                              previously trapped it below .nav-overlay
 *                              in paint order despite a higher z-index,
 *                              making every link silently unclickable.
 *                              Keep this panel a sibling of <header>,
 *                              not a descendant, to avoid that class of
 *                              bug entirely rather than re-balancing
 *                              z-index numbers against it.)
 *   120  .lightbox            (gallery photo viewer — sits above everything)
 * If a chat widget or other floating button is added later, give it
 * `bottom: calc(var(--bottom-bar-height) + 16px)` on widths where
 * .mobile-action-bar is visible (<= 720px) so it stacks above the
 * call bar instead of covering it, and pick a z-index between 70 and
 * 90 so the off-canvas menu still overlays it when open.
 */
:root { --bottom-bar-height: 56px; }

.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--amber);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}
.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--bottom-bar-height);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}
@media (max-width: 720px) {
  .mobile-action-bar { display: block; }
  /* Reserve space so the bar never covers footer content or forms */
  body { padding-bottom: var(--bottom-bar-height); }
}

/* ===== Reviews ===== */
.stars { color: var(--amber); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.review-card p { color: var(--ink); font-size: 15px; margin-bottom: 16px; }
.review-name { font-weight: 600; font-size: 14px; color: var(--slate); }

/* ===== Photo gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--paper-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-broken {
  cursor: default;
  background: var(--paper-2);
  border: 1px dashed var(--line);
}
.gallery-broken-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--slate);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
.gallery-broken-msg code {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink);
  word-break: break-all;
}
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(14,42,61,0.85));
  color: var(--white);
  font-size: 13px;
  padding: 24px 12px 10px;
  text-align: left;
}

.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(14,42,61,0.92);
  z-index: 120;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(900px, 90vw);
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-caption { color: rgba(255,255,255,0.85); margin-top: 14px; font-size: 14px; text-align: center; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 32px; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  font-size: 18px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 15px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
