/* Osteoxfit v2 components: shared by the homepage and the restyled inner pages.
   Phone-first: base styles are the phone layout, min-width queries add the desktop one.
   Nothing moves on scroll. */

.v2 { font-weight: 400; color: var(--muted); }
.v2 p { font-size: 1.0625rem; line-height: 1.65; }
.v2 h2 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 400; line-height: 1.1; margin-bottom: 1rem; }
.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.h-section { padding: 4rem 0; }
.h-center { text-align: center; }
.h-center .h-lede { margin-left: auto; margin-right: auto; }
.h-lede { max-width: 34ch; }

.h-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

/* Rounded buttons, sentence case, big enough to tap */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--mocha);
  color: var(--cream);
  border: 1px solid var(--mocha);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.h-btn:hover { background: var(--rose); border-color: var(--rose); }
.h-btn-light { background: var(--cream); color: var(--mocha); border-color: var(--cream); }
.h-btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--mocha); }
.h-btn-outline { background: transparent; color: var(--mocha); border-color: var(--mocha); }
.h-btn-outline:hover { background: var(--mocha); color: var(--cream); border-color: var(--mocha); }
.h-btn-block { width: 100%; }

/* -- Ticks -- */
.h-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin: 1.5rem auto 0;
}
.h-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mocha);
  font-size: 1rem;
}
.h-points svg { color: var(--rose); flex-shrink: 0; }

/* -- Splits: image + text -- */
.h-split { display: grid; gap: 2rem; align-items: center; }
.h-split-img {
  border-radius: 24px;
  overflow: hidden;
  background: var(--blush);
  aspect-ratio: 4 / 3;
}
.h-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-split-img.h-illus img { object-position: 50% 30%; }
.h-split .h-btn { margin-top: 1.5rem; }
.h-facts { list-style: none; margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.h-facts li { color: var(--mocha); font-size: 1rem; }
.h-facts span { color: var(--muted); }

/* -- Dark band with price cards -- */
.h-services { background: var(--mocha); }
.h-services h2 { color: var(--cream); }
.h-services .h-label { color: var(--blush); }
.h-cards { display: grid; gap: 0.75rem; margin-top: 2rem; }
.h-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: rgba(247,242,236,0.07);
  border: 1px solid rgba(247,242,236,0.14);
  transition: background 0.2s;
}
.h-card:hover { background: rgba(247,242,236,0.14); }
.h-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--cream);
}
.h-card-meta { display: block; font-size: 0.9rem; color: var(--blush); opacity: 0.85; margin-top: 0.2rem; }
.h-card-price { font-size: 1.15rem; font-weight: 500; color: var(--cream); white-space: nowrap; }
.h-services-foot { margin-top: 1.5rem; font-size: 0.9rem !important; color: var(--blush); }
.h-services-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* -- Review -- */
.h-review { background: var(--blush); }
.h-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 6vw, 2.25rem) !important;
  line-height: 1.3 !important;
  color: var(--mocha);
  max-width: 26ch;
  margin: 1rem auto 1.25rem;
}
.h-quote-by { font-size: 0.95rem !important; color: var(--muted); }
.h-review-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--mocha);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -- Closing call to action -- */
.h-cta .h-btn { margin-top: 0.5rem; }
.h-cta-alt { display: flex; gap: 0.75rem; justify-content: center; max-width: 360px; margin: 0.75rem auto 0; }
.h-cta-alt .h-btn { flex: 1; margin-top: 0; min-height: 48px; padding: 0 1rem; }

@media (min-width: 720px) {
  .h-section { padding: 6rem 0; }
  .h-wrap { padding: 0 2.5rem; }
  .h-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .h-split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .h-split-img { aspect-ratio: 4 / 5; }
  .h-split-img.h-wide { aspect-ratio: 1 / 1; }
}

/* -- Choice rows: neat tappable links -- */
.h-choose { padding: 1.5rem 0 0; }
.h-choose-grid { display: grid; gap: 0.75rem; }
.h-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 1rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(61,56,50,0.05), 0 8px 24px rgba(61,56,50,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
/* Hover: lift, deeper shadow with a soft rose edge, and a bigger arrow */
.h-choice:hover,
.h-choice:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(134,98,86,0.35), 0 4px 8px rgba(61,56,50,0.06), 0 18px 40px rgba(61,56,50,0.16);
}
.h-choice:active { transform: translateY(-1px) scale(0.99); }
.h-choice-when {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.h-choice-what {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--mocha);
}
.h-choice-arrow {
  flex: 0 0 auto;
  color: var(--rose);
  transition: transform 0.2s;
}
.h-choice:hover .h-choice-arrow,
.h-choice:focus-visible .h-choice-arrow { transform: translateX(4px) scale(1.25); }
.h-choice > span:first-child { flex: 1; min-width: 0; }
.h-choice-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--mocha);
  line-height: 1.2;
  white-space: nowrap;
}
.h-choice-price small { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.h-choose-more { margin-top: 0.75rem; }
.h-choice-sm { padding-top: 0.8rem; padding-bottom: 0.8rem; box-shadow: none; border: 1px solid rgba(61,56,50,0.1); background: rgba(255,255,255,0.6); }
.h-choice-sm .h-choice-what { font-size: 1.35rem; }
.h-terms { margin-top: 1rem; font-size: 0.9rem !important; color: var(--muted); text-align: center; }
.h-terms a { color: var(--mocha); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .h-choose { padding-top: 3rem; }
  .h-choose-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 860px; margin-left: auto; margin-right: auto; }
  .h-choose-more { margin-top: 1.25rem; }
  .h-choose-grid { grid-auto-rows: 1fr; }   /* every box in a grid is the same height */
  .h-choice { padding: 1.4rem 1.5rem 1.4rem 1.75rem; }
  .h-choice-what { font-size: 2rem; }
}

/* -- Phones: a booking bar along the bottom replaces the round WhatsApp button -- */
.h-bookbar { display: none; }
@media (max-width: 719px) {
  .has-bookbar .wa-float { display: none; }
  .h-bookbar {
    display: flex;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--border);
    transition: transform 0.3s ease;
  }
  .cookie-banner-visible .h-bookbar { bottom: var(--cookie-h, 68px); }
  .h-bookbar .h-btn { flex: 1; min-height: 50px; padding: 0 1rem; }
  .h-bookbar .h-bookbar-call { flex: 0 0 50px; padding: 0; }
  .h-bookbar svg { flex-shrink: 0; }
  /* room at the bottom so the bar never covers the footer */
  /* fixed room for the booking bar; not tied to the iPhone safe area, which changes as toolbars slide */
  .has-bookbar footer { padding-bottom: 7.75rem; }
}

/* ===== Inner pages ===== */

/* -- Page header: short, one button, the key facts as ticks -- */
.p-hero { padding: calc(80px + 2.75rem) 0 2.75rem; }
.p-hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.p-hero .h-lede { max-width: 38ch; margin-bottom: 1.75rem; }
.p-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.p-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--mocha);
  font-size: 1rem;
}
.p-price strong { font-size: 1.35rem; font-weight: 500; }
.p-hero .h-points { justify-content: flex-start; margin: 1.75rem 0 0; }
@media (max-width: 719px) {
  .p-hero .h-btn { width: 100%; }
}

/* -- Section heading spacing inside inner pages -- */
.p-head { margin-bottom: 1.75rem; }
.p-head p { max-width: 40ch; }
.h-center .p-head p { margin: 0 auto; }

/* -- Conditions as soft chips -- */
.p-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.p-chips li {
  padding: 0.55rem 1rem;
  border-radius: 100px;
  background: #fff;
  color: var(--mocha);
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(61,56,50,0.05);
}

/* -- Steps: what happens at an appointment -- */
.p-steps { list-style: none; display: grid; gap: 0.75rem; counter-reset: step; }
.p-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: #fff;
}
.p-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--blush);
  color: var(--mocha);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-steps strong { color: var(--mocha); font-weight: 500; font-size: 1.0625rem; }
.p-steps span { font-size: 0.975rem; line-height: 1.55; }

/* -- Small print -- */
.p-note { font-size: 0.95rem !important; margin-top: 1.5rem; }
.p-note a, .p-link { color: var(--mocha); text-decoration: underline; text-underline-offset: 3px; }
.p-reviewed { font-size: 0.85rem !important; color: var(--muted); margin-top: 2rem; }

/* -- FAQ in the v2 style -- */
.v2 .faq-list { gap: 0.6rem; }
.v2 .faq-item,
.v2 .faq-item:first-child { border: 0; background: #fff; border-radius: 18px; }
.v2 .faq-q { padding: 1.1rem 1.25rem; font-family: 'DM Sans', sans-serif; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; color: var(--mocha); }
.v2 .faq-q::after { font-size: 1.4rem; }
.v2 .faq-a { padding: 0 1.25rem 1.25rem; font-size: 1rem; line-height: 1.65; color: var(--muted); }

/* -- Two-column layout on desktop for text + side card -- */
.p-two { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .p-hero { padding: calc(80px + 5rem) 0 4rem; }
  .p-hero h1 { max-width: 18ch; }
  .p-two { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
  .p-steps li { padding: 1.25rem 1.5rem; }
}

/* -- Important caveat (safety, scope) -- */
.p-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--rose);
  border-radius: 0 14px 14px 0;
  background: #fff;
  color: var(--mocha);
  font-size: 0.975rem !important;
}

/* -- Blush sections: deeper text colours so small text clears 4.5:1 contrast -- */
.h-review .h-label { color: #6F5047; }
.h-review .h-lede,
.h-review .h-quote-by,
.h-review .p-note { color: #5C5650; }

/* ===== Journal & Guides ===== */

/* -- Article cards -- */
.p-cards { display: grid; gap: 2rem; }
.p-card { display: flex; flex-direction: column; }
.p-card-img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blush); margin-bottom: 1rem; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s ease; }
.p-card:hover .p-card-img img { transform: scale(1.03); }
.p-card .h-label { margin-bottom: 0.4rem; }
.p-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; line-height: 1.15; color: var(--mocha); margin-bottom: 0.5rem; }
.p-card-text { font-size: 1rem !important; line-height: 1.6 !important; color: var(--muted); }
@media (min-width: 720px) { .p-cards { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (min-width: 1024px) { .p-cards { grid-template-columns: repeat(3, 1fr); } }

/* -- Chips that are links (category jumps) -- */
.p-chips a { display: inline-block; color: inherit; }
.p-chips li:has(a):hover { box-shadow: 0 0 0 1px var(--rose); }

/* -- Guide lists: simple tappable rows -- */
.p-list { list-style: none; display: grid; gap: 0.5rem; }
.p-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  color: var(--mocha);
  font-size: 1.0125rem;
  line-height: 1.4;
  transition: box-shadow 0.2s;
}
.p-list a:hover { box-shadow: 0 6px 18px rgba(61,56,50,0.08); }
.p-list svg { flex-shrink: 0; color: var(--rose); }
.p-cat { scroll-margin-top: 100px; }
.p-cat + .p-cat { margin-top: 2.75rem; }
.p-cat h2 { font-size: clamp(1.7rem, 6vw, 2.3rem) !important; margin-bottom: 0.9rem !important; }
@media (max-width: 719px) {
  .h-terms a { display: block; margin-top: 0.25rem; }   /* phones: terms on their own line */
}
