/* ═══════════════════════════════════════════════════════════════════════════
   THE POOL HUT — Main Stylesheet
   Colors: Navy #0D1B2A | Gold #C8963E | Teal #1A8FA0 | Sand #F5EDD8
═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --navy:      #0D1B2A;
  --navy-mid:  #162336;
  --gold:      #C8963E;
  --gold-light:#E2B96A;
  --teal:      #1A8FA0;
  --teal-light:#E6F4F6;
  --sand:      #F5EDD8;
  --sand-dark: #EAD9B8;
  --white:     #FFFFFF;
  --off-white: #FAFAF8;
  --gray-100:  #F4F4F2;
  --gray-200:  #E8E8E4;
  --gray-500:  #8A8A7E;
  --gray-700:  #4A4A42;
  --text:      #1A1A14;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.18);
  --transition: 0.3s ease;

  --container: 1200px;
  --section-pad: 100px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ──────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--navy); }
.section-sand { background: var(--sand); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; border-radius: 50px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #147a8b; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,143,160,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b5822f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,150,62,0.35); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 22px; font-size: 0.875rem; margin-top: 16px; }

/* ── Section headers ────────────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; color: var(--navy); margin-bottom: 20px; }
.section-title.light { color: var(--white); }
.section-sub { font-size: 1.05rem; color: var(--gray-700); max-width: 600px; }
.section-sub.light { color: rgba(255,255,255,0.75); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { margin: 0 auto; }

/* ── Reveal animation ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding: 0;
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 80px; display: flex; align-items: center; gap: 32px;
}
#navbar.scrolled .nav-inner { height: 68px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { font-size: 1.6rem; color: var(--gold); line-height: 1; transform: rotate(45deg); display: inline-block; }
.logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.logo-accent { color: var(--gold); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta { background: var(--gold); color: var(--white); padding: 10px 22px; border-radius: 50px; font-weight: 600; }
.nav-links .nav-cta:hover { background: #b5822f; }

/* Phone */
.nav-phone { flex-shrink: 0; }
.nav-phone a { color: rgba(255,255,255,0.88); font-size: 0.875rem; font-weight: 500; transition: color var(--transition); }
.nav-phone a:hover { color: var(--gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-video-wrap { position: absolute; inset: 0; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.72) 0%, rgba(13,27,42,0.40) 60%, rgba(26,143,160,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 820px; padding: 0 24px;
  animation: fadeUp 1s ease 0.3s both;
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite;
}
.scroll-arrow {
  display: block; width: 28px; height: 28px;
  border-right: 2px solid rgba(255,255,255,0.6); border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg); margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════════════════════════ */
.trust-bar { background: var(--navy); padding: 28px 0; }
.trust-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 40px; }
.trust-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1; }
.trust-label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.trust-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-image-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--white);
  padding: 18px 24px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  line-height: 1.3; text-align: center; box-shadow: var(--shadow);
}
.about-copy p { color: var(--gray-700); margin-bottom: 18px; font-size: 1.05rem; }
.about-pillars { display: flex; gap: 24px; margin: 32px 0; flex-wrap: wrap; }
.pillar { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.pillar-icon { font-size: 1.4rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 16px;
  margin-bottom: 48px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item--large { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, transparent 100%);
  padding: 24px 20px 20px; transform: translateY(8px);
  transition: transform var(--transition); opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-location { font-size: 0.82rem; color: var(--gold-light); font-weight: 500; margin-bottom: 4px; }
.gallery-tag { font-size: 1rem; color: var(--white); font-weight: 600; font-family: var(--font-head); }
.gallery-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); padding: 40px 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border-top: 3px solid transparent;
  transition: all var(--transition);
}
.service-card:hover { border-top-color: var(--teal); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 2.4rem; margin-bottom: 20px; display: block; }
.service-card h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.service-card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-copy p { color: var(--gray-700); margin-bottom: 18px; font-size: 1.05rem; }
.why-cards { display: flex; flex-direction: column; gap: 24px; }
.why-card {
  background: var(--white); padding: 28px 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: flex; gap: 24px; align-items: flex-start;
  transition: transform var(--transition);
}
.why-card:hover { transform: translateX(6px); }
.why-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--gold); opacity: 0.6; line-height: 1; flex-shrink: 0; width: 44px; }
.why-card h4 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-card p { color: var(--gray-700); font-size: 0.9rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════════════════════ */
.process-steps { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.process-step { display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: flex-start; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%; background: var(--teal);
  color: var(--white); font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,143,160,0.3);
}
.step-content { padding-top: 12px; padding-bottom: 48px; }
.step-content h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-content p { color: var(--gray-700); font-size: 0.975rem; }
.process-connector { width: 2px; height: 32px; background: var(--teal); opacity: 0.3; margin-left: 31px; margin-top: -32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 36px 32px; backdrop-filter: blur(4px);
}
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 18px; }
.testimonial-card p { color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold);
  color: var(--white); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--white); font-size: 0.95rem; }
.testimonial-author span { display: block; color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE AREAS
═══════════════════════════════════════════════════════════════════════════ */
.cities-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.city-tag {
  background: var(--white); border: 1.5px solid var(--gray-200);
  color: var(--navy); font-size: 0.9rem; font-weight: 500;
  padding: 10px 22px; border-radius: 50px;
  transition: all var(--transition); cursor: default;
}
.city-tag:hover { background: var(--teal); color: var(--white); border-color: var(--teal); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-copy p { color: var(--gray-700); margin-bottom: 32px; font-size: 1.05rem; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; font-size: 0.975rem; }
.contact-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.contact-info-item a { color: var(--navy); font-weight: 500; transition: color var(--transition); }
.contact-info-item a:hover { color: var(--teal); }

/* Form */
.quote-form { background: var(--white); border-radius: var(--radius-lg); padding: 48px 44px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--off-white); transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,143,160,0.12); background: var(--white); }
.form-group textarea { resize: vertical; }
.form-disclaimer { text-align: center; font-size: 0.78rem; color: var(--gray-500); margin-top: 14px; }

/* Form success state */
.hidden { display: none !important; }
.form-success {
  background: var(--white); border-radius: var(--radius-lg); padding: 64px 44px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; background: #d1fae5;
  color: #065f46; font-size: 2rem; font-weight: 700; margin-bottom: 24px;
}
.form-success h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); margin-bottom: 14px; }
.form-success p { color: var(--gray-700); }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; margin-top: 16px; margin-bottom: 24px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links ul, .footer-services ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-services li { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 10px; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-badge { bottom: 16px; right: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 24px; gap: 4px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open a { padding: 14px 16px; border-radius: var(--radius); font-size: 1rem; }
  .nav-links.open .nav-cta { text-align: center; margin-top: 8px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .trust-grid { gap: 0; }
  .trust-item { padding: 12px 20px; }
  .trust-divider { display: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item--large { grid-row: span 1; }
  .gallery-item { height: 260px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .process-step { grid-template-columns: 56px 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .trust-grid { flex-direction: column; }
  .trust-divider { width: 40px; height: 1px; }
  .about-pillars { flex-direction: column; }
}
