/* ============================================================
   Holly's Vow — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --ink:        #0a1628;
  --slate:      #1a3a5c;
  --steel:      #2563a8;
  --mist:       #bfdfef;
  --fog:        #e8f4fb;
  --white:      #ffffff;
  --teal:       #016da3;
   /* --teal:       #0284c7; */ /* Original teal, but slightly adjusted to be a bit more vibrant and pop better against the dark bg */
  --teal-dark:  #0369a1;
  --teal-light: #dbeafe;
  --sky:        #38bdf8;
  --gold:       #f59e0b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--teal);
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}

.nav-logo {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 400;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
  display: flex; align-items: baseline; gap: 0.15em;
}
.nav-logo em  { font-style: italic; color: var(--teal); font-size: 2.35rem; }
.nav-logo span { font-weight: 300; color: var(--slate); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: 0.55rem 1.4rem; border-radius: 3px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

/* ── Buttons ── */
.btn-primary {
  background: var(--teal); color: var(--white);
  padding: 0.85rem 2.2rem; border: none; border-radius: 3px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--teal);
  padding: 0.85rem 2.2rem; border: 2px solid var(--teal); border-radius: 3px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal); color: var(--white); transform: translateY(-1px); }

.btn-white {
  background: var(--white); color: var(--teal-dark);
  padding: 0.85rem 2.5rem; border: none; border-radius: 3px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.2s; white-space: nowrap;
}
.btn-white:hover { background: var(--ink); color: var(--white); }

/* ── Typography helpers ── */
.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1rem;
}
.eyebrow-light { color: var(--sky); }

.section-title {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 300;
  color: var(--ink); line-height: 1.2; margin-bottom: 1.5rem;
}

.body-text p {
  color: var(--slate); font-size: 1rem; line-height: 1.85;
  margin-bottom: 1.1rem; font-weight: 300;
}

/* ── Page header (dark) ── */
.page-header {
  padding: 8rem 5rem 4rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--slate) 100%);
  border-bottom: 3px solid var(--teal);
  padding-top: calc(74px + 4rem);
}
.page-header h1 {
  font-family: var(--serif); font-size: 3.4rem; font-weight: 300;
  color: var(--white); line-height: 1.1; margin-bottom: 1.25rem;
}
.page-header p {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  font-weight: 300; line-height: 1.75; max-width: 60ch;
}

/* ── Donate bar ── */
.donate-bar {
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 50%, #0ea5e9 100%);
  padding: 3.5rem 5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.donate-bar h3 {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  color: var(--white); margin-bottom: 0.35rem;
}
.donate-bar p { font-size: 0.95rem; color: rgba(255,255,255,0.8); font-weight: 300; }

/* ── Footer ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 2.5rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; letter-spacing: 0.04em;
  border-top: 3px solid var(--teal);
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--sky); }
.footer-logo { font-family: var(--serif); font-size: 1.4rem; color: rgba(255,255,255,0.9); font-weight: 300; }
.footer-logo em { font-style: italic; color: var(--sky); }

/* ── Info cards ── */
.info-card {
  background: var(--white);
  border: 1px solid var(--mist); border-left: 4px solid var(--teal);
  border-radius: 0 3px 3px 0; padding: 1.5rem 1.75rem; margin-bottom: 1rem;
  transition: background 0.2s;
}
.info-card:hover { background: var(--fog); }
.info-card h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--ink); margin-bottom: 0.5rem; }
.info-card p  { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

/* ── Quote block ── */
.quote-block {
  border-left: 4px solid var(--teal); padding: 1.25rem 1.5rem;
  margin: 2rem 0; background: var(--teal-light); border-radius: 0 3px 3px 0;
}
.quote-block p {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--teal-dark); font-weight: 300; line-height: 1.6;
}

/* ── Stat row ── */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--mist); border: 1px solid var(--mist);
  max-width: 1100px; margin: 3rem auto 0;
}
.stat { background: var(--white); padding: 2.5rem 2rem; text-align: center; transition: background 0.2s; }
.stat:hover { background: var(--fog); }
.stat-num { font-family: var(--serif); font-size: 3.2rem; font-weight: 300; color: var(--teal); display: block; line-height: 1; margin-bottom: 0.6rem; }
.stat-label { font-size: 1.2rem; color: var(--slate); font-weight: 400; line-height: 1.5; }

/* ── Challenge cards ── */
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.challenge-card {
  background: var(--white); border-top: 3px solid var(--teal);
  padding: 2rem; border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 12px rgba(2,132,199,0.08);
}
.challenge-card h4 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: var(--ink); margin-bottom: 0.75rem; }
.challenge-card p  { font-size: 0.9rem; color: var(--slate); line-height: 1.75; font-weight: 300; }

/* ── Dr credentials ── */
.dr-credential {
  font-size: 0.8rem; color: var(--slate);
  padding: 0.6rem 0 0.6rem 1rem; border-bottom: 1px solid var(--mist); position: relative;
}
.dr-credential::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--teal);
}

/* ── Photo placeholder ── */
.photo-placeholder {
  background: linear-gradient(160deg, var(--teal-light), #bae6fd);
  border: 1px solid var(--mist); border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--teal-dark); font-size: 0.73rem;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}

/* ── Funding tiers ── */
.tier-group { margin-bottom: 4rem; }
.tier-group-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal);
}
.tier-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--mist); border: 1px solid var(--mist);
}
.tier-card { background: var(--white); padding: 2rem; transition: background 0.2s; }
.tier-card:hover { background: var(--fog); }
.tier-amount { font-family: var(--serif); font-size: 1.7rem; font-weight: 300; color: var(--teal); margin-bottom: 0.2rem; }
.tier-name   { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.03em; margin-bottom: 0.75rem; text-transform: uppercase; }
.tier-desc   { font-size: 0.9rem; color: var(--slate); line-height: 1.7; font-weight: 300; }

.tier-featured {
  background: linear-gradient(135deg, var(--ink) 0%, var(--slate) 100%) !important;
  grid-column: 1 / -1;
}
.tier-featured:hover { filter: brightness(1.1); }
.tier-featured .tier-amount { color: var(--gold); font-size: 2.2rem; }
.tier-featured .tier-name   { color: rgba(255,255,255,0.9); }
.tier-featured .tier-desc   { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 70ch; }

.tier-bullets { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; list-style: none; }
.tier-bullets li { font-size: 0.85rem; color: rgba(255,255,255,0.7); padding: 0.4rem 0 0.4rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.tier-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

/* ── Contact form ── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.5rem; }
.form-input,
.form-textarea,
.form-select {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--mist); border-radius: 3px;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: var(--white); transition: border-color 0.2s; appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,132,199,0.1); }
.form-textarea { resize: vertical; min-height: 130px; }

/* ── Layout utilities ── */
.container { max-width: 1100px; margin: 0 auto; }
.pad       { padding: 5rem; }
.pad-sm    { padding: 4rem 5rem; }

.grid-70-30 { display: grid; grid-template-columns: 7fr 3fr; gap: 4rem; align-items: start; }
.grid-30-70 { display: grid; grid-template-columns: 3fr 7fr; gap: 4rem; align-items: start; }

.bg-fog  { background: var(--fog);  border-top: 1px solid var(--mist); }
.bg-white { background: var(--white); border-top: 1px solid var(--mist); }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links li:not(:last-child) { display: none; }

  .page-header { padding: 6rem 1.5rem 3rem; }
  .page-header h1 { font-size: 2.4rem; }

  .pad, .pad-sm { padding: 3rem 1.5rem; }

  .grid-70-30,
  .grid-30-70 { grid-template-columns: 1fr; }

  .stat-row,
  .challenge-grid { grid-template-columns: 1fr; }

  .donate-bar { flex-direction: column; padding: 3rem 1.5rem; text-align: center; }

  footer { flex-direction: column; gap: 0.75rem; text-align: center; padding: 2rem 1.5rem; }
}
