/* WE BUILD POOLS & SPAS - SHARED STYLES */

:root {
  --ink: #002850;           /* brand deep navy */
  --deep: #001a35;          /* darker navy for backgrounds */
  --water: #066b80;         /* readable teal — deeper for text on light bg */
  --water-bright: #14c8dc;  /* brand bright teal — for dark backgrounds & accents */
  --water-deep: #0aa0b8;    /* mid teal for borders/lines */
  --mist: #e8f4f7;          /* very pale teal tint */
  --sand: #14c8dc;          /* using brand teal for accents on dark */
  --warm: #f01450;          /* brand coral/pink for highlights */
  --coral: #f01450;         /* explicit coral */
  --paper: #faf8f4;         /* off-white */
  --line: rgba(0, 40, 80, 0.12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 1.25rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s ease;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
nav.site-nav.transparent { background: transparent; border-bottom: 1px solid transparent; }
nav.site-nav.transparent.scrolled {
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
  transition: color 0.4s ease; text-decoration: none;
}
.logo .amp { font-style: italic; color: var(--warm); }
nav.transparent:not(.scrolled) .logo { color: var(--paper); }
nav.transparent:not(.scrolled) .logo .amp { color: var(--sand); }

.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.3s ease; position: relative;
}
nav.transparent:not(.scrolled) .nav-links a { color: var(--paper); }
.nav-links a:not(.cta)::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:not(.cta):hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }
.nav-links .cta {
  padding: 0.65rem 1.4rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-links .cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
nav.transparent:not(.scrolled) .nav-links .cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; padding: 0; z-index: 101;
}
.nav-toggle span {
  display: block; position: absolute; left: 0;
  width: 100%; height: 1.5px; background: var(--ink);
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }
nav.transparent:not(.scrolled) .nav-toggle span { background: var(--paper); }
.nav-toggle.open span { background: var(--ink) !important; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 11px; }

/* PAGE HERO */
.page-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center;
  padding: 8rem 3rem 4rem;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,40,80,0.55) 0%, rgba(0,40,80,0.9) 100%);
  z-index: 1;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1400px; width: 100%; margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0.85;
}
.page-hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--sand); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1.5rem; max-width: 900px;
}
.page-hero h1 em { font-style: italic; color: var(--sand); font-weight: 400; }
.page-hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 700px; opacity: 0.85; line-height: 1.6;
}

/* BREADCRUMBS */
.breadcrumbs {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 2rem;
  opacity: 0.7;
}
.breadcrumbs a { text-decoration: none; transition: opacity 0.3s; }
.breadcrumbs a:hover { opacity: 0.6; }
.breadcrumbs .sep { opacity: 0.4; }

/* HELPERS */
.section-label {
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--water);
  margin-bottom: 1.5rem; display: inline-flex;
  align-items: center; gap: 0.75rem;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--water); }
.section-label.light { color: var(--sand); }
.section-label.light::before { background: var(--sand); }
.section-label.centered { display: flex; justify-content: center; }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
}
.h2 em { font-style: italic; color: var(--water); }
.h2.light em { color: var(--sand); }
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400; line-height: 1.2; letter-spacing: -0.01em;
}
.h3 em { font-style: italic; color: var(--water); }

.lead-text {
  font-size: 1.1rem; line-height: 1.75;
  color: rgba(0, 40, 80, 0.78);
}

/* BUTTONS */
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 1.05rem 2.1rem; text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.btn-primary:hover { background: var(--water); transform: translateY(-2px); }
.btn-primary.light { background: var(--paper); color: var(--ink); }
.btn-primary.light:hover { background: var(--sand); }
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  color: var(--ink); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s ease; display: inline-block;
}
.btn-ghost:hover { opacity: 0.65; }
.btn-ghost.light { color: var(--paper); border-bottom-color: var(--paper); }

/* FOOTER */
footer {
  background: var(--ink); color: var(--paper);
  padding: 5rem 3rem 2rem;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(250, 248, 244, 0.1);
}
.footer-brand .logo {
  color: var(--paper); font-size: 1.5rem;
  display: block; margin-bottom: 1rem;
}
.footer-brand .logo .amp { color: var(--sand); }
.footer-brand p {
  font-size: 0.9rem; opacity: 0.6; line-height: 1.7;
  max-width: 350px; margin-bottom: 1.5rem;
}
.parent-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.5; padding: 0.5rem 1rem;
  border: 1px solid rgba(250, 248, 244, 0.2); border-radius: 2px;
}
.footer-col h6 {
  font-family: var(--serif); font-size: 0.85rem;
  font-style: italic; color: var(--sand);
  margin-bottom: 1.25rem; font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  color: var(--paper); text-decoration: none;
  font-size: 0.85rem; opacity: 0.7; transition: opacity 0.3s ease;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  padding-top: 2rem; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.75rem; opacity: 0.55;
}

/* CONTAINERS */
.container { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 3rem; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 3rem; }
section { padding: 6rem 0; }
section.tight { padding: 4rem 0; }
section.spacious { padding: 8rem 0; }
section.ink { background: var(--ink); color: var(--paper); }
section.mist { background: var(--mist); }
section.deep { background: var(--deep); color: var(--paper); }

/* GRIDS / CARDS */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.feature-card {
  padding: 2.5rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px;
  transition: all 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -10px rgba(0, 40, 80, 0.12);
}
section.ink .feature-card {
  background: rgba(250, 248, 244, 0.04);
  border-color: rgba(250, 248, 244, 0.12);
  color: var(--paper);
}
.feature-num {
  font-family: var(--serif); font-style: italic;
  color: var(--warm); font-size: 0.95rem;
  margin-bottom: 1rem; display: block;
}
section.ink .feature-num { color: var(--sand); }
.feature-card h4 {
  font-family: var(--serif); font-size: 1.4rem;
  font-weight: 400; margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.95rem; line-height: 1.7;
  color: rgba(0, 40, 80, 0.72);
}
section.ink .feature-card p { color: rgba(250, 248, 244, 0.75); }

/* TWO-COL */
.two-col {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}
.two-col.reverse { grid-template-columns: 1.2fr 1fr; }
.two-col img { width: 100%; height: 100%; object-fit: cover; }
.two-col .img-frame {
  aspect-ratio: 4/5; overflow: hidden;
  border-radius: 2px;
}

/* CTA BAND */
.cta-band {
  background: var(--deep); color: var(--paper);
  padding: 6rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(240, 20, 80, 0.10), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(20, 200, 220, 0.20), transparent 60%);
  pointer-events: none;
}
.cta-band-inner { max-width: 900px; margin: 0 auto; position: relative; }
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.cta-band h2 em { font-style: italic; color: var(--sand); }
.cta-band p {
  font-size: 1.05rem; opacity: 0.8;
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 2rem;
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 400; letter-spacing: -0.01em;
}
.faq-q .icon {
  flex-shrink: 0; width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: transform 0.3s ease;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: rgba(0, 40, 80, 0.7); font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 500px; padding-top: 1rem;
}

/* SOCIAL MEDIA */
.social-icons {
  display: flex; gap: 0.75rem; align-items: center;
}
.social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%; opacity: 0.65;
  transition: all 0.3s ease;
  text-decoration: none; color: inherit;
}
.social-icon:hover { opacity: 1; transform: translateY(-2px); }
.social-icon svg { width: 16px; height: 16px; }
nav.site-nav .social-icons { display: none; }
nav.transparent:not(.scrolled) .social-icon { color: var(--paper); }
footer .social-icons { margin-top: 1.5rem; }
footer .social-icon { color: var(--paper); }

/* Social section (homepage / contact) */
.social-section {
  padding: 6rem 0; background: var(--paper);
}
.social-section.dark { background: var(--ink); color: var(--paper); }
.social-section-header {
  text-align: center; max-width: 800px;
  margin: 0 auto 4rem; padding: 0 3rem;
}
.social-section-header .section-label.centered { display: inline-flex; }
.social-section-header h2 { margin-bottom: 1rem; }
.social-section-header p {
  font-size: 1.05rem; line-height: 1.7; opacity: 0.75;
}
.social-handles {
  display: flex; gap: 2rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}
.social-handle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.85rem; text-decoration: none;
  color: var(--ink); transition: all 0.3s ease;
}
.social-section.dark .social-handle {
  border-color: rgba(250,248,244,0.2); color: var(--paper);
}
.social-handle:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.social-section.dark .social-handle:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.social-handle svg { width: 18px; height: 18px; }

/* Embed slot - where the live feed widget will render */
.social-embed-slot {
  max-width: 1400px; margin: 0 auto;
  padding: 0 3rem; min-height: 400px;
}
.social-embed-placeholder {
  border: 1px dashed var(--line); padding: 4rem 2rem;
  text-align: center; background: var(--mist);
  border-radius: 2px;
}
.social-section.dark .social-embed-placeholder {
  background: rgba(250,248,244,0.04);
  border-color: rgba(250,248,244,0.15);
}
.social-embed-placeholder .icon-row {
  display: flex; gap: 1rem; justify-content: center;
  margin-bottom: 1.5rem; opacity: 0.4;
}
.social-embed-placeholder .icon-row svg {
  width: 32px; height: 32px;
}
.social-embed-placeholder p {
  font-family: var(--serif); font-size: 1.1rem;
  font-style: italic; max-width: 500px; margin: 0 auto;
  opacity: 0.7; line-height: 1.6;
}
.social-embed-placeholder p code {
  font-family: monospace; font-style: normal;
  background: rgba(0,40,80,0.08); padding: 0.15rem 0.4rem;
  border-radius: 2px; font-size: 0.85rem;
}
.social-section.dark .social-embed-placeholder p code {
  background: rgba(250,248,244,0.1);
}

/* Visible/curated grid fallback */
.social-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 1400px; margin: 0 auto;
  padding: 0 3rem;
}
.social-tile {
  aspect-ratio: 1; overflow: hidden; position: relative;
  background: var(--ink); cursor: pointer;
  transition: transform 0.4s ease;
  text-decoration: none;
}
.social-tile:hover { transform: scale(1.02); }
.social-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s ease;
}
.social-tile:hover img { opacity: 0.7; }
.social-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,40,80,0.85));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; color: var(--paper);
  opacity: 0; transition: opacity 0.3s ease;
}
.social-tile:hover .social-tile-overlay { opacity: 1; }
.social-tile-overlay .platform {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.social-tile-overlay .caption {
  font-size: 0.85rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background: var(--paper); flex-direction: column;
    padding: 6rem 2rem 2rem; gap: 1.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--ink) !important; }
  .nav-toggle { display: block; }
  .page-hero { padding: 7rem 1.5rem 4rem; min-height: 50vh; }
  .container, .container-narrow, .container-wide { padding: 0 1.5rem; }
  section, section.spacious { padding: 4rem 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  footer { padding: 4rem 1.5rem 2rem; }
  .cta-band { padding: 4rem 1.5rem; }
  .social-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; gap: 0.75rem; }
  .social-section-header { padding: 0 1.5rem; margin-bottom: 3rem; }
  .social-embed-slot { padding: 0 1.5rem; }
  .social-handles { gap: 1rem; }
}

/* ====== LOGO (dual-mode) ====== */
.logo-img {
  height: 128px; width: auto;
  display: block;
  transition: filter 0.4s ease, opacity 0.3s ease;
}

/* Default: show LIGHT-bg logo, hide DARK-bg logo */
.logo-img.logo-dark { display: none; }
.logo-img.logo-light { display: block; }

/* Nav structure */
nav.site-nav .logo {
  display: flex; align-items: center;
  padding: 0; line-height: 0;
}
nav.site-nav {
  padding: 0.75rem 3rem;
}

/* On transparent nav (over dark hero), show DARK-bg logo instead */
nav.transparent:not(.scrolled) .logo-img.logo-light { display: none; }
nav.transparent:not(.scrolled) .logo-img.logo-dark { display: block; }

/* Footer always has dark bg, so show DARK-bg logo */
footer .logo-img.logo-light { display: none; }
footer .logo-img.logo-dark { display: block; }

footer .logo-img {
  height: 160px;
}

@media (max-width: 768px) {
  .logo-img { height: 96px; }
  footer .logo-img { height: 120px; }
  nav.site-nav { padding: 0.5rem 1.5rem; }
}
