/* ── Valley Pools & Spas — Rebuilt to match original ── */

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f6;
  --bg-dark: #2d2d2d;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e5e5e5;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3vw;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 3px;
  font-weight: 500;
  transition: opacity 0.2s ease !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-phone {
  font-weight: 600;
  color: var(--text) !important;
}

/* ── Hero: Autoplay video, no text ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* ── Main Content ── */
#main-content {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* ── Sections ── */
.section {
  padding: clamp(4rem, 8vw, 7rem) 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Headline Section (replaces hero text) ── */
.section-headline {
  text-align: center;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section-headline h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.section-headline p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.headline-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-dark {
  background: var(--text);
  color: var(--bg);
}

.btn-dark:hover {
  opacity: 0.85;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── Split Sections ── */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-split.reverse {
  direction: rtl;
}

.section-split.reverse > * {
  direction: ltr;
}

.section-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.section-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-text p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.text-detail {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
}

.section-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  margin-top: 0.5rem;
}

.section-link:hover {
  opacity: 0.6;
}

/* ── Service Tiers ── */
.service-tiers {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tier {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
}

/* ── Product Grid ── */
.section-products {
  background: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.product-card {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card {
  background-size: cover;
  background-position: center;
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}

.product-card-content {
  position: relative;
  z-index: 1;
}

.product-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  color: #ffffff;
}

.product-card-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
}

/* ── Testimonials ── */
.section-testimonials {
  background: var(--bg-alt);
  max-width: none;
  padding: clamp(4rem, 8vw, 7rem) 5vw;
}

.section-testimonials h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  padding: 0;
  border: none;
}

.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial cite {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Services Preview ── */
.section-services-preview {
  padding-top: clamp(4rem, 8vw, 7rem);
}

/* ── CTA Cards ── */
.section-cta-cards {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.cta-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cta-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.cta-card:hover {
  transform: scale(1.02);
}

.cta-card {
  background-size: cover;
  background-position: center;
}

.cta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
}

.cta-card-content {
  position: relative;
  z-index: 1;
}

.cta-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #ffffff;
}

.cta-card-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-top: 0.4rem;
}

/* ── Floating CTA ── */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 90;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.floating-cta:hover {
  opacity: 0.9;
  transform: translateX(-50%) translateY(-2px);
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 5vw 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-location {
  transition: opacity 0.2s ease;
}

.footer-location:hover {
  opacity: 0.7;
}

.footer-location strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom span {
  margin-left: auto;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    height: 100vh;
    flex-direction: column;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .section-split,
  .section-split.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .product-grid,
  .testimonials-grid,
  .cta-card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    gap: 3rem;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom span {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .headline-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-headline h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
}
