/* ============================================================
   Global Ecology Foundation — ocean & Hawaiʻi conservation
   bright tropical water, clean modern type, gentle motion
   ============================================================ */
:root {
  --deep: #06283d;
  --ocean: #0b5e7d;
  --teal: #0e8fa3;
  --aqua: #43c6d8;
  --aqua-light: #9fe4ee;
  --foam: #eef9fb;
  --sand: #fdf6e9;
  --coral: #ff7f66;
  --ink: #13303d;
  --muted: #5c7887;
  --white: #ffffff;
  --head: 'Outfit', sans-serif;
  --body: 'Inter', 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--foam); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ocean); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--deep); line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: 2.6rem; } h2 { font-size: 2rem; } h3 { font-size: 1.3rem; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 860px; }
.section { padding: 56px 22px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- announcement / header ---------- */
.announcement { background: var(--deep); color: var(--aqua-light); text-align: center; padding: 8px 16px; font-size: .95rem; }
.site-header {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 16px rgba(6, 40, 61, .1);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { font-size: 1.9rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.18rem; color: var(--deep); letter-spacing: -.01em; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.main-nav a:hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--deep); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  color: #fff; padding: 12px 28px; border-radius: 999px;
  font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  box-shadow: 0 6px 20px rgba(14, 143, 163, .35);
  transition: all .2s;
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px rgba(14, 143, 163, .45); }
.btn-lg { padding: 15px 38px; font-size: 1.1rem; }
.btn-donate { background: linear-gradient(135deg, var(--coral), #ff9a6b); box-shadow: 0 6px 20px rgba(255, 127, 102, .4); padding: 10px 22px !important; color: #fff !important; }
.btn-donate:hover { box-shadow: 0 10px 26px rgba(255, 127, 102, .55); }
.btn-ghost { background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .75); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .3); }
.btn-ghost2 { background: #fff; color: var(--teal); border: 2px solid var(--aqua); box-shadow: none; }
.btn-ghost2:hover { background: var(--foam); color: var(--ocean); }

/* ---------- hero: tropical water ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(ellipse 90% 60% at 78% -10%, rgba(255, 240, 200, .35), transparent 55%),
    linear-gradient(180deg, #0a4d68 0%, #0b6e8e 35%, #0e8fa3 65%, #37b9cc 100%);
  padding: 100px 20px 150px;
}
.sun {
  position: absolute; top: 40px; right: 12%; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbe8, #ffe9a8 60%, #ffd97a);
  box-shadow: 0 0 60px 22px rgba(255, 230, 160, .5);
  animation: sunpulse 8s ease-in-out infinite;
}
@keyframes sunpulse { 0%, 100% { box-shadow: 0 0 60px 22px rgba(255,230,160,.5); } 50% { box-shadow: 0 0 80px 34px rgba(255,230,160,.65); } }
.hero-inner { position: relative; z-index: 3; max-width: 780px; margin: 0 auto; }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; color: var(--aqua-light); font-weight: 600; margin-bottom: 1em; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 4px 26px rgba(4, 34, 52, .45); }
.hero-sub { max-width: 560px; margin: 1.1em auto 1.8em; font-size: 1.14rem; color: #e2f6fa; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* layered animated waves at the hero's feet */
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 120px; z-index: 2; pointer-events: none; }
.hero-waves .wave { position: absolute; inset: 0; width: 200%; height: 100%; }
.wave path { fill: rgba(238, 249, 251, .35); }
.wave.w1 { animation: waveslide 13s linear infinite; }
.wave.w2 { animation: waveslide 9s linear infinite reverse; }
.wave.w2 path { fill: rgba(238, 249, 251, .55); }
.wave.w3 { animation: waveslide 17s linear infinite; }
.wave.w3 path { fill: var(--foam); }
@keyframes waveslide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* rising bubbles */
.bubble {
  position: absolute; bottom: -30px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(255,255,255,.18) 60%, transparent);
  animation: rise linear infinite;
}
.b1 { left: 8%;  width: 14px; height: 14px; animation-duration: 11s; }
.b2 { left: 22%; width: 9px;  height: 9px;  animation-duration: 14s; animation-delay: 3s; }
.b3 { left: 46%; width: 18px; height: 18px; animation-duration: 12s; animation-delay: 1.5s; }
.b4 { left: 64%; width: 8px;  height: 8px;  animation-duration: 16s; animation-delay: 5s; }
.b5 { left: 80%; width: 13px; height: 13px; animation-duration: 10s; animation-delay: 2s; }
.b6 { left: 92%; width: 10px; height: 10px; animation-duration: 15s; animation-delay: 7s; }
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .9; }
  50%  { transform: translateY(-46vh) translateX(14px); }
  95%  { opacity: .6; }
  100% { transform: translateY(-92vh) translateX(-8px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .wave, .sun { animation: none !important; }
  .bubble { display: none; }
}

/* ---------- impact grid ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.impact {
  background: #fff; border-radius: 18px; padding: 26px 24px; text-align: center;
  box-shadow: 0 8px 26px rgba(6, 40, 61, .08); transition: transform .2s;
}
.impact:hover { transform: translateY(-4px); }
.impact-icon { font-size: 2.4rem; margin-bottom: .4em; }
.impact p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- mission band + donate card ---------- */
.mission-band {
  background: linear-gradient(135deg, var(--deep) 0%, var(--ocean) 100%);
  color: #dff3f8; padding: 64px 0; position: relative; overflow: hidden;
}
.mission-band h2 { color: #fff; }
.mission-band p { color: #cfeaf2; }
.band-cols { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; align-items: center; }
.donate-card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 30px 32px;
  box-shadow: 0 16px 44px rgba(4, 30, 46, .35);
}
.donate-card h3 { color: var(--deep); margin-top: 0; }
.donate-card .raised { background: var(--foam); border-radius: 12px; padding: 10px 16px; }
.big-num { font-size: 1.5rem; color: var(--ocean); }

/* ---------- section titles / cards ---------- */
.section-title { text-align: center; margin-bottom: 34px; }
.section-title:after { content: ''; display: block; width: 72px; height: 4px; border-radius: 3px; margin: 14px auto 0; background: linear-gradient(90deg, var(--aqua), var(--coral)); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; margin-bottom: 30px; }
.post-card {
  background: #fff; border-radius: 18px; overflow: hidden; color: var(--ink);
  box-shadow: 0 8px 26px rgba(6, 40, 61, .09); transition: all .2s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(6, 40, 61, .15); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--aqua-light), var(--foam)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); font-weight: 600; }
.card-body h3 { margin: .35em 0 0; font-size: 1.15rem; }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  text-align: center; color: #fff; padding: 64px 20px 46px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--deep) 0%, var(--ocean) 55%, var(--teal) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .1em; }
.page-hero p { color: var(--aqua-light); margin: 0; font-weight: 500; }
.page-hero:after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--foam); clip-path: ellipse(60% 100% at 50% 100%);
}

/* ---------- prose / blog ---------- */
.prose { font-size: 1.08rem; }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: 14px; margin: 12px 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.post-full h1 { margin-top: .2em; }
.post-hero { border-radius: 16px; margin: 18px 0 24px; box-shadow: 0 10px 30px rgba(6, 40, 61, .14); }

/* ---------- forms ---------- */
.frow { margin-bottom: 15px; }
.frow label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.frow.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.frow.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 15px; }
.frow input, .frow textarea, .frow select {
  padding: 12px 14px; border: 1.5px solid #c4dde5; border-radius: 12px;
  font-size: 1rem; font-family: var(--body); background: #fff; color: var(--ink);
}
.frow input:focus, .frow textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(67, 198, 216, .25); }
.check-inline { flex-direction: row !important; align-items: center; gap: 10px; font-size: .98rem !important; color: var(--ink) !important; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--teal); }
.notice.ok { background: #e5f6ec; border: 1.5px solid #9ed8b5; color: #22694a; padding: 14px 20px; border-radius: 14px; margin-bottom: 24px; text-align: center; }
.notice.err { background: #fdeaea; border: 1.5px solid #eab0b0; color: #984040; padding: 14px 20px; border-radius: 14px; margin-bottom: 24px; text-align: center; }
.notice.big { font-size: 1.05rem; line-height: 1.8; }

/* ---------- contact ---------- */
.contact-cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.contact-info { background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 8px 26px rgba(6, 40, 61, .09); }

/* ---------- donate page ---------- */
.donate-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.dc-label { font-weight: 700; font-family: var(--head); color: var(--deep); margin: 0 0 .5em; }
.amounts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.amount-chip {
  border: 2px solid var(--aqua); background: #fff; color: var(--ocean); cursor: pointer;
  padding: 10px 22px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  transition: all .15s;
}
.amount-chip:hover { background: var(--foam); }
.amount-chip.active { background: linear-gradient(135deg, var(--teal), var(--ocean)); border-color: var(--ocean); color: #fff; }
.pay-msg { margin-top: 10px; font-size: .92rem; min-height: 1.3em; color: #b04a4a; }
.pay-msg.ok { color: var(--teal); }

/* ---------- data table (member account) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 22px rgba(6, 40, 61, .09); }
.data-table th, .data-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid #e3eff3; }
.data-table th { background: var(--foam); color: var(--deep); font-family: var(--head); font-size: .92rem; }
.receipt-link { display: block; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--deep), #041a29); color: #b8d5e0; margin-top: 70px; position: relative; }
.wave-top { position: absolute; top: 0; left: 0; right: 0; height: 44px; }
.wave-top svg { width: 100%; height: 100%; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1fr; gap: 36px; padding: 78px 22px 30px; }
.site-footer h4 { color: var(--aqua-light); font-size: 1.02rem; }
.site-footer a { color: #b8d5e0; display: block; padding: 2px 0; font-size: .96rem; }
.site-footer a:hover { color: var(--aqua); }
.site-footer .muted { color: #6f93a3; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-block !important; padding: 7px 15px !important;
  border: 1px solid rgba(67, 198, 216, .4); border-radius: 999px; background: rgba(255, 255, 255, .05);
  transition: all .2s;
}
.social-pill:hover { background: rgba(67, 198, 216, .18); border-color: var(--aqua); transform: translateY(-2px); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type=email] {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(67, 198, 216, .4);
  background: rgba(255, 255, 255, .08); color: #e2f6fa; font-size: .95rem;
}
.newsletter-form input::placeholder { color: #6f93a3; }
.newsletter-form .btn { padding: 10px 20px; font-size: .95rem; }
.copyright { text-align: center; border-top: 1px solid rgba(67, 198, 216, .15); padding: 16px; font-size: .85rem; color: #6f93a3; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .band-cols, .donate-cols, .contact-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sun { width: 64px; height: 64px; right: 8%; }
}
@media (max-width: 700px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 24px; gap: 14px;
    box-shadow: 0 14px 24px rgba(6, 40, 61, .14);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .frow.two, .frow.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  .hero { padding: 70px 18px 130px; }
  .brand-name { font-size: 1rem; }
}

/* about sub-page links */
.about-links { display: flex; flex-wrap: wrap; gap: 12px; }
