/* ═══════════════════════════════════
   REVIVE POOLS — v2.0
   Colors matched to brand logo
   ═══════════════════════════════════ */

:root {
  --navy: #17245b;
  --royal: #1e4389;
  --mid-blue: #2d62b3;
  --sky: #5bb8e8;
  --cyan: #7fdfff;
  --ice: #bfffff;
  --pale-ice: #e8f9ff;
  --deep: #0e153a;
  --sand: #f5f3ef;
  --cream: #fcfbf9;
  --text: #1a2035;
  --muted: #596882;
  --border: rgba(0,0,0,0.06);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ─── WATERMARK BACKGROUNDS ─── */
.wm-light { position: relative; overflow: hidden; }
.wm-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/watermark-light.png');
  background-repeat: repeat;
  background-size: 280px auto;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}
.wm-light > * { position: relative; z-index: 1; }

.wm-dark { position: relative; overflow: hidden; }
.wm-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/watermark-dark.png');
  background-repeat: repeat;
  background-size: 280px auto;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}
.wm-dark > * { position: relative; z-index: 1; }

/* ─── NAV ─── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0.9rem 2.5rem; display: flex; align-items: center; justify-content: space-between; transition: all 0.5s cubic-bezier(0.22,1,0.36,1); }
.site-nav.scrolled { background: rgba(14,21,58,0.97); backdrop-filter: blur(16px); padding: 0.6rem 2.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 80px; width: auto; transition: height 0.4s; }
.site-nav.scrolled .nav-logo img { height: 54px; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--cyan); transition: width 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--cyan) !important; color: var(--navy) !important; padding: 0.65rem 1.6rem; border-radius: 50px; font-weight: 700 !important; box-shadow: 0 2px 12px rgba(127,223,255,0.25); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(127,223,255,0.35) !important; background: var(--ice) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 2.5px; background: #fff; border-radius: 3px; transition: all 0.35s; display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ─── HERO ─── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--deep); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(30,67,137,0.35) 0%, transparent 60%), radial-gradient(ellipse 70% 50% at 75% 70%, rgba(127,223,255,0.12) 0%, transparent 55%), linear-gradient(175deg, #080d28 0%, #0e153a 30%, var(--royal) 80%, var(--mid-blue) 100%); }
.hero-watermark { position: absolute; inset: 0; background-image: url('../img/watermark-dark.png'); background-repeat: repeat; background-size: 280px auto; background-position: center; pointer-events: none; z-index: 1; }
.caustics { position: absolute; inset: 0; opacity: 0.05; background: repeating-conic-gradient(rgba(127,223,255,0.3) 0%, transparent 2%, transparent 8%) 50% 50% / 120px 120px; animation: causticShift 12s ease-in-out infinite; }
@keyframes causticShift { 0%,100% { transform: scale(1) rotate(0deg); opacity: 0.04; } 33% { transform: scale(1.1) rotate(2deg); opacity: 0.07; } 66% { transform: scale(0.95) rotate(-1deg); opacity: 0.03; } }
.particle { position: absolute; background: rgba(127,223,255,0.4); border-radius: 50%; animation: pf linear infinite; }
@keyframes pf { 0% { transform: translateY(100vh); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) translateX(50px); opacity: 0; } }
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 780px; padding: 0 2rem; }
.hero-logo { width: 560px; max-width: 70vw; height: auto; margin-bottom: 1.5rem; opacity: 0; animation: hf 0.8s ease-out 0.1s forwards; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3)); }
.hero-tagline { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--cyan); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 2rem; opacity: 0; animation: hf 0.8s ease-out 0.2s forwards; }
.hero-tagline span { width: 32px; height: 1.5px; background: var(--cyan); }
@keyframes hf { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem,5.5vw,4.2rem); color: #fff; line-height: 1.15; margin-bottom: 1.5rem; font-weight: 700; opacity: 0; animation: hf 0.8s ease-out 0.4s forwards; }
.hero h1 .accent { color: var(--cyan); font-style: italic; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 540px; margin: 0 auto 2.5rem; opacity: 0; animation: hf 0.8s ease-out 0.6s forwards; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: hf 0.8s ease-out 0.8s forwards; }
.hero-trust { margin-top: 3.5rem; display: flex; justify-content: center; gap: 3rem; opacity: 0; animation: hf 0.8s ease-out 1s forwards; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.trust-item strong { color: #fff; font-size: 1.3rem; font-weight: 700; }
.trust-item span { color: rgba(255,255,255,0.45); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.scroll-cue { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 3; opacity: 0; animation: hf 0.8s ease-out 1.2s forwards; }
.scroll-cue .line { width: 1.5px; height: 40px; background: linear-gradient(to bottom, var(--cyan), transparent); margin: 0 auto; animation: sp 2s infinite; }
@keyframes sp { 0%,100% { opacity: 0.5; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(0.6); } }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2.2rem; border-radius: 50px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.35s; border: none; }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 4px 20px rgba(127,223,255,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(127,223,255,0.4); background: var(--ice); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-outline { background: transparent; color: var(--royal); border: 2px solid var(--royal); border-radius: 50px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem; }
.btn-outline:hover { background: var(--royal); color: #fff; }

/* ─── SECTIONS ─── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3.5px; color: var(--royal); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.7rem); color: var(--navy); margin-bottom: 1rem; font-weight: 700; }
.section-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 520px; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-desc { margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── ABOUT ─── */
#about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: 1.2rem; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-signature { margin-top: 2rem; padding-top: 1.5rem; border-top: 1.5px solid var(--border); }
.about-signature .name { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.about-signature .role { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.about-promises { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.promise-card { background: var(--sand); border-radius: var(--radius); padding: 1.8rem 1.5rem; border: 1px solid var(--border); transition: all 0.35s; }
.promise-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(23,36,91,0.08); border-color: rgba(30,67,137,0.12); }
.promise-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.promise-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.promise-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ─── SERVICES ─── */
#services { background: var(--sand); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card { background: var(--cream); border-radius: var(--radius-lg); padding: 2.5rem 2rem 2rem; position: relative; overflow: hidden; transition: all 0.4s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(23,36,91,0.08); border-color: rgba(30,67,137,0.15); }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--royal), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(30,67,137,0.08), rgba(127,223,255,0.08)); display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; font-size: 1.4rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.6rem; }
.service-card > p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.2rem; flex-grow: 1; }
.service-includes { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.service-includes li { font-size: 0.84rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.service-includes li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.service-price { margin-top: 1.2rem; padding: 0.8rem 1rem; background: linear-gradient(135deg, rgba(30,67,137,0.04), rgba(127,223,255,0.04)); border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.service-price .label { color: var(--muted); font-weight: 500; }
.service-price .amount { color: var(--navy); font-weight: 700; }

/* ─── PRICING ─── */
#pricing { background: var(--cream); }
.pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; max-width: 820px; margin: 0 auto; }
.pricing-card { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; background: #fff; position: relative; transition: all 0.4s; }
.pricing-card:hover { border-color: rgba(30,67,137,0.2); box-shadow: 0 12px 40px rgba(23,36,91,0.07); }
.pricing-card.featured { background: linear-gradient(175deg, var(--deep), var(--navy) 60%, var(--royal)); color: #fff; border: none; box-shadow: 0 20px 56px rgba(14,21,58,0.3); }
.pricing-badge { position: absolute; top: -11px; right: 24px; background: var(--cyan); color: var(--navy); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 0.35rem 1rem; border-radius: 50px; }
.pricing-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.3rem; }
.pricing-subtitle { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.8rem; }
.pricing-card.featured .pricing-subtitle { color: rgba(255,255,255,0.5); }
.pricing-amount { font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 0.2rem; }
.pricing-amount sup { font-size: 1.2rem; vertical-align: super; }
.pricing-period { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.45); }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.pricing-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; line-height: 1.45; }
.pricing-list li .check { color: var(--cyan); font-weight: 800; flex-shrink: 0; }

/* ─── AREA ─── */
#area { background: linear-gradient(175deg, var(--deep), var(--navy) 50%, var(--royal)); color: #fff; }
#area .section-eyebrow { color: var(--cyan); }
#area .section-title { color: #fff; }
#area .section-desc { color: rgba(255,255,255,0.55); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.area-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center; transition: all 0.35s; }
.stat-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-3px); }
.stat-number { font-family: var(--font-display); font-size: 2.2rem; color: var(--cyan); margin-bottom: 0.3rem; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.area-towns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.town-tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 0.45rem 1rem; border-radius: 50px; font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ─── CONTACT ─── */
#contact { background: var(--sand); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info-side h2 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.contact-info-side > p { color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(30,67,137,0.08), rgba(127,223,255,0.08)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-bottom: 0.2rem; }
.contact-detail-text span, .contact-detail-text a { font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.contact-detail-text a:hover { color: var(--royal); }
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: 0 8px 32px rgba(23,36,91,0.05); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid rgba(0,0,0,0.09); border-radius: 12px; font-family: var(--font-body); font-size: 0.92rem; color: var(--text); background: #fff; transition: all 0.3s; outline: none; appearance: none; -webkit-appearance: none; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23596882' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(30,67,137,0.06); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-message { text-align: center; padding: 2rem 1rem; display: none; }
.form-message.show { display: block; }
.form-message .success-icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--sky)); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; color: var(--navy); }
.form-message h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.5rem; }
.form-message p { color: var(--muted); }
.form-error { color: #e53e3e; font-size: 0.85rem; margin-top: 0.5rem; display: none; }

/* ─── FOOTER ─── */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.4); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo-wrap img { height: 50px; width: auto; filter: brightness(1.2); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 0.78rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 340px; height: 100vh; background: var(--deep); flex-direction: column; padding: 5rem 2rem; gap: 1.5rem; transition: right 0.4s; box-shadow: -10px 0 40px rgba(0,0,0,0.3); z-index: 1001; }
  .nav-links.open { right: 0; }
  .about-grid, .area-grid, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4.5rem 1.5rem; }
  .hero-trust { gap: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .about-promises, .area-stats { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: 1.2rem; }
}
