/* The Leak Doctor: design tokens */
:root {
  --abyss: #050f24;      /* page background */
  --deep: #0a1c3d;       /* surfaces */
  --tide: #12305e;       /* raised surfaces, borders */
  --teal: #1fa3bf;       /* logo "D" — primary */
  --teal-strong: #168aa3;
  --sky: #5cc9f2;        /* splash blue — accent */
  --foam: #eaf4fa;       /* primary text */
  --mist: #a9bed3;       /* secondary text */
  --line: rgba(169, 190, 211, 0.18);

  --font-sans: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--mist); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--foam); color: var(--abyss); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--teal) 0%, #2b7fd9 100%); color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 163, 191, 0.8); }
.btn-primary:hover { background: linear-gradient(135deg, #25b4d2 0%, #3a8ee6 100%); }
.btn-outline { border-color: rgba(234, 244, 250, 0.55); color: var(--foam); }
.btn-outline:hover { border-color: var(--foam); background: rgba(234, 244, 250, 0.08); }
.btn-ghost { background: rgba(234, 244, 250, 0.08); color: var(--foam); border-color: rgba(234, 244, 250, 0.14); }
.btn-ghost:hover { background: rgba(234, 244, 250, 0.16); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.site-header.is-scrolled { background: rgba(5, 15, 36, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 96px; }
.brand img { height: 80px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.975rem; color: var(--foam); opacity: 0.86; padding: 8px 0; }
.nav a:hover { opacity: 1; color: var(--sky); }
.nav .nav-call-mobile { display: none; }
.header-cta { min-height: 42px; font-size: 0.95rem; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; overflow: hidden; isolation: isolate; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #dfe3ec; }
/* Looping logo video as the hero background: a blurred copy fills the width, the sharp copy sits in the centre */
.hero-video-fill { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(40px) saturate(1.1); }
.hero-video { position: absolute; left: 50%; top: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
/* Navy shading at the edges keeps the white text readable over the light video */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 15, 36, 0.88) 0%, rgba(5, 15, 36, 0.35) 34%, rgba(5, 15, 36, 0) 50%, rgba(5, 15, 36, 0.35) 66%, rgba(5, 15, 36, 0.8) 100%),
    linear-gradient(180deg, rgba(5, 15, 36, 0.7) 0%, rgba(5, 15, 36, 0) 22%, rgba(5, 15, 36, 0) 55%, rgba(5, 15, 36, 0.95) 100%);
}
@media (max-aspect-ratio: 3/4) {
  .hero-video-fill { display: none; }
  .hero-video { left: 0; width: 100%; transform: none; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(5, 15, 36, 0.9) 0%, rgba(5, 15, 36, 0.82) 28%, rgba(5, 15, 36, 0.15) 44%, rgba(5, 15, 36, 0.15) 56%, rgba(5, 15, 36, 0.95) 80%); }
}
.hero-inner { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding-top: 150px; padding-bottom: clamp(48px, 8vw, 88px); }
/* Intro sits on a frosted navy panel so it stays readable over the moving video */
.hero-intro { max-width: 500px; padding: 24px 26px; background: rgba(5, 15, 36, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(92, 201, 242, 0.25); border-left: 3px solid var(--sky); border-radius: var(--radius-md); }
.hero-kicker { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.25; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.hero-intro p:not(.hero-kicker) { color: #e6f1f8; font-size: 1.08rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.hero-rule { width: 2px; min-height: 80px; margin: 36px 0 28px 4px; background: linear-gradient(180deg, var(--sky), transparent); }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap-reverse; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-title { text-align: right; margin-left: auto; }
.hero-accent { display: block; font-family: var(--font-accent); font-style: italic; font-weight: 600; color: var(--sky); font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1; margin-bottom: 0.08em; letter-spacing: -0.01em; }
.hero-main { display: block; font-weight: 500; font-size: clamp(3.2rem, 10vw, 8.75rem); line-height: 0.95; letter-spacing: -0.035em; }

/* Hero load sequence (single orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-intro, .hero-rule, .hero-actions, .hero-accent, .hero-main { animation: rise 0.9s var(--ease-out) both; }
  .hero-rule { animation-name: grow; animation-delay: 0.25s; transform-origin: top; }
  .hero-accent { animation-delay: 0.35s; }
  .hero-main { animation-delay: 0.45s; }
  .hero-actions { animation-delay: 0.6s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Strip */
.strip { border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip p { color: var(--mist); font-size: 0.98rem; }
.strip strong { color: var(--foam); font-weight: 600; display: block; }
.strip a { color: var(--sky); font-weight: 700; text-decoration: none; }

/* Section heading */
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p { color: var(--mist); margin-top: 16px; font-size: 1.08rem; }

/* Services grid */
.service-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  grid-template-areas:
    "homes pools resorts"
    "homes commercial resorts"
    "cays irrigation hoa"
    "cays irrigation hoa";
}
.area-homes { grid-area: homes; } .area-pools { grid-area: pools; } .area-resorts { grid-area: resorts; }
.area-commercial { grid-area: commercial; } .area-cays { grid-area: cays; } .area-irrigation { grid-area: irrigation; } .area-hoa { grid-area: hoa; }

.service-card { position: relative; overflow: hidden; border-radius: var(--radius-md); text-decoration: none; isolation: isolate; background: var(--deep); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease-out); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 15, 36, 0) 30%, rgba(5, 15, 36, 0.92) 100%); transition: background 0.4s; }
.service-body { position: absolute; inset: auto 0 0; padding: 22px; }
.service-body h3 { font-size: 1.35rem; }
.service-body p { color: #d3e2ee; font-size: 0.95rem; margin-top: 6px; max-width: 34ch; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--sky); font-weight: 600; font-size: 0.95rem; }
.service-link .icon { width: 1em; height: 1em; }
.service-card:hover img { transform: scale(1.05); }
.service-card:hover::after { background: linear-gradient(180deg, rgba(5, 15, 36, 0.1) 10%, rgba(5, 15, 36, 0.95) 100%); }
/* On the short cards, keep the description hidden until hover/focus on large screens */
@media (min-width: 1024px) and (hover: hover) {
  .area-pools .service-body p, .area-commercial .service-body p { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height 0.4s var(--ease-out), opacity 0.3s, margin 0.3s; }
  .area-pools:is(:hover, :focus-visible) .service-body p, .area-commercial:is(:hover, :focus-visible) .service-body p { max-height: 6em; opacity: 1; margin-top: 6px; }
}

/* Advantages */
.advantages { position: relative; overflow: hidden; isolation: isolate; padding: clamp(88px, 12vw, 160px) 0; margin: 0 clamp(0px, 2vw, 24px); border-radius: var(--radius-lg); }
.advantages-media { position: absolute; inset: 0; z-index: -1; }
.advantages-media img { width: 100%; height: 100%; object-fit: cover; }
.advantages-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 40, 110, 0.92), rgba(5, 15, 36, 0.86) 60%, rgba(5, 15, 36, 0.95)); }
.adv-statement { font-size: clamp(2.6rem, 7.5vw, 6.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; max-width: 12ch; }
.adv-lead { max-width: 58ch; color: #d3e2ee; font-size: 1.15rem; margin-top: 28px; }
.benefits { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid rgba(234, 244, 250, 0.2); padding-top: 32px; }
.benefits li { display: flex; flex-direction: column; gap: 14px; }
.benefits .icon { width: 30px; height: 30px; color: var(--sky); }
.benefits strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.benefits span { color: #c4d6e5; font-size: 0.98rem; }

/* Signs */
.signs-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.signs-inner > div { position: sticky; top: 120px; }
.signs-inner h2 { margin-bottom: 18px; }
.signs-inner .btn { margin-top: 28px; }
.signs-list { list-style: none; margin: 0; padding: 0; }
.signs-list li { position: relative; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); font-size: 1.12rem; }
.signs-list li:first-child { border-top: 1px solid var(--line); }
.signs-list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 18px; transform: translateY(-50%); background: var(--sky); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Methods */
.methods { background: linear-gradient(180deg, var(--abyss), var(--deep) 30%, var(--deep) 70%, var(--abyss)); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.method { background: var(--deep); padding: 0 0 30px; }
.method-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.method .icon { position: relative; box-sizing: content-box; width: 26px; height: 26px; padding: 12px; margin: -25px 0 14px 24px; color: var(--sky); background: var(--deep); border: 1px solid var(--line); border-radius: 50%; }
.method h3 { margin: 0 28px 10px; }
.method p { margin: 0 28px; color: var(--mist); font-size: 0.98rem; }
/* Home page: 6 methods + the wide "Not sure" card fill two even rows */
.method-grid:has(.method-cta) { grid-template-columns: repeat(4, 1fr); }
.method-grid .method-cta { grid-column: span 2; }
@media (max-width: 1080px) { .method-grid:has(.method-cta) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .method-grid:has(.method-cta) { grid-template-columns: 1fr; } .method-grid .method-cta { grid-column: auto; } }
.method-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 32px 28px; background: linear-gradient(150deg, var(--teal-strong), #1d5fb8); text-decoration: none; }
.method-cta h3 { font-size: 1.35rem; margin: 0 0 10px; }
.method-cta p { color: #e3f3fa; margin: 0; }
.method-cta .service-link { color: #fff; margin-top: 0; }
.method-cta .service-link .icon { width: 1em; height: 1em; padding: 0; margin: 0; background: none; border: 0; color: inherit; }
.method-cta:hover { background: linear-gradient(150deg, var(--teal), #2b72cf); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--abyss); background: var(--sky); }
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -16px; height: 1px; background: linear-gradient(90deg, var(--sky), transparent); opacity: 0.5; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--mist); font-size: 0.98rem; }

/* Work / NRW */
.work-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.work-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.case { margin: 24px 0 36px; padding: 24px 28px; border-left: 3px solid var(--sky); background: rgba(92, 201, 242, 0.08); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.case p { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.35; }
.work-copy h3 { margin-bottom: 10px; }
.work-copy > p { color: var(--mist); }
.ticks { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: var(--sky); margin-top: 3px; }

/* Reviews */
.reviews { background: linear-gradient(180deg, var(--abyss), var(--deep) 50%, var(--abyss)); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.rating-score { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.rating-count { color: var(--mist); }
.stars { display: inline-flex; gap: 3px; color: #fbbf24; }
.star { width: 20px; height: 20px; fill: currentColor; }
.reviews-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; background: rgba(18, 48, 94, 0.45); border: 1px solid var(--line); border-radius: var(--radius-md); }
.review .star { width: 17px; height: 17px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 1.04rem; line-height: 1.65; color: #dbe8f2; }
.review figcaption { font-weight: 700; display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption span { font-weight: 500; font-size: 0.9rem; color: var(--sky); }

/* About */
.about { border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-mark { aspect-ratio: 1; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 45%, rgba(92, 201, 242, 0.18), transparent 65%), var(--deep); display: grid; place-items: center; padding: 8%; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--mist); margin-bottom: 16px; max-width: 60ch; }
.about-copy .signature { font-family: var(--font-accent); font-style: italic; color: var(--foam); font-size: 1.35rem; margin-top: 28px; margin-bottom: 4px; }
.about-copy .signature-name { color: var(--sky); font-weight: 600; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 600; font-size: 1.12rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--sky), var(--sky)) center / 100% 2px no-repeat, linear-gradient(var(--sky), var(--sky)) center / 2px 100% no-repeat; transition: transform 0.25s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--mist); padding: 0 40px 24px 0; max-width: 65ch; }

/* Contact */
.contact { position: relative; isolation: isolate; overflow: hidden; margin: 0 clamp(0px, 2vw, 24px) clamp(0px, 2vw, 24px); border-radius: var(--radius-lg); }
.contact-media { position: absolute; inset: 0; z-index: -1; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 36, 0.96) 0%, rgba(5, 15, 36, 0.86) 50%, rgba(10, 28, 61, 0.78) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy > p { color: #c4d6e5; max-width: 46ch; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon { width: 22px; height: 22px; color: var(--sky); }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--sky); }
.contact-list strong { font-size: 1.3rem; }
.contact-list span span, .contact-list a span { color: var(--mist); }

.contact-form { background: rgba(10, 28, 61, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label span { color: var(--sky); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: rgba(5, 15, 36, 0.7); color: var(--foam);
  border: 1.5px solid var(--tide); border-radius: 12px;
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cc9f2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--deep); }
.field input::placeholder, .field textarea::placeholder { color: #7f96ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(92, 201, 242, 0.25); }
.field input[aria-invalid="true"] { border-color: #ff8a80; }
.field-error { color: #ffb4ab; font-size: 0.9rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-status { margin-top: 16px; color: var(--sky); font-weight: 500; min-height: 1.6em; }

/* ---------- Service detail pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 78vh; min-height: 78dvh; display: flex; align-items: flex-end; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 36, 0.55) 0%, rgba(5, 15, 36, 0.35) 40%, rgba(5, 15, 36, 0.94) 100%); }
.page-hero-inner { padding-top: 140px; padding-bottom: clamp(48px, 7vw, 80px); }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--mist); text-decoration: none; font-weight: 600; margin-bottom: 18px; min-height: 44px; }
.crumb:hover { color: var(--sky); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; }
.page-hero h1 span { display: block; }
.page-hero p { max-width: 56ch; color: #d3e2ee; font-size: 1.12rem; margin: 22px 0 30px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.g-item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; background: var(--deep); color: var(--foam); text-align: left; font: inherit; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 15, 36, 0.85) 100%); }
.g-caption { position: absolute; left: 18px; right: 56px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; font-size: 0.92rem; color: #c4d6e5; }
.g-caption strong { color: var(--foam); font-size: 1.05rem; }
.g-expand { position: absolute; right: 16px; bottom: 18px; z-index: 1; color: var(--sky); }
.g-item:hover img { transform: scale(1.04); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--foam); }
.lightbox::backdrop { background: rgba(3, 9, 22, 0.94); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: var(--mist); text-align: center; }
.lightbox figcaption strong { color: var(--foam); }
.lightbox-close, .lightbox-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(234, 244, 250, 0.08); color: var(--foam); display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-nav.next .icon { transform: rotate(180deg); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(234, 244, 250, 0.18); }

.page-cta-inner { text-align: center; max-width: 720px; }
.page-cta-inner p { color: var(--mist); margin: 18px auto 30px; max-width: 52ch; }
.page-cta-inner .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery .g-wide { grid-column: auto; }
  .gallery .g-tall { grid-row: span 2; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 16px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-nav { grid-row: 2; }
}

/* Footer */
.site-footer { padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 84px; width: auto; }
.footer-brand p { color: var(--mist); margin-top: 14px; font-family: var(--font-accent); font-style: italic; font-size: 1.1rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--mist); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--sky); }
.footer-contact span { color: var(--mist); }
.footer-contact a:first-child { color: var(--foam); font-weight: 700; font-size: 1.2rem; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: #7f96ad; font-size: 0.9rem; }

/* Floating WhatsApp (mobile) */
.float-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5); }
.float-wa .icon { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; max-width: 720px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-toggle { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-left: auto; background: rgba(234, 244, 250, 0.08); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--foam); border-radius: 2px; transition: transform 0.25s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 96px 0 auto; flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px; background: rgba(5, 15, 36, 0.98); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav .nav-call-mobile { display: block; color: var(--sky); font-weight: 700; border-bottom: 0; }
  .site-header:has(.nav.is-open) { background: rgba(5, 15, 36, 0.98); }

  .service-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; grid-template-areas: "homes pools" "homes commercial" "resorts irrigation" "resorts hoa" "cays cays"; }
  .area-cays { min-height: 300px; }
  .signs-inner, .work-inner, .about-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .signs-inner > div { position: static; }
  .work-media { aspect-ratio: 16 / 10; }
  .about-mark { max-width: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .float-wa { display: grid; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { height: 80px; }
  .brand img { height: 64px; }
  .nav { inset: 80px 0 auto; }
  .hero-inner { padding-top: 120px; }
  .hero-rule { min-height: 48px; margin: 28px 0 20px 4px; }
  .hero-bottom { flex-direction: column-reverse; align-items: stretch; }
  .hero-title { text-align: left; margin-left: 0; }
  .hero-main { font-size: clamp(2.9rem, 14vw, 4.4rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .strip-inner { grid-template-columns: 1fr; gap: 14px; }
  .service-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; grid-template-areas: none; }
  .service-grid > * { grid-area: auto; }
  .benefits, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { flex: 1 1 100%; }
  .advantages, .contact { margin-left: 0; margin-right: 0; }
  .faq-list details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
