/* Aspire HMO — shared styles
   Palette: deep navy (brand), clinic green (accent), warm sand (ground), muted gold (sparing highlight)
*/

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Public+Sans:wght@400;500;600;700&display=swap');

:root{
  --navy: #0B2A4A;
  --navy-deep: #071B31;
  --green: #1F8A70;
  --green-deep: #146957;
  --sand: #F7F4EC;
  --sand-panel: #EFEADB;
  --ink: #14213D;
  --ink-soft: #4B5568;
  --gold: #C98A2B;
  --line: #DAD4C2;
  --white: #FFFFFF;
  --radius: 4px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, .display{
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 600; }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.18; }
h3{ font-size: 1.25rem; font-weight: 600; }
p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a{ color: var(--green-deep); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible{ outline: 2px solid var(--green); outline-offset: 3px; }
ul{ padding-left: 1.2em; color: var(--ink-soft); }
li{ margin-bottom: 0.4em; }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header{
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 1.3rem;
  color: var(--navy-deep);
}
.brand .mark{
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-deep);
  position: relative; flex: none;
}
.brand .mark::before, .brand .mark::after{
  content: ""; position: absolute; background: var(--sand);
}
.brand .mark::before{ width: 14px; height: 3px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.brand .mark::after{ width: 3px; height: 14px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

nav.primary{ display: flex; align-items: center; gap: 28px; }
nav.primary a{
  color: var(--ink); font-weight: 500; font-size: 0.96rem;
}
nav.primary a:hover{ color: var(--green-deep); text-decoration: none; }
nav.primary a.current{ color: var(--green-deep); }
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary{ background: var(--green-deep); color: var(--white); }
.btn-primary:hover{ background: var(--green); text-decoration: none; }
.btn-ghost{ border-color: var(--navy-deep); color: var(--navy-deep); background: transparent; }
.btn-ghost:hover{ background: var(--navy-deep); color: var(--white); text-decoration: none; }

/* Hero */
.hero{
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap{ display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow-line{
  display: flex; align-items: center; gap: 10px;
  color: var(--green-deep); font-weight: 600; font-size: 0.92rem; margin-bottom: 18px;
}
.eyebrow-line svg{ flex: none; }
.hero p.lede{ font-size: 1.15rem; max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.pulse-panel{
  background: var(--navy-deep); border-radius: var(--radius);
  padding: 34px; color: var(--sand); min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pulse-panel svg{ width: 100%; height: auto; }
.pulse-panel .stat{ font-family: 'Newsreader', serif; font-size: 2.4rem; color: var(--white); }
.pulse-panel .stat-label{ font-size: 0.9rem; color: #B9C6D6; }

/* Sections */
section.block{ padding: 64px 0; }
section.block.tight{ padding: 44px 0; }
.panel{ background: var(--sand-panel); }
.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.col-head{ max-width: 44ch; }

.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3{ margin-bottom: 10px; }
.card p{ margin-bottom: 0; font-size: 0.96rem; }

.steps{ counter-reset: step; margin-top: 32px; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.step{ border-top: 2px solid var(--green-deep); padding-top: 14px; }
.step .num{ font-family: 'Newsreader', serif; font-size: 1.6rem; color: var(--green-deep); display:block; margin-bottom: 6px; }

.cta-band{
  background: var(--navy-deep); color: var(--sand); padding: 56px 0; text-align: left;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: #C6D2E0; }
.cta-band .hero-actions{ margin-top: 22px; }

.placeholder{
  background: #FBF3E0; border: 1px dashed var(--gold); color: #6B4E12;
  font-size: 0.85rem; padding: 3px 8px; border-radius: 3px; display: inline-block;
}

table.plans{ width: 100%; border-collapse: collapse; margin-top: 12px; }
table.plans th, table.plans td{
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
table.plans th{ font-family:'Newsreader', serif; font-weight: 600; color: var(--navy-deep); }

.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; }
.contact-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card dt{ font-weight: 600; color: var(--navy-deep); margin-top: 16px; }
.contact-card dt:first-child{ margin-top: 0; }
.contact-card dd{ margin: 2px 0 0; color: var(--ink-soft); }

form.enquiry{ display: grid; gap: 16px; }
form.enquiry label{ font-weight: 600; font-size: 0.92rem; color: var(--navy-deep); display:block; margin-bottom: 6px; }
form.enquiry input, form.enquiry select, form.enquiry textarea{
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.96rem; background: var(--white); color: var(--ink);
}
form.enquiry textarea{ min-height: 110px; resize: vertical; }

.legal h2{ margin-top: 1.8em; padding-top: 0.8em; border-top: 1px solid var(--line); }
.legal h2:first-of-type{ border-top: none; padding-top: 0; }
.legal h3{ margin-top: 1.4em; color: var(--navy); }
.legal .updated{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.8em; }
.legal-badges{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.legal-badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sand-panel); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--navy-deep);
}
.legal-badge.accent{ background: rgba(31, 138, 112, 0.12); border-color: var(--green); color: var(--green-deep); }
.legal-toc{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin: 28px 0 40px;
}
.legal-toc h3{ margin: 0 0 14px; font-size: 1.1rem; }
.legal-toc ol{ margin: 0; padding-left: 20px; column-count: 2; column-gap: 32px; }
.legal-toc li{ margin-bottom: 8px; font-size: 0.92rem; }
.legal-toc a{ color: var(--navy-deep); text-decoration: none; font-weight: 500; }
.legal-toc a:hover{ color: var(--green-deep); text-decoration: underline; }
.legal-box{
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green-deep);
  border-radius: var(--radius); padding: 22px 24px; margin: 24px 0;
}
.legal-box.alert{ border-left-color: var(--gold); background: #FAF7F0; }
.legal-box h3, .legal-box h4{ margin-top: 0; color: var(--navy-deep); font-size: 1.1rem; }
.legal-box p:last-child, .legal-box ul:last-child{ margin-bottom: 0; }
.legal-table-wrap{ overflow-x: auto; margin: 20px 0 28px; }
.legal-table{
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem;
}
.legal-table th, .legal-table td{
  padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.legal-table th{ background: var(--sand-panel); font-family: 'Newsreader', serif; font-weight: 600; color: var(--navy-deep); }
.legal-table tr:last-child td{ border-bottom: none; }
.legal-table tr:hover td{ background: rgba(247, 244, 236, 0.4); }
@media (max-width: 860px){
  .legal-toc ol{ column-count: 1; }
}

/* Footer */
footer.site-footer{
  border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 20px;
}
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4{ font-size: 0.85rem; text-transform: none; color: var(--navy-deep); margin: 0 0 10px; font-weight: 600; }
.footer-grid ul{ list-style: none; padding: 0; margin: 0; }
.footer-grid li{ margin-bottom: 8px; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.45; }
.footer-grid a{ color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a:hover{ color: var(--green-deep); text-decoration: underline; }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--ink-soft); flex-wrap: wrap; gap: 10px;
}

@media (max-width: 860px){
  nav.primary{ display: none; }
  .hero .wrap{ grid-template-columns: 1fr; }
  .two-col, .grid-3, .steps, .contact-grid, .footer-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
