/* Self-hosted fonts (no Google dependency) */
@font-face{font-family:"Oswald";src:url("../fonts/oswald-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Oswald";src:url("../fonts/oswald-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Oswald";src:url("../fonts/oswald-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Jost";src:url("../fonts/jost-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Jost";src:url("../fonts/jost-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Jost";src:url("../fonts/jost-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

/* =========================================================
   St. Charles Watersheds Alliance — site styles
   Colors taken from the original Wix site. Change them here only.
   ========================================================= */
:root {
  --navy: #18157c;        /* SCWA navy (headings, header text, footer) */
  --navy-deep: #0f0d55;
  --blue: #4d82ef;        /* royal blue tile */
  --green: #acd5a1;       /* sage green panels */
  --green-deep: #5f9e52;
  --yellow: #eade71;      /* yellow accent */
  --mint: #00e3aa;        /* bright accent text */
  --cream: #f7f8f2;
  --text: #24233a;
  --muted: #5b5d72;
  --white: #fff;
  --radius: 10px;
  --max: 1180px;
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Jost", "Avenir", "Futura", "Segoe UI", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(24, 21, 124, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; color: var(--text); line-height: 1.7; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 500; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 90px 0; position: relative; }
.section.tight { padding: 60px 0; }
.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); }
.bg-navy { background: var(--navy); color: #e6e6f5; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--green-deep); margin-bottom: .8em; }
.bg-navy .eyebrow, .on-photo .eyebrow { color: var(--mint); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 780px; }
.center .lead { margin-left: auto; margin-right: auto; }
.bar { width: 60px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 0 0 22px; }
.center .bar { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--white); padding: 13px 28px; border-radius: 40px; text-decoration: none; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; border: 2px solid var(--navy); cursor: pointer; transition: .25s; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn.yellow:hover { background: var(--white); border-color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn.ghost:hover { background: var(--white); color: var(--navy); }
.btn.outline { background: transparent; color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 18px rgba(24,21,124,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 62px; width: auto; transition: transform .4s; }
.brand:hover img { transform: rotate(-8deg); }
.brand span { font-family: var(--font-head); color: var(--navy); font-size: 1.55rem; line-height: 1.05; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav a { white-space: nowrap; position: relative; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px; display: block; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.cta { background: var(--yellow); border-radius: 30px; padding: 9px 18px; margin-left: 8px; }
.nav a.cta::after { display: none; }
.nav a.cta:hover { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 2rem; color: var(--navy); cursor: pointer; }
@media (max-width: 1100px) {
  .brand span { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 82px; background: var(--white); box-shadow: 0 12px 20px rgba(0,0,0,.1); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 22px 24px; }
  .nav a.cta { margin: 10px 0 0; text-align: center; }
}

/* Wave divider */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
.wave svg { width: 100%; height: 70px; display: block; }
.wave.top { top: -1px; bottom: auto; transform: rotate(180deg); }

/* Home hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: -40px 0 0 0; background: url("../images/hero.jpg") center/cover no-repeat; transform: scale(1.06); animation: slowzoom 22s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.14) translateY(-10px); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(15,13,85,.9) 0%, rgba(24,21,124,.6) 45%, rgba(24,21,124,.05) 100%); }
.hero .container { position: relative; z-index: 3; width: 100%; padding-top: 70px; padding-bottom: 150px; }
.hero h1 { color: var(--white); max-width: 760px; margin-bottom: .3em; }
.hero p { font-size: 1.25rem; max-width: 600px; color: #e9eaff; }
.hero .eyebrow { color: var(--mint); font-size: 1rem; }
.badge { position: absolute; z-index: 4; right: 6%; bottom: 150px; width: 170px; transition: transform .3s; animation: bob 4s ease-in-out infinite; }
.badge:hover { transform: rotate(-6deg) scale(1.06); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(3deg); } }
@media (max-width: 800px) { .badge { width: 120px; right: 14px; bottom: 120px; } }

/* Four color tiles (from the Wix design) */
.tiles { position: relative; z-index: 5; margin-top: -110px; }
.tiles .grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; overflow: hidden; box-shadow: 0 25px 50px rgba(15,13,85,.25); }
.tile { position: relative; min-height: 330px; padding: 30px 26px; color: var(--white); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.tile .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .88; transition: opacity .4s; }
.tile:hover .ph { transform: scale(1.1); }
.tile:hover::before { opacity: .72; }
.tile > *:not(.ph) { position: relative; z-index: 2; }
.tile h3 { color: inherit; text-transform: uppercase; font-size: 1.4rem; letter-spacing: .05em; margin-bottom: .4em; }
.tile p { font-size: .98rem; margin: 0 0 16px; opacity: .95; }
.tile .arrow { font-size: 1.8rem; transition: transform .3s; }
.tile:hover .arrow { transform: translateX(8px); }
.tile.t1::before { background: var(--navy); }
.tile.t2::before { background: var(--blue); }
.tile.t3::before { background: #7fb873; }
.tile.t4::before { background: #d8cb4f; }
.tile.t4, .tile.t3 { color: var(--navy-deep); }
@media (max-width: 900px) { .tiles .grid { grid-template-columns: 1fr 1fr; } .tile { min-height: 260px; } }
@media (max-width: 520px) { .tiles .grid { grid-template-columns: 1fr; } }

/* Split layouts */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.photo-stack { position: relative; }
.photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-stack .main { width: 88%; }
.photo-stack .float { position: absolute; width: 46%; right: 0; bottom: -40px; border: 6px solid var(--white); }
.photo-stack .logo-float { position: absolute; width: 120px; left: -20px; top: -30px; box-shadow: none; animation: bob 5s ease-in-out infinite; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 50px; } .split.flip > :first-child { order: 0; } .photo-stack .logo-float { left: 0; } }

/* Photo band (parallax) */
.photo-band { position: relative; color: var(--white); background-size: cover; background-position: center; background-attachment: fixed; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,13,85,.88), rgba(77,130,239,.55)); }
.photo-band .container { position: relative; z-index: 3; }
.photo-band h2, .photo-band h3 { color: var(--white); }
.photo-band p { color: #eef0ff; }
.photo-band.green::before { background: linear-gradient(120deg, rgba(15,13,85,.85), rgba(95,158,82,.55)); }
.quote { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.35; max-width: 900px; margin: 0 auto; }
.quote::before { content: "\201C"; display: block; font-size: 4rem; color: var(--yellow); line-height: .6; }
@media (hover: none) { .photo-band { background-attachment: scroll; } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.feature { background: var(--white); padding: 34px 28px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--yellow); transition: .3s; }
.feature:nth-child(2) { border-top-color: var(--blue); }
.feature:nth-child(3) { border-top-color: var(--green-deep); }
.feature:hover { transform: translateY(-6px); }
.feature .num { font-family: var(--font-head); font-size: 2.6rem; color: var(--green); line-height: 1; }
.feature p { margin: 0; color: var(--muted); }

/* Page hero */
.page-hero { position: relative; color: var(--white); background-size: cover; background-position: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,13,85,.9), rgba(24,21,124,.45)); }
.page-hero .container { position: relative; z-index: 3; padding-top: 110px; padding-bottom: 130px; }
.page-hero h1 { color: var(--white); margin-bottom: .2em; }
.page-hero p { color: #e2e5ff; font-size: 1.25rem; margin: 0; max-width: 680px; }
.page-hero .eyebrow { color: var(--mint); }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: .3s; }
a.card:hover { transform: translateY(-6px); color: var(--text); }
.card .img { overflow: hidden; }
.card .img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s; }
a.card:hover .img img { transform: scale(1.07); }
.card-body { padding: 26px 28px 30px; flex: 1; }
.card-body p { color: var(--muted); }
.more { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); text-decoration: none; }
.tag { display: inline-block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; background: var(--green); color: var(--navy); padding: 3px 12px; border-radius: 20px; margin-bottom: 10px; }

/* Newsletter covers */
.covers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.cover { text-decoration: none; color: var(--text); }
.cover img { width: 100%; aspect-ratio: 8.5/11; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: var(--shadow); transition: .35s; }
.cover:hover img { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 22px 40px rgba(24,21,124,.25); }
.cover h3 { font-size: 1.15rem; margin: 16px 0 2px; }
.cover p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 28px; }
.member { text-align: center; }
.member .ring { width: 170px; height: 170px; margin: 0 auto 16px; border-radius: 50%; padding: 6px; background: conic-gradient(var(--navy), var(--blue), var(--green), var(--yellow), var(--navy)); transition: transform .5s; }
.member:hover .ring { transform: rotate(12deg) scale(1.04); }
.member img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); }
.member h3 { font-size: 1.25rem; margin: 0; }
.member p { margin: 0; color: var(--green-deep); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }

/* Docs list */
.doc-list { display: grid; gap: 16px; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--white); padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow); flex-wrap: wrap; border-left: 6px solid var(--yellow); }
.doc h3 { margin: 0 0 .15em; font-size: 1.2rem; }
.doc p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Gallery + lightbox */
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; cursor: zoom-in; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: var(--white); font-family: var(--font-head); letter-spacing: .03em; font-size: 1.05rem; background: linear-gradient(transparent, rgba(15,13,85,.85)); }
.gallery figcaption small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--mint); letter-spacing: .1em; text-transform: uppercase; }
.lightbox { position: fixed; inset: 0; background: rgba(10,9,50,.93); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 6px; }
.lightbox p { color: #fff; margin-top: 14px; font-family: var(--font-head); font-size: 1.2rem; }
.lightbox button { position: absolute; top: 14px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* Sponsors panel (green with yellow side bars, like the Wix site) */
.sponsor-panel { background: var(--green); border-left: 22px solid var(--yellow); border-right: 22px solid var(--yellow); border-radius: 14px; padding: 56px 44px; }
.sponsor-panel h2 { text-transform: uppercase; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 30px; }
.tier { background: rgba(255,255,255,.75); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: .3s; }
.tier:hover { background: var(--white); transform: translateY(-5px); }
.tier h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.tier .amount { font-family: var(--font-head); color: var(--green-deep); font-size: 1.1rem; }
.tier .medal { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.tier.platinum .medal { background: linear-gradient(135deg, #f4f6f8, #a9b3ba); }
.tier.gold .medal { background: linear-gradient(135deg, #fbe38a, #c99a1e); }
.tier.silver .medal { background: linear-gradient(135deg, #f0f0f0, #9aa0a6); }
.tier.bronze .medal { background: linear-gradient(135deg, #f0b886, #a35d2a); }
.tier .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; min-height: 10px; }
.tier .logos img { max-height: 54px; width: auto; }
@media (max-width: 600px) { .sponsor-panel { border-width: 0 0 0 0; border-top: 10px solid var(--yellow); padding: 40px 22px; } }

/* Partner logo strip */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 40px; }
.logo-strip img { max-height: 70px; width: auto; transition: .3s; }
.logo-strip a:hover img { transform: scale(1.08); }

/* Calendar */
.cal-wrap { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 26px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-head button { background: var(--navy); color: var(--white); border: 0; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1.1rem; }
.cal-head button:hover { background: var(--blue); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar .dow { text-align: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--navy); padding: 6px 0; }
.calendar .day { min-height: 96px; background: var(--cream); border-radius: 8px; padding: 7px; font-size: .85rem; }
.calendar .day.other { background: transparent; color: #c0c3cc; }
.calendar .day.today { background: var(--yellow); }
.calendar .num { font-weight: 600; }
.calendar .event { display: block; margin-top: 4px; background: var(--navy); color: var(--white); border-radius: 5px; padding: 3px 6px; font-size: .78rem; text-decoration: none; line-height: 1.3; }
.calendar .event:hover { background: var(--blue); color: var(--white); }
.cal-empty { margin-top: 18px; padding: 18px 22px; background: var(--green); border-radius: var(--radius); }
@media (max-width: 640px) { .calendar { gap: 3px; } .calendar .day { min-height: 58px; font-size: .72rem; padding: 3px; } .calendar .event { font-size: .62rem; padding: 1px 3px; } .cal-wrap { padding: 14px; } }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 500; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: 13px 16px; border: 2px solid #d8dbe8; border-radius: 8px; font: inherit; background: var(--white); transition: border-color .2s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.inline-form input[type=email] { flex: 1; min-width: 230px; border-radius: 40px; padding-left: 22px; }
.center .inline-form { margin: 0 auto; justify-content: center; }
.form-msg { width: 100%; margin: 8px 0 0; font-weight: 500; color: var(--green-deep); min-height: 1.4em; }
.bg-navy .form-msg, .photo-band .form-msg, .site-footer .form-msg { color: var(--mint); }
.hp { display: none; }
.form-card { background: var(--white); padding: 36px; border-radius: 14px; box-shadow: var(--shadow); }

/* Next-step band */
.next-step { background: var(--yellow); }
.next-step .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.next-step h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Footer */
.site-footer { background: var(--navy); color: #c9cbee; position: relative; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h4 { color: var(--yellow); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 50px; padding: 110px 22px 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 90px; background: var(--white); border-radius: 50%; padding: 4px; }
.footer-brand span { font-family: var(--font-head); color: var(--white); font-size: 1.5rem; line-height: 1.1; }
.footer-partners { background: var(--white); border-radius: 14px; padding: 26px; margin: 0 22px 30px; }
.footer-partners h4 { color: var(--navy); text-align: center; }
.footer-partners .logo-strip img { max-height: 54px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 22px; font-size: .9rem; text-align: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-bg, .badge, .photo-stack .logo-float { animation: none; } }
@media (max-width: 520px) { .tile { min-height: 190px; padding: 24px 22px; } .tiles { margin-top: -80px; } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-bg { z-index: 0; }
.brand img { filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
/* Hero video: mirrored so the flowers sit on the right, away from the headline */
.hero-video { transform: scaleX(-1); object-position: center 60%; }
.hero.has-video::before { background: linear-gradient(100deg, rgba(15,13,85,.85) 0%, rgba(24,21,124,.5) 42%, rgba(24,21,124,0) 75%); }
/* Projects gallery: captions appear on hover, like the original site */
.gallery figcaption { opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(15,13,85,.92)); }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.gallery figcaption strong { display: block; font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: 1.3rem; color: var(--yellow); }
.gallery figcaption span { display: block; font-family: var(--font-body); font-size: .95rem; letter-spacing: 0; line-height: 1.4; margin-top: 4px; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }
/* =========================================================
   Data sections: "Where rainfall goes" (home) and
   "Primary benefits by type" (resources)
   ========================================================= */
.rain-split { align-items: center; }
.chart-card { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 24px 18px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card svg .t { fill: var(--muted); font: 13px var(--font-body); }
.chart-card svg .v { fill: #fff; font: 600 13px var(--font-body); }
.chart-card svg .v.dk { fill: var(--navy); }
.chart-card figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.chart-key { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.chart-key li { display: inline-flex; align-items: center; gap: 7px; }
.chart-key i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }

.matrix-wrap { margin-top: 34px; overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.matrix { border-collapse: collapse; width: 100%; min-width: 700px; font-size: .95rem; line-height: 1.35; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid #e6e8ef; text-align: center; vertical-align: middle; }
.matrix thead th { font-family: var(--font-head); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--white); }
.matrix thead th .dot { display: block; margin: 0 auto 6px; }
.matrix thead th:first-child { text-align: left; }
.matrix tbody th { text-align: left; font-weight: 500; color: var(--text); position: sticky; left: 0; background: var(--white); }
.matrix tbody th .scale { display: block; font-size: .78rem; color: var(--green-deep); }
.matrix tr.grp th { background: var(--green); color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.matrix tbody tr:not(.grp):hover th, .matrix tbody tr:not(.grp):hover td { background: var(--cream); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.dot.off { border: 1.5px solid #cdd1dc; }
.dot.b-flood { background: var(--navy); }
.dot.b-water { background: var(--blue); }
.dot.b-habitat { background: var(--green-deep); }
.dot.b-rec { background: var(--yellow); box-shadow: inset 0 0 0 1.5px #c4b443; }
.dot.b-heat { background: #e07b39; }

/* More free data (resources page) */
.more-data { margin-top: 70px; }
.data-groups { display: block; margin-top: 34px; columns: 2; column-gap: 34px; }
.data-group { break-inside: avoid; margin-bottom: 34px; }
.data-group .doc { flex-wrap: nowrap; }
.data-group .doc .more { white-space: nowrap; }
@media (max-width: 860px) { .data-groups { columns: 1; } .data-group .doc { flex-wrap: wrap; } }
.data-group-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-deep); margin: 0 0 14px; }
.data-group .doc .tag { margin-bottom: 6px; background: var(--yellow); }

/* Before/after label on home card */
.card .img.ba { position: relative; }
.ba-label { position: absolute; top: 10px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: rgba(15,13,85,.75); padding: 3px 10px; border-radius: 20px; }
.ba-before { left: 10px; }
.ba-after { right: 10px; }
.ba-note { position: absolute; bottom: 8px; right: 10px; font-size: .7rem; color: var(--white); background: rgba(0,0,0,.45); padding: 1px 8px; border-radius: 10px; }

/* Benefits matrix: example photo popup */
.matrix-hint { text-align: center; color: var(--navy); font-size: .95rem; margin: 0 0 12px; opacity: .8; }
.matrix .gi-pic { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--navy); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--green-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; display: block; }
.matrix .gi-pic:hover, .matrix .gi-pic:focus-visible { color: var(--blue); text-decoration-color: var(--blue); outline: none; }
.gi-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,9,50,.82); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gi-modal[hidden] { display: none; }
.gi-box { position: relative; background: #fff; border-radius: 12px; max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gi-img { background: var(--cream); min-height: 220px; display: flex; align-items: center; justify-content: center; border-radius: 12px 12px 0 0; overflow: hidden; }
.gi-img img { display: block; width: 100%; max-height: 58vh; object-fit: cover; }
.gi-fallback { padding: 40px 24px; color: var(--navy); font-weight: 500; }
.gi-text { padding: 20px 26px 22px; }
.gi-text h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 8px; font-size: 1.45rem; }
.gi-text p { margin: 0 0 8px; }
.gi-pictured { color: var(--green-deep); font-weight: 500; }
.gi-credit { font-size: .8rem; color: #555; margin-top: 12px !important; }
.gi-credit a { color: var(--blue); }
.gi-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.gi-close:hover, .gi-close:focus-visible { background: var(--yellow); outline: none; }
.gi-img img[hidden], .gi-fallback[hidden] { display: none; }

/* ===== Explore page ===== */
.ex-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 34px 0 14px; }
.ex-chip { font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; border: 2px solid var(--navy); background: #fff; color: var(--navy); padding: 7px 14px; border-radius: 30px; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.ex-chip:hover { background: var(--cream); }
.ex-chip.is-on { background: var(--navy); color: #fff; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.ex-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.dot.natural { background: #5f9e52; } .dot.built { background: #4d82ef; } .dot.learn { background: #d4b62c; }
.ex-count { font-weight: 600; color: var(--navy); }
.ex-map { height: 460px; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(15,13,85,.15); z-index: 1; background: #e8ecef; }
.ex-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 10px 0 40px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.ex-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(15,13,85,.12); display: flex; flex-direction: column; scroll-margin-top: 110px; }
.ex-card[hidden] { display: none; }
.ex-img { position: relative; aspect-ratio: 16/10; background: var(--navy); }
.ex-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-img img[hidden], .ex-fallback[hidden] { display: none; }
.ex-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.ex-natural .ex-fallback { background: linear-gradient(135deg, #2f5e2a, var(--green-deep) 60%, var(--green)); }
.ex-learn .ex-fallback { background: linear-gradient(135deg, var(--navy), #8c7a1c 70%, var(--yellow)); }
.ex-fallback span { font-family: var(--font-head); color: #fff; font-size: 1.35rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; }
.ex-kind { position: absolute; top: 12px; left: 12px; background: rgba(15,13,85,.85); color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; font-family: var(--font-head); }
.ex-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ex-body h3 { margin: 0 0 10px; font-size: 1.3rem; }
.ex-body p { color: var(--muted); font-size: .98rem; }
.ex-where { font-size: .85rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--green-deep) !important; margin: 0 0 4px; font-weight: 600; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ex-tags .tag { margin: 0; font-size: .68rem; padding: 2px 9px; }
.ex-tags .g-flood { background: #cfe0ff; } .ex-tags .g-wq { background: #d6f0f5; } .ex-tags .g-habitat { background: var(--green); }
.ex-tags .g-greenway { background: #e3f1d9; } .ex-tags .g-edu { background: var(--yellow); } .ex-tags .g-built { background: #e2e0ff; }
.ex-look { border-left: 3px solid var(--green); padding-left: 12px; }
.ex-look strong { color: var(--navy); }
.ex-credit { font-size: .78rem !important; margin-top: 0; }
.ex-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 6px; }
.ex-links a { font-weight: 600; color: var(--blue); text-decoration: none; font-size: .95rem; }
.ex-links a:hover { text-decoration: underline; }
.ex-tours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.ex-tour { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 10px 28px rgba(15,13,85,.1); }
.ex-tour h3 { font-size: 1.25rem; }
.ex-tour p { color: var(--muted); }
.ex-tour ol { padding-left: 1.2em; margin: 0; }
.ex-tour li { margin: .35em 0; }
.ex-tour a { color: var(--navy); font-weight: 600; }
.ex-disclaimer { text-align: center; font-size: .88rem; color: var(--muted); max-width: 760px; margin: 34px auto 0; }
.explore-teaser { padding-top: 70px; padding-bottom: 10px; }
@media (max-width: 900px) { .ex-tours { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ex-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .ex-map { height: 340px; }
  .ex-grid { grid-template-columns: 1fr; }
}
/* Explore filter buttons: stronger */
.ex-filter-label { text-align: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--navy); font-size: .95rem; margin: 34px 0 10px; }
.ex-filters { margin-top: 0; gap: 8px; padding: 16px 12px; background: var(--cream); border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(24,21,124,.08); }
.ex-chip { font-size: .97rem; font-weight: 600; padding: 11px 16px; border: 2px solid var(--navy); box-shadow: 0 4px 0 rgba(24,21,124,.25); transition: transform .15s, box-shadow .15s, background .2s, color .2s; }
.ex-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(24,21,124,.25); }
.ex-chip:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(24,21,124,.25); }
.ex-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ex-chip[data-goal="all"] { background: #fff; }
.ex-chip[data-goal="flood"] { background: #cfe0ff; }
.ex-chip[data-goal="wq"] { background: #c8ecf3; }
.ex-chip[data-goal="habitat"] { background: var(--green); }
.ex-chip[data-goal="greenway"] { background: #dcefcf; }
.ex-chip[data-goal="edu"] { background: var(--yellow); }
.ex-chip[data-goal="built"] { background: #dcd9ff; }
.ex-chip.is-on, .ex-chip.is-on:hover { background: var(--navy); color: #fff; box-shadow: 0 0 0 3px var(--yellow), 0 4px 0 rgba(24,21,124,.25); }
.ex-chip.is-on::before { content: "\2713\00a0"; }
@media (max-width: 640px) { .ex-filters { padding: 12px; border-radius: 12px; } .ex-chip { font-size: .92rem; padding: 10px 16px; } }
@media (min-width: 1100px) { .ex-chip { letter-spacing: .02em; padding: 11px 15px; font-size: .95rem; } }
