:root {
  --navy: #0f172a;
  --ink: #020617;
  --green: #22c55e;
  --green-dark: #16a34a;
  --teal: #22c55e;
  --teal-dark: #16a34a;
  --aqua: #38bdf8;
  --cyan: #22d3ee;
  --foam: #f0fdf4;
  --mist: #f8fafc;
  --alt-bg: #f0f9ff;
  --paper: #ffffff;
  --line: #cbd5e1;
  --muted: #475569;
  --text: #1e293b;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 30px rgba(14, 165, 160, 0.08);
  --shadow: 0 20px 60px rgba(2, 15, 20, 0.12);
  --header: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--header) + 24px); }

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--green);
}

h1, h2, h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

h1 { font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.1rem; font-weight: 500; }

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1vw, 1.02rem);
  max-width: 66ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  position: relative;
}

.btn svg { width: 16px; height: 16px; fill: currentColor; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Arrow for buttons that don't carry their own icon */
.btn::after {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M13.2%205.2%2019%2011H3v2h16l-5.8%205.8%201.4%201.4L22.8%2012%2014.6%203.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M13.2%205.2%2019%2011H3v2h16l-5.8%205.8%201.4%201.4L22.8%2012%2014.6%203.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.btn:hover::after { transform: translateX(3px); }
.btn:has(svg)::after,
.btn-back::after { content: none; }
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: #0a2a36; }

/* Header */
.topbar {
  background: linear-gradient(90deg, var(--ink) 0%, #031823 100%);
  color: #cbd5e1;
  font-size: 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.topbar .wrap {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.topbar a, .top-meta { display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease; }
.topbar a:hover { color: var(--aqua); }
.top-links { display: flex; gap: 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line);
}

/* Blur only on desktop: backdrop-filter on the header would turn it into the
   containing block for the fixed mobile drawer, collapsing it to header height. */
@media (min-width: 761px) {
  .site-header { backdrop-filter: blur(12px); }
}

.nav { position: relative; }

.nav {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  color: var(--navy);
}

.logo img { width: 172px; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05)); }

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Sidebar brand/close button: only shown in the mobile drawer */
.menu-brand { display: none; }

.menu-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.menu-close:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(2, 15, 20, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-backdrop.open { opacity: 1; visibility: visible; }

.menu a {
  color: #1e293b;
  position: relative;
  padding: 8px 0;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  /* background: linear-gradient(90deg, var(--teal), var(--aqua)); */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.menu a:hover { color: var(--teal-dark); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}
.menu-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* Hero */
.hero {
  position: relative;
  min-height: min(90vh, 820px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("../images/hero-banner.webp") center/cover no-repeat;
}

/* Flat translucent overlay instead of a gradient */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 15, 20, 0.65);
}

/* Per-page hero image overrides */
.hero--about .hero-media {
  background-image: url("../images/about-banner.webp");
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 56px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 15ch;
  color: #fff;
}

.hero p {
  max-width: 58ch;
  color: #e2e8f0;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  margin-top: 18px;
}

.hero .eyebrow { font-size: 14px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-panel {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.4);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.hero-panel h3,
.hero-panel .hero-panel-title { margin: 0 0 18px; font-family: "Outfit", sans-serif; font-size: 1.08rem; line-height: 1.15; letter-spacing: -0.02em; color: #fff; font-weight: 500; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  overflow: visible;
}

.stat:hover {
  background: rgba(37, 158, 96, 0.2);
  border-color: rgba(52, 211, 153, 0.6);
}

.stat-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(14, 165, 160, 0.25);
  padding: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #34d399;
  display: block;
  flex-shrink: 0;
}

.stat-icon--years {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 8px 20px rgba(14, 165, 160, 0.25);
}

.stat-icon--years svg {
  width: 22px;
  height: 22px;
  fill: #34d399;
}

.stat b {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
}

.stat span { color: #cbd5e1; font-size: 12px; display: block; margin-top: 2px; }

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  width: 100%;
  color: var(--mist);
}

/* Sections */
section { padding: clamp(36px, 5vw, 52px) 0; }

.section-alt {
  background: #f8fafc;
}

.trusted {
  text-align: center;
}

.trusted .logo-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.trusted .logo-row img {
  height: 72px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
}

.about-grid, .split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.photo-stack { position: relative; }

.photo-stack img {
  position: relative;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.badge {
  position: absolute;
  left: 32px;
  bottom: -18px;
  background: #fff;
  color: var(--navy);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  z-index: 2;
  border: 1px solid var(--line);
}

.badge small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }

.about-points {
  display: grid;
  gap: 16px;
  margin: 32px 0 36px;
  padding: 0;
}

.about-points li {
  list-style: none;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  color: var(--text);
  align-items: start;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--foam), #ecfeff);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 160, 0.25);
}

.services {
  background: #ffffff;
}

.cards-4, .cards-3 {
  display: grid;
  gap: 26px;
  margin-top: 44px;
}

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px 180px at top right, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.08), transparent);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 70px rgba(14, 165, 160, 0.18);
  border-color: rgba(34, 197, 94, 0.6);
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0c2f3f 100%);
  color: var(--aqua);
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(2, 15, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.icon svg { width: 30px; height: 30px; fill: currentColor; display: block; }
.card p { color: var(--muted); margin: 12px 0 0; }

.products { background: #ffffff; }

.product {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.product::before { display: none; }

.product img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product:hover img { transform: scale(1.05); }

.product .body { padding: 26px 26px 28px; }
.product p { margin: 10px 0 18px; }
.more {
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}
.more:hover { gap: 10px; }

.process {
  background: radial-gradient(1000px 500px at top, rgba(34, 211, 238, 0.12), transparent),
              linear-gradient(180deg, var(--navy) 0%, #020f14 100%);
  color: #fff;
}
.process .eyebrow { color: var(--aqua); }
.process h2 { color: #fff; }
.process .lead { color: #cbd5e1; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), rgba(34, 211, 238, 0.1));
  display: none;
}

.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.35s ease;
}

.step:hover {
  transform: translateY(-10px);
  border-color: rgba(34, 211, 238, 0.7);
}

.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--cyan));
  color: var(--navy);
  font-family: Outfit, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}

.step h3 { color: #fff; margin-bottom: 10px; }
.step p { color: #cbd5e1; margin: 0; }

.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-item {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(250px 120px at top right, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.08), transparent);
  pointer-events: none;
}

.why-item > * {
  position: relative;
  z-index: 1;
}

.why-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(14, 165, 160, 0.16);
  border-color: rgba(34, 197, 94, 0.6);
}

.why-item h3 { margin-bottom: 8px; }

.cta {
  background:
    radial-gradient(700px 350px at top right, rgba(52, 211, 153, 0.35), transparent),
    linear-gradient(120deg, rgba(2, 15, 20, 0.98), rgba(22, 163, 74, 0.92)),
    url("../images/ro-water-plants.jpg") center/cover;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.3;
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 { color: #fff; }
.cta p { color: #e2e8f0; margin: 12px 0 0; max-width: 58ch; }

.contact { background: #ffffff; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.contact-map {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  background: var(--mist);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 420px);
  border: 0;
}

.contact-map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 14px;
  color: var(--muted);
}

.contact-map-bar .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }

.info-card, .form-card {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
}

.info-card {
  background: radial-gradient(450px 250px at top, rgba(52, 211, 153, 0.25), transparent),
              linear-gradient(180deg, var(--navy) 0%, #020f14 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.info-card a, .info-card p { color: #cbd5e1; }
.info-block { margin: 0 0 28px; }
.info-block h3 { margin-bottom: 8px; font-size: 1.05rem; color: #fff; }

.form-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
label.full { grid-column: 1 / -1; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 400;
}

input:hover, textarea:hover, select:hover { border-color: rgba(14, 165, 160, 0.4); }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 165, 160, 0.08); }
textarea { min-height: 140px; resize: vertical; }
.form-note { margin: 14px 0 0; color: var(--teal); font-weight: 700; min-height: 1.2em; }

/* Quote modal */
body.modal-open { overflow: hidden; }
body.menu-open { overflow: hidden; }
body.menu-open .to-top { opacity: 0; pointer-events: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 15, 20, 0.6);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(2, 15, 20, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.modal .eyebrow { margin-bottom: 6px; }
.modal-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 4px; padding-right: 44px; }
.modal-lead { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 14px; max-width: 60ch; }

/* Compact quote form so the dialog fits a desktop viewport without scrolling */
.quote-form .fields { gap: 12px 16px; }
.quote-form label { gap: 5px; font-size: 12.5px; }
.quote-form input,
.quote-form select { padding: 10px 14px; }
.quote-form textarea { min-height: 88px; padding: 10px 14px; }
.quote-form .btn { margin-top: 14px; }
.quote-form .form-note { margin-top: 8px; }

.site-footer {
  background: radial-gradient(800px 400px at top, rgba(34, 211, 238, 0.1), transparent),
              linear-gradient(180deg, var(--ink) 0%, #01080c 100%);
  color: #cbd5e1;
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; font-weight: 800; }
.site-footer a { color: #cbd5e1; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--aqua); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.site-footer p { color: #94a3b8; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  color: #94a3b8;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 20px 40px rgba(14, 165, 160, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 50;
}

.to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(14, 165, 160, 0.45);
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-inner, .about-grid, .split, .why-grid, .contact-grid, .footer-grid, .cta {
    grid-template-columns: 1fr;
  }
  .cards-4, .steps { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; }
  .cta { display: grid; }
  .photo-stack img { height: 340px; }
}

@media (max-width: 760px) {  
  .topbar { font-size: 13px; }
  .topbar .hide-sm { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 84vw);
    padding: 20px 18px max(28px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 70;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .menu.open { display: flex; visibility: visible; transform: translateX(0); }
  .menu-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .menu-brand .logo img { width: 150px; }
  .menu li:not(.menu-brand) { border-bottom: 1px solid var(--line); }
  .menu li:not(.menu-brand):last-child { border-bottom: 0; }
  .menu a { display: block; padding: 14px 8px; }
  .menu a::after { display: none; }
  .nav .btn { display: none; }
  .hero { min-height: 0; }
  .hero-inner { padding: 38px 0 28px; }
  .fields, .why-list, .cards-4, .steps { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
}

/* Header sub-menu (one level) */
.submenu-toggle { display: none; }

@media (min-width: 761px) {
  .menu li { position: relative; }

  .menu-item-has-children > a { padding-right: 16px; }

  .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .menu-item-has-children:hover > a::before,
  .menu-item-has-children:focus-within > a::before { transform: rotate(225deg); margin-top: -2px; }

  .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 190px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  /* Bridge the gap so the pointer can travel from the parent into the panel */
  .menu .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }

  .menu li:hover > .sub-menu,
  .menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu .sub-menu a {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .menu .sub-menu a::after { display: none; }
  .menu .sub-menu a:hover { background: var(--foam); }
}

@media (max-width: 760px) {
  .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-item-has-children > a { flex: 1 1 0; min-width: 0; }

  .submenu-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
  }

  .submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
  }

  .menu-item-has-children.open > .submenu-toggle::before { transform: rotate(225deg) translate(-2px, -2px); }

  .menu .sub-menu {
    display: none;
    flex: 0 0 100%;
    margin: 0 0 8px;
    padding: 0 0 0 16px;
    list-style: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
  }

  .menu .menu-item-has-children.open > .sub-menu { display: block; }
  .menu .sub-menu li { border-bottom: 0 !important; }
  .menu .sub-menu a { padding: 7px 8px; }
}

/* Mobile drawer: cleaner layout */
.menu a[href="#"] { cursor: default; }
.menu-cta { display: none; }

@media (max-width: 760px) {
  .menu a[href="#"] { cursor: pointer; }

  .menu {
    width: min(330px, 88vw);
    padding: 0 16px max(24px, env(safe-area-inset-bottom));
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-right: 0;
    box-shadow: 0 0 60px rgba(2, 15, 20, 0.28);
    gap: 2px;
    font-size: 14px;
  }

  .menu-brand {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -16px 10px;
    padding: 18px 16px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .menu li:not(.menu-brand),
  .menu li:not(.menu-brand):last-child { border-bottom: 0; }

  .menu a {
    padding: 13px 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .menu li:not(.menu-brand):not(.menu-cta) > a:hover { background: var(--foam); }

  .menu .current-menu-item > a,
  .menu .current-menu-ancestor > a,
  .menu .current-menu-parent > a {
    background: var(--foam);
    color: var(--green-dark);
    box-shadow: none;
  }

  .menu-item-has-children { gap: 0; }

  .submenu-toggle {
    width: 38px;
    height: 38px;
    margin-right: 4px;
    border-radius: 50%;
    background: #f1f5f9;
  }

  .menu-item-has-children.open > .submenu-toggle { background: var(--foam); color: var(--green-dark); }

  .menu .sub-menu {
    margin: 4px 0 6px 20px;
    padding: 0 0 0 10px;
    border-left: 2px solid rgba(34, 197, 94, 0.35);
    font-size: 13px;
  }

  .menu .sub-menu a {
    padding: 10px 12px;
    font-weight: 600;
    color: #334155;
  }

  .menu .sub-menu .current-menu-item > a { background: var(--foam); color: var(--green-dark); }
  .menu .sub-menu .menu-view-all > a { color: var(--green-dark); font-weight: 800; }

  .menu-cta {
    display: block;
    margin-top: auto;
    padding-top: 18px;
  }

  .menu-cta .btn { width: 100%; padding: 0 20px; border-radius: 999px; color: #fff; }
}
