/* Waterman Pools — Homepage Redesign (scoped to .wm-home) */

.wm-home {
  --bg: #0c1117;
  --bg-soft: #111821;
  --panel: #121a24;
  --panel-2: #172230;
  --text: #f4f7fb;
  --muted: #b9c4d2;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #6fd0ff;
  --brand-2: #9be7ff;
  --accent: #d8ecf6;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1180px;

  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(111, 208, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #081019 0%, #0c1117 100%);
  line-height: 1.6;
}

.wm-home * { box-sizing: border-box; }
.wm-home img { max-width: 100%; display: block; }
.wm-home a { color: inherit; text-decoration: none; }

.wm-home .wm-container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

/* Hero */
.wm-home .wm-hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}
.wm-home .wm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.92) 0%, rgba(5, 9, 14, 0.78) 45%, rgba(5, 9, 14, 0.62) 100%),
    var(--wm-hero-image, none) center/cover no-repeat;
  z-index: 0;
  transform: scale(1.02);
}
.wm-home .wm-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(111, 208, 255, 0.18), transparent 22%);
  z-index: 1;
}
.wm-home .wm-hero > .wm-container { position: relative; z-index: 2; }

.wm-home .wm-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}
.wm-home .wm-hero-centered .wm-hero-copy {
  max-width: 880px;
}
.wm-home .wm-hero-centered .wm-hero-text {
  margin-left: auto;
  margin-right: auto;
}
.wm-home .wm-hero-centered .wm-hero-actions {
  justify-content: center;
}

.wm-home .wm-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.wm-home .wm-eyebrow,
.wm-home .wm-section-tag,
.wm-home .wm-card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 0.9rem;
  display: block;
}

.wm-home h1, .wm-home h2 {
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.wm-home .wm-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 28ch;
  line-height: 1.1;
}
.wm-home .wm-hero-centered h1 {
  margin-left: auto;
  margin-right: auto;
}

.wm-home .wm-hero-text {
  max-width: 60ch;
  color: var(--accent);
  font-size: 1.06rem;
}

.wm-home .wm-hero-actions,
.wm-home .wm-mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.wm-home .wm-mini-proof span {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255,255,255,0.03);
  font-size: 0.92rem;
}

.wm-home .wm-card,
.wm-home .wm-feature-card,
.wm-home .wm-review-card,
.wm-home .wm-project-card,
.wm-home .wm-step,
.wm-home .wm-contact-form,
.wm-home .wm-trust-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wm-home .wm-card { padding: 1.6rem; }
.wm-home .wm-card h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 0; }
.wm-home .wm-card p { color: var(--accent); }

.wm-home .wm-card-list,
.wm-home .wm-check-list {
  list-style: none; padding: 0; margin: 1rem 0 1.4rem;
}
.wm-home .wm-card-list li,
.wm-home .wm-check-list li {
  margin: 0.6rem 0; padding-left: 1.5rem; position: relative; color: var(--accent);
}
.wm-home .wm-card-list li::before,
.wm-home .wm-check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800;
}

.wm-home .wm-btn {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 50px; padding: 0.9rem 1.4rem; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent; transition: 0.2s ease; cursor: pointer;
  font-family: inherit; font-size: 1rem;
}
.wm-home .wm-btn:hover { transform: translateY(-1px); }
.wm-home .wm-btn-primary {
  color: #04131c;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.wm-home .wm-btn-secondary {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
.wm-home .wm-btn-block { width: 100%; }

/* Trust strip */
.wm-home .wm-trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.wm-home .wm-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1rem 0;
}
.wm-home .wm-trust-item { padding: 1rem 1.1rem; }
.wm-home .wm-trust-item strong { display: block; margin-bottom: 0.35rem; }
.wm-home .wm-trust-item span { color: var(--muted); font-size: 0.94rem; }

/* Sections */
.wm-home .wm-section { padding: 5rem 0; }
.wm-home .wm-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.wm-home .wm-section-head { max-width: 760px; margin-bottom: 2rem; }
.wm-home .wm-section-head p { color: var(--muted); }

.wm-home .wm-split,
.wm-home .wm-lifestyle-grid,
.wm-home .wm-contact-grid,
.wm-home .wm-cards { display: grid; gap: 2rem; }

.wm-home .wm-split { grid-template-columns: 1fr 1fr; align-items: start; }
.wm-home .wm-cards.three { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.wm-home .wm-cards.two { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }

.wm-home .wm-feature-card,
.wm-home .wm-review-card,
.wm-home .wm-step { padding: 1.4rem; }

.wm-home .wm-feature-card h3,
.wm-home .wm-step h3,
.wm-home .wm-project-copy h3 { margin-top: 0; margin-bottom: 0.6rem; color: var(--text); }

.wm-home .wm-feature-card p,
.wm-home .wm-review-card p,
.wm-home .wm-project-copy p,
.wm-home .wm-step p,
.wm-home .wm-content-panel p { color: var(--muted); }

.wm-home .wm-lifestyle-grid,
.wm-home .wm-contact-grid {
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
}

.wm-home .wm-image-panel {
  min-height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.wm-home .wm-process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.wm-home .wm-step span.wm-step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 1rem;
  background: rgba(111,208,255,0.12); border: 1px solid rgba(111,208,255,0.35);
  color: var(--brand-2); font-weight: 800;
}

.wm-home .wm-project-card { overflow: hidden; }
.wm-home .wm-project-image {
  height: 240px; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.wm-home .wm-project-copy { padding: 1.2rem; }

.wm-home .wm-review-card footer { margin-top: 1rem; color: var(--accent); font-weight: 600; }
.wm-home .wm-review-card { font-style: normal; }
.wm-home .wm-review-card p { font-style: italic; color: var(--accent); }

/* Google Reviews sliding reel */
.wm-home .wm-reviews-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wm-home .wm-reviews-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: wm-marquee 90s linear infinite;
}
.wm-home .wm-reviews-marquee:hover .wm-reviews-track {
  animation-play-state: paused;
}
@keyframes wm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wm-home .wm-google-review {
  flex: 0 0 360px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.wm-home .wm-gr-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.wm-home .wm-gr-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04131c;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wm-home .wm-gr-name { color: var(--text); font-weight: 700; font-size: 0.98rem; }
.wm-home .wm-gr-stars { color: #ffb84a; font-size: 0.95rem; letter-spacing: 1px; }
.wm-home .wm-gr-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}
.wm-home .wm-gr-text {
  color: var(--accent);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .wm-home .wm-google-review { flex-basis: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-home .wm-reviews-track { animation: none; }
}

.wm-home .wm-cta-band {
  background: linear-gradient(135deg, rgba(111,208,255,0.1), rgba(255,255,255,0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wm-home .wm-cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.wm-home .wm-contact-form { padding: 1.35rem; }
.wm-home .wm-contact-form label {
  display: block; font-weight: 600; margin-bottom: 1rem;
}
.wm-home .wm-contact-form input,
.wm-home .wm-contact-form textarea {
  width: 100%; margin-top: 0.45rem; padding: 0.95rem 1rem;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font: inherit;
}
.wm-home .wm-contact-form input::placeholder,
.wm-home .wm-contact-form textarea::placeholder { color: #8ea3b9; }
.wm-home .wm-form-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }

/* Responsive */
@media (max-width: 1060px) {
  .wm-home .wm-hero-grid,
  .wm-home .wm-cards.three,
  .wm-home .wm-process-grid,
  .wm-home .wm-trust-grid,
  .wm-home .wm-lifestyle-grid,
  .wm-home .wm-contact-grid,
  .wm-home .wm-split,
  .wm-home .wm-cards.two { grid-template-columns: 1fr 1fr; }
  .wm-home .wm-process-grid { grid-template-columns: repeat(2, 1fr); }
  .wm-home .wm-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .wm-home .wm-hero { padding-top: 4rem; }
  .wm-home .wm-hero-grid,
  .wm-home .wm-cards.three,
  .wm-home .wm-cards.two,
  .wm-home .wm-lifestyle-grid,
  .wm-home .wm-contact-grid,
  .wm-home .wm-split,
  .wm-home .wm-process-grid,
  .wm-home .wm-trust-grid { grid-template-columns: 1fr; }
  .wm-home .wm-hero h1 { max-width: 100%; }
  .wm-home .wm-cta-band-inner { flex-direction: column; align-items: flex-start; }
}
