/* ADIO Chiropractic */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Seriously Nostalgic";
  src: url("../assets/fonts/SeriouslyNostalgic-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #b68a3f;
  --gold-dark: #9c7533;
  --cream: #eee8df;
  --sand: #e5d9c8;
  --paper: #f5f3ef;
  --charcoal: #38383c;
  --ink: #000;
  --white: #fff;
  --radius: 8px;
  --container: 1100px;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Seriously Nostalgic", Georgia, "Times New Roman", serif;
}

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

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

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

figure {
  margin: 0;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

em,
.serif {
  font-family: var(--serif);
  font-style: normal;
  letter-spacing: -0.02em;
  word-spacing: 0.12em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 120px 0;
}

.display {
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.display em {
  letter-spacing: -0.04em;
}

.nowrap {
  white-space: nowrap;
}

.eyebrow {
  font-size: 14px;
  margin-bottom: 16px;
}

.center {
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn svg {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--gold);
}

.btn--black {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--black:hover {
  background: #222;
  border-color: #222;
}

.btn--block {
  width: 100%;
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 12px;
}

.rating img {
  width: 26px;
  height: 26px;
}

.rating strong {
  font-weight: 400;
  font-size: 18px;
  margin-right: 2px;
}

.rating--center {
  justify-content: center;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--gold);
  color: var(--white);
  font-size: 15px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.topbar__item img {
  width: 12px;
}

.topbar__item:hover {
  opacity: 0.8;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow 0.2s;
}

.nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.nav__logo {
  flex: none;
}

.nav__logo img {
  width: 131px;
  height: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, var(--cream));
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(156, 117, 51, 0.28);
}

.nav__link:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.nav__link[aria-current="page"] {
  background: color-mix(in srgb, var(--gold) 42%, var(--cream));
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.nav__link[aria-current="page"]:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(156, 117, 51, 0.28);
}

.nav__menu > .btn {
  flex: none;
  padding: 14px 18px;
  font-size: 14px;
}

.nav__menu .btn--outline {
  margin-left: 8px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: start;
}

.hero__title {
  max-width: 520px;
  padding-top: 20px;
}

.hero__card {
  position: relative;
  padding: 20px;
  min-height: 728px;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.hero__photo {
  width: 340px;
  height: 440px;
  margin-left: auto;
  object-fit: cover;
  border-radius: 4px;
}

.hero__cta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 310px;
  padding: 32px;
  background: var(--cream);
  border-radius: 4px;
}

.hero__cta p {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__cta .btn {
  padding: 22px 24px;
}

.hero__cta .rating span {
  white-space: nowrap;
}

/* Decompression hero */

.hero__title--sm {
  font-size: 64px;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero__mobile-photo {
  display: none;
}

.hero__lead {
  margin: 40px 0 24px;
  max-width: 320px;
  font-size: 18px;
  line-height: 1.3;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("../assets/icons/check.svg") center / contain no-repeat;
}

.callout {
  max-width: 500px;
  margin-top: 32px;
  padding: 24px 22px;
  border: 1px solid var(--gold);
}

.callout h2 {
  font-size: 16px;
  margin-bottom: 24px;
}

/* ---------- Returning patients ---------- */

.returning {
  padding-bottom: 150px;
}

.returning__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 38px;
  background: var(--sand);
  border-radius: var(--radius);
}

.returning__box h2 {
  font-size: 40px;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

/* ---------- How it works ---------- */

.how {
  background: var(--gold);
  color: var(--cream);
}

.how__grid {
  display: grid;
  grid-template-columns: 268px 1fr;
}

.how__label {
  font-size: 22px;
  padding-top: 6px;
}

.how__intro {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 64px;
}

.steps {
  margin: 0 0 60px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  min-height: 340px;
  padding: 0 24px;
  border-left: 1px solid var(--cream);
}

.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  font-size: 14px;
}

.step h3 {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.step p {
  font-size: 14px;
  line-height: 1.45;
}

.how .rating {
  color: var(--cream);
}

/* ---------- Services ---------- */

.services {
  background: var(--white);
  padding-bottom: 80px;
}

.services__head {
  max-width: 620px;
  margin: 0 auto 60px;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 584px;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  isolation: isolate;
}

a.service {
  text-decoration: none;
}

.service--wide {
  grid-column: 1 / -1;
}

.service img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service:hover img {
  transform: scale(1.04);
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.65) 100%);
}

.service h3 {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 48px;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.service p {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.45;
}

.service--wide p {
  max-width: 880px;
}

/* ---------- Conditions ---------- */

.conditions {
  background: var(--white);
  padding: 40px 0 120px;
}

.conditions__label {
  color: var(--gold);
  margin-bottom: 24px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 16px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 15px;
  line-height: 1.2;
}

/* ---------- Wealth / testimonial ---------- */

.wealth__grid {
  display: grid;
  grid-template-columns: 518px 1fr;
  gap: 32px;
  margin: 60px 0 84px;
}

.wealth__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

.wealth__card {
  position: relative;
  min-height: 480px;
  padding: 20px;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.wealth__card > img {
  width: 290px;
  height: 340px;
  object-fit: cover;
  border-radius: 4px;
}

.quote-card {
  padding: 32px;
  background: var(--cream);
  border-radius: 4px;
}

.wealth__card .quote-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 370px;
}

.quote-card__mark {
  width: 20px;
  margin-bottom: 14px;
}

.quote-card blockquote {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.12;
}

.quote-card cite {
  font-style: normal;
  font-size: 14px;
}

/* ---------- Doctors ---------- */

.doctors {
  padding-top: 0;
}

.doctors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
}

.doctor img {
  width: 100%;
  aspect-ratio: 534 / 500;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.doctor h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.doctor p {
  font-size: 14px;
  line-height: 1.43;
}

.doctor p + p {
  margin-top: 20px;
}

/* ---------- Reviews ---------- */

.reviews {
  background: var(--paper);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: center;
}

.reviews__actions {
  display: grid;
  gap: 12px;
  width: fit-content;
  margin-top: 40px;
}

.reviews__actions .btn {
  width: 175px;
}

.slider {
  position: relative;
}

.slider__track {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 32px;
  background: var(--white);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide blockquote {
  margin: 24px 0;
  font-size: 18px;
  line-height: 1.07;
  flex: 1;
}

.slide cite {
  font-style: normal;
  font-size: 14px;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.slider__dots {
  display: flex;
  gap: 8px;
}

.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
  cursor: pointer;
}

.slider__dot.is-active {
  background: var(--gold);
}

.slider__arrows {
  display: flex;
  gap: 8px;
}

.slider__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.slider__arrow:hover {
  background: var(--ink);
  color: var(--white);
}

.slider__arrow svg {
  width: 12px;
  height: 12px;
}

.slider__arrow--prev svg {
  transform: rotate(180deg);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--white);
}

.faq__list {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--ink);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary img {
  width: 14px;
  transition: transform 0.3s;
}

.faq__item[open] summary img {
  transform: rotate(45deg);
}

.faq__item p {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.33;
}

.faq__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 18px;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: var(--gold);
  color: var(--white);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer__tagline {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.footer__big-btn {
  padding: 44px 24px;
  font-size: 20px;
}

.footer__returning {
  margin: 30px 0 64px;
  text-align: center;
  font-size: 14px;
}

.footer__returning button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer__info {
  display: grid;
  grid-template-columns: 380px 1fr auto;
  gap: 40px;
  align-items: start;
}

.hours h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.hours dl {
  margin: 0;
}

.hours div {
  display: flex;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.hours dt,
.hours dd {
  margin: 0;
}

.social {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.social a {
  display: block;
  border-radius: 50%;
  transition: transform 0.2s;
}

.social a:hover {
  transform: translateY(-2px);
}

.social img {
  width: 50px;
  height: 50px;
}

.contact {
  text-align: right;
  font-style: normal;
  line-height: 2.15;
}

.contact a {
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.footer__wordmark {
  width: 100%;
  margin-top: 100px;
}

/* ---------- Booking modal ---------- */

.modal {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.modal__head {
  display: flex;
  justify-content: flex-end;
  padding: 12px;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}

.modal__close img {
  width: 14px;
}

.modal__body {
  height: min(760px, calc(100vh - 120px));
  overflow: auto;
}

.modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: 0;
}

/* ---------- Landing pages ---------- */

.lp-header__inner {
  min-height: 76px;
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-header__actions .btn {
  padding: 12px 20px;
  font-size: 14px;
}

.lp-hero {
  padding: 80px 0 100px;
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.lp-hero .eyebrow {
  color: var(--gold);
}

.lp-hero__title {
  font-size: 64px;
  letter-spacing: -0.06em;
  max-width: 620px;
}

.lp-hero__sub {
  max-width: 540px;
  margin: 28px 0 36px;
  font-size: 18px;
  line-height: 1.35;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp .btn {
  white-space: normal;
  text-align: center;
}

.offer {
  padding: 32px;
  background: var(--charcoal);
  border-radius: var(--radius);
  color: var(--cream);
}

.offer h2 {
  font-size: 22px;
}

.offer .offer__price {
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  color: var(--gold);
}

.offer p {
  font-size: 15px;
  line-height: 1.45;
}

.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lp-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.lp-heading {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.lp-text p {
  font-size: 16px;
  line-height: 1.45;
}

.lp-text p + p {
  margin-top: 14px;
}

.lp .checklist {
  font-size: 16px;
}

.lp .checklist li {
  align-items: flex-start;
  padding: 5px 0;
}

.lp .checklist li::before {
  margin-top: 1px;
}

.fine-print {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.75;
}

.lp-band {
  background: var(--white);
}

.lp-gold {
  background: var(--gold);
  color: var(--cream);
}

.lp-gold .checklist li::before {
  filter: brightness(0) invert(1);
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 48px 0 40px;
  padding: 0;
  list-style: none;
}

.stages .step {
  min-height: 0;
  padding-bottom: 8px;
}

.stages .step__when {
  margin-bottom: 10px;
  font-size: 13px;
  opacity: 0.85;
}

.lp-note {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.35;
}

.lp .doctor h3 {
  margin-bottom: 10px;
}

.lp-clinic {
  max-width: 720px;
  margin: 48px auto 0;
  font-size: 18px;
  line-height: 1.35;
}

.lp-final {
  max-width: 720px;
  margin: 0 auto;
}

.lp-final p {
  margin: 24px 0 36px;
  font-size: 18px;
  line-height: 1.35;
}

.lp-final .lp-actions {
  justify-content: center;
}

.lp-footer {
  padding-top: 80px;
}

.lp-learn-more {
  max-width: 34em;
  margin: 18px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.lp-learn-more a {
  text-underline-offset: 3px;
}

.lp-footer .fine-print {
  max-width: 720px;
  margin-top: 48px;
  opacity: 0.9;
}

.modal__fallback {
  margin-right: auto;
  align-self: center;
  padding-left: 8px;
  font-size: 13px;
}

/* ---------- Google review carousel (landing pages) ---------- */

.reviews-section {
  padding: 120px 0;
  background: var(--paper);
  overflow: hidden;
}

.reviews-section__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 16px;
}

.review-viewport {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.review-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  margin: 0;
  padding: 8px 0 24px;
  list-style: none;
}

/* Animated only once main.js has duplicated the cards (and motion is allowed) */
.review-track.is-animated {
  animation: review-marquee 70s linear infinite;
}

.review-viewport:hover .review-track,
.review-track.paused {
  animation-play-state: paused;
}

@keyframes review-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Margin rather than gap so each half of the doubled track is exactly 50% wide */
.review-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 340px;
  margin-right: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  scroll-snap-align: start;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-size: 17px;
}

.review-name {
  font-size: 16px;
}

.review-stars {
  color: #fbbc05;
  font-size: 16px;
  letter-spacing: 2px;
}

.review-card .review-stars {
  margin: 14px 0 10px;
}

.review-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.45;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: #5f6368;
}

.g-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #dadce0;
  border-radius: 50%;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Without the animation the cards scroll sideways with snap */
.review-viewport:not(:has(.is-animated)) {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  padding: 0 20px;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (prefers-reduced-motion: reduce) {
  .review-track,
  .review-track.is-animated {
    animation: none;
  }

  .review-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    padding: 0 20px;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 767px) {
  .reviews-section {
    padding: 72px 0;
  }

  .review-viewport {
    margin-top: 36px;
  }

  .review-card {
    width: min(85vw, 320px);
    margin-right: 16px;
    padding: 20px;
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav__link {
    transition: none;
  }

  .nav__link:hover,
  .nav__link[aria-current="page"]:hover {
    transform: none;
  }
}

/* ---------- Blog ---------- */

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
}

.footer__links a {
  color: inherit;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.footer__links a:hover,
.footer__links a[aria-current="page"] {
  border-bottom-color: var(--white);
}

.lp-header .nav__link {
  padding: 8px 14px;
  font-size: 14px;
}

.lp .lp-header__actions .btn {
  white-space: nowrap;
}

.blog-hero.section {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 138, 63, 0.22), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(56, 56, 60, 0.06), transparent 34%),
    var(--cream);
}

.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero::before {
  width: min(440px, 70vw);
  height: min(440px, 70vw);
  top: -160px;
  right: -80px;
  border: 42px solid rgba(182, 138, 63, 0.2);
}

.blog-hero::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -80px;
  background: rgba(182, 138, 63, 0.14);
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-mark {
  display: inline-block;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.blog-mark::after {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  margin-top: 16px;
  background: var(--gold);
  border-radius: 999px;
}

.blog-hero .display {
  max-width: 12em;
  font-size: clamp(44px, 6vw, 80px);
}

.blog-intro {
  max-width: 34em;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.45;
}

.blog-list.section {
  padding-top: 8px;
  padding-bottom: 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-grid > li {
  display: flex;
  min-width: 0;
}

.blog-grid > li:first-child {
  grid-column: 1 / -1;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(56, 56, 60, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.blog-card:link,
a.blog-card:visited,
a.blog-card:hover,
a.blog-card:active {
  color: var(--ink);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(56, 56, 60, 0.16);
}

.blog-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.blog-visual {
  position: relative;
  display: block;
  min-height: 168px;
  overflow: hidden;
  background-color: var(--gold);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 132px auto;
}

.blog-visual::before,
.blog-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blog-visual::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: rgba(255, 255, 255, 0.16);
}

.blog-visual::after {
  width: 120px;
  height: 120px;
  left: -36px;
  bottom: -40px;
  border: 14px solid rgba(0, 0, 0, 0.08);
}

.blog-visual--decompression {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background-color: #B8893D;
  background-image: none;
}

.blog-visual--decompression::before,
.blog-visual--decompression::after {
  content: none;
}

.blog-visual--decompression picture {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-visual--decompression img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #B8893D;
}

.blog-visual--sciatica {
  background-color: var(--charcoal);
  background-image: url("../assets/icons/blog-sciatica.svg");
}

.blog-visual--sciatica::before {
  background: rgba(182, 138, 63, 0.22);
}

.blog-visual--sciatica::after {
  border-color: rgba(238, 232, 223, 0.2);
}

.blog-visual--headaches {
  background-color: var(--gold-dark);
  background-image: url("../assets/icons/blog-headaches.svg");
}

.blog-visual--general {
  background-color: var(--sand);
  background-image: url("../assets/icons/blog-general.svg");
}

.blog-visual--general::before {
  background: rgba(182, 138, 63, 0.2);
}

.blog-visual--general::after {
  border-color: rgba(56, 56, 60, 0.12);
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 24px;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  color: var(--charcoal);
  font-size: 13px;
}

.topic-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.blog-card h2 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.blog-card__teaser {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.blog-card__cta {
  margin-top: auto;
}

.blog-card:hover .blog-card__cta {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.post-banner {
  height: 240px;
  margin: -48px -40px 32px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-size: 180px auto;
}

.post-banner.blog-visual--decompression {
  height: auto;
  aspect-ratio: auto;
  background-color: #B8893D;
}

.post-banner.blog-visual--decompression picture,
.post-banner.blog-visual--decompression img {
  width: 100%;
  height: auto;
}

@media (min-width: 760px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid > li:first-child .blog-card {
    flex-direction: row;
    align-items: stretch;
  }

  .blog-grid > li:first-child .blog-visual {
    flex: 0 0 44%;
    min-height: 320px;
    background-size: 180px auto;
  }

  .blog-grid > li:first-child .blog-visual--decompression {
    aspect-ratio: auto;
    align-self: stretch;
  }

  .blog-grid > li:first-child .blog-card__body {
    justify-content: center;
    padding: 40px 36px;
  }

  .blog-grid > li:first-child h2 {
    font-size: 40px;
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.blog-cta.section {
  padding-top: 0;
}

.from-blog {
  background: var(--paper);
}

.from-blog__title {
  margin-bottom: 28px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.blog-hero h1,
.article__title,
.blog-cta h2,
.post-cta h2,
.related h2 {
  text-wrap: balance;
}

.article-wrap.section {
  padding-top: 72px;
}

.article {
  max-width: 720px;
  margin: 0 auto;
  min-width: 0;
}

.article__back {
  margin-bottom: 18px;
  font-size: 14px;
}

.article__back a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.article__back a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.article-panel {
  min-width: 0;
  overflow: hidden;
  padding: 48px 40px;
  background: var(--white);
  border-radius: var(--radius);
}

.blog-banner {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 13px;
  line-height: 1.35;
}

.article__title {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.4;
}

.article__body {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.article__body p + p {
  margin-top: 1.1em;
}

.article__body h2 {
  margin: 40px 0 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article__body a {
  color: var(--gold-dark);
}

.article__signoff {
  margin-top: 32px;
  color: var(--charcoal);
}

.post-cta .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--sand);
}

.related h2,
.post-cta h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.related h2 {
  margin-bottom: 14px;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li + li {
  margin-top: 10px;
}

.related a {
  color: var(--gold-dark);
  font-size: 16px;
}

.post-cta {
  margin-top: 36px;
}

.post-cta p {
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 1119px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 20px 24px;
    background: var(--cream);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }

  .nav.is-open .nav__menu {
    display: flex;
  }

  .nav__menu .nav__link {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
  }

  .nav__menu .nav__link:hover {
    transform: none;
  }

  .nav__menu > .btn,
  .nav__menu .btn {
    margin-top: 2px;
    padding: 16px 24px;
    font-size: 15px;
  }

  .nav__menu .btn--outline {
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .section {
    padding: 90px 0;
  }

  .display {
    font-size: 64px;
  }

  .topbar__address,
  .topbar__email {
    display: none;
  }

  .topbar__inner {
    min-height: 44px;
  }

  .topbar__group {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 60px 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__card {
    max-width: 500px;
  }

  .how__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how__intro {
    font-size: 26px;
  }

  .service {
    min-height: 480px;
  }

  .wealth__grid {
    grid-template-columns: 1fr;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .footer__info {
    grid-template-columns: 1fr 1fr;
  }

  .lp-hero__grid,
  .lp-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .lp-hero__grid .offer {
    max-width: 520px;
  }

  .stages {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .hours {
    grid-column: 1 / -1;
  }

  .social {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 72px 0;
  }

  .display {
    font-size: 48px;
  }

  .hero__title--sm {
    font-size: 44px;
  }

  .hero__mobile-photo {
    display: block;
    width: 100%;
    margin-bottom: 32px;
    border-radius: var(--radius);
  }

  .hero__card {
    min-height: 0;
    padding: 20px;
  }

  .hero__photo {
    width: 85%;
    height: auto;
    aspect-ratio: 340 / 440;
  }

  .hero__cta {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -80px 0 0;
    padding: 28px 24px;
  }

  .returning {
    padding-bottom: 72px;
  }

  .returning__box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
  }

  .returning__box h2 {
    font-size: 32px;
  }

  .how__intro {
    font-size: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step {
    min-height: 0;
    padding-bottom: 24px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 440px;
    padding: 24px;
  }

  .service h3 {
    font-size: 38px;
  }

  .pills {
    gap: 12px;
  }

  .pills li {
    padding: 12px 18px;
    font-size: 14px;
  }

  .wealth__image {
    height: 300px;
  }

  .wealth__card {
    min-height: 0;
  }

  .wealth__card > img {
    width: 75%;
    height: 260px;
  }

  .wealth__card .quote-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: -60px;
    margin-left: 20px;
  }

  .doctors__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .faq__item summary,
  .faq__more {
    font-size: 16px;
  }

  .faq__more {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding-top: 72px;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__tagline {
    font-size: 38px;
  }

  .footer__big-btn {
    padding: 32px 24px;
  }

  .footer__info {
    grid-template-columns: 1fr;
  }

  .contact {
    text-align: left;
  }

  .footer__wordmark {
    margin-top: 60px;
  }

  .lp-header__inner {
    min-height: 64px;
    gap: 12px;
  }

  .lp-header .nav__logo img {
    width: 96px;
  }

  .lp-header__actions {
    gap: 8px;
  }

  .lp-header__actions .btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .lp-header__call-label {
    display: none;
  }

  .lp-header .nav__link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .lp-header .nav__link:hover {
    transform: none;
  }

  .lp-hero {
    padding: 48px 0 72px;
  }

  .lp-hero__title {
    font-size: 42px;
  }

  .lp-hero__sub {
    font-size: 16px;
  }

  .lp-actions .btn {
    width: 100%;
  }

  .offer {
    padding: 26px 24px;
  }

  .offer .offer__price {
    font-size: 72px;
  }

  .lp-heading {
    font-size: 36px;
  }

  .stages {
    grid-template-columns: 1fr;
  }

  .lp-footer {
    padding-top: 64px;
  }

  .blog-hero.section {
    padding: 72px 0 64px;
  }

  .blog-intro {
    font-size: 17px;
  }

  .blog-card h2 {
    font-size: 26px;
  }

  .blog-card__body {
    padding: 22px 20px 24px;
  }

  .post-banner {
    height: 180px;
    margin: -28px -20px 24px;
    background-size: 140px auto;
  }

  .post-banner.blog-visual--decompression {
    height: auto;
  }

  .post-banner.blog-visual--decompression img {
    aspect-ratio: 4 / 3;
  }

  .article-wrap.section {
    padding-top: 40px;
  }

  .article-panel {
    padding: 28px 20px;
  }

  .article__title {
    font-size: 34px;
  }

  .article__body h2 {
    font-size: 26px;
  }

  .related h2,
  .post-cta h2 {
    font-size: 26px;
  }

}

@media (max-width: 420px) {
  .lp-header__inner {
    gap: 8px;
  }

  .lp-header .nav__logo img {
    width: 84px;
  }

  .lp-header__actions {
    gap: 6px;
  }

  .lp-header__actions .btn {
    padding: 10px 10px;
    font-size: 12px;
  }
}
