/* CAASH Charity Co. — brand system from official logo */
:root {
  --navy: #1f3d66;
  --navy-deep: #163052;
  --teal: #4aa3c7;
  --teal-soft: #7ec4dd;
  --green: #3f9b6a;
  --green-bright: #52b57d;
  --ink: #1a2b3c;
  --muted: #5a6d7e;
  --paper: #f4f8fb;
  --white: #ffffff;
  --line: rgba(31, 61, 102, 0.12);
  --shadow: 0 18px 40px rgba(22, 48, 82, 0.1);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 163, 199, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(63, 155, 106, 0.12), transparent 50%),
    linear-gradient(180deg, #eef5f9 0%, var(--paper) 40%, #e8f1f6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 251, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: var(--green);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.25s ease;
}

.nav-cta:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white) !important;
}

.btn-primary:hover {
  background: var(--green-bright);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white) !important;
}

.btn-secondary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1.5px solid rgba(31, 61, 102, 0.35);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(31, 61, 102, 0.04);
}

.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: var(--white) !important;
}

.btn-on-dark:hover {
  border-color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero — full-bleed, brand-first */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(82, 181, 125, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(74, 163, 199, 0.4), transparent 50%),
    linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 45%, #2a6a7a 100%);
}

.hero-media img {
  display: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(22, 48, 82, 0.45) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 19px
    );
  animation: heroShift 14s var(--ease) infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand img {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 6px;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  color: var(--white);
}

.hero-brand-name small {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-top: 0.35rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 650;
  max-width: 16ch;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-lead {
  max-width: 38ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero .btn-row {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.page-hero .hero-media {
  position: absolute;
  inset: 0;
}

.page-hero .hero-content {
  padding: 4.5rem 0 3rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.15s forwards;
}

.page-hero .hero-lead {
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.3s forwards;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 30%, rgba(126, 196, 221, 0.55), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--green) 100%);
}

.split-media img {
  display: none;
}

.band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #2a5a7a);
  color: var(--white);
  padding: 4.5rem 0;
}

.band h2,
.band p {
  color: var(--white);
}

.band p {
  opacity: 0.9;
  max-width: 40rem;
}

.band .btn-primary {
  background: var(--green-bright);
}

/* Feature list — not cards */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--muted);
  margin: 0;
}

/* Story strip */
.story-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.story-strip figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 200px;
  display: grid;
  align-items: end;
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--navy-deep), var(--teal));
}

.story-strip figure:nth-child(2) {
  background: linear-gradient(145deg, var(--navy), var(--green));
}

.story-strip figure:nth-child(3) {
  background: linear-gradient(145deg, #1a4a5c, var(--teal-soft));
}

.story-strip img {
  display: none;
}

.story-strip figcaption {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

/* Blog list */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.blog-item:hover h3 {
  color: var(--green);
}

.blog-item img {
  display: none;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.blog-item p {
  color: var(--muted);
  margin: 0;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article-hero {
  display: none;
}

.article h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(31, 61, 102, 0.22);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(74, 163, 199, 0.45);
  border-color: var(--teal);
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.amount-options button {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(31, 61, 102, 0.25);
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.amount-options button.is-active,
.amount-options button:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  background: rgba(63, 155, 106, 0.12);
  border-left: 3px solid var(--green);
  color: var(--navy-deep);
}

.form-success.is-visible {
  display: block;
}

/* Leadership / membership */
.people {
  display: grid;
  gap: 2rem;
}

.person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.person-avatar {
  display: none;
}

.person .source {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.person h3 {
  margin-bottom: 0.2rem;
  font-size: 1.35rem;
}

.person .role {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tier-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.tier {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.tier h3 {
  margin: 0;
  font-size: 1.25rem;
}

.tier p {
  margin: 0;
  color: var(--muted);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Trust / legal strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.trust strong {
  color: var(--navy-deep);
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: var(--teal-soft);
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroShift {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split.reverse,
  .blog-item,
  .person,
  .tier,
  .footer-grid,
  .story-strip {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .tier {
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(244, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-brand img {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
