/* Max Wellness Pain Relief, shared stylesheet.
   Self-contained. System font stack only. No external assets, fonts, or CDNs.
   Palette: calm teal-blue and green with warm neutrals, drawn from the brand mark.
   Base font size is comfortably large (18px) for senior-friendly reading.
   Contrast pairs meet WCAG AA. */

:root {
  /* Palette sampled from the actual Max Wellness logo (assets/logo-full.png):
     warm pulse #D11127 > #E98220 > #F5B32B, cool pulse #64A9D4 > #136BA3 > #122E58 */
  --ink: #1c2830;
  --ink-soft: #3d4f5a;
  --brand: #136ba3;        /* Pain Relief blue, sampled from the wordmark */
  --brand-dark: #0f5886;
  --brand-deep: #122e58;   /* navy from the W pulse */
  --accent: #136ba3;       /* CTAs live on the brand blue */
  --accent-dark: #0f5886;
  --gold: #a86e00;         /* brand amber #F5B32B darkened to AA on white */
  --red: #d11127;          /* brand red, sparing use */
  --paper: #ffffff;
  --sand: #faf5ec;         /* warm neutral, amber-tinted */
  --mist: #e9f2fa;         /* pale brand blue */
  --mist-green: #fdf3e0;   /* pale brand amber (name kept for existing rules) */
  --line: #d5dee6;
  --focus: #b8541b;        /* high-contrast warm focus ring */
  --shadow: 0 1px 3px rgba(18, 46, 88, 0.08), 0 6px 20px rgba(18, 46, 88, 0.06);
  --pulse-gradient: linear-gradient(90deg, #d11127 0%, #e98220 22%, #f5b32b 44%, #64a9d4 56%, #136ba3 78%, #122e58 100%);
  --max-width: 70rem;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;   /* 18px base */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

/* Skip link, hidden until focused */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--brand-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}
.skip-link:focus { top: 0; }

/* Visible focus everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); }
h1 { font-size: 2.15rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.28rem; margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1rem; }
strong { color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 52rem; margin-left: auto; margin-right: auto; }

/* ============ Header and navigation ============ */
/* Masthead: large centered logo flanked by Home (off-home only) and the
   booking CTA, with the nav links running along the bottom. Tall by design,
   so it scrolls with the page rather than sticking. */
.site-header {
  background: var(--paper);
  box-shadow: var(--shadow);
}
/* The brand pulse, as a signature line under the header */
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--pulse-gradient);
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.header-side { display: flex; align-items: center; gap: 0.75rem; justify-self: start; }
.header-side-right { justify-self: end; }
.header-cta {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent); }
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  text-decoration: none;
}
.brand-logo { height: 6rem; width: auto; display: block; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  margin: 0 auto;
  padding: 0.3rem 1rem;
  max-width: var(--max-width);
}
/* Book lives on the logo row on desktop; the drawer copy is mobile-only.
   Home sits in this nav row (rendered only off the home page). */
.main-nav .nav-cta { display: none; }
.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.02rem;
}
.main-nav a:hover { background: var(--mist); color: var(--brand-deep); }
.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}
.main-nav .nav-cta {
  background: var(--accent-dark);
  color: #fff;
}
.main-nav .nav-cta:hover { background: var(--accent); color: #fff; }

/* Mobile navigation: menu button on the LEFT of the logo row, drawer below.
   Home and Book move into the drawer (the top-row versions hide). */
@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .brand-logo { height: 4.5rem; }
  .header-top { gap: 0.5rem; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav .nav-cta { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.4rem 1rem 0.8rem; }
  .main-nav a { padding: 0.75rem 0.8rem; font-size: 1.1rem; }
  .main-nav .nav-cta { text-align: center; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-size: 1.1rem;
  line-height: 1.2;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-secondary {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--brand);
}
.btn-secondary:hover { background: var(--mist); color: var(--brand-deep); }
.btn-on-dark {
  background: #fff;
  color: var(--brand-deep);
}
.btn-on-dark:hover { background: var(--mist); color: var(--brand-deep); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(160deg, var(--mist), var(--sand));
  padding: 3rem 0 3.25rem;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero .eyebrow svg { width: 1.1em; height: 1.1em; color: var(--brand); }
.hero h1 { font-size: 2.55rem; max-width: 20ch; }
.hero p.lead {
  font-size: 1.3rem;
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}
.hero-contact {
  margin-top: 1.4rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.hero-contact a { font-weight: 700; }

/* ============ Sections ============ */
main { padding-bottom: 1rem; }
.section { padding: 2.75rem 0; }
.section-alt { background: var(--sand); }
.section-mist { background: var(--mist); }
.section-tight { padding: 1.75rem 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section > .container > h2:first-child,
.section > .container > .narrow > h2:first-child { margin-top: 0; }

/* ============ Card grids ============ */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--mist);
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.card-icon svg { width: 1.7rem; height: 1.7rem; }
.card-icon.icon-green { background: var(--mist-green); color: var(--accent-dark); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Numbered steps list (vertical) */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
  max-width: 60rem;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 1.25rem 3.5rem;
  max-width: none;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Guarantee callout ============ */
.callout {
  background: var(--brand-deep);
  color: #eef6ff;
  border-radius: 14px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.callout h2 { color: #fff; margin-top: 0; }
.callout p { color: #dbeaf7; max-width: 60ch; }
.callout .btn { margin-top: 0.5rem; }

/* Guarantee definition quote */
.definition {
  border-left: 6px solid var(--accent);
  background: var(--mist-green);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.definition p { margin: 0; max-width: none; }

/* ============ Notes, warnings, disclaimers ============ */
.note {
  background: var(--mist);
  border-left: 5px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note strong { color: var(--brand-deep); }

.warning {
  background: #fdf3e7;
  border-left: 5px solid #b8541b;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.warning > :first-child { margin-top: 0; }
.warning > :last-child { margin-bottom: 0; }
.warning strong { color: #8f3f13; }

/* ============ Pill / tag lists ============ */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill-list li {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--brand-deep);
  max-width: none;
}

/* Conditions grid */
.tile-grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--brand-deep);
  max-width: none;
}

/* Definition / feature list with icons */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1.1rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  max-width: none;
}
.feature-list .fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--mist);
  color: var(--brand);
  flex: none;
}
.feature-list .fi svg { width: 1.5rem; height: 1.5rem; }
.feature-list h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.feature-list p { margin: 0; }

/* Two-column info split */
.split {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 1fr; } }

/* Medication columns */
.med-cols {
  columns: 2 16rem;
  column-gap: 2rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}
.med-cols li { max-width: none; break-inside: avoid; }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
}
caption { text-align: left; color: var(--ink-soft); padding-bottom: 0.5rem; }
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th { background: var(--mist); color: var(--brand-deep); }

/* ============ Pricing ============ */
.price-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 44rem) { .price-cards { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.price-card .amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.1;
}
.price-card .unit { color: var(--ink-soft); font-weight: 600; }
.price-card h3 { margin-top: 0; }

/* ============ FAQ ============ */
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 0.75rem 0;
  color: var(--brand-deep);
}
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }

/* ============ Contact details ============ */
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-details li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.contact-details .label {
  font-weight: 700;
  color: var(--brand-deep);
  display: inline-block;
  min-width: 6rem;
}
.pending {
  background: #fdf3e7;
  border: 1px dashed #b8541b;
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-size: 0.98rem;
  color: #8f3f13;
}

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 2.75rem 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #dbeaf7; max-width: 56ch; }
.cta-band .btn { margin-top: 0.5rem; }

/* ============ Footer ============ */
.site-footer {
  background: var(--brand-deep);
  color: #cdddef;
  padding: 2.75rem 0 2rem;
  margin-top: 3rem;
}
.site-footer a { color: #e2eefb; }
.footer-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
.site-footer .footer-name {
  font-weight: 700;
  color: #fff;
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
}
.site-footer address {
  font-style: normal;
  margin: 0.25rem 0 0.75rem;
  line-height: 1.7;
}
.footer-guarantee {
  font-weight: 700;
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-links li { max-width: none; }
.footer-disclaimer {
  font-size: 0.95rem;
  color: #9db9d6;
  border-top: 1px solid #23486b;
  padding-top: 1rem;
  margin-top: 1.5rem;
  max-width: 70ch;
}
.footer-copy { font-size: 0.95rem; color: #9db9d6; margin-top: 0.5rem; }

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.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;
}

/* ============ Responsive type bumps ============ */
@media (max-width: 34rem) {
  .hero h1 { font-size: 2.05rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }
  .callout, .price-card, .card { padding: 1.35rem; }
  .definition { font-size: 1.15rem; }
}
