﻿/*
  Color psychology choices:
  - Trust base: deep navy + clean white + cool blues (signals reliability, calm)
  - Urgency accent: warm orange (signals action/attention without panic)
  - Success/support: teal (signals helpfulness and clarity)

  Accessibility: target WCAG-friendly contrast, large tap targets.
*/

:root {
  --bg: #0b1b2b; /* deep navy */
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --text: #0b1220;
  --muted: #516074;
  --border: rgba(12, 32, 54, 0.14);

  --brand: #0b5fa5; /* strong trust blue */
  --brand-2: #0a7ac9;
  --accent: #ff7a1a; /* urgency orange */
  --accent-2: #ff4d2d;

  --shadow: 0 10px 30px rgba(11, 18, 32, 0.12);
  --radius: 16px;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 32, 54, 0.08);
}

.site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: none;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.25);
  color: #6b2b00;
  font-weight: 800;
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.16);
}

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 15% 10%, rgba(11, 95, 165, 0.16), transparent 60%),
    radial-gradient(900px 500px at 70% 20%, rgba(255, 122, 26, 0.14), transparent 55%),
    linear-gradient(180deg, var(--surface-2), #ffffff);
  padding: 42px 0 24px;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.badge-trust {
  color: #0b3b62;
}

.badge-urgency {
  color: #6b2b00;
  border-color: rgba(255, 122, 26, 0.28);
  background: rgba(255, 122, 26, 0.12);
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.h1-accent {
  color: var(--brand);
}

.lead {
  margin: 0 0 16px;
  color: #1a2a3c;
  font-size: 18px;
  max-width: 60ch;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(255, 77, 45, 0.22);
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-secondary {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  border-color: rgba(11, 95, 165, 0.22);
  text-align: center;
  white-space: normal;
}

.btn-secondary:hover {
  background: rgba(11, 95, 165, 0.08);
}

.btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
}

.btn-full {
  width: 100%;
}

.trust-list {
  display: none;
}

.micro {
  margin: 14px 0 0;
  color: #2b3b50;
  font-size: 14px;
  background: rgba(11, 95, 165, 0.08);
  border: 1px solid rgba(11, 95, 165, 0.14);
  padding: 12px 12px;
  border-radius: 12px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.card-meta {
  margin: 0 0 14px;
  color: var(--muted);
}

.card-steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(11, 95, 165, 0.1);
  border: 1px solid rgba(11, 95, 165, 0.18);
  color: #08385f;
  font-weight: 900;
}

.step-title {
  font-weight: 900;
}

.step-text {
  color: var(--muted);
  font-size: 14px;
}

.card-cta {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.tiny {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.small {
  font-size: 13px;
}

.card-divider {
  height: 1px;
  background: rgba(12, 32, 54, 0.08);
  margin: 16px 0;
}

.service-area-title {
  font-weight: 900;
}

.service-area-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid rgba(12, 32, 54, 0.06);
  border-bottom: 1px solid rgba(12, 32, 54, 0.06);
  background: #ffffff;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 0;
}

.trust-item {
  padding: 12px;
  border: 1px solid rgba(12, 32, 54, 0.08);
  border-radius: 14px;
  background: rgba(11, 95, 165, 0.04);
}

.trust-title {
  font-weight: 900;
}

.trust-text {
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-muted {
  background: var(--surface-2);
  border-top: 1px solid rgba(12, 32, 54, 0.06);
  border-bottom: 1px solid rgba(12, 32, 54, 0.06);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Emergency issues grid (Water doesn't wait section) */
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.emergency-issues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.issue {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 32, 54, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.issue-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: rgba(11, 95, 165, 0.12);
  border: 1px solid rgba(11, 95, 165, 0.18);
}

.issue-title {
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
}

.issue-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.emergency-cta {
  background: radial-gradient(650px 240px at 10% 10%, rgba(255, 122, 26, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(12, 32, 54, 0.12);
  border-radius: var(--radius);
  padding: 16px;
}

.emergency-cta-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.emergency-cta-sub {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 14px;
}

/* Reviews */
.reviews {
  grid-template-columns: 1fr;
}

.review {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 8px 18px rgba(11, 18, 32, 0.06);
}

.stars {
  color: #f59e0b;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.reviewer {
  font-weight: 900;
  margin-top: 4px;
}

.review blockquote {
  margin: 10px 0 12px;
  color: #2b3b50;
}

.review-meta {
  color: var(--muted);
  font-size: 13px;
}

.review-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Reviews swap animation (preserves existing card visuals) */
.reviews-swap {
  max-width: var(--container);
}

.reviews-viewport {
  overflow: hidden;
  /* Allow native scrolling gestures in any direction; JS will only act on intentional horizontal swipes. */
  touch-action: auto;
}

.reviews-viewport[data-dragging="true"] {
  cursor: grabbing;
}

@media (pointer: fine) {
  .reviews-viewport {
    cursor: grab;
  }
}

.reviews-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.reviews-page {
  flex: 0 0 100%;
}

.reviews-track.is-animating {
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track.is-animating {
    transition: none;
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 12px 14px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-body {
  margin-top: 10px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--bg), #0f2f4d);
  color: white;
  padding: 34px 0;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.cta-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band-actions {
  display: grid;
  gap: 10px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(11, 18, 32, 0.06);
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  margin-bottom: 10px;
}

.form input,
.form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(12, 32, 54, 0.18);
  padding: 10px 12px;
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: 3px solid rgba(255, 122, 26, 0.35);
  border-color: rgba(255, 122, 26, 0.55);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.form-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 95, 165, 0.06);
  padding: 16px;
}

.contact-card h3 {
  margin: 0 0 8px;
}

.contact-line {
  margin: 0 0 8px;
  color: #26384d;
}

.contact-divider {
  height: 1px;
  background: rgba(12, 32, 54, 0.1);
  margin: 14px 0;
}

.mini-list {
  margin: 0;
  padding-left: 18px;
  color: #2b3b50;
}

.contact-note {
  margin-top: 12px;
  background: rgba(255, 122, 26, 0.16);
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 14px;
  padding: 12px;
  color: #3c1b00;
}

/* Footer */
.footer {
  background: #071423;
  color: rgba(255, 255, 255, 0.9);
  padding: 28px 0 84px; /* extra room for sticky CTA */
}

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

.footer-brand {
  font-weight: 900;
  font-size: 18px;
}

.footer-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Sticky CTA */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(12, 32, 54, 0.12);
  display: grid;
  z-index: 60;
}

.sticky-call-btn {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(255, 77, 45, 0.22);
}

/* Modal (Request service popup) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 35, 0.62);
}

.modal-panel {
  position: relative;
  margin: 5vh auto 0;
  width: min(980px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface);
  box-shadow: 0 26px 90px rgba(11, 18, 32, 0.38);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(12, 32, 54, 0.08);
}

.modal-kicker {
  font-size: 12px;
  font-weight: 900;
  color: #6b2b00;
  display: inline-block;
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid rgba(255, 122, 26, 0.22);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
}

.modal-sub {
  margin: 6px 0 0;
  color: var(--muted);
}

.modal-x {
  appearance: none;
  border: 1px solid rgba(12, 32, 54, 0.16);
  background: rgba(11, 95, 165, 0.06);
  color: #08385f;
  font-weight: 900;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.modal-x:hover {
  background: rgba(11, 95, 165, 0.1);
}

.modal-body {
  padding: 16px;
  background: radial-gradient(900px 380px at 15% 15%, rgba(11, 95, 165, 0.10), transparent 60%),
    radial-gradient(700px 330px at 80% 10%, rgba(255, 122, 26, 0.10), transparent 55%),
    #ffffff;
}

.modal-contact-grid {
  align-items: start;
}

body.modal-open {
  overflow: hidden;
}

/* Spacer should not affect mobile */
.hero-spacer {
  display: none;
}

@media (min-width: 780px) {
  .nav {
    display: inline-flex;
  }

  .hero {
    padding: 58px 0 30px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: stretch;
  }

  .hero-copy,
  .hero-card {
    height: 100%;
  }

  /* Left column stretches via spacer (no visible box) */
  .hero-copy {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .hero-spacer {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Desktop CTA ratio */
  .hero-ctas {
    display: grid;
    grid-template-columns: 5fr 1fr;
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
  }

  /* Match the secondary CTA height to the primary CTA height in the grid */
  .hero-ctas .btn-secondary {
    height: 100%;
  }

  /* If the left column gets extremely narrow, allow stacking as a fallback */
  @media (max-width: 860px) {
    .hero-ctas {
      grid-template-columns: 1fr;
    }
  }

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

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

  .trust-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .cta-band-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .cta-band-actions {
    justify-items: end;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.7fr 0.9fr;
  }

  .sticky-call {
    display: none;
  }

  /* Emergency issues grid (Water doesn't wait section) */
  .emergency-grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 16px;
    align-items: start;
  }

  /* 2 columns × 3 rows */
  .emergency-issues {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .issue {
    height: 100%;
  }

  /* Desktop-only column switch */
  .types-of-service-left {
    grid-column: 1;
  }
  .types-of-service-right {
    grid-column: 2;
  }
}
