/**
 * Shared stylesheet for the Elevate Osteopathy website: brand palette,
 * self-hosted Chift Display fonts, header/nav/footer, and the layout of
 * every page, including the responsive (mobile) rules at the bottom.
 *
 * @author     Mario Kurobasa
 * @client     Nikola Kozelj
 * @version    1.0
 * @since      August 29th, 2026
 */
:root {
  /* Elevate Osteopathy palette — built from the logo navy (#101E4D). */
  --navy:   #101E4D;   /* logo navy — the brand colour   */
  --deep:   var(--navy);
  --teal:   var(--navy);           /* nav active, buttons, bands   */
  --turq:   #1B2F6E;               /* bio / contact panels         */
  --aqua:   #CFD8EE;               /* light navy tint              */
  --pale:   #EAEEF7;               /* pale navy page tint          */
  --slate:  #4E5B80;
  --ink:    #000;
  --grey:   #474747;
  --white:  #fff;

  --font-body: Arial, Helvetica, sans-serif;
  --font-head: Arial, Helvetica, sans-serif;
  --font-alt: Arial, Helvetica, sans-serif;
  --font-label: Arial, Helvetica, sans-serif;

  --content-w: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.page-tinted { background: var(--pale); }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid #2F6FED;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(var(--content-w), 100% - 40px);
  margin-inline: auto;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--navy); padding: 10px 14px; z-index: 1000; border: 2px solid var(--navy);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- Header / nav ---------------- */
.site-header {
  background: var(--white);
  height: 97px;
  position: relative;
  z-index: 20;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 48px);
  padding-bottom: 0;
  width: min(1300px, 100% - 40px);
}
.site-header.no-brand .container { align-items: flex-end; width: min(1200px, 100% - 40px); }
.site-header:not(.no-brand) .container { width: min(1500px, 100% - 40px); }
/* Logo owns the left quarter of the header and sits centred in it, so it reads as its own element */
.site-header:not(.no-brand) .site-nav { flex: 3 1 0; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1 1 0; text-decoration: none; color: var(--navy); }
.brand img { height: 64px; width: auto; display: block; }
.brand span { font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.02; letter-spacing: .01em; white-space: nowrap; }
.site-nav { flex: 1 1 auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-nav a {
  display: block;
  padding: 0 4px;
  line-height: 50px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--turq); opacity: .75; }

.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 39px; height: 39px; flex: 0 0 auto;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 5px;
}
.social svg { width: 30px; height: 30px; }
.social:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--deep);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------------- Footer ---------------- */
.site-footer {
  height: 45px;
  display: flex; align-items: center;
  font-size: 15px;
  line-height: 28px;
  color: var(--ink);
}
.site-footer .container {
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: min(1000px, 100% - 40px);
}
.site-footer .f-address { flex: 0 0 410px; }
.site-footer .f-phone   { flex: 0 0 180px; }
.site-footer .f-email   { flex: 0 0 248px; }
.site-footer a { text-decoration: none; }
.site-footer .social { margin-bottom: 0; }
.site-footer .social svg { width: 26px; height: 26px; }
.site-footer.tinted { background: var(--deep); color: var(--white); }
.site-footer.tinted .social { color: var(--white); }
.site-footer.plain  { background: var(--white); }

/* ---------------- Home ---------------- */
.hero {
  padding-top: 58px;
  text-align: center;
}
.hero .logo {
  width: auto; height: 470px; max-width: 100%;
  margin: 0 auto;
}
.hero p {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.2;
}
.btn-outline {
  display: inline-block;
  font-weight: 700;
  margin-top: 72px;
  min-width: 166px; height: 55px; line-height: 53px;
  padding: 0 22px 0 calc(22px + 3.6px); /* extra left pad offsets the trailing letter-spacing */
  text-align: center;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.hero { padding-bottom: 72px; }

/* Home: intro / what we help with / first visit */
.home-intro { background: var(--pale); padding: 72px 0; }
.grid-intro { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; width: min(1100px, 100% - 40px); }
.intro-figure { margin: 0; }
.intro-photo { aspect-ratio: 4 / 5; background-size: cover; background-position: center 18%; }
.intro-figure figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}
.intro-text h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; color: var(--navy); margin: 0 0 20px; }
.intro-text p { font-size: 18px; line-height: 1.75; color: var(--navy); margin: 0 0 22px; }
.text-link { font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .03em; }
.text-link:hover { text-decoration: underline; }

.home-treat { background: var(--white); padding: 72px 0; text-align: center; }
.home-treat h2 { font-weight: 700; font-size: 34px; color: var(--navy); margin: 0 0 40px; }
.treat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 28px;
  row-gap: 38px;
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
}
.treat-item {
  border-top: 3px solid var(--navy);
  padding: 24px 20px 10px;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.treat-item h3 {
  max-width: 310px;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}
.treat-item p { font-size: 16px; line-height: 1.65; color: var(--navy); margin: 0; }
.treat-item.treat-more { grid-column: 2; }

.home-visit { background: var(--navy); color: var(--white); padding: 72px 0; }
.grid-visit { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; width: min(1100px, 100% - 40px); }
.home-visit h2 { font-weight: 700; font-size: 34px; margin: 0 0 18px; }
.home-visit p { font-size: 18px; line-height: 1.75; margin: 0 0 28px; }
.btn-outline.light { margin-top: 0; border-color: var(--white); color: var(--white); }
.btn-outline.light:hover { background: var(--white); color: var(--navy); }
.price-card { background: var(--white); color: var(--navy); padding: 28px 30px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--aqua); font-size: 17px; color: var(--navy); text-decoration: none; transition: background .15s; }
.price-row > span:first-child { flex: 1 1 auto; }
.price-row strong { font-weight: 700; font-size: 24px; white-space: nowrap; }
.price-row .arrow { font-weight: 700; font-size: 20px; opacity: .45; transition: transform .15s, opacity .15s; }
.price-row:hover, .price-row:focus-visible { background: var(--pale); }
.price-row:hover .arrow, .price-row:focus-visible .arrow { opacity: 1; transform: translateX(3px); }
.price-note { font-size: 15px; margin: 16px 0 0; line-height: 1.5; }

/* Footer legal line */
.site-footer { height: auto; flex-direction: column; padding: 8px 0 10px; }
.site-footer .legal { display: flex; justify-content: center; gap: 24px; font-size: 13px; line-height: 1.6; opacity: .8; margin-top: 2px; }
.site-footer .legal a { text-decoration: underline; }

/* Privacy page */
.legal-page { padding: 48px 0 72px; color: var(--navy); width: min(760px, 100% - 40px); }
.legal-page h1 { font-weight: 700; font-size: 40px; margin: 0 0 20px; }
.legal-page h2 { font-weight: 700; font-size: 22px; margin: 32px 0 8px; }
.legal-page p { font-size: 17px; line-height: 1.75; margin: 0 0 12px; }

/* ---------------- Learn-more page ---------------- */
.band { width: 100%; }
.band-deep { background: var(--deep); height: 41px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.panel { padding: 58px 110px 40px; text-align: center; }
.panel h1, .panel h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 38px; margin: 0 0 40px; color: var(--deep);
}
.panel p { font-size: 18px; line-height: 1.8; margin: 0 0 1em; color: var(--deep); }
.panel-white { background: var(--white); }
.panel-teal  { background: var(--teal); }
.panel-teal p, .panel-teal h1, .panel-teal h2 { color: var(--white); }
.panel-teal p { font-size: 16px; }
.panel-deep  { background: var(--deep); color: var(--white); }
.panel-pale  { background: var(--pale); }
.panel.tall  { min-height: 740px; padding-top: 130px; }
.panel.tall h2 { font-size: 36px; margin-bottom: 60px; }
.panel-grey p { color: var(--grey); }

.img-fill {
  background: var(--aqua);
  min-height: 385px;
  display: flex; align-items: center; justify-content: center;
  color: var(--deep); font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  background-size: cover; background-position: center;
}
.img-fill.tall { min-height: 740px; }

.treat { padding: 84px 110px 60px; }
.treat h2 { font-size: 33px; margin-bottom: 40px; }
.cta-panel { padding: 56px 110px 60px; text-align: center; }
.cta-panel .lead { font-size: 30px; line-height: 1.75; color: var(--white); margin: 0 0 24px; }
.cta-panel p { font-size: 18px; line-height: 1.75; color: var(--white); margin: 0; }
.cta-panel .sub { margin-top: 24px; }

.lead-form { margin: 30px auto 0; max-width: 420px; text-align: left; }
.lead-form input {
  width: 100%; height: 40px; margin-bottom: 16px; padding: 0 14px;
  border: 0; background: rgba(61,95,166,.85); color: var(--white);
  font-family: var(--font-body); font-size: 15px;
}
.lead-form input::placeholder { color: var(--white); opacity: .95; }
.lead-form .submit-row { text-align: center; margin-top: 20px; }
.btn-submit {
  width: 150px; height: 40px;
  background: var(--aqua); border: 1px solid var(--slate); color: var(--ink);
  font-family: var(--font-body); font-weight: 300; font-size: 21px;
  cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--pale); }

/* ---------------- Team page ---------------- */
.team-wrap { padding: 60px 60px 60px; }
.team-card { display: grid; grid-template-columns: 1fr minmax(360px, 42%); max-width: 1300px; margin: 0 auto; }
.team-photo { background-position: center 18%; min-height: 620px; }
.team-card.flip { grid-template-columns: 426fr 879fr; }
.team-bio { background: var(--turq); color: var(--white); padding: 56px clamp(40px, 7vw, 110px) 64px; display: flex; flex-direction: column; justify-content: center; }
.team-card.flip .team-bio { padding: 26px 100px 40px 165px; }
.team-bio h1, .team-bio h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 40px; margin: 0 0 13px;
}
.team-bio .role { font-family: var(--font-alt); font-size: 18px; margin: 0 0 14px; }
.team-bio p { font-size: 17px; line-height: 1.75; margin: 0 0 1.6em; }
.team-bio p:last-child { margin-bottom: 0; }
.team-bio .quals { text-transform: none; }
.team-photo { background: var(--aqua); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--deep); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.team-section-white { background: var(--white); }

/* ---------------- Contact page ---------------- */
.contact-band {
  background: var(--turq);
  padding: 64px 0;
  color: var(--white);
}
.contact-band .container {
  display: grid; grid-template-columns: 1fr minmax(380px, 520px); gap: 60px;
  align-items: center;
  width: min(1100px, 100% - 40px);
}
.contact-info h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 44px; line-height: 1.2; margin: 0 0 24px;
}
.contact-info p { font-size: 17px; line-height: 1.75; margin: 0; }
.contact-info .email { margin-top: 20px; }
.contact-info a { text-decoration: none; }

.contact-form {
  background: var(--white); color: var(--ink);
  padding: 44px 44px 40px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-form .field { margin-bottom: 26px; }
.contact-form label {
  display: block; font-family: var(--font-label); font-size: 14px; line-height: 14px;
  margin-bottom: 2px;
}
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--ink);
  background: transparent; height: 44px; padding: 0;
  font-family: var(--font-body); font-size: 16px;
}
.contact-form textarea { height: 96px; resize: vertical; padding-top: 12px; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--teal); }
.contact-form .btn-submit { width: 147px; height: 42px; margin-top: 4px; }


/* ---------------- Operating hours ---------------- */
.hours-card {
  margin-top: 34px;
  max-width: 430px;
  border-top: 1px solid rgba(255,255,255,.45);
  padding-top: 24px;
}
.hours-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
}
.hours-list { margin: 0; }
.hours-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.hours-list dt, .hours-list dd { margin: 0; }
.hours-list dt { font-weight: 700; }
.hours-list dd { text-align: right; }

/* ---------------- Revised osteopathy CTA ---------------- */
.treatment-copy { text-align: left; }
.treatment-copy h2 { text-align: center; }
.osteopathy-cta {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: 64px 0 72px;
}
.osteopathy-cta h2 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
}
.osteopathy-cta p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
.osteopathy-cta .btn-outline { margin-top: 30px; }

/* ---------------- Directions page ---------------- */
.dir { text-align: center; color: var(--deep); }
.dir h1, .dir h2 {
  font-family: var(--font-alt); font-weight: 400;
  font-size: 56px; margin: 0; line-height: 1.2;
}
.dir h1 { padding: 14px 0 0; }
.dir .map { width: 759px; max-width: 100%; height: 334px; margin: 36px auto 0; background: var(--aqua); }
.dir .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.dir .addr { font-family: var(--font-alt); font-size: 28px; line-height: 38.5px; margin: 8px 0 0; }
.dir .addr a { color: var(--deep); }
.dir .addr .gap { display: block; height: 40px; }
.dir hr { width: 972px; max-width: 100%; border: 0; border-top: 2px solid var(--deep); margin: 56px auto 28px; }
.dir .ph { margin: 16px auto 0; background: var(--aqua);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.dir .ph-1 { width: 582px; height: 600px; }
.dir .ph-2 { width: 582px; height: 370px; margin-top: 78px; }
.arrive { display: grid; grid-template-columns: 382px 209px; gap: 40px; justify-content: center;
  align-items: start; margin-top: 75px; padding-bottom: 80px; text-align: center; }
.arrive .ph-3 { width: 382px; height: 510px; margin: 0; }
.arrive h3 { font-family: var(--font-alt); font-weight: 700; font-size: 30px; line-height: 36px; margin: 15px 0 24px; }
.arrive p { font-size: 15px; line-height: 1.75; margin: 0 0 1.75em; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .panel, .treat, .cta-panel { padding-left: 50px; padding-right: 50px; }
  .team-bio, .team-card.flip .team-bio { padding: 26px 50px 40px; }
}
@media (max-width: 860px) {
  .site-header { height: 80px; }
  .site-header .container { justify-content: space-between; align-items: center; }
  /* Home page has no header logo, so tighten the bar and push the controls to the right */
  .site-header.no-brand { height: 60px; }
  .site-header.no-brand .container { align-items: center; justify-content: flex-end; gap: 8px; }
  .site-header.no-brand .nav-toggle { margin-left: 0; }
  .site-nav { top: 80px; }
  .site-header.no-brand .site-nav { top: 60px; }
  .hero { padding-top: 28px; }
  .brand { flex: 0 0 auto; justify-content: flex-start; }
  .brand img { height: 48px; }
  .brand span { font-size: 19px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: 97px; background: var(--white);
    display: none; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .site-nav a { line-height: 44px; padding: 0 24px; font-size: 16px; }
  .site-nav ul { width: auto; }
  .hero .logo { height: auto; width: 70%; }
  .btn-outline { margin-top: 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel.tall { min-height: 0; padding-top: 60px; }
  .img-fill.tall { min-height: 420px; }
  .team-wrap { padding: 30px 20px; }
  .team-card, .team-card.flip { grid-template-columns: 1fr; }
  .team-bio { padding: 36px 28px 44px; }
  /* Stacked layout: keep the whole portrait in frame instead of cropping to the chest */
  .team-photo { min-height: 0; height: clamp(360px, 75vw, 560px); background-size: cover; background-position: center 18%; order: -1; }
  .contact-band .container { grid-template-columns: 1fr; }
  .contact-band { padding: 40px 0; }
  .contact-form { padding: 32px 24px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .dir h1, .dir h2 { font-size: 40px; }
  .grid-intro, .grid-visit { grid-template-columns: 1fr; gap: 32px; }
  .intro-figure { width: 100%; max-width: 340px; margin: 0 auto; justify-self: center; }
  .intro-photo { width: 100%; }
  .treat-grid { grid-template-columns: 1fr; }
  .treat-item.treat-more { grid-column: auto; }
  .home-intro, .home-treat, .home-visit { padding: 48px 0; }
  .dir .map { height: 240px; }
  .dir .ph-1, .dir .ph-2, .arrive .ph-3 { width: 100%; height: auto; aspect-ratio: 582/600; }
  .dir .ph-2 { aspect-ratio: 582/370; }
  .arrive { grid-template-columns: 1fr; padding-inline: 20px; }
  .arrive .ph-3 { aspect-ratio: 382/510; }
  .site-footer { padding: 14px 0; }
  .site-footer .container { flex-wrap: wrap; gap: 4px 20px; text-align: center; }
  .site-footer .f-address, .site-footer .f-phone, .site-footer .f-email { flex: 0 0 auto; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .btn-outline, .btn-submit, .contact-form, .price-card {
    border: 1px solid ButtonText;
  }
  :focus-visible { outline: 3px solid Highlight; }
}

/* Final 3-column What We Help With layout */
.home-treat .treat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
}

.home-treat .treat-item {
  border-top: 3px solid var(--navy);
  padding: 24px 20px 8px;
  text-align: center;
  display: block;
  min-height: 0;
}

.home-treat .treat-item h3 {
  max-width: 340px;
  margin: 0 auto 18px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
}

.treat-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.treat-points li {
  margin: 0;
  padding: 14px 4px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.45;
  border-top: 1px solid #d8dded;
}

.treat-points li:first-child {
  border-top: 0;
}

.treat-more-note,
.treat-item.treat-more {
  display: none !important;
}

@media (max-width: 760px) {
  .home-treat .treat-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* Final alignment pass for What We Help With */
.home-treat .treat-item {
  display: flex;
  flex-direction: column;
}

.home-treat .treat-item h3 {
  min-height: 72px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-treat .treat-points {
  display: grid;
  grid-template-rows: repeat(3, 86px);
  width: 100%;
}

.home-treat .treat-points li {
  min-height: 86px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 760px) {
  .home-treat .treat-item h3 {
    min-height: auto;
    margin-bottom: 14px;
  }

  .home-treat .treat-points {
    grid-template-rows: none;
  }

  .home-treat .treat-points li {
    min-height: auto;
    padding: 14px 4px;
  }
}

/* =========================================================
   BODY CONTENT TYPOGRAPHY SYSTEM
   Keeps headings, navigation, buttons and footer independent.
   ========================================================= */
:root {
  --content-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-size: 17px;
  --content-line-height: 1.70;
  --content-weight: 400;
}

/* Standard prose throughout the main website content */
.intro-text p,
.home-visit p:not(.price-note),
.panel p,
.team-bio p:not(.role),
.contact-info p,
.legal-page p,
.arrive p,
.osteopathy-cta p,
.treat-points li,
.hours-list dt,
.hours-list dd {
  font-family: var(--content-font);
  font-size: var(--content-size);
  line-height: var(--content-line-height);
  font-weight: var(--content-weight);
  letter-spacing: 0;
}

/* Keep paragraph rhythm consistent across prose-heavy sections */
.intro-text p,
.panel p,
.team-bio p:not(.role),
.legal-page p,
.arrive p {
  margin-top: 0;
  margin-bottom: 1.15em;
}

/* Preserve foreground colours appropriate to each panel */
.panel-teal p,
.team-bio p,
.osteopathy-cta p {
  color: var(--white);
}

/* What-we-help-with rows use the same body typography,
   while retaining their aligned row structure. */
.treat-points li {
  color: var(--navy);
}

/* Contact and hours copy */
.contact-info p,
.hours-list dt,
.hours-list dd {
  color: inherit;
}

/* Mobile: slightly smaller body copy, same proportionate spacing */
@media (max-width: 760px) {
  :root {
    --content-size: 16px;
    --content-line-height: 1.65;
  }
}

/* =========================================================
   OSTEOPATHY TWO-COLUMN TEXT ALIGNMENT
   Keeps both body paragraphs starting at the same vertical point.
   ========================================================= */
.grid-2 > .panel {
  display: flex;
  flex-direction: column;
}

/* Reserve identical heading space on the paired osteopathy panels.
   This allows a two-line heading on the right without pushing its
   paragraph lower than the left panel's paragraph. */
.grid-2 > .panel > h1,
.grid-2 > .panel > h2 {
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 28px;
}

/* Keep paragraph blocks aligned directly below the reserved heading area. */
.grid-2 > .panel > p:first-of-type {
  margin-top: 0;
}

@media (max-width: 760px) {
  .grid-2 > .panel > h1,
  .grid-2 > .panel > h2 {
    min-height: auto;
    margin-bottom: 22px;
  }
}

/* =========================================================
   LIVE REVISION — SEPTEMBER 2026
   ========================================================= */

/* ---------- What We Help With: nine equal options ---------- */
.home-treat .treat-options-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
  padding: 0;
}

.home-treat .treat-options-grid li {
  min-height: 105px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);

  border-bottom: 1px solid #d8dded;
}

/* Three navy line segments above the first row. */
.home-treat .treat-options-grid li:nth-child(-n + 3) {
  border-top: 3px solid var(--navy);
}

/* Three navy line segments below the final row. */
.home-treat .treat-options-grid li:nth-child(n + 7) {
  border-bottom: 3px solid var(--navy);
}

/* ---------- Contact page alignment ---------- */
.contact-info {
  text-align: center;
}

.contact-info h1 {
  text-align: center;
}

.contact-methods {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 0 auto 34px;
}

.contact-methods p,
.contact-info .email {
  margin: 0;
  text-align: center;
}

.contact-methods strong {
  font-weight: 700;
}

.hours-card {
  width: min(430px, 100%);
  margin: 34px auto 0;
}

.hours-card h2 {
  text-align: center;
}

.contact-form .btn-submit {
  display: block;
  margin: 8px auto 0;
}

/* ---------- Mobile: center the first-visit call-to-action ---------- */
@media (max-width: 860px) {
  .home-visit .grid-visit > div:first-child {
    text-align: center;
  }

  .home-visit .grid-visit > div:first-child p {
    margin-left: auto;
    margin-right: auto;
  }

  .home-visit .grid-visit > div:first-child .btn-outline {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile treatment options become one continuous list with
   one navy line at the top and one at the bottom. */
@media (max-width: 760px) {
  .home-treat .treat-options-grid {
    grid-template-columns: 1fr;
  }

  .home-treat .treat-options-grid li {
    min-height: auto;
    padding: 20px 12px;
    border-top: 0;
    border-bottom: 1px solid #d8dded;
  }

  .home-treat .treat-options-grid li:first-child {
    border-top: 3px solid var(--navy);
  }

  .home-treat .treat-options-grid li:last-child {
    border-bottom: 3px solid var(--navy);
  }
}

/* =========================================================
   OPERATING HOURS TABLE ALIGNMENT FIX
   Heading stays centered; rows return to left/right alignment.
   ========================================================= */
.hours-card h2 {
  text-align: center;
}

.hours-list {
  width: 100%;
  margin: 0;
}

.hours-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.hours-list dt {
  text-align: left;
  justify-self: start;
}

.hours-list dd {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
}

/* =========================================================
   ABOUT PAGE HEADING ALIGNMENT
   ========================================================= */
.team-bio h1 {
  text-align: center;
}

.team-bio .role {
  text-align: center;
}

.team-bio .quals {
  text-align: left;
}

.team-bio .quals-heading {
  display: block;
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
}

/* =========================================================
   MOBILE WHAT-WE-HELP-WITH DIVIDER FIX
   One navy line above item 1, grey lines between all items,
   and one navy line below item 9.
   ========================================================= */
@media (max-width: 760px) {
  /* Reset the desktop first-row navy top borders. */
  .home-treat .treat-options-grid li:nth-child(-n + 3) {
    border-top: 0;
  }

  /* Reset the desktop last-row navy bottom borders to grey. */
  .home-treat .treat-options-grid li:nth-child(n + 7) {
    border-bottom: 1px solid #d8dded;
  }

  /* Only the first item gets the navy top rule. */
  .home-treat .treat-options-grid li:first-child {
    border-top: 3px solid var(--navy);
  }

  /* Only the last item gets the navy bottom rule. */
  .home-treat .treat-options-grid li:last-child {
    border-bottom: 3px solid var(--navy);
  }
}
