/* Physique Studio, interactive one-page site.
   Colours come from the logo (see theme in content); these are the fallback values. */
:root {
  --primary: #385898;     /* logo blue: buttons, eyebrows, selected states */
  --accent: #E88838;      /* logo orange: highlights and progress */
  --ink: #1B2A4A;         /* text */
  --tint: #F3F6FB;        /* alternate section backgrounds */
  --paper: #FFFFFF;
  --muted: #5B6780;       /* secondary text (5.7:1 on white) */
  --line: #E2E8F2;
  --field-line: #C5CFDE;
  --open: #1E8E4E;
  --error: #B42318;
  --radius: 18px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.eyebrow:empty { display: none; }
.h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.6rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.lead { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.lead--sm { font-size: 0.95rem; margin-top: 6px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.fine:empty { display: none; }
.head { max-width: 680px; margin-bottom: 28px; }
.section { padding: clamp(40px, 5.5vw, 68px) 0; }
.section--tint { background: var(--tint); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(27, 42, 74, 0.04), 0 16px 40px -28px rgba(27, 42, 74, 0.3); }

/* ---------- buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; border: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: #2C4678; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(56, 88, 152, 0.7); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field-line); }
.btn--ghost:hover { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--primary); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--paper);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.top.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(27, 42, 74, 0.35); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand__name span { color: var(--primary); }
.top__nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.top__nav a { color: var(--muted); }
.top__nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5vw, 56px) 0 clamp(44px, 6vw, 68px); }
.hero__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.hero__title { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.hero__title em { font-style: normal; background: linear-gradient(rgba(232, 136, 56, 0.38), rgba(232, 136, 56, 0.38)) no-repeat 0 86% / 100% 0.26em; }
.hero__sub { margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status-bar { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; max-width: 460px; }
.status { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(30, 142, 78, 0.15); }
.status.is-soon .status__dot { background: var(--accent); }
.progress { height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s ease; }
.status-bar__hours { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- booking card ---------- */
.booking { padding: clamp(24px, 3vw, 34px); display: grid; gap: 18px; }
.booking__intro { margin: 0; color: var(--muted); font-size: 15px; }
.booking__step { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.booking__step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.step-no {
  width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 13px;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.slot {
  padding: 11px 8px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--paper);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.slot:hover { border-color: var(--primary); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.booking__note { margin: 0; color: var(--muted); font-size: 14px; }
.booking__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(56, 88, 152, 0.14); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1); }
.booking__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form__status { margin: 0; font-size: 15px; color: var(--muted); min-height: 1.4em; }
.form__status.is-ok { color: var(--open); font-weight: 600; }
.form__status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- doctor ---------- */
.doctor { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.doctor__photo { border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 1 / 1; max-width: 460px; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__copy h2 { margin-bottom: 4px; }
.creds { list-style: none; margin: 22px 0 28px; padding: 0; }
.creds li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.creds li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- approach ---------- */
.grid3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid3 li { padding: 30px 28px; border-top: 3px solid var(--primary); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.grid3 h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.grid3 p { margin: 0; color: var(--muted); }

/* ---------- services ---------- */
.service-block { display: block; }
.methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.methods li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.methods h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.methods h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.methods p { margin: 0; color: var(--muted); font-size: 15px; }
.finder { margin-top: 20px; padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.finder__ask .chips { margin-top: 20px; }
.finder__result { min-height: 100%; }
.service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.service { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 7px; border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(-45deg);
}
.ticks--tight { margin-top: 12px; gap: 8px; font-size: 15px; }
.quiz { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.quiz__title { margin: 0 0 16px; font-weight: 800; font-size: 1.05rem; }
.quiz__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.quiz__q p { margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.quiz__out { margin-top: 20px; }
.filter-label { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fit-result { margin-top: 20px; }
.fit-hint { margin: 0; color: var(--muted); font-size: 15px; }
.fit-focus { margin: 10px 0 0; }

/* ---------- result panel (shared by the tools) ---------- */
.result { background: var(--tint); border-radius: 16px; padding: 22px 24px; }
.result__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.result__title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.result p { margin: 0; color: var(--ink); }
.result__actions { margin-top: 18px; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.details { margin: 30px 0 0; }
.details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.details dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.details dd { margin: 0; font-weight: 600; }
.details dd small { color: var(--muted); font-weight: 500; }
.map { min-height: 320px; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px 40px; align-items: start; }
.footer__brand { margin: 0; font-weight: 800; font-size: 1.1rem; }
.footer__muted { margin: 0; color: var(--muted); font-size: 14px; }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .visit, .doctor, .finder { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 360px; }
  .grid3 { grid-template-columns: 1fr; }
  .methods { grid-template-columns: repeat(2, 1fr); }
  .service-pair { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top__nav, .top .btn { display: none; }
  .methods { grid-template-columns: 1fr; }
  .booking__fields { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .details > div { grid-template-columns: 90px 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  body { padding-bottom: 84px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; padding: 14px 10px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
  .mobile-bar a:first-child { background: var(--primary); color: #fff; }
  .mobile-bar a:last-child { background: var(--tint); color: var(--ink); }
  .mobile-bar a:hover { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .progress span { transition: none; }
}
