/* ==========================================================================
   RGM Pool Service — Crisp Modern Aqua
   Design system + homepage styles
   ========================================================================== */

:root {
  /* Brand */
  --aqua: #14b8c4;
  --aqua-600: #0e97a6;
  --aqua-700: #0b7a86;
  --blue: #2563eb;
  --aqua-tint: #e6f7f9;

  /* Neutrals */
  --ink: #0f172a;
  --slate: #1e293b;
  --muted: #000000;
  --line: #eae4db;
  --line-soft: #f1ece4;
  --bg: #fbf9f5;
  --bg-soft: #f4efe8;
  --bg-softer: #f9f6f0;

  /* Effects */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 18px 44px rgba(15, 23, 42, .09);
  --shadow-aqua: 0 10px 24px rgba(20, 184, 196, .32);
  --gradient-aqua: linear-gradient(135deg, var(--aqua), var(--blue));

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 74px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }

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

section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 110px); }

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--aqua); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.section-head h2 { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 15px 24px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--aqua); color: #fff; box-shadow: var(--shadow-aqua); }
.btn-primary:hover { background: var(--aqua-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--aqua); color: var(--aqua-600); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(15,23,42,.06); }

.brand { display: inline-flex; align-items: center; }
.brand .logo-img { height: 54px; width: auto; display: block; }
/* Over the hero: show white lockup. When scrolled (light header): show navy lockup. */
.brand .logo-dark { display: none; }
.site-header.scrolled .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; color: rgba(255,255,255,.92); transition: background .18s ease, color .18s ease; }
.scrolled .nav a { color: var(--slate); }
.nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.scrolled .nav a:hover { background: var(--bg-soft); color: var(--aqua-600); }

.nav-services { position: relative; }
.nav-services-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; border: 0; background: transparent; cursor: pointer;
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; line-height: inherit;
  color: rgba(255,255,255,.92);
  transition: background .18s ease, color .18s ease;
}
.scrolled .nav-services-btn { color: var(--slate); }
.nav-services-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.scrolled .nav-services-btn:hover { background: var(--bg-soft); color: var(--aqua-600); }
.nav-services-btn .chevron { width: 14px; height: 14px; transition: transform .18s ease; }
.nav-submenu {
  position: absolute; top: 100%; left: 0; z-index: 120;
  min-width: 250px; padding-top: 8px;
  display: none;
}
.nav-submenu-panel {
  display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px;
}
.nav-submenu a {
  display: block; padding: 11px 14px; border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: 15px; background: transparent;
}
.site-header .nav-submenu a,
.site-header.scrolled .nav-submenu a,
.site-header.solid .nav-submenu a { color: var(--ink); }
.site-header .nav-submenu a:hover,
.site-header.scrolled .nav-submenu a:hover,
.site-header.solid .nav-submenu a:hover { background: var(--bg-soft); color: var(--aqua-600); }
.site-header .nav-submenu a[aria-current="page"] { color: var(--aqua-700); }

@media (min-width: 1025px) {
  .nav-services:hover .nav-submenu,
  .nav-services:focus-within .nav-submenu,
  .nav-services.is-open .nav-submenu { display: block; }
  .nav-services:hover .chevron,
  .nav-services:focus-within .chevron,
  .nav-services.is-open .chevron { transform: rotate(180deg); }
}

.site-header.solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(15,23,42,.06);
}
.site-header.solid .brand .logo-light { display: none; }
.site-header.solid .brand .logo-dark { display: block; }
.site-header.solid .nav a,
.site-header.solid .nav-services-btn,
.site-header.solid .header-phone { color: var(--ink); }
.site-header.solid .nav-services-btn:hover { background: var(--bg-soft); color: var(--aqua-600); }
.site-header.solid .nav a:hover { background: var(--bg-soft); color: var(--aqua-600); }
.site-header.solid .nav-toggle { background: var(--bg-soft); color: var(--ink); }

body.page-inner { padding-top: var(--header-h); }
.page-hero { background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.page-hero .lead { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 640px; }
.page-hero .service-detail-grid .lead { max-width: none; }
.page-hero .btn { margin-top: 28px; }
.service-detail { background: var(--bg); }
.service-copy h2 { margin-top: 56px; }
.service-copy h2:first-child { margin-top: 0; }
.service-copy p { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 900px; }
.service-copy .service-included { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-top: 22px; }
.service-copy a { color: var(--aqua-700); font-weight: 700; }
.service-copy a:hover { color: var(--aqua-600); }
.service-detail-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.service-detail-grid img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.service-included { margin-top: 18px; display: grid; gap: 12px; }
.service-included li { position: relative; padding-left: 22px; color: var(--slate); font-size: 16px; }
.service-included li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--aqua);
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; transition: color .25s ease; }
.scrolled .header-phone { color: var(--ink); }
.header-phone svg { width: 16px; height: 16px; color: var(--aqua); }
.live-dot {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
.live-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #fff;
  animation: live-dot-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes live-dot-ping {
  0% { transform: scale(1); opacity: .8; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: rgba(255,255,255,.14);
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: #fff;
}
.scrolled .nav-toggle { background: var(--bg-soft); color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 30, 45, .82) 0%, rgba(9, 30, 45, .55) 40%, rgba(9, 30, 45, .12) 72%, rgba(9, 30, 45, 0) 100%),
    linear-gradient(0deg, rgba(9, 30, 45, .45), rgba(9, 30, 45, 0) 40%);
}
.hero .container { padding-top: var(--header-h); width: 100%; }
.hero-inner { max-width: 660px; padding-block: 60px; }
.hero .eyebrow { color: #a9eff6; }
.hero .eyebrow::before { background: #a9eff6; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 20px 0 20px; letter-spacing: -.035em; }
.hero h1 .accent { color: #a9eff6; }
.sparkle-word { position: relative; display: inline-block; }
.sparkle-word::after {
  content: "";
  position: absolute;
  top: .02em;
  right: -.2em;
  width: .16em;
  aspect-ratio: 1;
  background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(127, 230, 239, .9));
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.9); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 40px; }
.hero-trust .stars { color: #ffd15c; letter-spacing: 2px; font-size: 15px; }
.hero-trust .trust-item { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.hero-trust .trust-item svg { width: 18px; height: 18px; color: #7fe6ef; }
.hero-trust .divider { width: 1px; height: 26px; background: rgba(255,255,255,.28); }

/* Hero-embedded quote panel — shown only on wide screens; main.js relocates #quote-panel here */
.hero-form-slot { display: none; }
body.hero-has-form .hero-form-slot { display: block; justify-self: stretch; width: 100%; }
body.hero-has-form .hero .container {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(540px, 780px);
  gap: clamp(24px, 3vw, 56px); align-items: center;
}
body.hero-has-form .hero-inner { max-width: 620px; }
body.hero-has-form .hero-actions .btn-primary { display: none; }
/* Panel lives in the hero on wide screens, so hide the empty leftover contact section */
body.hero-has-form .contact { display: none; }

/* Combined card: contact details left, form right */
.hero-form-slot .contact-grid {
  grid-template-columns: minmax(220px, 0.88fr) minmax(280px, 1.2fr);
  gap: 0;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(4, 18, 30, .42);
  overflow: hidden;
  color: var(--ink);
}
.hero-form-slot .reveal { opacity: 1; transform: none; }

.hero-form-slot .contact-info {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 22px 24px 24px; background: var(--bg-soft);
  border-right: 1px solid var(--line);
}
.hero-form-slot .contact-info .eyebrow {
  margin-bottom: 10px;
  color: #1d4ed8;
}
.hero-form-slot .contact-info .eyebrow::before { background: #1d4ed8; }
.hero-form-slot .contact-info h2 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 0; }
.hero-form-slot .contact-info > p { display: none; }
.hero-form-slot .contact-list { margin-top: 18px; gap: 12px; }
.hero-form-slot .contact-list .ci {
  width: 40px; height: 40px; border-radius: 12px;
  background: #dbeafe; color: #1d4ed8;
}
.hero-form-slot .contact-list .ci svg { width: 18px; height: 18px; }
.hero-form-slot .contact-list .ct span { font-size: 12px; }
.hero-form-slot .contact-list .ct b { font-size: 14.5px; }

.hero-form-slot .contact-card {
  background: transparent; border: none; box-shadow: none; border-radius: 0;
  padding: 22px 24px 24px;
}
.hero-form-slot .contact-card h3 { font-size: 20px; }
.hero-form-slot .contact-card > p { margin-bottom: 14px; font-size: 13.5px; }
.hero-form-slot .field { margin-bottom: 12px; }
.hero-form-slot .field label { margin-bottom: 5px; }
.hero-form-slot .field input,
.hero-form-slot .field select,
.hero-form-slot .field textarea { padding: 11px 13px; }
.hero-form-slot .contact-card textarea { min-height: 72px; }
.hero-form-slot .form-row { gap: 12px; }

/* wave separator */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; color: var(--bg); }
.wave svg { width: 100%; height: 70px; display: block; }

/* ---------- Trust bar / stats ---------- */
.stats { background: var(--bg); padding-block: 44px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; background: var(--gradient-aqua); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-media { margin: -30px -28px 24px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; }
.service-card .learn { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--aqua-600); }
.service-card .learn svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-card:hover .learn svg { transform: translateX(4px); }

/* ---------- Why us / About ---------- */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.why-media { position: relative; }
.why-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.why-badge {
  position: absolute; right: -18px; bottom: -22px; background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-soft);
}
.why-badge .big { font-size: 30px; font-weight: 800; color: var(--aqua-600); line-height: 1; }
.why-badge .cap { font-size: 13px; font-weight: 600; color: var(--muted); }
.why-list { margin-top: 28px; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 14px; }
.why-list .check { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--aqua-tint); color: var(--aqua-600); display: grid; place-items: center; }
.why-list .check svg { width: 17px; height: 17px; }
.why-list h4 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.why-list p { color: var(--muted); font-size: 15px; }

/* ---------- Process ---------- */
.process { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow-sm); }
.step .step-num {
  width: 46px; height: 46px; border-radius: 13px; background: var(--gradient-aqua); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-aqua); margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 52px; }
.gallery-grid figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3/4; }
.gallery-grid figure.tall { grid-row: span 2; aspect-ratio: 4/6; }
.gallery-grid .gallery-open {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit;
}
.gallery-grid .gallery-open:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 16px; color: #fff; font-weight: 600; font-size: 14px; pointer-events: none;
  background: linear-gradient(0deg, rgba(9,30,45,.7), transparent); opacity: 0; transform: translateY(8px); transition: .25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  width: min(96vw, 1200px); max-width: 96vw; max-height: 92vh; margin: auto; padding: 0;
  border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(9, 30, 45, .86); }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; margin: auto; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(9, 30, 45, .72); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ---------- Testimonials ---------- */
.reviews { background: var(--bg-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 52px; align-items: start; justify-items: center; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .stars { color: #ffc531; letter-spacing: 2px; font-size: 16px; }
.review p { color: var(--muted); font-size: 15.5px; margin: 16px 0 22px; flex: 1; }
.review .who { display: flex; align-items: center; gap: 13px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-aqua); color: #fff; display: grid; place-items: center; font-weight: 800; }
.review .who b { display: block; font-size: 15px; }
.review .who span { font-size: 13px; color: var(--muted); }

.review.review--yelp {
  display: block;
  background: #fff;
  border: 0;
  box-shadow: none;
  width: 350px;
  max-width: 100%;
  margin-inline: auto;
  padding: 28px 0 0;
  overflow: hidden;
  border-radius: 8px;
}
.review-yelp-clip {
  display: block;
  overflow: hidden;
  width: 350px;
  max-width: 100%;
}
.review--yelp iframe {
  display: block;
  width: 350px !important;
  min-width: 350px !important;
  max-width: none !important;
  margin: -78px 0 0 !important;
  flex: none;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient-aqua); color: #fff; overflow: hidden; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.92); margin-top: 12px; max-width: 560px; font-size: 17px; }
.cta-band .cities-label {
  margin-top: 28px; max-width: none;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.service-cities {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding: 0;
}
.service-cities li {
  padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12);
  font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #fff;
}
.cta-band .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band .blob.b1 { width: 320px; height: 320px; right: -80px; top: -140px; }
.cta-band .blob.b2 { width: 200px; height: 200px; left: -60px; bottom: -120px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.contact-info .eyebrow { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 17px; max-width: 440px; }
.contact-list { margin-top: 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .ci { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--aqua-tint); color: var(--aqua-600); display: grid; place-items: center; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list .ct span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-list .ct b { font-size: 17px; }

.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-card h3 { margin-bottom: 6px; }
.contact-card > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(20,184,196,.14); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b42318; }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 600; color: #b42318; }
.field-error[hidden] { display: none; }
.grecaptcha-badge { visibility: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.contact-card .btn-primary { width: 100%; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b28; color: rgba(255,255,255,.72); padding-block: clamp(52px, 7vw, 76px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand .logo-img { height: 44px; }
.footer-about p { font-size: 15px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .18s ease, transform .18s ease; }
.footer-social a:hover { background: var(--aqua); transform: translateY(-2px); }
.footer-social svg,
.footer-social img { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color .18s ease; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-media { max-width: 560px; }
  .services-grid, .steps, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure.tall { grid-row: auto; aspect-ratio: 4/3; }
  .service-copy .service-included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header:not(.scrolled):not(.solid) { background: rgba(9,30,45,.55); backdrop-filter: blur(10px); }

  /* Mobile nav panel */
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); z-index: 99;
  }
  .nav.open a { color: var(--ink); padding: 13px 14px; border-radius: 12px; font-size: 16px; }
  .nav.open a:hover { background: var(--bg-soft); }
  .nav-services-btn { width: 100%; justify-content: space-between; color: var(--ink); font-size: 16px; padding: 13px 14px; border-radius: 12px; }
  .nav.open .nav-services-btn:hover { background: var(--bg-soft); color: var(--ink); }
  .nav.open .nav-submenu { display: none; position: static; min-width: 0; padding: 0 0 4px 10px; background: transparent; box-shadow: none; }
  .nav.open .nav-submenu-panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .nav.open .nav-services.is-open .nav-submenu { display: block; }
  .nav.open .nav-services.is-open .chevron { transform: rotate(180deg); }
}

@media (max-width: 860px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-copy .service-included { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand .logo-img { height: 44px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(9,30,45,.62) 0%, rgba(9,30,45,.48) 44%, rgba(9,30,45,.76) 100%); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .services-grid, .steps, .reviews-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .why-badge { right: 12px; }
}

/* ---------- Large desktop: cap the layout width ---------- */
@media (min-width: 1500px) {
  :root { --maxw: 1500px; --gutter: clamp(40px, 5vw, 72px); }
  body.hero-has-form .hero .container {
    grid-template-columns: minmax(320px, 1fr) minmax(640px, 860px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .service-card, .gallery-grid img { transition: none; }
  .live-dot::after { animation: none; }
}
