/* Terri's Crystal Clear Pools */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --aqua: #13c4d6;
  --aqua-deep: #0a8fa3;
  --aqua-soft: #dff6fa;
  --sun: #ffb703;
  --sun-deep: #f59e0b;
  --bg: #ffffff;
  --tint: #f2fafc;
  --text: #1c2b3a;
  --muted: #5a6b7d;
  --line: #dbe7ee;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow: 0 12px 32px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.18);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--aqua-deep); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 12px; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--aqua-deep);
  margin-bottom: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.btn-lg { padding: 16px 28px; font-size: 1.075rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(11, 37, 69, .22); }
.btn-primary:hover { background: var(--navy-2); }

.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 8px 22px rgba(255, 183, 3, .35); }
.btn-sun:hover { background: #ffc531; }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex: none; border-radius: 50%; box-shadow: 0 2px 8px rgba(11, 37, 69, .15); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #000; white-space: nowrap; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; color: var(--navy); text-decoration: none;
  position: relative; padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 18px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0b2545 0%, #0e3a66 45%, #0a6f8f 100%);
  padding: clamp(80px, 11vw, 150px) 0 clamp(130px, 14vw, 200px);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 28, 54, .88) 0%, rgba(8, 28, 54, .70) 45%, rgba(8, 28, 54, .25) 100%),
    linear-gradient(0deg, rgba(8, 28, 54, .45), transparent 40%);
}

.hero-caustics {
  position: absolute; inset: -20%; pointer-events: none; opacity: .22; mix-blend-mode: screen;
  background-image:
    radial-gradient(closest-side, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(closest-side, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(closest-side, rgba(255,255,255,.8), transparent 70%);
  background-size: 220px 140px, 300px 190px, 180px 120px;
  background-position: 0 0, 90px 60px, 160px 20px;
  filter: blur(14px);
  animation: drift 26s linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(-220px,-140px,0) rotate(2deg); }
}

.hero-inner { position: relative; }
.hero-copy { max-width: 680px; }
.hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero h1 { color: #fff; }
.hero .accent {
  background: linear-gradient(90deg, #7ef0fb, #13c4d6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .eyebrow { color: #8be9f5; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 40em; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.25rem; }

.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255,255,255,.82); font-size: .98rem; }
.hero-badges li { display: flex; align-items: baseline; gap: 6px; }
.hero-badges strong { font-family: var(--font-head); color: #fff; font-size: 1.35rem; }

.hero-card {
  background: rgba(255,255,255,.97); color: var(--text);
  border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
}

.status {
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--muted);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #9fb0bf; }
.status.is-open { background: #e5f8ee; color: #137a43; }
.status.is-open .status-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
.status.is-closed { background: #fdf0ec; color: #b4462a; }
.status.is-closed .status-dot { background: #ef6a4a; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hours-list { list-style: none; padding: 0; margin: 0 0 22px; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 10px; font-size: .98rem;
}
.hours-list li + li { border-top: 1px dashed var(--line); }
.hours-list li span:first-child { font-weight: 600; color: var(--navy); }
.hours-list li span:last-child { color: var(--muted); text-align: right; }
.hours-list li.today { background: var(--aqua-soft); border-top-color: transparent; }
.hours-list li.today + li { border-top-color: transparent; }
.hours-list li.today span:last-child { color: var(--navy); font-weight: 600; }

.wave { position: absolute; left: 0; width: 100%; height: clamp(60px, 8vw, 120px); }
.wave-bottom { bottom: -1px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); }
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe7ef; }
.service-card p { color: var(--muted); margin: 0; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--aqua-soft), #c3eef6);
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--aqua-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

.about-photo { position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px;
  box-shadow: var(--shadow-lg); border: 8px solid #fff;
}
.years-badge {
  position: absolute; right: -18px; bottom: -22px;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 18px 22px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg);
}
.years-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--sun); line-height: 1; }
.years-label { font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 22vw, 290px); gap: 18px; }
.g-item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; }
.gallery-more { text-align: center; margin: 32px 0 0; font-family: var(--font-head); font-weight: 600; }
.gallery-more a { text-decoration: none; }
.gallery-more a:hover { text-decoration: underline; }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card {
  text-align: center; padding: 34px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--tint)); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.area-card svg { width: 40px; height: 40px; margin: 0 auto 14px; fill: none; stroke: var(--aqua-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.area-card h3 { margin: 0; font-size: 1.15rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 7vw, 84px) 0;
  background: linear-gradient(120deg, #0b2545 0%, #0e3a66 50%, #0a7f99 100%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }
.info-block { margin-bottom: 1.6rem; }
.info-block h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .35em; }
.info-link { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.info-link:hover { color: var(--aqua-deep); }
.info-block .hours-list { max-width: 420px; }

.form-card {
  background: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  position: relative;
}
.form-card::before {
  content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 4px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--aqua), var(--sun));
}
.form-title { font-size: 1.45rem; margin-bottom: 1.25rem; }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.req { color: #d9534f; }
.field input,
.field select,
.field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfdfe;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fbfdfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--aqua); background-color: #fff; box-shadow: 0 0 0 4px rgba(19,196,214,.18); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); text-align: center; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.brand-footer .brand-name { color: #fff; }
.footer-tag { margin-top: 1rem; max-width: 30em; font-size: .97rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .97rem; }
.footer-list a { color: rgba(255,255,255,.85); text-decoration: none; word-break: break-word; }
.footer-list a:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 22px 0; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Mobile call button */
.mobile-call {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--sun); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  padding: 15px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 30px rgba(11,37,69,.3);
}
.mobile-call svg { width: 22px; height: 22px; }

/* Simple page (thank-you / 404) */
.simple-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.simple-page .hero-card { max-width: 560px; margin: 0 auto; padding: 48px 36px; }
.simple-page .big-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-soft); }
.simple-page .big-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--aqua-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.simple-page p { color: var(--muted); }
.simple-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-wide { grid-column: span 2; grid-row: span 2; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; margin: 0 auto 20px; width: 100%; }
  .years-badge { right: 12px; }
  .mobile-call { display: inline-flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .container { width: calc(100% - 32px); }
  .brand { gap: 10px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: clamp(.95rem, 4.4vw, 1.1rem); }
  .services-grid, .areas-grid, .footer-grid, .field-row, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 240px; }
  .g-wide { grid-column: auto; grid-row: auto; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(8, 28, 54, .78), rgba(8, 28, 54, .82)); }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .hours-list li { font-size: .93rem; padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
