/* =====================================================================
   Casco Bay Plumbing — design system
   DNA: clean field-service, bright centered hero, soft sky panels,
   rounded pill badges, copper droplet/check iconography, ripple dividers.
   Palette: trust teal, copper accent, deep ink, soft sky, clean white.
   Type: Plus Jakarta Sans (display + body, weight contrast).
   ===================================================================== */

:root {
  --teal:      #0e7490;
  --teal-700:  #0b5a70;
  --teal-300:  #5fb6c9;
  --copper:    #c2703d;
  --copper-700:#a85a2c;
  --ink:       #0f2a33;
  --ink-soft:  #3a5560;
  --sky:       #e8f4f6;
  --sky-deep:  #d7ecf0;
  --white:     #ffffff;
  --line:      #dbe9ec;
  --shadow-sm: 0 2px 10px rgba(15,42,51,.06);
  --shadow-md: 0 12px 34px rgba(15,42,51,.10);
  --shadow-lg: 0 26px 60px rgba(15,42,51,.16);
  --r-pill: 999px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2,.7,.3,1);
  --ff: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
h1,h2,h3,h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--teal); color: #fff; padding: 10px 16px;
  border-radius: var(--r-pill); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); padding: 6px 15px; border-radius: var(--r-pill);
  background: var(--sky); border: 1px solid var(--sky-deep);
}
.eyebrow.on-dark { color: #cdeef4; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.eyebrow .e-drop { width: 12px; height: 12px; fill: var(--copper); }

.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.6; }

.sec-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 14px; }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.sky { background: var(--sky); }
.section.tint { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }

/* ripple divider — recurring drop-water motif */
.ripple {
  display: block; width: 100%; height: 38px; line-height: 0;
}
.ripple svg { width: 100%; height: 100%; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s;
  text-align: center; line-height: 1;
}
.btn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(14,116,144,.32); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(14,116,144,.4); }
.btn-copper { background: var(--copper); color: #fff; box-shadow: 0 10px 24px rgba(194,112,61,.32); }
.btn-copper:hover { background: var(--copper-700); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(194,112,61,.42); }
.btn-ghost { background: #fff; color: var(--teal); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.btn-line-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-line-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* =====================================================================
   UTILITY BAR + HEADER
   ===================================================================== */
.util { background: var(--ink); color: #cfe3e8; font-size: .85rem; }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 40px; }
.util-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.util-tag .drop { width: 14px; height: 16px; fill: var(--teal-300); }
.util-phone { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.util-phone:hover { color: #cdeef4; }
.util-phone .ic { width: 15px; height: 15px; fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-head {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-head.scrolled { box-shadow: var(--shadow-md); }
.head-in { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark path:first-child { fill: var(--teal); }
.brand-check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand-sub { font-weight: 600; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a {
  color: var(--ink-soft); font-weight: 600; font-size: .96rem; padding: 9px 14px;
  border-radius: var(--r-pill); transition: color .18s, background .18s;
}
.nav > a:hover { color: var(--teal); background: var(--sky); }
.nav > a.active { color: var(--teal); }
.nav .nav-cta {
  margin-left: 8px; background: var(--copper); color: #fff;
  box-shadow: 0 6px 16px rgba(194,112,61,.3);
}
.nav .nav-cta:hover { background: var(--copper-700); color: #fff; }

.head-call { display: none; }
.menu-btn { display: none; }

/* =====================================================================
   HERO — bright, white, centered, floating teal booking card
   ===================================================================== */
.hero {
  position: relative; text-align: center; padding: clamp(54px, 7vw, 86px) 0 0;
  background: linear-gradient(180deg, var(--sky) 0%, #fff 70%);
  overflow: hidden;
}
.hero-in { position: relative; max-width: 880px; margin-inline: auto; padding-bottom: 30px; }
.hero h1 { margin: 20px 0 0; }
.hero .hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--ink-soft); font-weight: 500; margin: 20px auto 0; max-width: 720px; }
.hero .hero-body { color: var(--ink-soft); max-width: 640px; margin: 18px auto 0; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* hero photo + floating card */
.hero-photo {
  position: relative; margin-top: 48px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  aspect-ratio: 16 / 7; min-height: 280px;
  background: var(--sky-deep) center/cover no-repeat; box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,42,51,.04), rgba(15,42,51,.18)); }

.hero-card {
  position: relative; z-index: 3;
  margin: -64px auto 0; max-width: 920px;
  background: var(--teal); color: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px 30px;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
}
.hero-card .hc-left b { display: block; font-size: 1.18rem; font-weight: 800; }
.hero-card .hc-left span { color: #cdeef4; font-size: .95rem; }
.hero-card .hc-phone {
  display: flex; flex-direction: column; align-items: flex-start; color: #fff;
  padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22);
}
.hero-card .hc-phone small { color: #cdeef4; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-card .hc-phone b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.hero-card .btn { white-space: nowrap; }

/* =====================================================================
   TRUST STRIP — rounded badges
   ===================================================================== */
.trust { padding: 56px 0 18px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-card .t-ic {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: var(--r-pill);
  background: var(--sky); display: grid; place-items: center;
}
.trust-card .t-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-card b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.trust-card span { color: var(--ink-soft); font-size: .92rem; }

/* =====================================================================
   SERVICES — rounded badge cards
   ===================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .25s, border-color .2s;
  display: flex; flex-direction: column;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal-300); }
.svc-media { aspect-ratio: 4/3; background: var(--sky-deep) center/cover no-repeat; position: relative; }
.svc-pill {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.95); color: var(--teal); font-weight: 700; font-size: .78rem;
  padding: 6px 13px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.svc-pill svg { width: 13px; height: 14px; fill: var(--copper); }
.svc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: 9px; }
.svc-body p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.svc-link {
  margin-top: 16px; font-weight: 700; color: var(--copper); display: inline-flex; align-items: center; gap: 7px;
}
.svc-link span { transition: transform .2s; }
.svc:hover .svc-link span { transform: translateX(4px); }

/* compact services without images (alt layout) */
.svc-flat {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm); align-items: start;
  scroll-margin-top: 110px;
}
.svc-flat .sf-ic {
  width: 54px; height: 54px; border-radius: var(--r-md); flex: none;
  background: var(--sky); display: grid; place-items: center;
}
.svc-flat .sf-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-flat h3 { margin-bottom: 8px; }
.svc-flat p { color: var(--ink-soft); }

/* =====================================================================
   WHY — list with droplet check icons
   ===================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.why-ic {
  width: 50px; height: 50px; border-radius: var(--r-pill); flex: none;
  background: linear-gradient(150deg, var(--copper), var(--copper-700));
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(194,112,61,.28);
}
.why-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { margin-bottom: 7px; }
.why-item p { color: var(--ink-soft); font-size: .97rem; }

/* =====================================================================
   PROCESS — ripple panel, numbered steps
   ===================================================================== */
.process { position: relative; color: #fff; overflow: hidden; }
.process .process-bg {
  position: absolute; inset: 0; background: var(--teal) center/cover no-repeat;
}
.process .process-veil { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11,90,112,.92), rgba(14,116,144,.86)); }
.process .wrap { position: relative; z-index: 2; }
.process .sec-head h2, .process .sec-head .eyebrow { color: #fff; }
.process .sec-head .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: 28px 24px; backdrop-filter: blur(4px);
  position: relative;
}
.step-n {
  width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--copper);
  color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.step h3 { color: #fff; margin-bottom: 8px; }
.step p { color: #d4ecf2; font-size: .95rem; }

/* =====================================================================
   ABOUT / STORY
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-badge {
  position: absolute; right: -16px; bottom: -16px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 16px 20px; text-align: center; border: 1px solid var(--line);
}
.about-badge b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--copper); line-height: 1; }
.about-badge span { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.about-body .eyebrow { margin-bottom: 16px; }
.about-body h2 { margin-bottom: 18px; }
.about-body p { color: var(--ink-soft); }
.about-body .btn { margin-top: 22px; }

/* =====================================================================
   REVIEWS
   ===================================================================== */
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rev {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 30px; box-shadow: var(--shadow-sm); margin: 0; position: relative;
}
.rev .stars { color: var(--copper); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.rev blockquote { margin: 0 0 16px; font-size: 1.04rem; color: var(--ink); line-height: 1.6; }
.rev figcaption { font-weight: 700; color: var(--teal); }
.rev-note { text-align: center; color: var(--ink-soft); font-size: .88rem; margin-top: 26px; }

/* =====================================================================
   EMERGENCY (signature) — calm-but-urgent teal panel
   ===================================================================== */
.em-hero {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
}
.em-hero .em-bg { position: absolute; inset: 0; background: var(--ink) center/cover no-repeat; opacity: .42; }
.em-hero .em-veil { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(15,42,51,.94) 40%, rgba(15,42,51,.6)); }
.em-hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.em-hero .eyebrow { background: rgba(194,112,61,.2); color: #f4c9a8; border-color: rgba(194,112,61,.35); }
.em-hero h1, .em-hero h2 { color: #fff; }
.em-hero p { color: #cfe3e8; font-size: 1.12rem; margin-top: 18px; }
.em-hero .em-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.em-call-big {
  display: inline-flex; align-items: center; gap: 14px; background: var(--copper); color: #fff;
  padding: 16px 30px; border-radius: var(--r-pill); font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 14px 30px rgba(194,112,61,.4);
}
.em-call-big:hover { background: var(--copper-700); color: #fff; }
.em-call-big .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.em-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.em-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.em-card .ec-ic {
  width: 50px; height: 50px; border-radius: var(--r-pill); background: var(--sky);
  display: grid; place-items: center; margin-bottom: 16px;
}
.em-card .ec-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.em-card h3 { margin-bottom: 7px; }
.em-card p { color: var(--ink-soft); font-size: .95rem; }

/* =====================================================================
   FAQ — details/summary
   ===================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-q {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: border-color .2s;
}
.faq-q[open] { border-color: var(--teal-300); }
.faq-q summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.06rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q .faq-i { width: 26px; height: 26px; flex: none; position: relative; }
.faq-q .faq-i::before, .faq-q .faq-i::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-q .faq-i::before { width: 14px; height: 2.5px; }
.faq-q .faq-i::after { width: 2.5px; height: 14px; transition: transform .25s; }
.faq-q[open] .faq-i::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-q > p { padding: 0 24px 22px; margin: 0; color: var(--ink-soft); }

/* =====================================================================
   FINAL CTA band
   ===================================================================== */
.cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(60px, 9vw, 110px) 0;
}
.cta .cta-bg { position: absolute; inset: 0; background: var(--teal) center/cover no-repeat; }
.cta .cta-veil { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11,90,112,.9), rgba(14,116,144,.82)); }
.cta .wrap { position: relative; z-index: 2; max-width: 740px; }
.cta .eyebrow { background: rgba(255,255,255,.12); color: #cdeef4; border-color: rgba(255,255,255,.2); margin-bottom: 18px; }
.cta h2 { color: #fff; }
.cta .cta-sub { color: #d4ecf2; font-size: 1.14rem; margin-top: 16px; }
.cta .cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* =====================================================================
   PAGE HERO (inner pages)
   ===================================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); text-align: center;
  padding: clamp(46px, 6vw, 76px) 0 clamp(40px, 5vw, 60px);
}
.page-hero .ph-in { max-width: 760px; margin-inline: auto; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { margin: 0; }
.page-hero p { color: var(--ink-soft); font-size: 1.14rem; margin-top: 18px; }
.page-hero .hero-btns { justify-content: center; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* service-area chips */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.area-chips span {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: .92rem; box-shadow: var(--shadow-sm);
}

/* =====================================================================
   WORK / GALLERY
   ===================================================================== */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal {
  margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  background: var(--sky-deep); position: relative; aspect-ratio: 4/3;
}
.gal.tall { grid-row: span 2; aspect-ratio: 4/6; }
.gal.wide { grid-column: span 2; aspect-ratio: 8/3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gal:hover img { transform: scale(1.05); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(15,42,51,.78), transparent);
  color: #fff; font-weight: 700; font-size: .9rem;
}
.gal-note { text-align: center; color: var(--ink-soft); margin-top: 24px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(15,42,51,.92);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox .lb-img { max-width: min(1000px, 92vw); max-height: 84vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lb-close, .lb-btn {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: var(--r-pill); font-size: 1.6rem; display: grid; place-items: center;
  transition: background .2s;
}
.lb-close:hover, .lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cdeef4; font-weight: 600; }

/* =====================================================================
   CONTACT FORM
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.contact-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.contact-h { margin-bottom: 8px; }
.contact-intro { color: var(--ink-soft); margin-bottom: 26px; }
.req { color: var(--copper); }

.c-form .field { display: block; margin-bottom: 18px; border: 0; padding: 0; }
.field-l { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.c-form input, .c-form select, .c-form textarea {
  width: 100%; font-family: var(--ff); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fbfdfe;
  transition: border-color .18s, box-shadow .18s;
}
.c-form input:focus, .c-form select:focus, .c-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,116,144,.12); background: #fff;
}
.c-form textarea { resize: vertical; min-height: 120px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.has-err input, .field.has-err select { border-color: #d9534f; }
.field-err { display: block; color: #c0392b; font-size: .85rem; margin-top: 6px; font-weight: 600; }
fieldset.field legend { font-weight: 700; font-size: .92rem; margin-bottom: 10px; padding: 0; color: var(--ink); }
.field-hint { font-weight: 500; color: var(--ink-soft); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill, .check-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  font-weight: 600; font-size: .94rem; color: var(--ink-soft); background: #fff; transition: all .18s;
}
.radio-pill input, .check-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill.on, .check-pill.on, .radio-pill:has(:checked), .check-pill:has(:checked) {
  border-color: var(--teal); color: var(--teal); background: var(--sky);
}
.radio-pill:hover, .check-pill:hover { border-color: var(--teal-300); }
.c-note { color: var(--ink-soft); font-size: .86rem; text-align: center; margin-top: 14px; }

/* success panel */
.form-success { text-align: center; padding: 20px 0; }
.fs-check {
  width: 70px; height: 70px; border-radius: var(--r-pill); background: var(--sky);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.fs-check svg { width: 36px; height: 36px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success h2 { margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 12px; }
.fs-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* contact sidebar */
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.cside-card { background: var(--sky); border: 1px solid var(--sky-deep); border-radius: var(--r-lg); padding: 24px; }
.cside-card h3 { margin-bottom: 10px; }
.cside-card p { color: var(--ink-soft); font-size: .95rem; }
.cside-phone { display: block; font-size: 1.7rem; font-weight: 800; color: var(--teal); margin-bottom: 4px; }
.cside-247 { background: var(--teal); color: #fff; }
.cside-247 h3, .cside-247 p { color: #fff; }
.cside-247 .cside-phone { color: #fff; }
.cside-247 small { color: #cdeef4; }
.cside-guar { display: flex; gap: 14px; align-items: center; padding: 4px 4px; }
.cside-guar-ic { width: 46px; height: 46px; flex: none; border-radius: var(--r-pill); background: var(--copper); display: grid; place-items: center; }
.cside-guar-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cside-guar b { display: block; color: var(--ink); }
.cside-guar span { color: var(--ink-soft); font-size: .9rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { background: var(--ink); color: #b9d2da; position: relative; padding: 70px 0 28px; }
.foot-ripple {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--copper), var(--teal));
}
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot .brand-foot .brand-name { color: #fff; }
.foot .brand-foot .brand-mark path:first-child { fill: var(--teal-300); }
.foot-tag { margin: 18px 0 20px; font-size: .95rem; max-width: 320px; }
.foot-247 {
  display: inline-flex; align-items: center; gap: 12px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 12px 18px; border-radius: var(--r-md);
}
.foot-247 .ic { width: 22px; height: 22px; fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.foot-247 span { display: flex; flex-direction: column; line-height: 1.3; }
.foot-247 b { font-size: .78rem; color: #9fc3cd; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.foot-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.foot-nav { display: flex; flex-direction: column; gap: 9px; }
.foot-nav a { color: #b9d2da; font-size: .94rem; transition: color .15s; }
.foot-nav a:hover { color: #fff; }
.foot-contact address { font-style: normal; }
.foot-contact p { margin-bottom: 12px; font-size: .92rem; }
.foot-contact b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.foot-em b { color: var(--teal-300); }
.foot-area {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline;
}
.foot-area-l { color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.foot-area-towns { color: #9fc3cd; font-size: .92rem; }
.foot-bottom {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .85rem; color: #8fb4bf;
}
.foot-credit { color: var(--copper); font-weight: 600; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .svc-grid, .em-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 520px; margin-inline: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .head-call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--sky); margin-left: auto; }
  .head-call .ic { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px;
    background: var(--teal); border: 0; border-radius: var(--r-sm); cursor: pointer; padding: 0 12px;
  }
  .menu-btn span { display: block; height: 2.5px; width: 100%; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
  .site-head.open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-head.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-head.open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-head.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    padding: 16px 20px 22px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
  }
  .site-head.open .nav > a { padding: 13px 16px; border-radius: var(--r-sm); }
  .site-head.open .nav > a:hover { background: var(--sky); }
  .nav .nav-cta { margin-left: 0; text-align: center; }
  .hero-card { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .hero-card .hc-phone { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; align-items: center; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .em-grid, .why-grid, .rev-grid, .gal-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .gal.tall, .gal.wide { grid-row: auto; grid-column: auto; aspect-ratio: 4/3; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { border-radius: var(--r-md) var(--r-md) 0 0; aspect-ratio: 3/2; }
  .about-badge { right: 12px; }
  .hero-btns .btn, .cta-btns .btn, .em-btns .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
