/* =============================================
   CHAT BUDDY — style.css
   Mobile-first, modern, warm & professional
   ============================================= */

/* --- TOKENS --- */
:root {
  --coral:    #E8765A;
  --coral-dk: #C95A3E;
  --teal:     #2F5D5A;
  --teal-dk:  #1F3F3D;
  --teal-lt:  #EAF2F1;
  --paper:    #FBF7F2;
  --sand:     #F3EBE0;
  --ink:      #1A2E2C;
  --muted:    #5C5650;
  --line:     #E4DACB;
  --white:    #ffffff;
  --radius:   16px;
  --radius-sm:8px;
  --shadow-sm:0 2px 8px rgba(26,46,44,.07);
  --shadow:   0 6px 24px rgba(26,46,44,.10);
  --shadow-lg:0 12px 40px rgba(26,46,44,.14);
  --font-display:'Fraunces', Georgia, serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --transition: .18s ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- LAYOUT --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section__narrow { max-width: 700px; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--teal-dk);
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: .5em; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3em; }
p  { color: var(--muted); font-size: 1rem; }
em { font-style: italic; color: var(--coral); }

/* --- BADGE / LABEL --- */
.badge {
  display: inline-block;
  background: var(--teal-lt);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .6rem;
}
.label--light { color: rgba(255,255,255,.7); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 18px rgba(232,118,90,.38);
}
.btn--primary:hover {
  background: var(--coral-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,118,90,.45);
}
.btn--outline {
  background: transparent;
  color: var(--teal-dk);
  border-color: var(--teal-dk);
}
.btn--outline:hover {
  background: var(--teal-dk);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--teal-dk);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--coral); }
.btn--white {
  background: #fff;
  color: var(--teal-dk);
  box-shadow: var(--shadow);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* =====================
   HEADER
   ===================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,242,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  color: var(--teal-dk);
  margin-right: auto;
  flex-shrink: 0;
}
.nav { display: flex; gap: 1.4rem; }
.nav__link {
  font-size: .9rem; font-weight: 500;
  color: var(--ink); opacity: .7;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition), color var(--transition);
}
.nav__link:hover, .nav__link.active {
  opacity: 1; color: var(--teal-dk);
  border-color: var(--coral);
}
.header__ctas { display: flex; gap: .5rem; flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
}
.burger span {
  display: block; height: 2px; width: 26px;
  background: var(--teal-dk); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  background: linear-gradient(135deg, #FBF7F2 0%, #F5EAD8 55%, #EDE0C8 100%);
}
.hero__bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: blobIn .8s ease forwards;
}
.hero__bg-blob--1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(232,118,90,.18) 0%, transparent 70%);
  animation-delay: .1s;
}
.hero__bg-blob--2 {
  width: 400px; height: 400px;
  bottom: -120px; left: -80px;
  background: radial-gradient(circle, rgba(47,93,90,.12) 0%, transparent 70%);
  animation-delay: .25s;
}
@keyframes blobIn { to { opacity: 1; } }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero__text { display: flex; flex-direction: column; }
.hero__title {
  margin: .5rem 0 .8rem;
  line-height: 1.1;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 1.8rem;
  line-height: 1.75;
}
.hero__ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__note {
  margin-top: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
}

/* Chat demo bubble visual */
.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.chat-bubble {
  max-width: 82%;
  padding: .7rem 1.1rem;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.5;
  animation: fadeUp .5s ease forwards;
  opacity: 0;
}
.chat-bubble:nth-child(1){ animation-delay:.3s }
.chat-bubble:nth-child(2){ animation-delay:.7s }
.chat-bubble:nth-child(3){ animation-delay:1.1s }
.chat-bubble:nth-child(4){ animation-delay:1.5s }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.chat-bubble--left {
  background: var(--sand);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble--right {
  background: var(--teal);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* =====================
   SECTIONS
   ===================== */
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--sand  { background: var(--sand); }
.section--teal  { background: var(--teal-dk); }

/* =====================
   HELP CARDS
   ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card__icon { font-size: 2rem; margin-bottom: .7rem; }
.card h3 { color: var(--teal-dk); margin-bottom: .35rem; }
.card p { font-size: .9rem; margin: 0; }

/* =====================
   TIMELINE
   ===================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}
.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.timeline__circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,118,90,.35);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.timeline__line {
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--sand));
  z-index: 0;
}
.timeline__item:last-child .timeline__line { display: none; }
.timeline__body { margin-top: 1.2rem; }
.timeline__body h3 { font-size: 1rem; color: var(--teal-dk); margin-bottom: .3rem; }
.timeline__body p { font-size: .88rem; color: var(--muted); }

/* =====================
   VOLUNTEER CARDS
   ===================== */
.vol-cards {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.vol-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: .3rem;
  flex: 1; min-width: 160px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.vol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.vol-card__icon { font-size: 1.8rem; margin-bottom: .3rem; }
.vol-card strong { font-size: 1rem; color: var(--teal-dk); }
.vol-card span { font-size: .88rem; color: var(--muted); }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--ink);
  color: #fff;
  padding-top: 52px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand {
  display: flex; gap: .7rem; align-items: flex-start;
}
.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer__brand span {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: .1rem;
}
.footer__nav {
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-content: flex-start;
}
.footer__nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.footer__nav a:hover, .footer__highlight { color: var(--coral) !important; font-weight: 600; }
.footer__contact a {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.footer__contact a:hover { color: var(--coral); }
.footer__bottom {
  padding: 18px 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* =====================
   FORMS (reused across pages)
   ===================== */
.form-section { padding: 56px 0 80px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .92rem; color: var(--teal-dk); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .72rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,118,90,.15);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-hint { font-size: .83rem; color: var(--muted); margin: .3rem 0 0; }
.checkbox-option { display: flex; align-items: center; gap: .5rem; font-weight: 400; font-size: .95rem; margin-bottom: .4rem; }
.checkbox-option input { width: auto; }

/* =====================
   SUPPORT LINK (nav)
   ===================== */
.support-link { color: var(--coral) !important; font-weight: 600 !important; }

/* =====================
   MOBILE NAV OPEN
   ===================== */
.header.is-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 20px 1.2rem;
  gap: 1rem;
}
.header.is-open .header__ctas {
  display: flex;
  flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  padding: 0 20px 1.2rem;
  gap: .5rem;
  margin-top: 0;
  /* push below nav items — JS handles this cleanly */
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__ctas { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .chat-demo { max-width: 400px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__item { flex-direction: row; text-align: left; align-items: flex-start; padding: 0 0 28px 0; }
  .timeline__line {
    top: 52px; left: 24px;
    width: 3px; height: calc(100% - 52px);
    background: linear-gradient(180deg, var(--coral), var(--sand));
  }
  .timeline__circle { flex-shrink: 0; margin-right: 20px; }
  .timeline__body { margin-top: 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .cards { grid-template-columns: 1fr; }
  .vol-cards { flex-direction: column; }
  .section { padding: 52px 0; }
  .form-card { padding: 24px; }
}

/* Org info card */
.org-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.4rem;
}
.org-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.org-card__row:last-child { border-bottom: none; }
.org-card__row span { color: var(--muted); }
.org-card__row strong { color: var(--teal-dk); text-align: right; }
