/* Henry County Right to Life — public site styles */

:root {
  /* baby pink — primary brand accent: links, buttons, headings underlines */
  --pink: #a34e6f;
  --pink-dark: #7e3a56;
  --pink-soft: #fbe9f0;
  /* baby blue — structural chrome and markers: topbar, footer, dates, the Donate pill */
  --blue: #5c88ac;
  --blue-dark: #33566f;
  --blue-soft: #e9f3fb;
  --ink: #2c2a33;
  --ink-soft: #5c5865;
  --cream: #fdfcfb;
  --sand: #f2eef2;
  --line: #e6e1e6;
  --gold: #c9a15a;
  --radius: 14px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.25rem; margin: 0 0 .35rem; }

p { margin: 0 0 1rem; }
a { color: var(--pink); }
a:hover { color: var(--pink-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--pink); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.topbar {
  background: var(--blue-dark);
  color: #dceaf3;
  font-size: .85rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-inner {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: .5rem; align-items: center; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  color: var(--pink); display: grid; place-items: center;
  background: var(--pink-soft); border-radius: 50%; width: 52px; height: 52px;
  flex: none; overflow: hidden;
}
.brand-mark img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); letter-spacing: .01em;
}

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: .5rem .8rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--pink-soft); color: var(--pink-dark); }
.site-nav a.active { background: var(--pink-soft); color: var(--pink); }
.site-nav .nav-donate {
  background: var(--blue-dark); color: #fff; margin-left: .35rem;
}
.site-nav .nav-donate:hover, .site-nav .nav-donate.active { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none; font: inherit; font-weight: 600;
  background: var(--pink-soft); color: var(--pink); border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 480px at 88% -10%, var(--pink-soft) 0%, transparent 60%),
    radial-gradient(900px 460px at 4% 115%, var(--blue-soft) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 4.5rem 1.25rem 4rem; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 700; color: var(--gold); margin-bottom: .8rem;
}
.hero-brand { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.hero-rose { height: 64px; width: auto; }
.hero h1 { margin-bottom: 0; }
.hero-sub { font-size: 1.3rem; color: var(--ink-soft); margin: .5rem 0 1.2rem; }
.hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; justify-content: center; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-family: var(--font-sans);
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; line-height: 1.4;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); color: #fff; }
.btn-ghost { border-color: var(--pink); color: var(--pink); background: transparent; }
.btn-ghost:hover { background: var(--pink-soft); color: var(--pink-dark); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.1rem; }

.text-link { font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 3.2rem 0; }
.section-alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 1.4rem; }
.section-link { font-weight: 600; text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.page-head {
  background: linear-gradient(120deg, #fff 0%, var(--pink-soft) 60%, var(--blue-soft) 140%);
  border-bottom: 1px solid var(--line);
  padding: 2.8rem 0 2.2rem;
}
.page-head h1 { margin: 0; }
.page-sub { color: var(--ink-soft); font-size: 1.15rem; margin: .4rem 0 0; }

.page-banner { border-bottom: 1px solid var(--line); }
.page-banner img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (max-width: 640px) { .page-banner img { height: 200px; } }

/* ---------- Events ---------- */

.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.event-cards.stacked { grid-template-columns: 1fr; }
.event-card {
  display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: 0 2px 10px rgba(43, 34, 38, .04);
}
.event-date {
  flex: none; width: 64px; height: 72px; border-radius: 12px;
  background: var(--blue-dark); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.event-month { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; font-weight: 700; }
.event-day { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.event-meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: .5rem; }
.event-body p:last-child { margin-bottom: 0; }

.past-events { padding-left: 1.2rem; }
.past-events li { margin-bottom: .5rem; color: var(--ink-soft); }

.event-images { display: flex; gap: .6rem; flex-wrap: wrap; margin: .6rem 0 .8rem; }
.event-images img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line);
}

/* ---------- Newsletters ---------- */

.newsletter-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.newsletter-list li + li { margin-top: .6rem; }
.newsletter-list a {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.3rem; color: var(--ink); font-weight: 600;
}
.newsletter-list a:hover { border-color: var(--pink); box-shadow: 0 3px 12px rgba(163, 78, 111, .1); }
.newsletter-icon {
  flex: none; background: var(--pink-soft); color: var(--pink);
  font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  border-radius: 8px; padding: .5rem .6rem;
}
.newsletter-title { flex: 1; }
.newsletter-open { color: var(--pink); font-size: .95rem; }

.subscribe-panel {
  margin-top: 2.5rem; background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
}
.subscribe-panel h2 { margin-top: 0; }
.inline-subscribe { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-subscribe input {
  flex: 1; min-width: 220px; font: inherit; padding: .7rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
}

/* ---------- Resources ---------- */

.resource-category {
  border-bottom: 2px solid var(--pink); display: inline-block;
  padding-bottom: .3rem; margin-top: 2.8rem;
}
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.resource-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.resource-card h3 a { text-decoration: none; }
.resource-card h3 a:hover { text-decoration: underline; }
.resource-card p { font-size: .98rem; color: var(--ink-soft); margin-bottom: .5rem; }
.resource-contact { display: flex; flex-direction: column; gap: .15rem; font-size: .95rem; margin: 0; }

/* ---------- Media ---------- */

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 1.1rem; }
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: 0 2px 10px rgba(43, 34, 38, .04);
}
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: var(--sand); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { margin: .9rem 0 0; font-size: 1.1rem; }

/* ---------- Donate ---------- */

.donate-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin: 1.8rem 0; }
.donate-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem;
}
.donate-card h2 { margin-top: 0; }
.donate-online { border: 2px solid var(--pink); background: var(--pink-soft); }
.donate-address { font-style: normal; background: var(--sand); border-radius: 10px; padding: 1rem 1.2rem; display: inline-block; }

/* ---------- Contact ---------- */

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: .7rem; }

.contact-qr {
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  margin-top: 1.4rem; padding: 1.1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-qr img { border-radius: 6px; }
.contact-qr p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.contact-form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
}
.contact-form input:focus, .contact-form textarea:focus,
.inline-subscribe input:focus, .footer-subscribe input:focus {
  outline: 2px solid var(--pink); outline-offset: 1px;
}
.contact-form button { margin-top: 1.2rem; }
.field-error { color: #a4121c; font-size: .9rem; }

/* ---------- Lists / misc ---------- */

.feature-list { padding-left: 0; list-style: none; }
.feature-list li {
  position: relative; padding-left: 1.9rem; margin-bottom: .7rem;
}
.feature-list li::before {
  content: "❤"; position: absolute; left: 0; top: .1rem;
  color: var(--pink); font-size: .95rem;
}

.flash {
  border-radius: 10px; padding: .9rem 1.2rem; margin: 1rem 0; font-weight: 600;
}
.flash-success { background: #eaf6ec; border: 1px solid #bfe3c6; color: #1f6b34; }
.flash-error { background: #fdecec; border: 1px solid #f2c4c4; color: #a4121c; }
.flash:empty { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--blue-dark); color: #d6e6f0; margin-top: 3rem; }
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem;
  padding: 2.8rem 1.25rem 1.6rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-heading { font-family: var(--font-serif); color: #fff; font-size: 1.15rem; margin: 0 0 .7rem; }
.footer-grid p { font-size: .97rem; }

.footer-subscribe { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-subscribe input {
  flex: 1; min-width: 180px; font: inherit; padding: .6rem .9rem;
  border: none; border-radius: 999px;
}
.footer-subscribe button {
  font: inherit; font-weight: 700; background: var(--pink); color: #fff;
  border: none; border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer;
}
.footer-subscribe button:hover { background: var(--pink-dark); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: .88rem;
}
.footer-bottom a { color: #a9c6d9; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
