/*
Theme Name:   American Aquifers – Blocksy Child
Description:  Child theme for American Aquifers nonprofit website
Template:     blocksy
Version:      2.0.0
Text Domain:  blocksy-child
Author:       American Aquifers
*/

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --aa-ink:       #0b1f2e;
  --aa-deep:      #093550;
  --aa-aquifer:   #0a6e8a;
  --aa-current:   #13a9cc;
  --aa-surface:   #7dd8ef;
  --aa-fog:       #e8f6fb;
  --aa-white:     #ffffff;
  --aa-display:   'Barlow Condensed', sans-serif;
  --aa-body:      'Inter', sans-serif;
}

/* ─── BLOCKSY GLOBAL WIRING ─────────────────────────────── */
body {
  font-family: var(--aa-body) !important;
  color: var(--aa-ink);
}
:root {
  --theme-palette-color-1: #13a9cc !important;
  --theme-palette-color-2: #0a6e8a !important;
  --theme-palette-color-3: #093550 !important;
  --theme-palette-color-4: #0b1f2e !important;
}

/* ─── NAV / HEADER ──────────────────────────────────────── */
.ct-header {
  background: rgba(11,31,46,0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19,169,204,0.15);
}
.ct-main-nav > ul > li > a {
  font-family: var(--aa-body) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.7) !important;
  transition: color 0.2s;
}
.ct-main-nav > ul > li > a:hover { color: var(--aa-current) !important; }

/* ─── LAYOUT HELPERS ────────────────────────────────────── */
.aa-main { margin: 0; padding: 0; }

.aa-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.aa-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ─── SHARED TYPOGRAPHY ─────────────────────────────────── */
.aa-eyebrow, .aa-label {
  font-family: var(--aa-display) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}
.aa-eyebrow { color: var(--aa-current); }
.aa-label   { color: var(--aa-aquifer); }

/* Section headings */
.aa-mission h2, .aa-crisis h2, .aa-collab h2, .aa-help h2, .aa-donate h2 {
  font-family: var(--aa-display) !important;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.aa-mission h2 em { font-style: normal; color: var(--aa-aquifer); }
.aa-crisis h2 em,
.aa-collab h2 em  { font-style: normal; color: var(--aa-current); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.aa-btn {
  display: inline-block;
  font-family: var(--aa-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.aa-btn--primary {
  background: var(--aa-current);
  color: var(--aa-ink);
}
.aa-btn--primary:hover { background: var(--aa-surface); transform: translateY(-1px); }

.aa-btn--ghost {
  border: 1px solid rgba(255,255,255,0.38);
  color: var(--aa-white);
  background: transparent;
}
.aa-btn--ghost:hover { border-color: var(--aa-current); color: var(--aa-current); }

.aa-btn--white {
  background: var(--aa-white);
  color: var(--aa-deep);
  font-weight: 600;
}
.aa-btn--white:hover { background: var(--aa-fog); transform: translateY(-2px); }

.aa-btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ─── WAVE DIVIDER ───────────────────────────────────────── */
.aa-wave { line-height: 0; overflow: hidden; margin-bottom: -2px; }
.aa-wave svg { display: block; width: 100%; }

/* ─── HERO ───────────────────────────────────────────────── */
.aa-hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  background: linear-gradient(158deg, #0b1f2e 0%, #093550 55%, #0a6e8a 100%);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.aa-hero::before {
  content: '';
  position: absolute;
  width: 650px; height: 650px;
  border-radius: 50%;
  background: var(--aa-current);
  filter: blur(90px);
  opacity: 0.18;
  top: -120px; right: -120px;
  pointer-events: none;
}
.aa-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--aa-aquifer);
  filter: blur(80px);
  opacity: 0.2;
  bottom: 50px; left: -60px;
  pointer-events: none;
}
.aa-hero .aa-container { position: relative; z-index: 2; }

.aa-hero h1 {
  font-family: var(--aa-display) !important;
  font-size: clamp(3.6rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.01em;
  color: var(--aa-white);
  margin: 0.8rem 0 1.6rem;
}
.aa-hero h1 em { font-style: normal; color: var(--aa-current); display: block; }
.aa-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 50ch;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Stat strip */
.aa-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.aa-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.aa-stat__num {
  font-family: var(--aa-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--aa-current);
  line-height: 1;
}
.aa-stat__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 18ch;
  line-height: 1.4;
}

/* ─── MISSION ────────────────────────────────────────────── */
.aa-mission {
  background: var(--aa-fog);
  padding: 6rem 0;
}
.aa-mission h2 { color: var(--aa-deep); }
.aa-mission p  { color: #2d4a5e; line-height: 1.8; margin-bottom: 1rem; }

/* Pillars */
.aa-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--aa-white);
  border-left: 3px solid var(--aa-current);
  border-radius: 3px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}
.aa-pillar__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.aa-pillar h3 {
  font-family: var(--aa-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aa-deep);
  margin: 0 0 0.25rem;
}
.aa-pillar p { font-size: 0.87rem; color: #4a6a7d; line-height: 1.6; margin: 0; }

/* ─── CRISIS ─────────────────────────────────────────────── */
.aa-crisis {
  background: var(--aa-deep);
  padding: 6rem 0;
}
.aa-crisis h2  { color: var(--aa-white); }
.aa-crisis-intro { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.8; max-width: 58ch; margin-bottom: 3rem; }

.aa-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.aa-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(19,169,204,0.22);
  border-radius: 3px;
  padding: 2rem 1.6rem;
}
.aa-card__num {
  font-family: var(--aa-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--aa-current);
  line-height: 1;
  margin: 0 0 0.5rem;
}
.aa-card h3 {
  font-family: var(--aa-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--aa-white);
  letter-spacing: 0.03em;
  margin: 0 0 0.6rem;
}
.aa-card p { font-size: 0.87rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin: 0 0 0.8rem; }
.aa-card__source {
  font-size: 0.72rem;
  color: var(--aa-current);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

/* ─── COLLABORATION ──────────────────────────────────────── */
.aa-collab {
  background: var(--aa-ink);
  padding: 6rem 0;
}
.aa-collab h2 { color: var(--aa-white); }
.aa-collab p  { color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 1rem; }

.aa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(19,169,204,0.12);
  border: 1px solid rgba(19,169,204,0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--aa-current);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.aa-col-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-circle {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aa-aquifer), var(--aa-current));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 0 0 14px rgba(19,169,204,0.12), 0 0 0 28px rgba(19,169,204,0.06);
}
.aa-circle__name {
  font-family: var(--aa-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--aa-ink);
  line-height: 1.1;
}
.aa-circle__sub {
  font-size: 0.7rem;
  color: rgba(11,31,46,0.7);
  font-weight: 500;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

/* ─── HELP / CONTACT ─────────────────────────────────────── */
.aa-help {
  background: #071825;
  padding: 6rem 0;
  border-top: 1px solid rgba(19,169,204,0.12);
}
.aa-help h2 { color: var(--aa-white); }
.aa-help p  { color: rgba(255,255,255,0.65); line-height: 1.8; }

.aa-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.aa-contact-row  { display: flex; gap: 1rem; align-items: flex-start; }
.aa-contact-icon {
  width: 36px; height: 36px;
  background: rgba(19,169,204,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0; line-height: 36px;
  text-align: center;
}
.aa-contact-lbl {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.aa-contact-val { font-size: 0.95rem; color: var(--aa-current); text-decoration: none; }
.aa-contact-val:hover { text-decoration: underline; }

/* CF7 / WPForms dark styling */
.aa-help .wpcf7-form input,
.aa-help .wpcf7-form textarea,
.aa-help .wpforms-field input,
.aa-help .wpforms-field textarea {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 2px !important;
  color: var(--aa-white) !important;
  font-family: var(--aa-body) !important;
  font-size: 0.9rem !important;
  padding: 0.75rem 1rem !important;
  width: 100% !important;
  transition: border-color 0.2s;
}
.aa-help .wpcf7-form input:focus,
.aa-help .wpcf7-form textarea:focus { border-color: var(--aa-current) !important; outline: none !important; }
.aa-help .wpcf7-form label,
.aa-help .wpforms-field-label {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.5) !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}
.aa-help .wpcf7-submit,
.aa-help .wpforms-submit {
  background: var(--aa-current) !important;
  color: var(--aa-ink) !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.aa-help .wpcf7-submit:hover,
.aa-help .wpforms-submit:hover { background: var(--aa-surface) !important; }

/* ─── DONATE ─────────────────────────────────────────────── */
.aa-donate {
  background: linear-gradient(135deg, var(--aa-aquifer) 0%, var(--aa-deep) 100%);
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aa-donate::before {
  content: 'EVERY DROP COUNTS';
  position: absolute;
  font-family: var(--aa-display);
  font-size: 11vw;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -0.02em;
  pointer-events: none;
}
.aa-donate-inner { position: relative; max-width: 700px; margin: 0 auto; }
.aa-donate h2  { color: var(--aa-white); }
.aa-donate p   { color: rgba(255,255,255,0.72); font-size: 0.98rem; line-height: 1.8; max-width: 52ch; margin: 0 auto 2.5rem; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.ct-footer {
  background: #050f16 !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.ct-footer, .ct-footer p, .ct-footer a { color: rgba(255,255,255,0.45) !important; font-family: var(--aa-body) !important; }
.ct-footer a:hover { color: var(--aa-current) !important; }
.ct-footer .widget-title {
  font-family: var(--aa-display) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--aa-white) !important;
}

/* ─── HIDE BLOCKSY PAGE TITLE on homepage ────────────────── */
.aa-homepage .entry-header,
.aa-homepage .page-title,
.aa-homepage .ct-page-hero { display: none !important; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .aa-two-col { grid-template-columns: 1fr; gap: 3rem; }
  .aa-cards   { grid-template-columns: 1fr 1fr; }
  .aa-col-visual { display: none; }
}
@media (max-width: 600px) {
  .aa-hero { padding: 5rem 0 3rem; }
  .aa-hero h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .aa-stats { gap: 2rem; }
  .aa-cards { grid-template-columns: 1fr; }
  .aa-mission, .aa-crisis, .aa-collab, .aa-help { padding: 4rem 0; }
  .aa-donate { padding: 4rem 0; }
  .aa-donate::before { display: none; }
  .aa-container { padding: 0 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
