/* Endow Water — shared styles
   Brand: dark teal RGB(0,106,90) · lime RGB(108,192,73) */

:root {
  --teal: rgb(0, 106, 90);
  --teal-deep: rgb(0, 78, 66);
  --teal-soft: rgba(0, 106, 90, 0.08);
  --lime: rgb(108, 192, 73);
  --lime-dark: rgb(86, 158, 54);
  --cream: #f7f5f0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a6360;
  --border: rgba(0, 106, 90, 0.12);
  --shadow: 0 12px 40px rgba(0, 40, 30, 0.12);
  --radius: 4px;
  --max: 1120px;
  --nav-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lime-dark); }
ul { list-style: none; }

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

/* —— Typography —— */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.eyebrow--teal { color: var(--teal); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 36em;
}

.tagline {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
}

.footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.25rem;
  max-width: 40em;
}
.footnote a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--lime);
  color: var(--teal-deep);
  border-color: var(--lime);
}
.btn--primary:hover { background: var(--lime-dark); color: var(--white); border-color: var(--lime-dark); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo img { height: 36px; width: auto; }
.logo-tag {
  display: none;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-left: 1px solid var(--border);
  padding-left: 0.65rem;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .logo-tag { display: block; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal);
  background: var(--teal-soft);
}
.nav-cta {
  display: none;
  padding: 0.55rem 1.1rem !important;
  font-size: 0.85rem !important;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.15rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--teal-deep);
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 0.75rem; border-bottom: none !important; }

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  overflow: hidden;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: url("../assets/sunglow-cover.png") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}
@media (min-width: 800px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 4rem 0 3rem;
    gap: 2.5rem;
  }
}
.hero-copy .eyebrow { color: var(--lime); }
.hero-copy h1 { color: var(--white); margin-bottom: 1rem; }
.hero-copy .lead { color: rgba(255,255,255,0.88); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}
.hero-bottle {
  width: min(280px, 70vw);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 1;
}
.hero-label-line {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
}

/* —— Sections —— */
.section { padding: 4.5rem 0; }
.section--cream { background: var(--cream); }
.section--teal {
  background: var(--teal);
  color: var(--white);
}
.section--teal h2,
.section--teal h3 { color: var(--white); }
.section--teal .lead,
.section--teal p { color: rgba(255,255,255,0.9); }
.section--teal a:not(.btn) { color: var(--lime); }

.mission-band {
  text-align: center;
  padding: 3.75rem 0;
}
.mission-band .stat {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}
.mission-band .stat-label {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--white);
  max-width: 28em;
  margin: 0 auto 1.5rem;
}

.need-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.need-number {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
}
.need-card p { margin-top: 1rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--reverse .split-media { order: 2; }
  .split--reverse .split-copy { order: 1; }
}
.split-media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.split-media--glow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  background: url("../assets/sunglow-light.png") center / cover no-repeat;
  border-radius: 0;
}
.split-media--glow img {
  width: min(240px, 55%);
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 40, 30, 0.2));
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(108, 192, 73, 0.45);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.card h3 { color: var(--teal); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .btn { margin-top: 1.25rem; }

.cta-band {
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band .lead { margin: 0 auto; }

/* —— Page hero (inner) —— */
.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/sunglow-cover.png") right center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .lead { color: rgba(255,255,255,0.88); }

/* —— Forms —— */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: var(--teal-soft);
  border-radius: var(--radius);
  color: var(--teal-deep);
  margin-top: 1rem;
}
.form-success.is-visible { display: block; }

/* —— Find / placeholder —— */
.placeholder-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--cream);
  border: 1px dashed rgba(0, 106, 90, 0.3);
  border-radius: var(--radius);
  max-width: 640px;
  margin: 0 auto;
}
.placeholder-box h3 { color: var(--teal); }
.placeholder-box p { color: var(--muted); margin: 0.75rem auto 0; max-width: 32em; }

/* —— Legal —— */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-content p, .legal-content li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }

/* —— Footer —— */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand .tagline { margin-top: 0.85rem; color: var(--lime); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); max-width: 28em; }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  padding: 0.3rem 0;
}
.footer-col a:hover { color: var(--lime); }
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--lime); }

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
