/* Our Village Allied Health */

:root {
  --purple: #785b9e;
  --purple-dark: #5a4279;
  --purple-deep: #2f2442;
  --purple-tint: #f1ebf7;
  --green: #5e8238;
  --green-dark: #48662a;
  --green-tint: #eef3e6;
  --orange: #ed7c2e;
  --orange-tint: #fdeee3;
  --cream: #fbf7f1;
  --white: #ffffff;
  --text: #2f2a36;
  --muted: #5d5766;
  --line: #e6dfd4;

  --font-head: "Quicksand", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(47, 36, 66, 0.25);
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--purple-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--purple-dark); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--purple-deep); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.8rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px;
  background: var(--orange); margin-right: 10px; vertical-align: 0.3em;
}
.center .eyebrow::before, .section-head .eyebrow::before, .page-hero .eyebrow::before { display: none; }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.85em 1.6em; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-outline { border-color: var(--purple); color: var(--purple-dark); background: transparent; }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 108px; padding-block: 8px; }
.brand img { height: 92px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--purple); color: var(--purple-dark);
  border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { vertical-align: -4px; }

.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; color: var(--purple-deep); text-decoration: none;
}
.site-nav a:hover { background: var(--purple-tint); color: var(--purple-dark); }
.site-nav a[aria-current="page"] { color: var(--purple-dark); background: var(--purple-tint); box-shadow: inset 0 -3px 0 var(--orange); }
.site-nav .nav-cta a { background: var(--purple); color: #fff; padding-inline: 20px; }
.site-nav .nav-cta a:hover { background: var(--purple-dark); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
  .site-nav a { padding: 12px 16px; border-radius: 14px; }
  .site-nav .nav-cta a { text-align: center; margin-top: 8px; }
  .brand img { height: 70px; }
  .header-inner { min-height: 86px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-white { background: var(--white); }
.section-purple { background: var(--purple-tint); }
.section-green { background: var(--green-tint); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }

/* Leafy divider echoing the logo */
.vine { display: block; width: 140px; height: 24px; margin: 0 auto 1rem; color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.18;
  color: var(--purple-deep);
}
.hero blockquote span { color: var(--purple); }
.hero .lead { max-width: 540px; }

.arch-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.arch-pair figure:nth-child(2) { margin-top: 56px; }
.arch {
  margin: 0;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: var(--purple-tint);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-pair .tag {
  position: absolute; z-index: 2;
  background: var(--white); border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--purple-deep);
  box-shadow: var(--shadow);
}
.arch-pair .tag-1 { left: -8px; bottom: 18%; }
.arch-pair .tag-2 { right: -8px; top: 10%; }
.tag i { font-style: normal; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .arch-pair { max-width: 460px; margin-inline: auto; width: 100%; }
  .arch-pair .tag-1 { left: 0; }
  .arch-pair .tag-2 { right: 0; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.service-card { position: relative; padding-top: 72px; }
.service-card .icon {
  position: absolute; top: 24px; left: 28px;
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
}
.service-card:nth-child(3n+1) .icon { background: var(--purple-tint); color: var(--purple); }
.service-card:nth-child(3n+2) .icon { background: var(--green-tint); color: var(--green); }
.service-card:nth-child(3n) .icon { background: var(--orange-tint); color: #c2591a; }

/* Split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Pill lists */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 600;
}
.pills li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: 2px; }
.pills li.pill-alt { background: var(--purple); color: #fff; border-color: var(--purple); }
.pills li.pill-alt::before { background: #fff; }
.pills a { color: inherit; }

/* Cuppa callout */
.cuppa {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--purple); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px);
}
.cuppa h2 { color: #fff; margin-bottom: 0.4em; }
.cuppa p { color: #f3eefa; }
.cuppa .cup { width: 96px; height: 96px; color: #fff; }
.cuppa .cup .heart { fill: var(--orange); }
.cuppa .btn-primary { background: #fff; color: var(--purple-dark); }
.cuppa .btn-primary:hover { background: var(--cream); }
.fine-print { font-size: 0.85rem; color: var(--muted); }
.cuppa .fine-print { color: #e4dbef; margin: 1rem 0 0; }
@media (max-width: 640px) { .cuppa { grid-template-columns: 1fr; } .cuppa .cup { width: 64px; height: 64px; } }

/* ---------- Team ---------- */
.team-card { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.team-card + .team-card { margin-top: clamp(56px, 8vw, 96px); }
.team-card.reverse { grid-template-columns: 1fr 300px; }
.team-card.reverse .team-photo { order: 2; }
.team-photo { position: sticky; top: 120px; }
.team-card .role { font-family: var(--font-head); font-weight: 700; color: var(--green-dark); margin: -0.4em 0 1.2em; font-size: 1.1rem; }
.team-card .interests { margin-top: 1.4rem; }
@media (max-width: 760px) {
  .team-card, .team-card.reverse { grid-template-columns: 1fr; }
  .team-card.reverse .team-photo { order: 0; }
  .team-photo { position: static; max-width: 320px; }
}

.team-teaser .card { display: flex; gap: 22px; align-items: center; }
.team-teaser img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.team-teaser h3 { margin-bottom: 0.1em; }
.team-teaser .role { color: var(--green-dark); font-weight: 700; margin-bottom: 0.4em; }
@media (max-width: 900px) { .team-teaser .grid-2 { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }
@media (max-width: 420px) { .team-teaser .card { flex-direction: column; text-align: center; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .lead { max-width: 680px; margin-inline: auto; }

/* ---------- Funding ---------- */
.funding-card { border-top: 6px solid var(--purple); }
.funding-card:nth-child(2) { border-top-color: var(--green); }
.funding-card:nth-child(3) { border-top-color: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside img { border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); max-width: 360px; width: 100%; margin-top: 1.5rem; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--purple-deep); margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--muted); font-size: 0.9em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 16px; border: 1.5px solid #d6cdc0; border-radius: 14px; background: var(--cream);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-tint); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: var(--green-tint); color: var(--green-dark); }
.form-status.err { display: block; background: var(--orange-tint); color: #8a3a0b; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: #ddd5e8; padding: 64px 0 28px; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 180px; background: var(--cream); border-radius: 18px; padding: 14px 18px; margin-bottom: 1rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer h2::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); margin-top: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: #b9aecb; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Service areas ---------- */
.service-area { margin: 1.2rem 0 0; color: var(--muted); }
.service-area strong { color: var(--purple-deep); }
.areas { max-width: 760px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: center; }
.area-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area-list li {
  background: var(--white); border-radius: var(--radius); padding: 20px 12px;
  font-family: var(--font-head); font-weight: 700; color: var(--purple-deep); line-height: 1.3;
  border-bottom: 4px solid var(--orange);
}
.area-list svg { display: block; width: 28px; height: 28px; margin: 0 auto 8px; fill: none; stroke: var(--purple); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) { .area-list { grid-template-columns: repeat(2, 1fr); } }
