/* ===========================================================
   Connor's Cot Foundation — stylesheet
   A soft, warm, dignified design for a memorial foundation.
   =========================================================== */

:root {
  --cream:      #faf7f1;
  --cream-soft: #f3ece1;
  --sage:       #7d9b78;
  --sage-deep:  #5f7d5b;
  --sage-soft:  #aebfa6;
  --gold:       #c6a667;
  --gold-soft:  #e3d4ad;
  --ink:        #3a3a36;
  --ink-soft:   #6b6b63;
  --white:      #ffffff;
  --shadow:     0 18px 50px rgba(95, 125, 91, 0.14);
  --shadow-sm:  0 6px 22px rgba(58, 58, 54, 0.08);
  --radius:     18px;
  --maxw:       1140px;
  --serif:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:       'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sage-deep);
  margin: 0 0 0.4em;
  text-wrap: balance;          /* balanced, even line breaks on multi-line headings */
  overflow-wrap: break-word;   /* never overflow on narrow screens */
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--ink); }

p { margin: 0 0 1.1em; }
a { color: var(--sage-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .02em;
  padding: .85em 2em;
  border-radius: 100px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s;
  font-size: 1rem;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(198,166,103,.4); }
.btn-primary:hover { background: #b8954f; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198,166,103,.5); }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: var(--sage-soft); }
.btn-ghost:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--sage-deep); }
.btn-light:hover { background: var(--cream-soft); color: var(--sage-deep); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(125,155,120,.16);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--sage-deep); line-height: 1; }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 700; font-size: .96rem; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-phone { font-weight: 700; color: var(--sage-deep); font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--sage-deep); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  background:
    linear-gradient(180deg, rgba(250,247,241,.55), rgba(250,247,241,.92)),
    linear-gradient(120deg, var(--cream-soft), var(--cream));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { color: var(--sage-deep); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }
.hero-photo {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(95,125,91,.28));
}

/* soft decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; }
.blob-1 { width: 280px; height: 280px; background: var(--gold-soft); top: -90px; right: -60px; }
.blob-2 { width: 230px; height: 230px; background: var(--sage-soft); bottom: -80px; left: -70px; opacity: .35; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--cream-soft); }
.section-sage { background: linear-gradient(160deg, var(--sage-deep), var(--sage)); color: #fff; }
.section-sage h2, .section-sage h3 { color: #fff; }
.section-sage .eyebrow { color: var(--gold-soft); }

.lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 60ch; margin-inline: auto; }

/* Story */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.story-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.story-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
/* drop-cap on the first BODY paragraph (the one right after the heading) —
   not the eyebrow label above it */
.story-text h2 + p::first-letter {
  font-family: var(--serif); font-size: 3.4rem; float: left; line-height: .72;
  padding: .08em .12em 0 0; color: var(--gold);
}
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sage-deep); margin-top: 1rem; }

/* What we do — cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(125,155,120,.1);
  transition: transform .2s, box-shadow .2s; text-align: center;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream-soft); font-size: 1.8rem;
}
.card h3 { color: var(--sage-deep); }
.card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Quote / tribute band */
.tribute { text-align: center; padding: clamp(3.5rem,8vw,6rem) 0; }
.tribute blockquote {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic; max-width: 22ch; margin: 0 auto; line-height: 1.25;
}
.tribute .name { font-family: var(--sans); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.2rem; opacity: .85; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { color: rgba(255,255,255,.92); }
.cta-band .hero-cta { justify-content: center; }

/* Wave of light teaser + countdown */
.countdown { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.count-box {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px; padding: 1rem 1.3rem; min-width: 90px; text-align: center;
}
.count-box .num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; display: block; }
.count-box .lbl { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.candle { font-size: 3rem; line-height: 1; animation: flicker 3s infinite ease-in-out; display: inline-block; }
@keyframes flicker { 0%,100%{transform:rotate(-1deg) scale(1);opacity:1} 50%{transform:rotate(1deg) scale(1.04);opacity:.92} }

/* Donate page */
.donate-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.zeffy-frame {
  width: 100%; min-height: 720px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff;
}
.donate-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.donate-points li { padding: .5rem 0 .5rem 1.9rem; position: relative; color: var(--ink-soft); }
.donate-points li::before { content: "♡"; position: absolute; left: 0; color: var(--gold); font-size: 1.1rem; }
.badge { display: inline-block; background: var(--cream-soft); color: var(--sage-deep); font-weight: 800; font-size: .8rem; letter-spacing: .08em; padding: .4em 1em; border-radius: 100px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }

/* Newsletter */
.newsletter form { display: flex; gap: .8rem; max-width: 480px; margin: 1.5rem auto 0; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 200px; padding: .9em 1.2em; border-radius: 100px;
  border: 1.5px solid var(--sage-soft); font-family: var(--sans); font-size: 1rem; background:#fff;
}
.newsletter input:focus { outline: none; border-color: var(--sage-deep); }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: #2f3b2d; color: #d8e0d4; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.3rem; margin: 0 0 .8rem; }
.site-footer a { color: #c6d3c1; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-brand { display:flex; align-items:center; gap:.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height:52px; border-radius:50%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; font-size: .85rem; color: #9fb09a; }

/* page intro banner */
.page-banner { padding: clamp(3rem,7vw,5rem) 0 clamp(2rem,5vw,3rem); text-align: center; background: linear-gradient(180deg, var(--cream-soft), var(--cream)); }
.page-banner p { color: var(--ink-soft); max-width: 56ch; margin-inline:auto; font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .story, .donate-wrap { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4/3; order: -1; }
  .story-photo { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1.2rem 5%; gap: 1.1rem; box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(125,155,120,.2);
  }
  .nav.open .nav-phone { display: block; }
}
