/* Kumeū & Helensville Midwives
   Palette taken from the logo: deep forest and flax greens, burnt harakeke red,
   warm cream background. Headings in Lora (a serif to echo the logo lettering). */

:root {
  --forest-900: #1f2d20;
  --forest-700: #2f4230;
  --forest-500: #56694a;
  --sage: #a9b596;
  --sage-100: #eef1e6;
  --red: #9b2c1f;
  --red-700: #7a2016;
  --cream: #faf8f3;
  --ink: #1f271e;
  --muted: #56604f;
  --line: #dde2d2;
  --radius: 14px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

a { color: var(--red); }
a:hover { color: var(--red-700); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-700);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest-700);
}
.brand:hover { color: var(--forest-900); }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--forest-700); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta {
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--red-700); color: #fff; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-ghost { border-color: var(--forest-700); color: var(--forest-700); }
.btn-ghost:hover { background: var(--forest-700); color: #fff; }
.btn-light { background: #fff; color: var(--forest-900); }
.btn-light:hover { background: var(--sage-100); color: var(--forest-900); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sage-100) 0%, var(--cream) 100%);
  padding: 72px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.8em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-logo img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(31, 45, 32, 0.14);
}

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--sage-100); }
.section-forest { background: var(--forest-700); color: #e9eee0; }
.section-forest h2 { color: #fff; }
.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 2em; }

/* Births */
.birth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 1.5em;
}
.birth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--forest-500);
}
.birth-card p { margin: 0; color: var(--muted); }

/* Midwives */
.midwife-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.midwife {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.midwife:hover { border-color: var(--forest-500); transform: translateY(-2px); color: var(--ink); }
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--forest-900);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  overflow: hidden;
}
/* Photo version: <span class="avatar"><img src="/assets/img/midwives/first-last.jpg?v=1" alt="First Last"></span> */
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.midwife .name { font-weight: 600; text-align: center; }

/* Clinics */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.clinic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.clinic p { color: var(--muted); }
.clinic a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--forest-900);
  color: #cfd6c4;
  padding: 40px 0;
  font-size: 0.95rem;
}
.site-footer strong { color: #fff; font-family: var(--serif); font-weight: 600; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }

/* 404 */
.notfound { padding: 18vh 24px; text-align: center; }

/* Small screens */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 240px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .birth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 12px; flex-wrap: wrap; }
  .site-nav a { font-size: 0.9rem; }
  .site-nav .nav-cta { padding: 3px 12px; }
  .brand img { width: 40px; height: 40px; }
  .clinic-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .midwife-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .avatar { width: 96px; height: 96px; font-size: 1.3rem; }
  html { scroll-padding-top: 0; }
}
