/* ── Precision Pools & Spas ── */

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

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2840;
  --secondary: #e8f4f8;
  --accent: #d4a853;
  --bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-on-dark: #ffffff;
  --text-muted: #999999;
  --border: #e0e0e0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
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: 0.8rem 3vw;
  background: var(--primary);
  transition: background 0.3s ease;
}
.site-header.scrolled { background: var(--primary-dark); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1300px; margin: 0 auto;
}
.nav-logo img { height: 40px; width: auto; }
.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-on-dark); transition: transform 0.3s; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-on-dark); }
.nav-cta { background: var(--accent); color: var(--primary) !important; padding: 0.5rem 1.2rem; border-radius: 3px; font-weight: 700; font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.03em; }
.nav-cta:hover { opacity: 0.9; }
.nav-phone { font-weight: 600; color: var(--text-on-dark) !important; }

/* ── Hero ── */
.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%; object-fit: cover; }

/* ── Headline + Stats ── */
.section-headline { text-align: center; padding: clamp(4rem, 8vw, 6rem) 5vw clamp(2rem, 4vw, 3rem); }
.section-headline h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--primary); margin-bottom: 0.6rem; }
.section-headline .subtitle { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 400; color: var(--text-light); margin-bottom: 2rem; }
.headline-cta { display: inline-flex; padding: 0.85rem 2rem; background: var(--accent); color: var(--primary); font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.03em; transition: opacity 0.2s; }
.headline-cta:hover { opacity: 0.85; }

.stats-bar { display: flex; justify-content: center; gap: 0; background: var(--primary); padding: 0; margin: 2rem auto 0; max-width: 900px; border-radius: 6px; overflow: hidden; }
.stat-item { flex: 1; text-align: center; padding: 1.5rem 1rem; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--accent); display: block; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; display: block; }

/* ── Sections ── */
.section { padding: clamp(4rem, 8vw, 6rem) 5vw; max-width: 1300px; margin: 0 auto; }
.section-alt { background: var(--secondary); max-width: none; }
.section-dark { background: var(--primary); max-width: none; color: var(--text-on-dark); }

.section h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.section-dark h2 { color: var(--text-on-dark); }
.section p { font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.75; color: var(--text-light); margin-bottom: 1rem; }
.section-dark p { color: rgba(255,255,255,0.8); }

/* ── Service Grid ── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1300px; margin: 0 auto; }
.service-card { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; padding: 1.5rem; background-size: cover; background-position: center; transition: transform 0.3s; }
.service-card:hover { transform: scale(1.02); }
.service-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,58,92,0.85) 0%, rgba(26,58,92,0.2) 60%, transparent 100%); }
.service-card-title { position: relative; z-index: 1; font-family: var(--font-heading); font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 700; color: var(--text-on-dark); }

/* ── Split Layout ── */
.section-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1300px; margin: 0 auto; }
.section-split img { border-radius: 6px; width: 100%; }
.section-split h2 { color: var(--primary); }

.btn-primary { display: inline-flex; padding: 0.75rem 1.6rem; background: var(--accent); color: var(--primary); font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.03em; transition: opacity 0.2s; margin-right: 0.75rem; margin-top: 0.5rem; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { display: inline-flex; padding: 0.75rem 1.6rem; background: transparent; color: var(--primary); border: 2px solid var(--primary); font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; border-radius: 3px; text-transform: uppercase; transition: all 0.2s; margin-top: 0.5rem; }
.btn-outline:hover { background: var(--primary); color: var(--text-on-dark); }

/* ── Process ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1100px; margin: 2rem auto 0; text-align: center; }
.process-step img { width: 60px; height: 60px; margin: 0 auto 1rem; }
.process-step h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1300px; margin: 2rem auto 0; }
.testimonial-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2rem; }
.testimonial-card p { font-style: italic; font-size: 0.9rem; line-height: 1.7; color: var(--text); margin-bottom: 1rem; }
.testimonial-card cite { font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--primary); }

/* ── CTA Banner ── */
.cta-banner { text-align: center; padding: clamp(3rem, 6vw, 5rem) 5vw; }
.cta-banner h2 { color: var(--text-on-dark); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.cta-banner .btn-primary { background: var(--accent); color: var(--primary); }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); padding: 3rem 5vw 0; color: rgba(255,255,255,0.7); }
.footer-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer-col h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-on-dark); margin-bottom: 1rem; }
.footer-col p, .footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.8; display: block; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom { max-width: 1300px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 5.5rem 3vw 1rem; max-width: 1300px; margin: 0 auto; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); }

/* ── 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(--primary); padding: 5rem 2rem 2rem; gap: 1.5rem;
    transition: right 0.35s; box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .service-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .section-split { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}
