/* Clean Water Relief — site styles
   Palette pulled from the @cleanwaterrelief Instagram logo (blue droplet + tap) */

:root {
  --blue-light: #5bc8f5;
  --blue: #2ea3e0;
  --blue-mid: #1b8cd1;
  --blue-dark: #0b5a9e;
  --navy: #10263d;
  --ink: #1b2b3a;
  --ink-soft: #4c5f70;
  --bg: #ffffff;
  --bg-soft: #f2f9fd;
  --bg-soft-2: #eaf6fd;
  --border: #dceaf2;
  --white: #ffffff;
  --shadow: 0 20px 45px -25px rgba(11, 90, 158, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --gradient: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  --gradient-soft: linear-gradient(135deg, #eaf7fe, #ffffff);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--blue-dark); text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 24px 40px -20px rgba(11,90,158,0.55); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue-dark);
}
.btn-outline-dark:hover { background: var(--bg-soft-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand span small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-links a.active { color: var(--blue-dark); font-weight: 700; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--blue-dark);
}
.nav-social svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,30,50,0.72), rgba(9,40,66,0.86) 55%, rgba(6,26,46,0.95)),
              linear-gradient(120deg, rgba(11,90,158,0.55), rgba(11,30,50,0.35));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
  max-width: 760px;
}
.hero .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.stats {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.stat {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: "Poppins", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Sections */
.section { padding: 110px 0 90px; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.about-copy p { color: var(--ink-soft); font-size: 1.02rem; }
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-media img { height: 100%; object-fit: cover; }
.about-media .tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(16,38,61,0.85);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}
.step .step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.96rem; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 25px -15px rgba(16,38,61,0.4);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(9,30,50,0.85));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

.gallery-more { text-align: center; margin-top: 40px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.contact-info {
  background: var(--gradient);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info h3 { color: var(--white); }
.contact-info p { color: rgba(255,255,255,0.9); }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.contact-list li svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-list a { color: var(--white); font-weight: 600; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-soft);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.footer-social svg { width: 16px; height: 16px; color: var(--white); }

/* Page hero (projects page) */
.page-hero {
  background: var(--gradient);
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero .eyebrow { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,0.92); font-size: 1.05rem; }

.cta-banner {
  background: var(--bg-soft-2);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  margin-top: 60px;
}
.cta-banner h3 { margin-bottom: 10px; }
.cta-banner p { color: var(--ink-soft); margin-bottom: 26px; }

/* Responsive */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline-dark span.long { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 10px; }
  .hero-content { padding: 100px 0 70px; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 70px 0 60px; }
}

.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
@media (min-width: 721px) {
  .nav-links.open { position: static; flex-direction: row; padding: 0; border: none; }
}
