:root {
  --teal: #0B4F6C;
  --aqua: #2EC4B6;
  --charcoal: #1F2933;
  --mist: #F4F7F8;
  --white: #ffffff;
  --muted: #5A6A76;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 720px;
  --font: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { 
  color: var(--teal); 
  transition: color var(--transition-smooth);
}
a:hover { color: var(--aqua); }

img { max-width: 100%; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}


/* ========================================
   HEADER & LOGO
   ======================================== */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 79, 108, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  width: min(100% - 2rem, 1000px);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal);
  letter-spacing: -0.03em;
}

.logo-text-light {
  font-weight: 500;
  color: var(--aqua);
}

/* Logo animations */
@media (prefers-reduced-motion: no-preference) {
  .logo-icon .water-drop {
    animation: dropFloat 3s ease-in-out infinite;
  }
  .logo-icon .drop-ripple {
    animation: rippleExpand 2s ease-out infinite;
  }
  .logo-icon .ripple-2 {
    animation-delay: 0.3s;
  }
  .logo-icon .mini-drop {
    animation: miniFloat 2.5s ease-in-out infinite alternate;
  }
}

@keyframes dropFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes rippleExpand {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.4; }
}

@keyframes miniFloat {
  0% { opacity: 0.4; transform: translateY(0); }
  100% { opacity: 0.7; transform: translateY(-3px); }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a {
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover { 
  color: var(--teal); 
}


/* ========================================
   WATER BACKGROUND DECORATIONS
   ======================================== */

.water-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 100%;
  color: var(--aqua);
  opacity: 0.03;
}

.wave-top {
  top: 0;
  height: 40vh;
}


/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(165deg, var(--teal) 0%, #0a3d54 45%, #083247 100%);
  color: var(--white);
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tap {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}

.tap-illustration {
  width: 120px;
  height: 200px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-drop {
    animation: heroDrop 3s ease-in-out infinite;
  }
  .hero-drop-1 { animation-delay: 0s; }
  .hero-drop-2 { animation-delay: 0.8s; }
  .hero-drop-3 { animation-delay: 1.6s; }

  .water-stream .stream-path {
    animation: streamFlow 4s ease-in-out infinite;
  }
}

@keyframes heroDrop {
  0% { opacity: 0.8; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(15px); }
  100% { opacity: 0.8; transform: translateY(0); }
}

@keyframes streamFlow {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 20; }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero .sub {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  opacity: 0.9;
  max-width: 42ch;
  line-height: 1.7;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
}

.wave-path {
  transition: d var(--transition-smooth);
}

/* Parallax content */
.parallax-content {
  position: relative;
  z-index: 2;
}


/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  background: var(--aqua);
  color: var(--charcoal);
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 196, 182, 0.4);
  background: #35d4c5;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
}

.btn-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.75rem; 
}


/* ========================================
   SECTIONS & DECORATIONS
   ======================================== */

section {
  padding: 4rem 0;
  position: relative;
}

.section-decorated {
  overflow: visible;
}

section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}

/* Section curves */
.section-curve {
  position: absolute;
  width: 200px;
  height: 100px;
  pointer-events: none;
}

#how .section-curve {
  top: 2rem;
  left: -50px;
}

.curve-bottom {
  bottom: 2rem;
  right: -50px;
  top: auto;
  left: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .curve-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawCurve 2s ease-out forwards;
  }
}

@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

/* Puddle decorations */
.puddle {
  position: absolute;
  width: 150px;
  height: 60px;
  pointer-events: none;
}

.puddle-right {
  right: 0;
  bottom: 20%;
}

.puddle-left {
  left: 0;
  top: 30%;
}

/* Scroll tap animations */
.scroll-tap {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
}

.scroll-tap.visible {
  opacity: 0.15;
  transform: translateY(0);
}

#services .section-tap {
  right: 5%;
  top: 20%;
}

#services .section-tap svg {
  width: 60px;
  height: 80px;
}

.contact-tap {
  left: 5%;
  top: 15%;
}

.contact-tap svg {
  width: 80px;
  height: 120px;
}

@media (prefers-reduced-motion: no-preference) {
  .tap-drop {
    animation: tapDrip 2.5s ease-in-out infinite;
    transform-origin: center top;
  }

  .contact-drop {
    animation: contactDrip 3s ease-in-out infinite;
  }

  .contact-ripple {
    animation: rippleOut 3s ease-out infinite;
  }
}

@keyframes tapDrip {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
  50% { transform: scaleY(1.2) translateY(5px); opacity: 0.7; }
}

@keyframes contactDrip {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

@keyframes rippleOut {
  0% { transform: scale(0.5); opacity: 0; }
  30% { opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}


/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 
    0 1px 3px rgba(31, 41, 51, 0.04),
    0 8px 30px rgba(11, 79, 108, 0.08);
  position: relative;
  overflow: hidden;
}

.card-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.card-areas {
  position: relative;
}

.card-areas h2 {
  position: relative;
  z-index: 1;
}

.card-contact {
  max-width: 500px;
  margin: 0 auto;
}


/* ========================================
   STEPS (HOW IT WORKS)
   ======================================== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  box-shadow: 
    0 1px 3px rgba(31, 41, 51, 0.04),
    0 4px 15px rgba(11, 79, 108, 0.06);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (prefers-reduced-motion: no-preference) {
  .steps li:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 4px 8px rgba(31, 41, 51, 0.06),
      0 12px 30px rgba(11, 79, 108, 0.1);
  }
}

.step-icon {
  width: 48px;
  height: 48px;
}

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

.steps li span:last-child {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--charcoal);
}

.disclosure {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--aqua);
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.08) 0%, rgba(11, 79, 108, 0.04) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.7;
}


/* ========================================
   SERVICES
   ======================================== */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.services li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 4px solid var(--aqua);
  box-shadow: 
    0 1px 3px rgba(31, 41, 51, 0.04),
    0 4px 15px rgba(11, 79, 108, 0.06);
  font-size: 1rem;
  font-weight: 600;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (prefers-reduced-motion: no-preference) {
  .services li:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 4px 8px rgba(31, 41, 51, 0.06),
      0 12px 30px rgba(11, 79, 108, 0.1);
  }
}

.service-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}


/* ========================================
   AREAS
   ======================================== */

.areas {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}


/* ========================================
   FORM
   ======================================== */

.form {
  display: grid;
  gap: 1.1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border: 2px solid #e3e9ee;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.15);
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.form .hint {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.form .hint a {
  font-weight: 600;
}

.form button { 
  justify-self: start;
  margin-top: 0.5rem;
}


/* ========================================
   SECTION WAVE
   ======================================== */

.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  border-top: 1px solid rgba(11, 79, 108, 0.08);
  background: var(--white);
  text-align: center;
}

.site-footer p { 
  margin: 0.35rem 0; 
}

.site-footer strong {
  font-weight: 700;
  color: var(--teal);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
}


/* ========================================
   RESPONSIVE: MOBILE FIRST
   ======================================== */

/* Small mobile (390px base) */
@media (max-width: 520px) {
  .site-header .inner {
    padding: 0.6rem 0;
    flex-wrap: wrap;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav { 
    font-size: 0.8rem; 
    gap: 0.75rem; 
  }

  .hero {
    padding: 3rem 0 5rem;
    min-height: auto;
  }

  .hero-tap {
    display: none;
  }

  .btn-secondary { 
    margin-left: 0; 
  }

  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .steps li {
    grid-template-columns: 40px 1fr;
    padding: 1.25rem 1.15rem;
    gap: 0.85rem;
  }

  .step-icon {
    width: 40px;
    height: 40px;
  }

  .services li {
    padding: 1.25rem 1.15rem;
  }

  .scroll-tap {
    display: none;
  }

  .puddle {
    display: none;
  }

  .section-curve {
    display: none;
  }
}

/* Tablet (768px) */
@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 7rem;
  }

  .hero-tap {
    opacity: 0.3;
  }

  .tap-illustration {
    width: 150px;
    height: 250px;
  }

  section {
    padding: 5rem 0;
  }

  .steps {
    gap: 1.5rem;
  }

  .services {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .card-areas {
    text-align: center;
  }

  .scroll-tap {
    display: block;
  }

  .puddle {
    display: block;
  }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  :root {
    --max: 800px;
  }

  .site-header .inner {
    width: min(100% - 3rem, 1100px);
  }

  .hero {
    padding: 6rem 0 8rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-tap {
    right: 10%;
    opacity: 0.35;
  }

  .tap-illustration {
    width: 180px;
    height: 300px;
  }

  section {
    padding: 6rem 0;
  }

  .steps li {
    padding: 1.75rem 2rem 1.75rem 1.5rem;
  }

  .scroll-tap.visible {
    opacity: 0.2;
  }

  .section-curve {
    width: 250px;
    height: 125px;
  }

  .puddle {
    width: 200px;
    height: 80px;
  }
}


/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-tap {
    opacity: 0.15;
    transform: none;
  }

  .scroll-tap.visible {
    opacity: 0.15;
  }
}

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
