/* ═══════════════════════════════════════════════════
   WRIGHT POOLS V2 — Hero Mockup
   Dark luxury theme. Cormorant Garamond + Inter Tight.
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #0b0b0b;
  --bg-2: #111418;
  --text: #ffffff;
  --text-body: rgba(255,255,255,0.62);
  --text-muted: rgba(255,255,255,0.38);
  --border: rgba(255,255,255,0.12);

  --accent: #0D6796;            /* Wright Pools brand — dark blue wordmark */
  --accent-hover: #094A6B;
  --accent-soft: rgba(13,103,150,0.12);
  --accent-light: #65B4E5;      /* Wright Pools brand — wave underline */

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.5s;

  --max-width: 1440px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }

/* ─── Mockup variant switcher (dev tool) ─── */
.variant-switcher {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(15,20,24,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.variant-switcher a {
  padding: 8px 16px;
  color: rgba(255,255,255,0.7);
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.variant-switcher a:hover { color: #fff; }
.variant-switcher a.is-active {
  background: var(--accent);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.nav-left { display: flex; gap: 36px; }
.nav-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.78);
  transition: color 0.25s var(--ease);
}
.nav-link:hover { color: var(--accent); }

.nav-center { display: flex; justify-content: center; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-right { display: flex; align-items: center; gap: 22px; justify-content: flex-end; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  transition: color 0.25s var(--ease);
}
.nav-phone:hover { color: var(--accent); }
.nav-phone svg { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 88px 96px 56px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background images, crossfaded */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  filter: brightness(0.28) saturate(0.9);
}
.hero-bg-residential { background-image: url('../assets/images/pool-residential.jpg'); }
.hero-bg-commercial  { background-image: url('../assets/images/pool-commercial.jpg'); }

.hero[data-variant="residential"] .hero-bg-residential,
.hero[data-variant="commercial"]  .hero-bg-commercial { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.65) 100%);
}

/* Top: eyebrow + toggle */
.hero-top {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.5em; /* visual centring with letter-spacing */
}

.hero-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.hero-toggle-btn {
  position: relative;
  z-index: 2;
  padding: 10px 26px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border-radius: 100px;
  transition: color 0.35s var(--ease);
}
.hero-toggle-btn.is-active { color: #ffffff; }

.hero-toggle-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--accent);
  border-radius: 100px;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}
.hero[data-variant="commercial"] .hero-toggle-thumb {
  transform: translateX(100%);
}

/* Body grid */
.hero-grid {
  position: relative;
  z-index: 4;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 12px;
  max-width: var(--max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text);
}

/* 3 lines, shrinking */
.hero-title-1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-title-2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.92);
}
.hero-title-3 {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--accent-light);
  margin-top: 4px;
}


.hero-copy {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 480px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.78);
}
.hero-features svg { color: var(--accent); flex-shrink: 0; }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Media */
.hero-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-media-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hero-img.is-active { opacity: 1; }

/* Reduced motion: instant swaps */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image,
  .hero-img,
  .hero-toggle-thumb,
  .hero-toggle-btn { transition: none !important; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav { padding: 18px 24px; }
  .nav-left { display: none; }
  .nav-right .nav-phone { display: none; }

  .hero { padding: 100px 24px 48px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .hero-media { order: -1; justify-content: center; }
  .hero-media-frame { max-width: 100%; aspect-ratio: 16 / 10; }
  .hero-text { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-toggle { width: 100%; max-width: 320px; }
  .hero-toggle-btn { flex: 1; padding: 11px 0; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { flex: 1; min-width: 140px; }
}
