/* ============================================
   Oasis Purely Water — Premium Florida Water Filtration
   Color palette, typography, layout
   ============================================ */

:root {
  --primary: #1a365d;
  --secondary: #2EC4B6;
  --accent-cta: #00B3A4;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F8;
  --text: #1a365d;
  --text-muted: #4A5568;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 72px;
  --container: min(1200px, 92vw);
  --radius: 6px;
  --shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
  --transition: 0.25s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* --------------------------------------------
   Header
   -------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.logo {
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.4rem;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
  border-radius: 1px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-cta-header {
  flex-shrink: 0;
  background: var(--accent-cta);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-cta-header:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-cta);
  color: #fff;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-cta-large {
  background: #fff;
  color: var(--primary);
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.btn-cta-large:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* Call button (hero + CTA section) */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-call:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.2);
}

.btn-call-icon {
  display: inline-flex;
}

.btn-call-icon svg {
  flex-shrink: 0;
}

/* Call button as primary (green) */
.btn-primary.btn-call {
  background: var(--accent-cta);
  color: #fff;
  border-color: transparent;
}
.btn-primary.btn-call:hover {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
}

/* Call button in CTA section (white on navy) */
.btn-call-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-call-cta:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Call button in footer */
.btn-call-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-call-footer:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* --------------------------------------------
   Hero
   -------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg);
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(28px);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 520px;
  opacity: 0;
  transform: translateY(24px);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
}

.hero-image {
  opacity: 0;
  transform: translateX(24px);
}

.hero.hero-loaded .hero-title {
  animation: heroFadeInUp 0.7s var(--ease-out-expo) forwards;
  animation-delay: 0.1s;
}

.hero.hero-loaded .hero-subhead {
  animation: heroFadeInUp 0.7s var(--ease-out-expo) forwards;
  animation-delay: 0.25s;
}

.hero.hero-loaded .hero-ctas {
  animation: heroFadeInUp 0.7s var(--ease-out-expo) forwards;
  animation-delay: 0.4s;
}

.hero.hero-loaded .hero-image {
  animation: heroFadeInRight 0.8s var(--ease-out-expo) forwards;
  animation-delay: 0.35s;
}

.hero-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 2px dashed rgba(13, 27, 42, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: transform 0.4s var(--ease-out-expo), box-shadow var(--transition);
}

.hero-image:hover .hero-image-placeholder {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.hero-image-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.4s var(--ease-out-expo), box-shadow var(--transition);
}

.hero-image:hover .hero-image-img {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* --------------------------------------------
   Sub-page layout (Water Quality Guide, Our Story)
   -------------------------------------------- */
.page-content {
  padding-bottom: 0;
}

.page-hero-sub {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-lead {
  margin: 0;
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Sub-page section variety: light blue tint */
.section-tint-blue {
  background: rgba(26, 54, 93, 0.06);
}

/* Sub-page section with background image (e.g. water-pouring) */
.section-with-bg {
  position: relative;
  background-color: var(--bg-alt);
}

.section-with-bg .section-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-with-bg .section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
}

.section-with-bg .container,
.section-with-bg .container-narrow {
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 720px;
}

/* Homepage: Water Quality Guide & Our Story button groups */
.homepage-links-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0 1.5rem;
}
.homepage-links-wrap--light .btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
}
.homepage-links-wrap--light .btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.content-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--primary);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.content-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.content-subtitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

/* Filter systems page: system images */
.filter-system-figure {
  margin: 1.5rem 0;
}
.filter-system-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-system-figure figcaption {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Our Story: Heritage & Values image */
.heritage-figure {
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.heritage-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(13, 27, 42, 0.15), 0 2px 8px rgba(13, 27, 42, 0.08);
  object-fit: cover;
}
.heritage-figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Homepage: inline links to filter systems (not nav) */
.system-links-intro {
  margin-top: -0.5rem;
}
.system-links-intro a {
  color: var(--accent-cta);
  font-weight: 600;
  text-decoration: none;
}
.system-links-intro a:hover {
  text-decoration: underline;
  color: var(--secondary);
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.content-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  line-height: 1.6;
  color: var(--text-muted);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.content-list-risks li {
  padding: 0.85rem 0 0.85rem 1.5rem;
}

.content-list-benefits li {
  padding: 0.85rem 0 0.85rem 1.5rem;
}

.content-cta-text {
  font-weight: 600;
  color: var(--primary);
  margin: 1.25rem 0 1rem;
}

.content-cta-wrap {
  margin: 1.5rem 0 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.nav-link-current {
  color: #fff;
  font-weight: 600;
}

.nav-link-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------
   Sections
   -------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 0.75rem;
  text-align: center;
  opacity: 0;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  opacity: 0;
}

.section-intro a {
  color: var(--accent-cta);
  font-weight: 600;
  text-decoration: none;
}

.section-intro a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.section-title.reveal,
.section-intro.reveal {
  animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
}

/* --------------------------------------------
   Florida PFAS hotspot (Why Florida Water)
   -------------------------------------------- */
.hotspot-figure {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hotspot-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hotspot-caption {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------
   Icon grid (Why Florida Water)
   -------------------------------------------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.icon-block {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
}

.icon-block.reveal {
  animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
}

.icon-block.reveal:nth-child(1) { animation-delay: 0s; }
.icon-block.reveal:nth-child(2) { animation-delay: 0.08s; }
.icon-block.reveal:nth-child(3) { animation-delay: 0.16s; }
.icon-block.reveal:nth-child(4) { animation-delay: 0.24s; }

.icon-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.12);
}

.icon-block-icon {
  width: 48px;
  height: 48px;
  color: var(--secondary);
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease-out-expo);
}

.icon-block:hover .icon-block-icon {
  transform: scale(1.08);
}

.icon-block-icon svg {
  width: 100%;
  height: 100%;
}

.icon-block-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.icon-block-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------
   3-Stage System
   -------------------------------------------- */
.system-section .section-intro {
  margin-bottom: 2rem;
}

.system-visual {
  margin-bottom: 2.5rem;
  opacity: 0;
}

.system-visual.reveal {
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.system-video {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.system-image-placeholder {
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  border: 2px dashed rgba(13, 27, 42, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* --------------------------------------------
   Design reveal (closed / open image slider)
   -------------------------------------------- */
.design-reveal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.design-reveal-content {
  padding-right: 1rem;
}

.design-reveal-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--primary);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.design-reveal-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.design-reveal-slider-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.image-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 280px;
  max-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  --compare: 50;
}

.image-compare-base,
.image-compare-overlay {
  position: absolute;
  inset: 0;
}

.image-compare-base img,
.image-compare-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-compare-overlay {
  clip-path: inset(0 calc(100% - var(--compare) * 1%) 0 0);
}

.image-compare-overlay img {
  position: absolute;
  inset: 0;
}

.image-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--compare) * 1%);
  width: 28px;
  margin-left: -14px;
  cursor: ew-resize;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: margin-left 0.05s ease-out;
}

.image-compare-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.image-compare-handle-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.image-compare-handle-icon svg {
  width: 20px;
  height: 20px;
}

.image-compare-handle:hover .image-compare-handle-icon {
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.25);
}

@media (max-width: 768px) {
  .design-reveal-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .design-reveal-content {
    padding-right: 0;
    order: 1;
  }
  .design-reveal-slider-wrap {
    order: 2;
  }
}

.stage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stage-card {
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  opacity: 0;
}

.stage-card.reveal {
  animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
}

.stage-card.reveal:nth-child(1) { animation-delay: 0s; }
.stage-card.reveal:nth-child(2) { animation-delay: 0.1s; }
.stage-card.reveal:nth-child(3) { animation-delay: 0.2s; }

.stage-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.stage-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stage-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--primary);
}

.stage-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.system-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------
   Timeline (Installation)
   -------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-step {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition);
  opacity: 0;
}

.timeline-step.reveal {
  animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
}

.timeline-step.reveal:nth-child(1) { animation-delay: 0s; }
.timeline-step.reveal:nth-child(2) { animation-delay: 0.08s; }
.timeline-step.reveal:nth-child(3) { animation-delay: 0.16s; }
.timeline-step.reveal:nth-child(4) { animation-delay: 0.24s; }

.timeline-step:hover {
  transform: translateY(-2px);
}

.timeline-step:hover .timeline-num {
  transform: scale(1.05);
}

.timeline-num {
  transition: transform 0.3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.timeline-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.timeline-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------
   Guarantee
   -------------------------------------------- */
.guarantee-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.guarantee-list li {
  padding: 1rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
}

.guarantee-list li.reveal {
  animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
}

.guarantee-list li.reveal:nth-child(1) { animation-delay: 0s; }
.guarantee-list li.reveal:nth-child(2) { animation-delay: 0.08s; }
.guarantee-list li.reveal:nth-child(3) { animation-delay: 0.16s; }
.guarantee-list li.reveal:nth-child(4) { animation-delay: 0.24s; }

.guarantee-list li:last-child {
  border-bottom: none;
}

.guarantee-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.guarantee-list strong {
  color: var(--primary);
}

/* --------------------------------------------
   Service areas
   -------------------------------------------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.city-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  opacity: 0;
}

.city-card.reveal {
  animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
}

.city-card.reveal:nth-child(1) { animation-delay: 0s; }
.city-card.reveal:nth-child(2) { animation-delay: 0.08s; }
.city-card.reveal:nth-child(3) { animation-delay: 0.16s; }
.city-card.reveal:nth-child(4) { animation-delay: 0.24s; }

.city-card:hover {
  transform: translateY(-2px);
}

.seo-paragraph {
  max-width: 800px;
  margin: 0 auto;
}

.seo-paragraph p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------
   Official Government Water Quality Resources
   -------------------------------------------- */
.resources-section {
  background: var(--bg);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.resource-card {
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  opacity: 0;
}

.resource-card.reveal {
  animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
}

.resource-card.reveal:nth-child(1) { animation-delay: 0s; }
.resource-card.reveal:nth-child(2) { animation-delay: 0.06s; }
.resource-card.reveal:nth-child(3) { animation-delay: 0.12s; }
.resource-card.reveal:nth-child(4) { animation-delay: 0.18s; }
.resource-card.reveal:nth-child(5) { animation-delay: 0.24s; }
.resource-card.reveal:nth-child(6) { animation-delay: 0.3s; }

.resource-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 24px rgba(13, 27, 42, 0.08);
  transform: translateY(-2px);
}

.resource-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  color: var(--primary);
  line-height: 1.3;
}

.resource-card-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.resource-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-cta);
  text-decoration: none;
  margin-top: auto;
  transition: color var(--transition), gap var(--transition);
}

.resource-card-link:hover {
  color: var(--secondary);
  gap: 0.6rem;
}

.resource-card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-card-icon svg {
  width: 1em;
  height: 1em;
}

.resources-disclaimer {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.resources-section-footer {
  background: var(--bg-alt);
}

.resources-section-footer .resource-card {
  background: #fff;
}

/* --------------------------------------------
   Final CTA
   -------------------------------------------- */
.cta-section .container {
  opacity: 0;
}

.cta-section .container.reveal {
  animation: fadeInUp 0.7s var(--ease-out-expo) forwards;
}

.cta-section {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
  min-height: 0;
  flex: 0 0 auto;
}

.cta-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: #fff;
  text-align: center;
}

.cta-subhead {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section .btn-cta-large:hover {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
}

.contact-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-or-call {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-phone-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cta-phone-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------
   Footer — full-width thin bar, same on all pages
   -------------------------------------------- */
.footer {
  width: 100%;
  box-sizing: border-box;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover {
  color: #fff;
}

.footer-social {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-social:hover {
  color: #fff;
}

/* --------------------------------------------
   Modal
   -------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 27, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal {
  animation: modalPop 0.35s var(--ease-out-expo) forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.modal-header h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
  color: var(--primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.modal-body {
  padding: 1.5rem;
}

.modal-diagram-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  border: 2px dashed rgba(13, 27, 42, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-descriptions p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-descriptions p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------
   Animations
   -------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* --------------------------------------------
   Responsive
   -------------------------------------------- */
@media (max-width: 1024px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-cards {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav,
  .btn-cta-header {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header.nav-open .nav,
  .header.nav-open .btn-cta-header {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding: 1rem 1.5rem;
  }

  .header.nav-open .header-inner {
    padding-bottom: 1.5rem;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    order: 4;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .header.nav-open .btn-cta-header {
    width: 100%;
    order: 5;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 3rem;
  }

  .hero-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-title {
    text-align: center;
  }

  .hero-subhead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .icon-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-subhead, .hero-ctas, .hero-image,
  .section-title, .section-intro, .icon-block, .stage-card,
  .timeline-step, .city-card, .resource-card, .system-visual, .guarantee-list li,
  .cta-section .container {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .modal-overlay.is-open .modal {
    animation: none;
    transform: scale(1);
  }

  .nav-link::after {
    transition: none;
  }
}
