/* ==========================================================================
   Integrity Pools, LLC — Design tokens (minimal & refined, single page)
   Palette: near-monochrome deep lagoon + warm neutrals, brass used sparingly
   Display: Fraunces, set light and generous — refinement through restraint
   Body: Inter — Utility/eyebrows: Archivo
   ========================================================================== */

:root {
  --lagoon:        #12395E;
  --lagoon-light:  #1D5585;
  --lagoon-deep:   #0A2540;
  --teal-muted:    #2F8FC4;
  --brass:         #B08D42;
  --brass-soft:    #E4D9BE;
  --stone:         #F1F4F6;
  --ivory:         #FBFCFC;
  --white:         #FFFFFF;
  --ink:           #17232E;
  --ink-soft:      #56636D;
  --line:          rgba(23, 35, 46, 0.10);
  --line-strong:   rgba(23, 35, 46, 0.18);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-eyebrow: "Archivo", var(--font-body);

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--lagoon-deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section--sand { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--lagoon { background: var(--lagoon); color: var(--ivory); }
.section--lagoon h2, .section--lagoon h3 { color: var(--ivory); font-weight: 300; }
.section--lagoon p { color: rgba(251,250,247,0.62); }

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass); }

.lede { font-size: 1.1rem; max-width: 52ch; color: var(--ink-soft); font-weight: 400; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--lagoon-deep); color: var(--ivory); border-color: var(--lagoon-deep); }
.btn-primary:hover { background: var(--lagoon); }
.btn-outline { background: transparent; color: var(--ivory); border-color: rgba(251,250,247,0.35); }
.btn-outline:hover { border-color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--lagoon-deep); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lagoon-deep); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 42px; } }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--lagoon-deep); }
.nav-cta { display: flex; align-items: center; gap: 26px; }
.nav-phone { font-weight: 500; font-size: 0.86rem; color: var(--ink-soft); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--lagoon-deep); margin: 6px 0; transition: 0.25s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: var(--ivory);
    flex-direction: column; padding: 40px 32px; gap: 28px; align-items: flex-start;
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-phone { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,37,64,0.58) 0%, rgba(10,37,64,0.86) 100%),
    url("../images/hero-water.jpg") center/cover no-repeat;
  color: var(--ivory);
  overflow: hidden;
  padding: 170px 0 130px;
}
.caustics {
  position: absolute; inset: 0; opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.022' numOctaves='2' seed='11' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0.16  0 0 0 0 0.42  0 0 0 0 0.68  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 160% 160%;
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-2%, -2%) scale(1.03); } }
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero .lede { color: rgba(251,250,247,0.58); }
.hero-actions { display: flex; gap: 20px; margin-top: 38px; flex-wrap: wrap; align-items: center; }
.trust-bar {
  position: relative; z-index: 2; margin-top: 90px; padding-top: 30px;
  border-top: 1px solid rgba(251,250,247,0.12);
  display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 0.78rem;
  color: rgba(251,250,247,0.5); letter-spacing: 0.04em; font-weight: 400;
}
.trust-bar strong { color: rgba(251,250,247,0.85); font-weight: 500; }

/* Grids & cards */
.grid { display: grid; gap: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: transparent; border: none; border-top: 1px solid var(--line-strong); padding: 28px 0 0; }
.card-icon {
  width: 34px; height: 34px; border-radius: 50%; background: transparent; color: var(--teal-muted);
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card-icon svg { width: 15px; height: 15px; }

/* Area blocks (no links — single page) */
.area-card { padding: 38px 4px; border-top: 1px solid var(--line-strong); }
.area-card h3 { color: var(--lagoon-deep); }
.area-card p { color: var(--ink-soft); margin-bottom: 0; }

/* Testimonial */
.testimonial {
  font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; color: var(--lagoon-deep);
  max-width: 720px; margin: 0 auto; text-align: center; line-height: 1.4;
}
.testimonial-attr { margin-top: 24px; font-family: var(--font-eyebrow); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; text-align: center; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center; justify-content: center; }
.badge { font-family: var(--font-eyebrow); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--line-strong); padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 4px; border: none; border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-body); font-size: 0.95rem; background: transparent; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lagoon-deep); }
.field textarea { resize: vertical; min-height: 100px; }
.g-recaptcha { margin-bottom: 4px; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; line-height: 1.6; }
.form-status { margin-top: 18px; font-size: 0.88rem; font-weight: 500; display: none; }
.form-status.success { display: block; color: var(--lagoon); }
.form-status.error { display: block; color: #9C4A34; }

/* Footer */
.site-footer { background: var(--lagoon-deep); color: rgba(251,250,247,0.55); padding: 80px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: rgba(251,250,247,0.85); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--font-eyebrow); margin-bottom: 20px; font-weight: 600; }
.footer-grid ul li { margin-bottom: 11px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--brass-soft); }
.footer-logo { font-family: var(--font-display); font-weight: 300; font-size: 1.2rem; color: var(--ivory); margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(251,250,247,0.10); padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.76rem;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
