/* Meae Wellness Design System */
:root {
  --cth-primary: #0f766e;
  --cth-accent: #f43f5e;
  --cth-accent-hover: #e11d48;
  --cth-bg: #f0fdfa;
  --cth-surface: #ffffff;
  --cth-text: #134e4a;
  --cth-muted: #475569;
  --cth-border: rgba(0, 0, 0, 0.08);
  --cth-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --cth-font-head: 'Fraunces', serif;
  --cth-font-body: 'Outfit', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cth-font-body);
  background-color: var(--cth-bg);
  color: var(--cth-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Desktop & Mobile */
.cth-header {
  background: var(--cth-surface);
  border-bottom: 1px solid var(--cth-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.cth-nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
}

.cth-brand {
  text-decoration: none;
  color: var(--cth-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 78%;
}

.cth-brand-crest {
  flex-shrink: 0;
  display: block;
}

.cth-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cth-brand-title {
  font-family: var(--cth-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cth-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cth-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cth-menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--cth-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--cth-primary);
  line-height: 0;
  transition: all 0.2s;
}

.cth-menu-toggle:hover {
  background: rgba(0,0,0,0.04);
}

.cth-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.cth-nav-links a {
  text-decoration: none;
  color: var(--cth-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.cth-nav-links a:hover {
  color: var(--cth-accent);
}

.cth-btn-primary {
  background: var(--cth-accent);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cth-btn-primary:hover {
  background: var(--cth-accent-hover);
  transform: translateY(-1px);
}

.cth-btn-secondary {
  background: transparent;
  color: var(--cth-primary) !important;
  border: 1.5px solid var(--cth-primary);
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.cth-btn-secondary:hover {
  background: rgba(0,0,0,0.03);
}

/* Hero */
.cth-hero {
  padding: 65px 0 45px;
}

.cth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.04);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cth-primary);
  margin-bottom: 20px;
}

.cth-hero h1 {
  font-family: var(--cth-font-head);
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.18;
  color: var(--cth-primary);
  max-width: 900px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cth-hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--cth-muted);
  max-width: 780px;
  line-height: 1.65;
  margin-bottom: 30px;
}

.cth-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Stats Strip */
.cth-stats-strip {
  background: var(--cth-surface);
  border: 1px solid var(--cth-border);
  border-radius: 12px;
  padding: 32px;
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--cth-shadow);
}

.cth-stat-item {
  text-align: center;
}

.cth-stat-num {
  font-family: var(--cth-font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: var(--cth-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.cth-stat-lbl {
  font-size: 0.85rem;
  color: var(--cth-muted);
  font-weight: 500;
}

/* Section Base */
.cth-section {
  padding: 65px 0;
}

.cth-section.alt {
  background: var(--cth-surface);
  border-top: 1px solid var(--cth-border);
  border-bottom: 1px solid var(--cth-border);
}

.cth-sec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px;
}

.cth-sec-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cth-accent);
  margin-bottom: 8px;
}

.cth-sec-title {
  font-family: var(--cth-font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.15rem);
  color: var(--cth-primary);
  margin-bottom: 12px;
}

.cth-sec-desc {
  font-size: 1rem;
  color: var(--cth-muted);
}

/* Programs Grid */
.cth-programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.cth-program-card {
  background: var(--cth-surface);
  border: 1px solid var(--cth-border);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cth-program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cth-shadow);
}

.cth-program-card h3 {
  font-family: var(--cth-font-head);
  font-size: 1.35rem;
  color: var(--cth-primary);
  margin-bottom: 12px;
}

.cth-program-card p {
  color: var(--cth-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Verification & Candid Card */
.cth-candid-box {
  background: var(--cth-surface);
  border: 1.5px solid var(--cth-primary);
  border-radius: 12px;
  padding: 34px;
  margin-bottom: 40px;
  box-shadow: var(--cth-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cth-candid-info h3 {
  font-family: var(--cth-font-head);
  font-size: 1.45rem;
  color: var(--cth-primary);
  margin-bottom: 8px;
}

.cth-candid-info p {
  color: var(--cth-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

.cth-ein-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cth-primary);
  margin-top: 10px;
}

.cth-copy-btn {
  background: none;
  border: 1px solid var(--cth-border);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cth-muted);
  transition: all 0.2s;
}

.cth-copy-btn:hover {
  background: #f1f5f9;
  color: var(--cth-primary);
}

/* Leadership Section */
.cth-leader-card {
  background: var(--cth-surface);
  border: 1px solid var(--cth-border);
  border-radius: 12px;
  padding: 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--cth-shadow);
}

.cth-leader-meta h3 {
  font-family: var(--cth-font-head);
  font-size: 1.45rem;
  color: var(--cth-primary);
}

.cth-leader-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cth-accent);
  margin: 4px 0 16px;
}

.cth-leader-contact {
  font-size: 0.9rem;
  color: var(--cth-muted);
  line-height: 1.7;
}

.cth-leader-contact a {
  color: var(--cth-accent);
  text-decoration: none;
  font-weight: 600;
}

.cth-leader-quote {
  font-family: var(--cth-font-head);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cth-text);
  line-height: 1.6;
  border-left: 4px solid var(--cth-accent);
  padding-left: 20px;
}

/* Donation Module */
.cth-donation-card {
  background: var(--cth-surface);
  border: 1px solid var(--cth-border);
  border-radius: 12px;
  padding: 38px;
  box-shadow: var(--cth-shadow);
  max-width: 760px;
  margin: 0 auto;
}

.cth-tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.cth-tier-btn {
  background: var(--cth-bg);
  border: 1.5px solid var(--cth-border);
  padding: 15px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cth-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.cth-tier-btn:hover, .cth-tier-btn.active {
  border-color: var(--cth-accent);
  background: var(--cth-accent);
  color: #ffffff;
}

.cth-custom-amount-wrap {
  position: relative;
  margin-bottom: 20px;
}

.cth-custom-amount-wrap span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cth-muted);
}

.cth-custom-input {
  width: 100%;
  padding: 14px 16px 14px 34px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1.5px solid var(--cth-border);
  border-radius: 8px;
  outline: none;
}

.cth-custom-input:focus {
  border-color: var(--cth-accent);
}

.cth-impact-text {
  background: var(--cth-bg);
  border-left: 3px solid var(--cth-accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--cth-text);
  margin-bottom: 24px;
}

/* Contact Form */
.cth-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cth-contact-card {
  background: var(--cth-surface);
  border: 1px solid var(--cth-border);
  border-radius: 12px;
  padding: 34px;
  box-shadow: var(--cth-shadow);
}

.cth-form-group {
  margin-bottom: 18px;
}

.cth-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cth-text);
  margin-bottom: 6px;
}

.cth-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cth-border);
  border-radius: 6px;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.cth-form-control:focus {
  border-color: var(--cth-accent);
}

.cth-alert {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.cth-alert-success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #bbf7d0;
}

.cth-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.cth-footer {
  background: var(--cth-primary);
  color: #ffffff;
  padding: 55px 0 28px;
  margin-top: 50px;
}

.cth-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.cth-footer a:hover {
  color: #ffffff;
}

.cth-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cth-legal-bar {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERRIDES (<= 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .wrap {
    padding: 0 18px;
  }

  .cth-nav-flex {
    min-height: 68px;
  }

  .cth-brand {
    max-width: 75%;
    gap: 10px;
  }

  .cth-brand-crest {
    width: 36px;
    height: 36px;
  }

  .cth-brand-title {
    font-size: 1.15rem;
  }

  .cth-brand-sub {
    font-size: 0.6rem;
  }

  .cth-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cth-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    right: -18px;
    background: var(--cth-surface);
    border-bottom: 2px solid var(--cth-accent);
    box-shadow: 0 18px 30px rgba(0,0,0,0.12);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 999;
  }

  .cth-nav-links.open {
    display: flex;
  }

  .cth-nav-links a {
    width: 100%;
    padding: 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--cth-border);
  }

  .cth-nav-donate {
    border-bottom: none !important;
    text-align: center;
    justify-content: center;
    margin-top: 6px;
    padding: 13px !important;
  }

  .cth-hero {
    padding: 38px 0 28px;
  }

  .cth-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cth-hero-cta a {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .cth-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 22px 14px;
    margin: 28px 0;
  }

  .cth-programs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cth-program-card {
    padding: 24px 18px;
  }

  .cth-candid-box {
    padding: 24px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cth-candid-box a {
    width: 100%;
    justify-content: center;
  }

  .cth-leader-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 18px;
  }

  .cth-leader-quote {
    padding-left: 16px;
    font-size: 1.05rem;
  }

  .cth-donation-card {
    padding: 24px 16px;
  }

  .cth-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cth-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cth-contact-card {
    padding: 24px 18px;
  }

  .cth-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
