/* =========================================================
   Bodyline Therapies — 2027 website
   Built from Figma: "Bodyline-Therapies-2027-website"
   Desktop design 1440 / 1200 content · Mobile design 390 / 342 content
   Mobile layout applies at ≤ 767px.
   ========================================================= */

:root {
  /* Brand colours (from Figma variables) */
  --accent: #b73d29;      /* red-orange */
  --ink: #171717;         /* near-black text / dark section */
  --black: #000;
  --paper: #fff;
  --soft: #f5f3f0;        /* warm off-white sections */
  --muted: #5f5b58;       /* secondary text */
  --rule: #d1ccc7;        /* price dividers */
  --footer: #101010;
  --footer-rule: #454545;
  --footer-text: #bfbdb8;
  --card-border: #999;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --content: 1200px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.accent { color: var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section--ink :focus-visible, .footer :focus-visible, .gift__offer :focus-visible { outline-color: #fff; }

.container { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mobile-only { display: none; }

/* ---------- Type ---------- */
.h2 { font-size: 32px; line-height: 1.2; font-weight: 800; color: var(--ink); }
.h2--lg { font-size: 40px; line-height: 1.15; }
.h2--bold { font-weight: 700; line-height: 1.25; }
.eyebrow { font-weight: 700; color: var(--accent); }
.note { color: var(--muted); }
.note--center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: #9f3322; }
.btn--book { width: 88px; height: 44px; font-size: 14px; }
.btn--submit { width: 220px; padding: 16px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--dark { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: 40px; }
.section--soft { background: var(--soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .h2 { color: #fff; }

/* =========================================================
   01 / Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--soft); height: 620px; padding-top: 72px; }
.hero__inner { position: relative; z-index: 1; height: 548px; display: flex; align-items: center; }
.hero__message { width: 720px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.hero__kicker { font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.hero__logo { font-size: 96px; line-height: .98; font-weight: 800; letter-spacing: -0.03em; color: var(--black); text-transform: uppercase; }
.hero__logo span { display: block; }
.hero__intro { font-size: 20px; line-height: 1.45; }
.hero__cta { padding-top: 8px; }

/* Torso artwork: exported from Figma already cropped to the visible banner area
   (x 730–1440, y 0–620 in the 1440 frame), so it fills the top-right of the hero. */
.hero__art { position: absolute; inset: 0; pointer-events: none; }
.hero__art img { position: absolute; left: calc(50% + 10px); top: 0; width: 710px; height: 620px; max-width: none; }

.service-strip { background: var(--ink); color: #fff; text-align: center; font-weight: 700; }
.service-strip--desktop { padding: 20px var(--gutter); font-size: 18px; line-height: 1.4; }
.service-strip--mobile { display: none; }

/* =========================================================
   05 / Treatments
   ========================================================= */
.treatments .container { display: flex; flex-direction: column; gap: 24px; }
.treatment-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.treatment { background: var(--paper); padding: 24px; min-height: 272px; display: flex; flex-direction: column; gap: 16px; }
.treatment__num { font-size: 24px; line-height: 1; font-weight: 700; color: var(--accent); }
.treatment__title { font-size: 18px; line-height: 1.3; font-weight: 700; }
.treatment__desc { line-height: 1.45; color: var(--muted); }

/* =========================================================
   04 / Welcome & Con
   ========================================================= */
.welcome { padding: 48px 0 24px; }
.welcome .container { display: flex; flex-direction: column; gap: 24px; }
.welcome__cols { display: flex; gap: 64px; align-items: flex-start; }
.practitioner { flex: 0 0 360px; display: flex; flex-direction: column; gap: 12px; }
.practitioner__photo { width: 100%; aspect-ratio: 360 / 424; object-fit: cover; background: var(--soft); }
.practitioner__caption { display: flex; flex-direction: column; gap: 4px; }
.practitioner__name { font-weight: 800; line-height: 20px; }
.practitioner__role { color: var(--muted); line-height: 22px; }
.welcome__body { flex: 1; min-width: 0; }
.welcome__copy { display: flex; flex-direction: column; gap: 24px; color: var(--muted); }
.welcome__copy strong { color: var(--muted); }
.welcome__title { font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--ink); }

/* Disclosures are mobile-only; desktop always shows the content */
.disclosure { display: none; }

/* =========================================================
   07 / Testimonials
   ========================================================= */
.testimonials .container { display: flex; flex-direction: column; gap: 20px; }
.carousel { background: var(--paper); padding: 24px; min-height: 240px; display: flex; flex-direction: column; gap: 16px; }
.carousel__viewport { flex: 1; }
.slide { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.slide[hidden] { display: none; }
.slide blockquote { font-size: 20px; line-height: 1.5; min-height: 76px; max-width: 1000px; margin-inline: auto; }
.slide figcaption { font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; }
.slide figcaption span { font-weight: 400; }
.carousel__controls { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.carousel__count { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-entering { animation: fade .4s ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* =========================================================
   06 / Prices
   ========================================================= */
.prices { padding-block: 32px 40px; }
.prices .container { display: flex; flex-direction: column; gap: 24px; }
.price-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.price-col { display: flex; flex-direction: column; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; }
.price-row--rule { padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.price-row__price { font-size: 24px; line-height: 1.25; color: var(--accent); }
.price-row__save { margin-top: 8px; color: var(--muted); }

/* =========================================================
   Gift certificates
   ========================================================= */
.gift { padding: 32px 0 40px; }
.gift__split { display: grid; grid-template-columns: 1fr 1fr; }
.gift__photo { width: 100%; height: 320px; object-fit: cover; background: var(--soft); }
.gift__offer { background: var(--accent); color: #fff; padding: 32px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.gift__title { font-size: 28px; line-height: 1.25; font-weight: 700; }
.gift__from { font-size: 32px; line-height: 1.25; font-weight: 700; }
.gift__link { font-weight: 700; text-underline-offset: 3px; }

/* =========================================================
   08 / Booking & enquiries
   ========================================================= */
.contact { padding: 48px 0 24px; scroll-margin-top: 0; }
.contact:focus { outline: none; }
.contact .container { display: flex; flex-direction: column; gap: 24px; }
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 16px; text-align: center; }
.info { display: flex; flex-direction: column; gap: 8px; }
.info__title { font-size: 20px; line-height: 1.5; font-weight: 700; }
.info__area { line-height: 1.4; }
.info__hours { font-size: 18px; }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.contact-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--ink); border: 1px solid var(--card-border); color: #fff; text-decoration: none; transition: filter .15s; }
.contact-card--primary { background: var(--accent); border-color: var(--accent); }
.contact-card:hover { filter: brightness(1.08); }
.contact-card__label { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.contact-card__value { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.contact-card__value--phone { font-size: 32px; }
.contact-card__value--email { font-size: 24px; }

.enquiry { display: flex; flex-direction: column; gap: 20px; }
.enquiry__title { font-size: 24px; line-height: 1.25; font-weight: 700; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid transparent; border-radius: 0; background: #fff; color: var(--ink);
  padding: 14px; font-size: 16px; line-height: 1.5; min-height: 56px; appearance: none; -webkit-appearance: none;
}
.field textarea { height: 112px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px #fff; }
.field [aria-invalid="true"] { border-color: #ff8a75; }
.field__error { color: #ffb4a6; font-size: 14px; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { padding-right: 52px; cursor: pointer; }
.select select:invalid { color: var(--ink); }
.select .icon { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }
.form__status:empty { display: none; }
.form__status { font-weight: 700; }
.form__status.is-error { color: #ffb4a6; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--footer); border-top: 1px solid var(--footer-rule); color: #fff; padding-block: 24px; }
.footer .container { display: flex; flex-direction: column; gap: 20px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer__brand { display: flex; flex-direction: column; font-size: 24px; line-height: 1; font-weight: 800; }
.footer__insta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer__insta:hover { text-decoration: underline; }
.footer__rule { border: 0; height: 1px; background: var(--footer-rule); margin: 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 8px 40px; color: var(--footer-text); font-size: 14px; }
.footer__bottom a { text-underline-offset: 2px; }

/* =========================================================
   Tablet (768–1199): keep desktop structure, scale down
   ========================================================= */
@media (max-width: 1199px) {
  .hero__message { width: 60%; }
  .hero__logo { font-size: clamp(64px, 7.5vw, 96px); }
  .hero__kicker { font-size: clamp(24px, 2.6vw, 32px); }
  .hero__art img { left: auto; right: -110px; }
  .treatment-list { grid-template-columns: repeat(2, 1fr); }
  .treatment { min-height: 0; }
  .welcome__cols { gap: 40px; }
  .practitioner { flex-basis: 300px; }
}

/* =========================================================
   Mobile (≤ 767px) — matches "Mobile • 390" frame
   ========================================================= */
@media (max-width: 767px) {
  .mobile-only { display: inline; }
  .h2, .h2--lg { font-size: 28px; }
  .section { padding-block: 32px; }

  /* Hero fills the opening viewport (design: 390 × 844) */
  .hero { height: auto; min-height: 640px; height: 100svh; height: 100dvh; max-height: 960px; padding-top: clamp(40px, 9.5svh, 80px); display: flex; flex-direction: column; }
  .hero__inner { height: auto; display: block; flex: none; }
  .hero__message { width: 100%; gap: 12px; }
  .hero__kicker { font-size: 24px; }
  .hero__logo { font-size: 52px; letter-spacing: -0.03em; }
  .hero__intro { font-size: 16px; line-height: 1.5; }
  .hero__cta { padding: 12px 0; display: flex; justify-content: center; }
  .btn--book { width: 112px; }
  .hero__art { position: relative; inset: auto; flex: 1 1 auto; min-height: 200px; margin-top: 4px; overflow: hidden; }
  .hero__art img { left: calc(50% - 525px); top: -100px; width: 720px; height: 629px; }
  .service-strip--mobile { display: block; flex: none; height: 40px; padding: 11px var(--gutter); font-size: 13px; line-height: 18px; font-weight: 500; }
  .service-strip--desktop { display: none; }

  /* Treatments: compact numbered list */
  .treatment-list { grid-template-columns: 1fr; gap: 12px; }
  .treatment { flex-direction: row; align-items: center; gap: 16px; padding: 16px; min-height: 0; }
  .treatment__num { font-size: 20px; line-height: 1.5; width: 32px; flex: none; }
  .treatment__title { font-size: 16px; line-height: 1.5; }
  .treatment__desc { display: none; }

  /* Welcome: compact portrait + disclosure */
  .welcome { padding: 32px 0; }
  .welcome__cols { flex-direction: column; gap: 32px; }
  .practitioner { flex: none; flex-direction: row; align-items: center; gap: 16px; width: 100%; }
  .practitioner__photo { width: 140px; height: 165px; flex: none; }
  .practitioner__name { line-height: 1.5; }
  .practitioner__role { font-size: 14px; line-height: 1.4; }
  .welcome__body { width: 100%; }
  .welcome__title { font-size: 28px; }

  .disclosure { display: block; width: 100%; padding: 16px; border: 0; text-align: left; font-weight: 700; cursor: pointer; white-space: pre; }
  .disclosure--light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
  .disclosure--dark { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--card-border); }
  .disclosure[aria-expanded="true"] { margin-bottom: 24px; }
  .js .disclosure__panel:not(.is-open) { display: none; }

  /* Testimonials */
  .testimonials { padding: 24px 0; }
  .carousel { min-height: 344px; }
  .slide { text-align: left; }
  .slide blockquote { font-size: 16px; min-height: 144px; margin: 0; }

  /* Prices */
  .price-cols { grid-template-columns: 1fr; gap: 24px; }

  /* Gift: concise offer, no photo */
  .gift { padding: 24px 0 32px; }
  .gift__split { grid-template-columns: 1fr; }
  .gift__photo, .gift__blurb { display: none; }
  .gift__offer { padding: 24px; min-height: 0; }

  /* Contact */
  .contact { padding: 32px 0 24px; }
  .info-cols { grid-template-columns: 1fr; gap: 24px; padding-block: 8px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card__value--phone { font-size: 28px; }
  .contact-card__value--email { font-size: 16px; line-height: 1.5; }
  .form__row { grid-template-columns: 1fr; gap: 20px; }
  .btn--submit { width: 100%; }

  /* Footer */
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; }
}
