/* ==========================================================================
   Otago Kidney Society — site styles
   Warm, welcoming palette inspired by the OKS kidney mascot.
   ========================================================================== */

:root {
  --brand-red: #b5392e;
  --brand-red-dark: #861f17;
  --brand-red-soft: #e58075;
  --cream: #fbf6ec;
  --warm-panel: #f4dec6;
  --warm-panel-soft: #fbeede;
  --sage: #5c8b7f;
  --sage-dark: #3e695f;
  --ink: #2b2520;
  --ink-soft: #5a4f47;
  --line: #e8d8c2;
  --white: #fffdf8;

  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;

  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(86, 35, 22, 0.10);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--brand-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(134, 31, 23, 0.4);
}
a:hover { text-decoration-color: var(--brand-red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top banner ---------- */
.topbar {
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 24px;
}
.topbar a { color: var(--white); text-decoration-color: rgba(255,255,255,0.6); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 56px; height: auto; }
.brand .name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 600;
}
.brand .name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
nav a {
  display: inline-block;
  padding: 8px 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
nav a:hover { background: var(--warm-panel-soft); }
nav a.active {
  color: var(--brand-red-dark);
  background: var(--warm-panel);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--warm-panel) 0%, var(--warm-panel-soft) 100%);
  padding: 64px 0 56px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--brand-red-dark); }
.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero img.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Page header (non-home pages) */
.page-head {
  background: var(--warm-panel-soft);
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { color: var(--brand-red-dark); margin-bottom: .3em; }
.page-head p { color: var(--ink-soft); max-width: 60ch; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .08s ease, background .2s ease;
  font-size: 1rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-red); color: var(--white); }
.btn-primary:hover { background: var(--brand-red-dark); }
.btn-secondary {
  background: transparent;
  color: var(--brand-red-dark);
  border-color: var(--brand-red);
}
.btn-secondary:hover { background: rgba(181, 57, 46, 0.07); }

/* ---------- Sections / cards ---------- */
section { padding: 56px 0; }
section.alt { background: var(--white); }

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--warm-panel);
  color: var(--brand-red-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  font-family: var(--font-head);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; }

/* Two-column / three-column blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.callout {
  background: var(--warm-panel);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 6px solid var(--brand-red);
}
.callout h3 { color: var(--brand-red-dark); margin-top: 0; }

.fact-strip {
  background: var(--brand-red);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.fact-strip .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}
.fact-strip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 4px;
}
.fact-strip span { font-size: 0.95rem; opacity: 0.92; }

/* Lists */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding: 10px 0 10px 36px;
  border-bottom: 1px dashed var(--line);
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: "♥";
  position: absolute; left: 6px; top: 9px;
  color: var(--brand-red);
  font-size: 1.1rem;
}

/* Events list */
.event {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.event:last-child { border-bottom: 0; }
.event .when {
  background: var(--warm-panel);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  font-family: var(--font-head);
  color: var(--brand-red-dark);
}
.event .when .day {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}
.event .when .month {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.event h3 { margin: 0 0 .25em; }
.event p { margin: 0; color: var(--ink-soft); }

/* Contact details */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.contact-card h3 { margin-top: 0; color: var(--brand-red-dark); }
.contact-card p { margin: .35em 0; }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #ddd1c4;
  padding: 40px 0 22px;
  margin-top: 0;
}
footer.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}
footer.site-footer h3 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
footer.site-footer a { color: #ffd9c8; text-decoration-color: rgba(255,217,200,0.4); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { padding: 4px 0; }
footer.site-footer .legal {
  border-top: 1px solid #4d3f36;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #b6a596;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Committee grid */
.committee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  text-align: center;
}
.person .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--warm-panel);
  color: var(--brand-red-dark);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.person h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.person .role {
  display: inline-block;
  background: var(--warm-panel);
  color: var(--brand-red-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.person p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.person.officer .avatar {
  background: var(--brand-red);
  color: var(--white);
}

.officers-row { margin-bottom: 10px; }

/* Utilities */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.notice {
  background: var(--warm-panel-soft);
  border: 1px dashed var(--brand-red-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.notice strong { color: var(--brand-red-dark); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero .grid { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  footer.site-footer .grid { grid-template-columns: 1fr; gap: 22px; }
  .site-header .inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav ul { width: 100%; }
}

@media (max-width: 480px) {
  .event { grid-template-columns: 90px 1fr; gap: 14px; }
  .brand img { width: 46px; }
  .brand .name { font-size: 1.05rem; }
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
