/* ── style.css — Pool-Tech public site ───────────────────────────────── */

/* ── Site header / nav ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sky);
  box-shadow: 0 2px 12px rgba(7, 63, 94, 0.18);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-wordmark {
  font-family: "Saira Condensed", var(--font-display), sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 1px 0 rgba(7, 63, 94, 0.2);
}
.nav-wordmark .wm-dash { color: inherit; margin: 0 0.03em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.nav-cta {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: #fff !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--blue-pale) !important; color: var(--blue) !important; }
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  line-height: 0;
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.18); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 63, 94, 0.28), rgba(7, 63, 94, 0.52) 55%, rgba(7, 63, 94, 0.68)),
    url('/assets/img/stock/hero-pool.jpg');
  background-size: cover;
  background-position: center;
}
.hero-inner {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4.5rem, 8vw, 6rem);
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  font-weight: 800;
}
.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(7, 63, 94, 0.45), 0 2px 16px rgba(7, 63, 94, 0.35);
}
.hero h1 { text-shadow: 0 1px 3px rgba(7, 63, 94, 0.35), 0 4px 24px rgba(7, 63, 94, 0.35); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ── Wave dividers ───────────────────────────────────────────────────── */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  pointer-events: none;
  z-index: 100;
}
.hero-wave svg { display: block; width: 100%; height: clamp(36px, 5vw, 64px); }
.hero-wave path { fill: var(--blue-pale); }
/* Overlap the neighbours by 1px — kills the hairline seam that fractional
   device-pixel rounding leaves at section boundaries (visible on mobile). */
.info-strip { margin-top: -1px; }

.wave { line-height: 0; margin: -1px 0; position: relative; z-index: 1; }
.wave svg { display: block; width: 100%; height: clamp(28px, 4vw, 56px); }
.wave-to-cream { background: var(--bg); }
.wave-to-cream path { fill: var(--cream); }
.wave-to-sky { background: var(--cream); }
.wave-to-sky path { fill: var(--sky); }

/* ── Info strip (icon + line row, under the hero) ────────────────────── */
.info-strip { background: var(--blue-pale); padding: 1.15rem 0 1.35rem; }
.info-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.4rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
}
.info-item svg { color: var(--sky-darker); flex-shrink: 0; }

/* ── Services ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
  transform: translateY(-3px);
}
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--blue-pale);
  color: var(--sky-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.28rem; margin-bottom: 0.45rem; color: var(--blue); }
.service-card p { color: var(--text-muted); font-size: 0.97rem; margin: 0; flex: 1; }

/* ── About ───────────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}
.about-img {
  aspect-ratio: 4/5;
  max-width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder until Hayden's portrait lands in assets/img/hayden.webp */
.hayden-placeholder {
  aspect-ratio: 4/5;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 2rem;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--blue-pale), var(--blue-paler));
  color: var(--blue-mid);
}
.hayden-placeholder svg { color: var(--sky); }
.hayden-placeholder b { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue); }
.hayden-placeholder span { font-size: 0.9rem; color: var(--text-muted); max-width: 24ch; }
.about-lead { font-size: 1.18rem; color: var(--blue); font-weight: 500; margin-bottom: 1rem; }
.about-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.5rem;
}
.about-cred {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}
.about-cred svg { color: var(--sky); flex-shrink: 0; }
.about-cred a { color: var(--blue-mid); font-weight: 600; }

/* ── Meet the team ───────────────────────────────────────────────────── */
.about-head { max-width: 48rem; margin-bottom: 2.5rem; }
.about-head .about-lead { margin-bottom: 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}
.team-card { display: flex; flex-direction: column; }
.team-card .about-img,
.team-card .hayden-placeholder { margin-bottom: 1.25rem; }
.team-name { font-size: 1.4rem; color: var(--blue); margin-bottom: 0.35rem; }
.team-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sky-darker);
  margin-bottom: 0.75rem;
}
.team-role svg { color: var(--sky); flex-shrink: 0; }
.team-card p { color: var(--text-muted); line-height: 1.65; margin: 0; }
.team-grid ~ .about-creds { margin-top: 2.5rem; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
  border: none;
  padding: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(7, 63, 94, 0.82));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* ── Lightbox ────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 30, 45, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: #fff; cursor: pointer;
  line-height: 0; padding: 0.5rem;
}

/* ── Reviews ─────────────────────────────────────────────────────────── */
.section-reviews {
  background:
    linear-gradient(rgba(238, 246, 251, 0.93), rgba(238, 246, 251, 0.93)),
    url('/assets/img/stock/water-light.jpg') center/cover;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.08em; }
.review-text { color: var(--text); font-size: 0.97rem; line-height: 1.65; flex: 1; }
.review-text::before { content: '\201C'; }
.review-text::after  { content: '\201D'; }
.review-author { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 54rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-q:hover, .faq-q[aria-expanded="true"] { background: var(--blue-paler); }
.faq-chevron { flex-shrink: 0; transition: transform 0.25s ease; color: var(--sky); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}
.faq-a.open { display: block; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-icon { display: flex; flex-shrink: 0; margin-top: 0.15rem; color: var(--sky); }
.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.contact-info-value { font-size: 1.05rem; font-weight: 600; color: var(--blue); }
.contact-info-value a { color: var(--blue-mid); }
.contact-info-value a:hover { color: var(--blue); }

/* Contact form (local overrides of lib/contact-form.css) */
.contact-form-wrap { display: block; }
.cf-turnstile { margin-top: 0.5rem; }
@media (max-width: 360px) { .cf-turnstile { transform: scale(0.86); transform-origin: left top; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--sky);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.footer-main { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-tag { font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); max-width: 46ch; }
.footer-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.footer-links a { color: #fff; font-size: 0.9rem; font-weight: 600; transition: opacity var(--transition); }
.footer-links a:hover { color: #fff; opacity: 0.75; }
.footer-logo { line-height: 0; flex-shrink: 0; }
.footer-logo-img { height: 96px; width: auto; display: block; border-radius: 6px; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* ── Mobile nav ──────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--blue-dark);
  z-index: 200;
  flex-direction: column;
  padding: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; background: none; border: none; color: #fff; cursor: pointer; padding: 0.3rem; line-height: 0; }
.mobile-nav ul { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; }
  .reviews-grid  { grid-template-columns: 1fr; }
  .about-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout{ grid-template-columns: 1fr; gap: 2rem; }
  .nav-links     { display: none; }
  .nav-burger    { display: flex; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; }
  .hero-ctas     { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .footer-inner  { flex-direction: column; text-align: center; }
}

/* ── Legal pages (privacy) ─────────────────────────────────────────────────── */
.legal-topbar {
  background: var(--sky);
  padding: 0.9rem 0;
}
.legal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-back {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
}
.legal-back:hover { text-decoration: underline; }
.legal-main { padding: 3rem 0 5rem; }
.legal-prose { max-width: 760px; margin: 0 auto; }
.legal-prose h1 { font-size: 2rem; margin-bottom: 1rem; }
.legal-prose h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.6rem;
}
.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-prose p { margin-bottom: 0.9rem; }
.legal-prose ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}
.legal-prose li { margin-bottom: 0.45rem; }
.legal-updated { font-size: 0.85rem; }

/* ── Scroll reveal (scoped: nothing hidden without JS) ───────────────── */
html.reveal-ready [data-reveal],
html.reveal-ready [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1), transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.reveal-ready [data-reveal].is-visible,
html.reveal-ready [data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal],
  html.reveal-ready [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
