/* Hill Country Pool & Spa — "modern concept" homepage
   Standalone stylesheet, does not touch the live site's styles.css.
   Same brand colors as the live site: teal #0F6E56, pool blue #6fc7ed, navy #0d2137, gray #718096 */

:root {
  --teal: #0F6E56;
  --teal-bright: #14b98d;
  --pool-blue: #6fc7ed;
  --pool-blue-deep: #2ea3d6;
  --navy: #0d2137;
  --navy-deep: #071018;
  --gray: #718096;
  --white: #ffffff;
  --off-white: #f6faf9;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal-delay-3 { transition-delay: .34s; }
.reveal-delay-4 { transition-delay: .46s; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 1.1rem 1.5rem;
  transition: background .3s ease, backdrop-filter .3s ease;
}
.nav-wrap.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 30px rgba(13,33,55,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 34px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.nav-links { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--white); letter-spacing: 0.01em;
  transition: color .25s ease;
}
.nav-wrap.scrolled .nav-links a { color: var(--navy); }
.nav-links a:hover { color: var(--pool-blue); }
.nav-wrap.scrolled .nav-links a:hover { color: var(--teal); }
.nav-cta {
  padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  background: rgba(255,255,255,0.16); color: var(--white); text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(6px);
  transition: all .25s ease;
}
.nav-wrap.scrolled .nav-cta { background: var(--teal); color: var(--white); border-color: var(--teal); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,110,86,0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a3d55 0%, #0F6E56 42%, #1a8a86 68%, #2ea3d6 100%);
  background-size: 200% 200%;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0% { background-position: 0% 30%; }
  100% { background-position: 100% 70%; }
}

/* shimmer light streaks across the water-colored hero */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0.05) 2px,
    rgba(255,255,255,0) 10px,
    rgba(255,255,255,0.09) 14px,
    rgba(255,255,255,0) 26px
  );
  background-size: 260% 260%;
  animation: shimmerMove 9s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes shimmerMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 130% 90%; }
}

/* soft glow blobs for depth */
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero-glow--1 { width: 480px; height: 480px; top: -140px; left: -120px; background: radial-gradient(circle, rgba(111,199,237,0.45), transparent 70%); }
.hero-glow--2 { width: 420px; height: 420px; bottom: -160px; right: -100px; background: radial-gradient(circle, rgba(20,185,141,0.4), transparent 70%); }

.hero-content {
  position: relative; z-index: 3;
  max-width: 760px; margin: 0 auto; padding: 7rem 1.5rem 10rem;
  text-align: center; color: var(--white);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  padding: 0.45rem 1rem; border-radius: 999px; backdrop-filter: blur(6px);
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fffc9; box-shadow: 0 0 10px #6fffc9; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.hero h1 .accent {
  background: linear-gradient(90deg, #d8fff2, #6fc7ed 60%, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px; margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 2rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; background: var(--white); color: var(--teal);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-glass:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0,0,0,0.3); }
.btn-outline-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; color: var(--white);
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}
.btn-outline-glass:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

.scroll-cue {
  position: absolute; bottom: 128px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.75); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  z-index: 3;
}
.scroll-cue .chevron { width: 18px; height: 18px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(45deg); opacity: .6; } 50% { transform: translateY(8px) rotate(45deg); opacity: 1; } }

/* ---------- Water surface (SVG waves) at hero base ---------- */
.wave-layer { position: absolute; left: 0; width: 200%; z-index: 2; }
.wave-layer svg { display: block; width: 50%; height: auto; float: left; }
.wave-1 { bottom: 86px; animation: waveScroll 16s linear infinite; opacity: 0.55; }
.wave-2 { bottom: 66px; animation: waveScroll 11s linear infinite reverse; opacity: 0.75; }
.wave-3 { bottom: 40px; animation: waveScroll 8s linear infinite; opacity: 1; }
@keyframes waveScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Infinity edge — water spilling over ---------- */
.infinity-edge {
  position: relative; height: 130px; overflow: hidden;
  background: linear-gradient(180deg, #1a8a86 0%, #0d2137 100%);
}
.infinity-edge .lip {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
  box-shadow: 0 0 24px 4px rgba(255,255,255,0.5);
}
.spill { position: absolute; inset: 0; display: flex; }
.spill span {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(111,199,237,0.55), rgba(111,199,237,0.05) 70%);
}
.spill span::after {
  content: ""; position: absolute; inset: -40% 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.55) 0 2px, rgba(255,255,255,0) 2px 14px);
  animation: spillFlow linear infinite;
  filter: blur(0.4px);
}
@keyframes spillFlow { from { transform: translateY(-30%); } to { transform: translateY(30%); } }
.infinity-edge .mist {
  position: absolute; bottom: -30px; left: 0; right: 0; height: 90px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.35), transparent 70%);
  filter: blur(10px);
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 1.5rem; position: relative; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner.narrow { max-width: 780px; }
.eyebrow-label {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 1rem; }
.section-lead { color: var(--gray); font-size: 1.05rem; max-width: 620px; margin: 0 0 2.75rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Services — glass cards */
.services-section { background: linear-gradient(180deg, var(--off-white), #eef8f5); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.glass-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,110,86,0.1);
  border-radius: 18px; padding: 1.9rem;
  box-shadow: 0 10px 30px rgba(13,33,55,0.06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.glass-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(15,110,86,0.16); border-color: rgba(15,110,86,0.3); }
.glass-card .icon-badge {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #fff; font-size: 1.3rem; box-shadow: 0 8px 18px rgba(15,110,86,0.3);
}
.glass-card h3 { font-size: 1.08rem; color: var(--navy); margin: 0 0 0.5rem; }
.glass-card p { color: var(--gray); margin: 0; font-size: 0.94rem; }

/* How it works — timeline */
.timeline-wrap { position: relative; margin-top: 3rem; }
.timeline-track { position: absolute; top: 26px; left: 0; right: 0; height: 3px; background: rgba(15,110,86,0.15); border-radius: 3px; }
.timeline-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--pool-blue)); border-radius: 3px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.timeline-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.timeline-step { text-align: center; }
.timeline-num {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 3px solid var(--teal); color: var(--teal);
  font-weight: 800; font-size: 1.2rem; position: relative; z-index: 2;
  box-shadow: 0 8px 20px rgba(15,110,86,0.18);
}
.timeline-step h3 { font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--navy); }
.timeline-step p { color: var(--gray); font-size: 0.92rem; margin: 0; max-width: 260px; margin-inline: auto; }

/* Waterfall feature panel */
.waterfall-panel {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #14384a, var(--navy-deep) 70%);
  padding: 6rem 1.5rem;
}
.waterfall-streaks { position: absolute; inset: 0; display: flex; justify-content: center; gap: 0; }
.streak {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(111,199,237,0.28), rgba(111,199,237,0.02) 85%);
}
.streak::after {
  content: ""; position: absolute; inset: -50% 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.7) 0 1.5px, rgba(255,255,255,0) 1.5px 10px);
  animation: streakFall linear infinite;
  filter: blur(0.3px);
}
@keyframes streakFall { from { transform: translateY(-40%); } to { transform: translateY(40%); } }
.waterfall-base-mist {
  position: absolute; bottom: -10%; left: 10%; right: 10%; height: 220px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.22), transparent 70%);
  filter: blur(24px);
}
.waterfall-content {
  position: relative; z-index: 3; max-width: 640px; margin: 0 auto; text-align: center; color: var(--white);
}
.waterfall-content .eyebrow-label { color: var(--pool-blue); }
.waterfall-content h2 { color: var(--white); }
.waterfall-content p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
.feature-pill {
  padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--white); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(120deg, var(--teal), var(--pool-blue-deep), var(--teal-bright));
  background-size: 220% 220%;
  animation: ctaShift 12s ease-in-out infinite alternate;
}
@keyframes ctaShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 480px; margin: 0 auto 2rem; }

/* Footer (kept close to live site) */
footer.site-footer { background: var(--navy); color: #cbd5e0; padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-inner h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 1rem; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin-bottom: 0.5rem; }
.footer-inner a { color: #cbd5e0; text-decoration: none; font-size: 0.9rem; }
.footer-inner a:hover { color: var(--pool-blue); }
.footer-wordmark img { height: 34px; display: block; margin-bottom: 0.75rem; }
.footer-bottom { max-width: var(--max-width); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid #2d3d52; text-align: center; font-size: 0.85rem; color: #718096; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .timeline-steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline-track, .timeline-fill { display: none; }
  .hero-content { padding-top: 8rem; }
}

/* ---------- Real video backgrounds (photorealistic concept) ---------- */
.video-bg-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.video-bg {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
/* soft independent pulse used to help disguise the loop seam of unprocessed source footage */
.video-tint {
  position: absolute; inset: 0; z-index: 1;
  animation: tintPulse 14s ease-in-out infinite;
}
@keyframes tintPulse {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 0.94; }
}
.hero .video-tint {
  background: linear-gradient(180deg, rgba(10,40,50,0.55) 0%, rgba(15,110,86,0.35) 45%, rgba(46,163,214,0.55) 100%);
}
.waterfall-panel .video-tint {
  background: linear-gradient(180deg, rgba(7,16,24,0.55) 0%, rgba(7,16,24,0.35) 40%, rgba(7,16,24,0.9) 100%);
}
.hero .hero-content, .hero .scroll-cue, .hero .hero-glow { z-index: 3; }
.waterfall-panel .waterfall-content, .waterfall-panel .waterfall-base-mist { z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .video-bg { display: none; }
  .hero { background: linear-gradient(160deg, #0a3d55, #0F6E56, #2ea3d6); }
  .waterfall-panel { background: radial-gradient(ellipse at 50% 0%, #14384a, #071018 70%); }
}
