/* Kemptville Heating & AC, premium custom site.
   Palette derived from their logo (heat/cool blue + red), refined upscale.
   Mobile-first. No emojis in markup; real SVG line icons. */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --indigo: #1b2150;
  --indigo-2: #262d66;
  --heat: #e23b3e;
  --heat-2: #c92f32;
  --cool: #1f9fd4;
  --cream: #f5f3ee;
  --ink: #1b1d22;
  --muted: #5b6470;
  --line: #e3e6ea;
  --bg: #ffffff;
  --max: 1180px;
  --r: 16px;
  --shadow: 0 12px 34px rgba(27, 33, 80, 0.1);
  --soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --select-on-light-bg: var(--indigo);
  --select-on-light-fg: #fff;
  --select-on-dark-bg: var(--cream);
  --select-on-dark-fg: var(--indigo);
  --focus-on-light: var(--heat);
  --focus-on-dark: var(--cool);
  --tap-on-light: rgba(27, 33, 80, 0.08);
  --tap-on-dark: rgba(255, 255, 255, 0.14);
}

/* Merto root globals.css paints brass selection/focus/tap on every route. */
::selection {
  background: var(--select-on-light-bg);
  color: var(--select-on-light-fg);
}
.topbar ::selection,
.hero ::selection,
.section--ink ::selection,
.info-card ::selection,
.cta ::selection,
.footer ::selection {
  background: var(--select-on-dark-bg);
  color: var(--select-on-dark-fg);
}
:focus-visible {
  outline: 2px solid var(--focus-on-light);
  outline-offset: 3px;
}
.topbar :focus-visible,
.hero :focus-visible,
.section--ink :focus-visible,
.info-card :focus-visible,
.cta :focus-visible,
.footer :focus-visible {
  outline-color: var(--focus-on-dark);
}
@media (pointer: coarse) {
  html {
    -webkit-tap-highlight-color: var(--tap-on-light);
  }
  :where(
    a,
    button,
    summary,
    [role="button"],
    label[for],
    input,
    select,
    textarea
  ) {
    -webkit-tap-highlight-color: var(--tap-on-light);
  }
  :where(
    .topbar a,
    .topbar button,
    .hero a,
    .hero button,
    .section--ink a,
    .section--ink button,
    .info-card a,
    .cta a,
    .cta button,
    .footer a
  ) {
    -webkit-tap-highlight-color: var(--tap-on-dark);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; display: block; }
a { color: var(--indigo-2); text-decoration: none; }
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; line-height: 1.1; letter-spacing: -0.02em; color: var(--indigo); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--indigo); color: #fff; }
.section--ink h2 { color: #fff; }
/* --heat-2 (not --heat): the brighter red fails 4.5:1 at this size on white/cream. */
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--heat-2); margin-bottom: 0.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.icon { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Motion. Hiding is gated on .reveal-ready (set synchronously by script.js),
   so with JS off every .reveal section renders fully visible. */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--soft), transform 0.6s var(--soft); }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: "Sora", sans-serif; font-weight: 700; padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s var(--soft), box-shadow 0.15s var(--soft), background 0.15s; }
.btn--primary { background: var(--heat); color: #fff; box-shadow: 0 10px 24px rgba(226, 59, 62, 0.28); }
.btn--primary:hover { background: var(--heat-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ink { background: var(--indigo); color: #fff; }
.btn--ink:hover { background: var(--indigo-2); transform: translateY(-2px); }
.nav-cta { margin: 0; }

/* Utility bar */
.topbar { background: var(--indigo); color: #cdd6ea; font-size: 0.85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; justify-content: center; align-items: center; padding-block: 0.5rem; }
.topbar-msg { line-height: 1.35; }
.topbar-msg-phone { display: none; }
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* 44px tap height without growing the bar: neighbors still size the flex line. */
  min-height: 44px;
  margin-block: -14px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar-call::before {
  content: "Call";
  font-weight: 600;
  color: #cdd6ea;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; margin-top: -1px; background: #fff; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: "Sora", sans-serif; font-weight: 800; color: var(--indigo); font-size: 1.02rem; }
.brand img { width: 42px; height: auto; border-radius: 6px; }
.brand small { display: block; font-weight: 600; font-size: 0.64rem; letter-spacing: 0.12em; color: var(--heat); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.05rem; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] { color: var(--heat); }
.nav-cta { display: inline-flex; }
/* Nav CTA is an <a.btn>, keep variant colors; .nav-links a:hover would turn label red on red. */
.nav-links .btn--primary,
.nav-links .btn--primary:hover { color: #fff; }
/* Desktop links: ~44px tap height; brand block is taller, so the 72px bar holds. */
@media (min-width: 861px) {
  .nav-links a:not(.btn) { padding-block: 0.65rem; }
}
.nav-toggle { display: none; background: none; border: 0; padding: 0.65rem 0.7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo); margin: 5px 0; border-radius: 2px; transition: transform 0.22s var(--soft), opacity 0.18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Services dropdown */
.nav-dd { position: relative; }
.nav-dd-top { display: inline-flex; align-items: center; gap: 0.2rem; }
.nav-dd-top--active { color: var(--heat); }
.nav-caret { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--soft); }
.nav-dd:hover .nav-caret, .nav-dd:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: 100%; left: 0; min-width: 212px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 0.4rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s var(--soft), transform 0.18s var(--soft), visibility 0.18s; z-index: 60; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(6px); }
.nav-dd-menu a { display: flex; align-items: center; min-height: 44px; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.92rem; white-space: nowrap; }
.nav-dd-menu a:hover, .nav-dd-menu a[aria-current="page"] { background: var(--cream); color: var(--heat); }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-2) 58%, #2f3a86 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 320px at 88% -15%, rgba(226, 59, 62, 0.42), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; padding-block: clamp(56px, 10vw, 116px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; align-items: center; }
/* Home hero: full-bleed photo banner, text left + trust cards right */
.hero-grid-section {
  min-height: clamp(520px, 78vh, 860px);
  background:
    linear-gradient(rgba(15, 23, 60, 0.72), rgba(15, 23, 60, 0.72)),
    url("/clients/kemptville-heating/assets/hero.jpg") center / cover no-repeat;
}
.hero-grid-section::after { content: none; }
/* Don't let .wrap become the positioning context: cards anchor to the section grid */
.hero-grid-section .wrap {
  position: static;
  display: flex;
  align-items: stretch;
  min-height: inherit;
  z-index: 1;
}
.hero-grid-section .hero-grid {
  width: 100%;
  min-height: calc(clamp(520px, 78vh, 860px) - 2 * clamp(56px, 10vw, 116px));
  align-items: stretch;
}
@media (min-width: 861px) {
  /* One flat, even tint over the full photo: no visible gradient sweep.
     0.76 is the calm point: photo clearly reads, text never fights the van lettering. */
  .hero-grid-section {
    background:
      linear-gradient(rgba(15, 23, 60, 0.76), rgba(15, 23, 60, 0.76)),
      url("/clients/kemptville-heating/assets/hero.jpg") center right / cover no-repeat;
  }
  .hero-grid-section .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.6rem;
  }
  .hero-grid-section .hero-grid > :first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-grid-section .hero-photo-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #cdd6ea; font-size: 1.15rem; max-width: 52ch; }
.hero .eyebrow { color: #7fcdec; }
/* Flat light tint means text can sit over the white van: shadows carry the contrast. */
.hero-grid-section h1,
.hero-grid-section p,
.hero-grid-section .eyebrow {
  text-shadow: 0 2px 16px rgba(13, 17, 38, 0.6), 0 1px 3px rgba(13, 17, 38, 0.55);
}
.hero-grid-section p { color: #dde4f2; }
.hero-grid-section .badge {
  background: rgba(13, 17, 38, 0.45);
  border-color: rgba(255, 255, 255, 0.28);
}
/* Photo-backed hero: set --hero-bg on the section element */
.hero--photo { background: linear-gradient(135deg, rgba(15,23,60,0.88) 0%, rgba(26,36,90,0.78) 60%, rgba(47,58,134,0.72) 100%), var(--hero-bg) center/cover no-repeat; }
.hero--photo::after { opacity: 0.5; }
/* Mosaic hero variant */
.hero--mosaic { background: var(--indigo); }
.hero-mosaic-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.hero-mosaic-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; display: block; }
.hero--mosaic::after { background: linear-gradient(135deg, rgba(15,23,60,0.82) 0%, rgba(15,23,60,0.55) 100%); }
@media (max-width: 600px) {
  .hero-mosaic-bg { grid-template-columns: repeat(3, 1fr); }
  .hero-mosaic-bg img:nth-child(n+4) { display: none; }
}
.hero-photo { border-radius: var(--r); box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34); width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; }
.hero-photo-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-float-row { display: flex; gap: 0.75rem; }
.hero-float-card { background: #fff; border-radius: 12px; padding: 0.8rem 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.11); display: flex; flex-direction: column; gap: 0.55rem; flex: 1; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow 0.18s; }
.hero-float-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.17); }
.hfc-top { display: flex; align-items: center; gap: 0.5rem; }
.hfc-glogo { width: 18px; height: 18px; flex: 0 0 auto; }
.hfc-pin { width: 18px; height: 18px; flex: 0 0 auto; }
.hfc-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hfc-rating { display: flex; align-items: center; gap: 0.6rem; }
.hfc-score { font-family: "Sora", sans-serif; font-size: 1.55rem; font-weight: 700; color: var(--indigo); line-height: 1; }
.hero-float-stars { color: #f5a623; font-size: 0.78rem; letter-spacing: 1.5px; line-height: 1; }
.hfc-count { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.hero-float-card--maps .hfc-address { display: flex; flex-direction: column; gap: 0.05rem; }
.hero-float-card--maps .hfc-address strong { font-family: "Sora", sans-serif; font-size: 0.82rem; color: var(--indigo); }
.hero-float-card--maps .hfc-address span { font-size: 0.75rem; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.3rem 0; }
.badge { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.3rem; align-items: center; }
.hero-cta .btn { margin: 0; flex: none; }
/* Mobile-only hero rating chip (desktop keeps the float cards in the right column) */
.hero-rating-mob { display: none; }
@media (max-width: 860px) {
  .hero-rating-mob { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; min-height: 44px; margin-top: 1rem; padding: 0.5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.11); color: var(--ink); font-size: 0.82rem; font-weight: 600; }
  .hero-rating-mob strong { font-family: "Sora", sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--indigo); line-height: 1; }
  .hero-rating-mob .hrm-count { color: var(--muted); }
}
/* Dual-CTA rows in sections (cta band, ink band, inline paragraphs) */
.cta p:has(.btn),
.section--ink p:has(.btn),
p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cta p:has(.btn),
.section--ink p:has(.btn) { justify-content: center; }
p:has(> .btn) .btn { margin: 0; }

/* Trust bar */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.7rem; text-align: center; }
.trust .stat strong { display: block; font-family: "Sora", sans-serif; font-size: 1.7rem; color: var(--indigo); font-weight: 800; }
.trust .stat span { color: var(--muted); font-size: 0.85rem; }

/* Grids + cards */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); transition: transform 0.18s var(--soft), box-shadow 0.18s var(--soft); }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(27, 33, 80, 0.14); }
.card .ico { width: 34px; height: 34px; color: var(--heat); margin-bottom: 0.7rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--muted); margin: 0 0 0.4rem; font-size: 0.96rem; }
.card p:last-child { margin-bottom: 0; }
.card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin-bottom: 0.9rem; }
.finance { color: var(--heat-2) !important; font-weight: 600; font-size: 0.9rem !important; }
.finance strong { color: var(--indigo); }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--heat); color: #fff; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.8rem; }
.plan { text-align: center; }
.plan-name { font-family: "Sora", sans-serif; font-weight: 800; color: var(--indigo); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.plan-price { color: var(--muted); margin: 0 0 0.3rem; }
.plan-price strong { font-family: "Sora", sans-serif; font-size: 2.1rem; color: var(--indigo); font-weight: 800; }
.plan-cover { color: var(--heat-2); font-weight: 700; margin-bottom: 1.1rem; }
.plan .btn { width: 100%; justify-content: center; }
.plan--featured { border-color: var(--heat); box-shadow: 0 22px 48px rgba(226, 59, 62, 0.2); position: relative; }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--heat); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.32rem 0.95rem; border-radius: 999px; white-space: nowrap; }
/* Sticky mobile call bar (bottom-left; .to-top keeps the bottom-right corner) */
.mob-call { display: none; }
@media (max-width: 860px) {
  .mob-call {
    position: fixed;
    left: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background: var(--indigo);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(27, 33, 80, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s var(--soft), transform 0.22s var(--soft), visibility 0.22s, background 0.18s;
  }
  .mob-call.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .mob-call.show:hover { background: var(--indigo-2); }
  .mob-call:focus-visible { outline-color: var(--focus-on-dark); }
  .mob-call svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
  /* While the bar shows, pad the footer so it never covers the last link. */
  body.mob-call-pad .footer { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* Back-to-top */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; background: var(--indigo); color: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(27, 33, 80, 0.34); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.22s var(--soft), transform 0.22s var(--soft), visibility 0.22s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--heat); }
.ticks { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-right: 2px solid var(--heat); border-bottom: 2px solid var(--heat); transform: rotate(45deg); }

/* Testimonials */
/* FAQ accordion */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.7rem; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { padding: 1.1rem 1.3rem; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--indigo); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--heat); font-weight: 400; flex: 0 0 auto; transition: transform 0.22s var(--soft); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover, .faq[open] summary { color: var(--heat); }
.faq > p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }
.faq > p a { color: var(--heat-2); text-decoration: underline; }

.quote { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--heat); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); }
.quote p { font-style: italic; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 700; color: var(--indigo); font-size: 0.9rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(10,15,30,0.88); padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.22s var(--soft); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 90dvh; border-radius: 8px; box-shadow: 0 8px 48px rgba(0,0,0,0.6); object-fit: contain; display: block; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.gallery img { cursor: zoom-in; }

/* Google reviews */
.greviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; justify-content: center; margin: 0.4rem 0 1.8rem; }
.gbadge { display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem; box-shadow: var(--shadow); font-weight: 600; color: var(--ink); }
.gbadge svg { width: 22px; height: 22px; }
.gstars { display: inline-flex; gap: 2px; }
.gstars svg { width: 17px; height: 17px; fill: #fbbc05; }
.grev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); transition: transform 0.18s var(--soft), box-shadow 0.18s var(--soft); }
.grev-card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(27, 33, 80, 0.14); }
.grev-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.grev-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: "Sora", sans-serif; flex: 0 0 auto; }
.grev-name { font-weight: 700; color: var(--indigo); font-size: 0.95rem; line-height: 1.2; }
.grev-meta { font-size: 0.76rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; margin-top: 1px; }
.grev-meta svg { width: 13px; height: 13px; }
.grev-card p { color: var(--ink); margin: 0.5rem 0 0; font-size: 0.95rem; }

/* Split (about / contact) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; align-items: start; }
.split > * { min-width: 0; }
/* Desktop zigzag: markup stays text-then-photo; flip class moves image left */
@media (min-width: 861px) {
  .split--flip > img { order: -1; }
}
.info-card { background: var(--indigo); color: #fff; border-radius: var(--r); padding: 1.8rem; }
.info-card h3 { color: #fff; }
.info-row { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: #9fc0e6; flex: 0 0 84px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-row a, .info-row span { color: #fff; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; width: 100%; box-shadow: var(--shadow); transition: transform 0.18s var(--soft); }
.gallery img:hover { transform: scale(1.02); }
.gallery-group { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.gallery-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.gallery-group h3 { color: var(--indigo); margin-bottom: 0.4rem; }
.gallery-group > p { margin-bottom: 1rem; }

/* Form */
.form { display: grid; gap: 0; width: 100%; max-width: 100%; }
.field { width: 100%; max-width: 100%; min-width: 0; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 0.7rem; background: #fff; color: var(--ink); }
.field:focus-visible { outline: 2px solid var(--heat); outline-offset: 1px; }
/* Inline confirmation under the submit button after the mailto handoff */
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }

/* Map */
.mapwrap { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.mapwrap--wide { aspect-ratio: 21 / 9; }
.mapwrap iframe { width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--heat) 0%, var(--heat-2) 100%); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.92); max-width: 54ch; margin-inline: auto; }

/* Prose (legal) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }

/* Footer */
.footer { background: var(--indigo); color: #b9c4e0; padding: 3rem 0 2rem; }
.footer a { color: #dce4f5; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: "Sora", sans-serif; font-size: 0.95rem; margin: 0 0 0.8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.45rem; }
/* Column links: taller hit boxes without changing the visual rhythm much. */
.footer ul a { display: inline-block; padding-block: 0.35rem; }
.footer-badges { display: flex; gap: 0.8rem; margin-top: 0.9rem; align-items: center; }
.badge-chip { height: 64px; width: auto; background: #fff; border-radius: 10px; padding: 7px; }
.footer .legal { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between; }

/* Responsive, kills the mobile leak + tidies the phone chrome */
@media (max-width: 860px) {
  /* Drawer drops directly below the sticky nav (absolute to .nav), regardless of
     scroll position, and fades in cleanly instead of a full-screen slide. */
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.4rem 20px 1rem; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 0.22s var(--soft), opacity 0.22s var(--soft); }
  .nav-links[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 0.1rem; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 0.8rem; justify-content: center; border-bottom: 0; }
  /* Dropdown expands inline inside the mobile drawer */
  .nav-dd { width: 100%; }
  .nav-dd-top { justify-content: space-between; }
  .nav-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 0.2rem 0 0.2rem 1.4rem; margin: 0 0 0 0.4rem; min-width: 0; }
  .nav-dd-menu a { padding: 0.7rem 0.1rem; border-bottom: 0; font-size: 0.92rem; color: var(--muted); }
  .nav-caret { display: none; }
  .nav-toggle { display: block; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .grid-2, .grid-3, .split, .hero-grid { grid-template-columns: 1fr; }
  .split { gap: 1.6rem; }
  /* Home hero: hide float cards on small screens (photo is already full-bleed bg) */
  .hero-grid-section .hero-photo-wrap { display: none; }
  .hero-grid-section { background-position: center; }
  /* Contact: phone/email card above the form on mobile */
  .split--contact .info-card { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 600px) {
  .info-row { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
  .info-row .k { flex: none; }
  .info-card { padding: 1.25rem; }
  .form .btn--primary { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta p:has(.btn),
  .section--ink p:has(.btn),
  p:has(> .btn) { flex-direction: column; align-items: stretch; }
  p:has(> .btn) .btn { width: 100%; justify-content: center; }
  .mapwrap--wide { aspect-ratio: 4 / 3; }
  .topbar { font-size: 0.8rem; }
  .topbar .wrap {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-block: 0.48rem;
    justify-content: center;
  }
  .topbar-msg { display: none; }
  .topbar-msg-phone {
    display: inline;
    color: #b8c5de;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .topbar-call {
    flex-shrink: 0;
    font-size: 0.84rem;
  }
  .topbar-call::before {
    content: "· Call ";
    font-weight: 600;
    color: #cdd6ea;
  }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
