/* ============================================
   EASTON POOLS — Premium Design System
   Midnight / Brass / Refined Luxury
   ============================================ */

/* Fonts loaded via <link> tag in <head> */

/* ── TOKENS ── */
:root {
  --midnight: #0C1117;
  --deep: #151D27;
  --slate: #1E2D3D;
  --brass: #A8926B;
  --brass-glow: #BFA67D;
  --brass-deep: #8E7B5A;
  --linen: #F7F5F2;
  --linen-dim: #C8C3BC;
  --stone: #6B7280;
  --stone-dark: #4B5563;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--linen);
  background: var(--midnight);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--brass-glow); }
ul, ol { list-style: none; }
::selection { background: var(--brass); color: var(--midnight); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── GRAIN ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ── SCROLL REVEAL ── */
.sr { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.sr.vis { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.16s; }
.sr-d3 { transition-delay: 0.24s; }
.sr-d4 { transition-delay: 0.32s; }
.sr-d5 { transition-delay: 0.4s; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(42px, 5.5vw, 68px); }
h2 { font-size: clamp(30px, 3.5vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--brass); }
p { color: var(--linen-dim); line-height: 1.8; font-size: 16px; font-weight: 300; }

.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--brass); flex-shrink: 0; }
.kicker-center { justify-content: center; }
.kicker-center::before { display: none; }

.divider-line { width: 48px; height: 2px; background: var(--brass); margin: 20px 0; border-radius: 1px; }
.divider-center { margin-left: auto; margin-right: auto; }

.sub-text { color: var(--stone); font-size: 17px; line-height: 1.75; max-width: 520px; font-weight: 300; }
.sub-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   NAVIGATION (Rebar Creative pattern)
   Single fixed nav element, no topbar.
   Mobile-nav is a SEPARATE sibling element.
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background-color: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Logo */
.nav-logo { display: flex; align-items: baseline; gap: 0; text-decoration: none; }
.logo-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}
.logo-divider {
  width: 1px;
  height: 18px;
  background: rgba(168,146,107,0.4);
  margin: 0 10px;
  align-self: center;
  transform: translateY(1px);
}
.logo-accent {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--brass);
  font-style: italic;
  letter-spacing: 0.5px;
}
.nav-logo:hover .logo-main { opacity: 0.85; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--linen); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Nav CTA */
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--midnight);
  background: var(--brass);
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 2px 12px rgba(168,146,107,0.2);
}
.nav-cta:hover {
  background: var(--brass-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168,146,107,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  position: relative;
  z-index: 1002;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--linen);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav overlay - SIBLING of .nav, not child */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(12, 17, 23, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.4s, opacity 0.4s;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--brass); }
.mobile-nav .mobile-phone {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 1px;
  text-transform: none;
}
.mobile-nav .mobile-cta {
  margin-top: 8px;
  background: var(--brass);
  color: var(--midnight);
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 13px;
}
.mobile-nav .mobile-cta:hover { background: var(--brass-glow); color: var(--midnight); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 18px 48px;
  border-radius: 3px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-brass {
  background: var(--brass);
  color: var(--midnight);
  box-shadow: 0 2px 16px rgba(168,146,107,0.2);
}
.btn-brass:hover { background: var(--brass-glow); color: var(--midnight); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(168,146,107,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--linen-dim);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); background: rgba(168,146,107,0.04); }
.btn-dark {
  background: var(--midnight);
  color: var(--linen);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-dark:hover { background: var(--deep); }
.btn-white { background: var(--linen); color: var(--midnight); }
.btn-white:hover { background: var(--white); transform: translateY(-2px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,17,23,0.3) 0%, rgba(12,17,23,0.15) 40%, rgba(12,17,23,0.7) 75%, rgba(12,17,23,0.95) 100%),
    linear-gradient(270deg, transparent 50%, rgba(12,17,23,0.4) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: 120px; }
.hero h1 { max-width: 680px; margin-bottom: 24px; }
.hero-sub {
  font-size: 18px;
  color: rgba(247,245,242,0.6);
  max-width: 480px;
  line-height: 1.85;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
  display: flex;
  gap: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(168,146,107,0.15);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  color: var(--brass);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--stone);
  margin-top: 8px;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}
.section-deep { background: var(--deep); }
.section-midnight { background: var(--midnight); }
.section-grad {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--deep) 50%, var(--midnight) 100%);
}

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: 8px; }
.section-header .sub-text { margin-top: 16px; }

/* ── SERVICE CARDS ── */
.services-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 40px 32px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.svc-card:hover { border-color: rgba(168,146,107,0.2); transform: translateY(-6px); background: rgba(255,255,255,0.035); }
.svc-card:hover::before { opacity: 1; }
.svc-card h3 { font-size: 24px; margin-bottom: 14px; }
.svc-card p { font-size: 15px; color: var(--stone); line-height: 1.75; margin-bottom: 20px; }
.svc-link {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease);
}
.svc-link::after { content: '\2192'; }
.svc-card:hover .svc-link { gap: 14px; }

/* ── WHY SECTION ── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 36px 32px;
  border-left: 2px solid transparent;
  transition: all 0.4s var(--ease);
}
.why-card:hover { border-left-color: var(--brass); background: rgba(255,255,255,0.035); }
.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--brass);
}
.why-card p { font-size: 15px; color: var(--stone); line-height: 1.7; }

/* ── PROCESS ── */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.process-item { text-align: center; position: relative; }
.process-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  color: rgba(168,146,107,0.12);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.4s;
  font-style: italic;
}
.process-item:hover .process-num { color: rgba(168,146,107,0.25); }
.process-item h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: 0; }
.process-item p { font-size: 14px; color: var(--stone); line-height: 1.7; }

/* ── AREA TAGS ── */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-tag {
  padding: 14px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  color: var(--linen-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s var(--ease);
}
.area-tag:hover { border-color: var(--brass); color: var(--brass); background: rgba(168,146,107,0.04); transform: translateY(-2px); }

/* ── FAQ ── */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--linen);
  text-align: left;
  transition: color 0.3s;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-q:hover { color: var(--brass); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--brass);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--brass); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.3s;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding-bottom: 28px; }
.faq-a p { font-size: 15px; color: var(--stone); line-height: 1.8; }

/* ── CTA BAND ── */
.cta-band {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brass-deep), var(--brass), var(--brass-glow));
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,17,23,0.08), transparent, rgba(12,17,23,0.12));
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--midnight); margin-bottom: 12px; }
.cta-band p { color: rgba(12,17,23,0.6); font-size: 17px; font-weight: 400; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer {
  background: var(--midnight);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 72px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--stone); line-height: 1.8; margin-top: 16px; }
.footer-phone { color: var(--brass) !important; font-weight: 600; font-size: 16px !important; display: inline-block; margin-top: 16px; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--linen);
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; color: var(--stone); transition: all 0.3s; display: inline-block; font-weight: 400; }
.footer ul a:hover { color: var(--brass); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--stone-dark); letter-spacing: 0.3px; }
.footer-parent {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--stone-dark);
}
.footer-parent span { color: var(--stone); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-row { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 11px; letter-spacing: 2px; }
  .nav-cta { padding: 10px 22px; font-size: 11px; letter-spacing: 2px; }
}

@media (max-width: 900px) {
  /* Rebar Creative pattern: hide desktop nav links and CTA, show hamburger and mobile-nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { min-height: 85vh; padding-bottom: 60px; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .services-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .service-block { grid-template-columns: 1fr !important; }
  .service-block > div[style*="order:0"] { order: 1 !important; }
  .service-block > div[style*="order:1"] { order: 0 !important; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { min-height: 100vh; min-height: 100dvh; padding-bottom: 40px; align-items: center; padding-top: 100px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; width: 100%; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 36px; }
  .process-row { grid-template-columns: 1fr; }
  .nav { padding: 0 20px; }
}
