/* Wirral Menopause Community CIC — Concept 2 (statement-led) */

:root {
  --red: #C42343;
  --red-dark: #9E1733;
  --blush: #F4D6DC;
  --blush-deep: #E8B8C2;
  --cream: #FBF4EE;
  --sand: #EFE3D8;
  --ink: #2B1B21;
  --muted: #5E4A50;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --space: clamp(64px, 9vw, 104px);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--blush); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 44px; height: 46px; overflow: visible; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.brand-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1360px) {
  .btn.header-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--blush);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--blush); font-size: 1.1rem; }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--blush); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--red);
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--red); }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--red-dark); }
.btn-small { padding: 11px 20px; font-size: 0.95rem; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero: statement-led ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 110px);
}
.hero-heart {
  position: absolute; left: 50%; top: 50%; width: min(860px, 130vw); height: auto;
  transform: translate(-50%, -52%); pointer-events: none; color: var(--blush);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--red); }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 5.9rem); line-height: 1.0; max-width: 16ch; letter-spacing: -0.01em; }
.hero h1 em { color: var(--red); font-style: italic; }
.hero-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #4A383E; max-width: 46ch; }
.hero .btn-row { justify-content: center; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink); text-decoration: none;
  padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
}
a.chip:hover { color: var(--red); }
.chip svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); }

@media (max-width: 600px) {
  .hero .btn-row, .chips { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .btn { width: 100%; }
}

/* ---------- Strip ---------- */
.strip { background: var(--red); color: var(--white); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter); }
.strip p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
@media (max-width: 700px) { .strip-inner { flex-direction: column; align-items: stretch; text-align: left; } }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1060px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 1.6rem; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 700; }
.icon-tile {
  width: 56px; height: 56px; border-radius: 18px; background: var(--blush);
  display: grid; place-items: center; color: var(--red);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Panel (blush) ---------- */
.panel {
  background: var(--blush); border-radius: 40px; padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start;
}
.panel h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.panel .kicker { color: var(--red-dark); }
.panel-copy { display: flex; flex-direction: column; gap: 20px; }
.panel-copy p { color: #4A383E; font-size: 1.1rem; }
.footnote, .panel-copy .footnote { font-size: 0.85rem; color: var(--muted); margin-top: -8px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--white); border-radius: 999px; padding: 11px 20px; font-weight: 600; }
.pills-red .pill { background: var(--red); color: var(--white); }

.placeholder {
  border: 2px dashed #D9A3AF; border-radius: 20px; min-height: 110px;
  display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: 0.9rem; font-weight: 600; color: #7A4A56;
}
.photo {
  border-radius: var(--radius-md); background: var(--sand); min-height: 220px;
  display: flex; align-items: flex-end; padding: 18px;
  font-size: 0.9rem; font-weight: 600; color: #6B5248;
}

/* ---------- Events ---------- */
.event { background: var(--white); border-radius: 28px; padding: 26px; display: flex; gap: 20px; align-items: flex-start; }
.event-date {
  width: 78px; flex-shrink: 0; border-radius: 18px; background: var(--red); color: var(--white);
  padding: 12px 0; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.event-date .m { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }
.event-date .d { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.event-date.is-weekly { background: var(--blush); color: var(--red-dark); }
.event-date.is-weekly .d { font-size: 1.25rem; padding-top: 4px; }
.event-body { display: flex; flex-direction: column; gap: 4px; }
.event-type { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--red); }
.event h3 { font-size: 1.35rem; }
.event p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Stories ---------- */
.story { background: var(--white); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.story .photo { border-radius: 0; min-height: 200px; }
.story-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; }
.story cite { font-style: normal; font-weight: 700; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 22px; }
.visit-info h2 { font-size: clamp(2rem, 4vw, 3rem); }
.info-line { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.info-line svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.map { border: 0; width: 100%; min-height: 380px; border-radius: 32px; background: var(--sand); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map { min-height: 280px; } }

/* ---------- Inner page header ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero .hero-heart { width: min(440px, 80vw); left: auto; right: 4%; transform: translateY(-50%) rotate(-8deg); }
@media (max-width: 700px) { .page-hero .hero-heart { right: -30%; opacity: 0.7; } }
.page-hero-inner { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; }
.page-hero p { font-size: 1.2rem; color: #4A383E; max-width: 52ch; }

/* ---------- Prose & lists ---------- */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 68ch; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 16px; }
.prose p { font-size: 1.1rem; }

.times { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 24px; overflow: hidden; }
.times th, .times td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--cream); font-size: 1.05rem; }
.times th { font-weight: 700; width: 40%; }
.times tr:last-child th, .times tr:last-child td { border-bottom: 0; }
.times .closed { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: 24px; padding: 22px 24px 22px 76px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-weight: 700;
}
.steps strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; padding: 0 24px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; color: var(--red);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; background: var(--white); border-radius: 32px; padding: clamp(24px, 4vw, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--cream);
  border: 2px solid var(--blush-deep); border-radius: 14px; padding: 14px 16px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--blush); padding: 64px 0 40px; margin-top: var(--space); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--blush); }
.site-footer a:hover { color: var(--white); }
.footer-base { border-top: 1px solid #4A383E; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: #CDB5BC; }
.funder-logo { width: 200px; max-width: 100%; height: auto; margin-top: 22px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Editable content ---------- */
.empty-state { grid-column: 1 / -1; background: var(--white); border-radius: 24px; padding: 24px 28px; color: var(--muted); }
.story img { width: 100%; height: 220px; object-fit: cover; }
.card-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.card-role { color: var(--red) !important; font-weight: 700; }
.event time { color: var(--ink); font-weight: 600; }
.notice { background: var(--ink); color: var(--white); padding: 12px 0; font-weight: 600; text-align: center; }

.footer-logo { width: 150px; height: auto; margin-bottom: 16px; }

/* ---------- Privacy policy ---------- */
.prose ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; font-size: 1.1rem; }
.table-wrap { overflow-x: auto; }
.prose .times thead th { background: var(--blush); color: var(--red-dark); }
.prose .times td { vertical-align: top; }
.funder-logo-panel { width: 240px; max-width: 100%; height: auto; }
.funder-link { display: inline-block; } .funder-link:hover { opacity: 0.85; }

/* ---------- About: team and funders ---------- */
.team-photo { height: 280px; object-position: center 25%; }
[data-funders] { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.funder-name { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.prose-block { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Donations ---------- */
.donate-band { background: var(--blush); }
.donate-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.donate-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.donate-inner p { margin: 0; max-width: 60ch; color: var(--muted); }
@media (max-width: 700px) { .donate-inner { flex-direction: column; align-items: stretch; } }

.donate-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--red); color: var(--white); font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 20px rgba(43, 27, 33, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}
.donate-float svg { width: 18px; height: 18px; flex: none; }
.donate-float:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.donate-float:focus-visible { outline-color: var(--ink); }
/* Leave room below the footer so the floating button never covers its links */
.site-footer { padding-bottom: 104px; }
@media (max-width: 600px) {
  .donate-float { right: 14px; bottom: 14px; padding: 10px 16px; font-size: 0.95rem; }
  .site-footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .donate-float { transition: none; } .donate-float:hover { transform: none; } }
