/* ==========================================================================
   Cabinet Dr. Hombreux · Refonte éditoriale (staging /redesign/)
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-deep: #f3efe7;
  --ink: #1a1a1a;
  --ink-muted: #6b6b66;
  --ink-soft: #8e8e87;
  --rule: rgba(26, 26, 26, 0.14);
  --rule-soft: rgba(26, 26, 26, 0.08);
  --accent: #5c8f8a;
  --accent-deep: #3f6c67;
  --warn: #b9892f;
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  --container: min(1240px, 92vw);
  --col-gap: 32px;
  --row-gap: 96px;
  --section-y: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: var(--paper); }

button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Typography scale
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-muted);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  display: inline-block;
}

.section-index {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.container { width: var(--container); margin: 0 auto; }

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.topbar__content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}

.brand__logo {
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.02em;
}

.brand__title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
}

.brand__subtitle {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nav { display: flex; gap: 36px; justify-self: center; }

.nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--ink);
  padding: 8px 16px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 99px;
}

.topbar__cta .btn--call { display: inline-flex; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--accent {
  background: var(--accent); color: var(--paper);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }

.btn--link {
  background: transparent; color: var(--ink);
  padding: 4px 0; border-radius: 0;
  border-bottom: 1px solid var(--ink);
  text-transform: none; letter-spacing: 0.02em;
  font-family: var(--serif); font-style: italic; font-size: 16px;
}
.btn--link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 75px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 0 56px;
}

.hero__media {
  position: absolute; inset: 0;
  z-index: 1;
  background: var(--paper-deep);
  overflow: hidden;
}

.hero__fallback-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1;
}

.hero__video {
  position: absolute; inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0; transition: opacity 800ms ease 400ms;
}

.hero__video.hero__video--loaded { opacity: 1; }
.hero__video.hero__video--error { opacity: 0; }

.hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.2);
  border: 0;
  pointer-events: none;
}

.hero__media::after {
  content: ''; position: absolute; inset: 0;
  z-index: 3;
  background:
    linear-gradient(to top, rgba(15,15,15,0.78) 0%, rgba(15,15,15,0.45) 35%, rgba(15,15,15,0.15) 70%, rgba(15,15,15,0) 100%),
    linear-gradient(to right, rgba(15,15,15,0.45) 0%, rgba(15,15,15,0.1) 55%, rgba(15,15,15,0) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  align-items: end;
  color: var(--paper);
}

.hero__text { grid-column: 1 / span 8; }

.hero__eyebrow {
  display: inline-block;
  color: var(--paper);
  border-bottom: 1px solid rgba(250, 248, 244, 0.6);
  padding-bottom: 6px;
  margin-bottom: 28px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.24em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  color: var(--paper);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 108px);
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  opacity: 1;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--paper);
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero__meta {
  grid-column: 9 / span 4;
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
  border-left: 1px solid rgba(250, 248, 244, 0.5);
  padding-left: 28px;
}

.hero__meta-item {
  display: flex; flex-direction: column;
  font-size: 13px;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero__meta-item strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 2px;
}

a.hero__meta-item { color: var(--paper); }
a.hero__meta-item:hover,
a.hero__meta-item:focus-visible { color: var(--paper); opacity: 0.85; }
.hero__meta-item--link strong { text-decoration: underline; text-decoration-color: rgba(250,248,244,0.35); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero__meta-item--link:hover strong,
.hero__meta-item--link:focus-visible strong { text-decoration-color: rgba(250,248,244,0.8); }

.hero__scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(250, 248, 244, 0.7);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.hero__scroll::after {
  content: ''; width: 1px; height: 36px;
  background: rgba(250, 248, 244, 0.5);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   Section base
   ========================================================================== */

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule-soft);
}

.section--no-rule { border-top: none; }

.section--dark {
  background: var(--ink); color: var(--paper);
  border-top: none;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  margin-bottom: 72px;
  align-items: end;
}

.section-head__meta {
  grid-column: 1 / span 4;
  display: flex; flex-direction: column; gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.section-head__title {
  grid-column: 5 / span 8;
}

.section-head__title h2 em {
  font-style: italic;
  color: var(--ink-muted);
}

.section-head__title .lede { margin-top: 24px; max-width: 620px; }

.section--dark .section-head__meta { border-color: rgba(250, 248, 244, 0.18); }
.section--dark .section-index,
.section--dark .eyebrow { color: rgba(250, 248, 244, 0.7); }
.section--dark .lede { color: rgba(250, 248, 244, 0.78); }

/* ==========================================================================
   Section: Horaires (schedule)
   ========================================================================== */

.hours { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.hours__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.hours__intro {
  grid-column: 1 / span 4;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  position: sticky; top: 96px;
}

.hours__intro h2 { margin-top: 18px; }

.hours__intro .lede { margin-top: 18px; }

.hours__intro-cta {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}

.hours__table {
  grid-column: 6 / span 7;
  display: flex; flex-direction: column;
}

.day {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: color 200ms ease;
}

.day:first-child { border-top: 1px solid var(--rule); }

.day__label {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
}

.day__hours {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  text-align: right;
  letter-spacing: 0.01em;
}

.day.is-today { color: var(--ink); }
.day.is-today .day__label { font-style: italic; color: var(--accent-deep); }
.day.is-today .day__hours { color: var(--ink); }

.day .day__status {
  display: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid currentColor;
}

.day.is-today .day__status { display: inline-block; }
.day.is-today.state-closed .day__status { display: none; }
.day.state-open .day__status { color: var(--accent-deep); border-color: var(--accent-deep); }
.day.state-soon .day__status { color: var(--warn); border-color: var(--warn); }
.day.state-open .day__status::before { content: 'Ouvert'; }
.day.state-soon .day__status::before { content: 'Bientôt'; }

/* ==========================================================================
   Section: Cabinet (about + team)
   ========================================================================== */

.cabinet__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.cabinet__photo {
  grid-column: 1 / span 7;
  overflow: hidden;
}

.cabinet__photo img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cabinet__photo:hover img { transform: scale(1.02); }

.cabinet__text {
  grid-column: 9 / span 4;
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 28px;
}

.cabinet__text p { font-size: 17px; color: var(--ink-muted); }

.team {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}

.team__member {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  color: var(--ink);
}

.team__name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}

.team__role {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.cabinet__secondary {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.cabinet__secondary-caption {
  grid-column: 1 / span 12;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  margin: 48px 0 12px;
}

.cabinet__secondary-photo {
  grid-column: 1 / span 12;
  overflow: hidden;
}

.cabinet__secondary-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cabinet__secondary-photo:hover img { transform: scale(1.02); }

/* ==========================================================================
   Section: Valeurs (editorial list)
   ========================================================================== */

.values__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.value {
  grid-column: span 6;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
}

.value h3 { margin-bottom: 0; }

.value p { color: var(--ink-muted); }

/* ==========================================================================
   Section: Technologies (editorial alternating)
   ========================================================================== */

.tech-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}

.tech-item:last-child { border-bottom: 1px solid var(--rule); }

.tech-item__media {
  grid-column: 1 / span 5;
  overflow: hidden;
}

.tech-item__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-item:hover .tech-item__media img { transform: scale(1.03); }

.tech-item__text {
  grid-column: 7 / span 6;
  display: flex; flex-direction: column; gap: 18px;
}

.tech-item__text p { color: var(--ink-muted); }

.tech-item:nth-child(even) .tech-item__media { grid-column: 8 / span 5; order: 2; }
.tech-item:nth-child(even) .tech-item__text { grid-column: 1 / span 6; order: 1; }

/* ==========================================================================
   Section: Parcours (steps)
   ========================================================================== */

.journey__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.journey-step {
  grid-column: span 6;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
}

.journey-step__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.journey-step h3 { margin-bottom: 4px; }
.journey-step p { color: var(--ink-muted); }

.journey-step ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}

.journey-step li {
  font-size: 14px;
  color: var(--ink-muted);
  padding-left: 18px; position: relative;
}

.journey-step li::before {
  content: '·';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
}

/* ==========================================================================
   Section: Engagements (image rail)
   ========================================================================== */

.engagements__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.engagement {
  display: flex; flex-direction: column; gap: 18px;
}

.engagement__img-wrap {
  overflow: hidden;
}

.engagement__img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.engagement:hover .engagement__img { transform: scale(1.04); }

.engagement__text {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Section: Traitements (typographic index)
   ========================================================================== */

.treatments { background: var(--ink); color: var(--paper); border-top: none; }
.treatments .section-head__meta { border-color: rgba(250, 248, 244, 0.2); }
.treatments .section-index { color: rgba(250, 248, 244, 0.65); }
.treatments h2 em { color: rgba(250, 248, 244, 0.55); }

.treatments__group + .treatments__group { margin-top: 72px; }

.treatments__group-head {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid rgba(250, 248, 244, 0.2);
  padding-top: 18px;
  margin-bottom: 24px;
}

.treatments__group-head .eyebrow { color: rgba(250, 248, 244, 0.7); }

.treatments__group-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--paper);
}

.treatments__group-title em {
  font-style: italic;
  color: rgba(250, 248, 244, 0.55);
}

.treatments__list { display: flex; flex-direction: column; }

.treatment-row {
  display: grid;
  grid-template-columns: 96px 1fr 1.4fr;
  gap: var(--col-gap);
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(250, 248, 244, 0.18);
  cursor: default;
}

.treatment-row:last-child { border-bottom: 1px solid rgba(250, 248, 244, 0.18); }

.treatment-row__thumb {
  width: 96px; height: 96px;
  overflow: hidden;
}

.treatment-row__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.treatment-row__body {
  display: contents;
}

.treatment-row__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  font-weight: 300;
}

.treatment-row__desc {
  font-size: 15px;
  color: rgba(250, 248, 244, 0.7);
  line-height: 1.5;
}

@media (hover: hover) {
  .treatment-row:hover .treatment-row__thumb img { transform: scale(1.05); }
  .treatment-row:hover .treatment-row__title { font-style: italic; }
}

.treatments__cta {
  margin-top: 64px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}

/* ==========================================================================
   Section: Avis (note Google)
   ========================================================================== */

.rating-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  padding: 72px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.rating-block__score {
  grid-column: 2 / span 5;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}

.rating-block__number {
  font-family: var(--serif);
  font-size: clamp(96px, 13vw, 180px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.rating-block__scale {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--ink-muted);
}

.rating-block__body {
  grid-column: 8 / span 4;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rating-block__meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.rating-block__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-muted);
}

.rating-block__cta {
  align-self: flex-start;
  margin-top: 6px;
}

/* ==========================================================================
   Section: FAQ
   ========================================================================== */

.faq__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.faq-item {
  grid-column: span 6;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
}

.faq-item h3 { font-size: clamp(20px, 1.8vw, 26px); }
.faq-item p { color: var(--ink-muted); }

/* ==========================================================================
   Section: Contact
   ========================================================================== */

.contact { background: var(--paper-deep); border-top: none; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.contact__left {
  grid-column: 1 / span 5;
  display: flex; flex-direction: column; gap: 32px;
}

.contact__left h2 em { color: var(--ink-muted); }

.contact__info {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}

.contact__info-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  font-size: 15px;
}

.contact__info-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact__info-value {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

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

.contact__map { grid-column: 7 / span 6; }

.map-facade {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--paper);
  border: 1px solid var(--rule);
}

.map-facade::before {
  content: ''; position: absolute; inset: 0;
  background: url('../hero-cabinet.jpeg') center/cover;
  opacity: 0.3;
  filter: grayscale(100%) contrast(1.1);
}

.map-facade__content {
  position: relative; z-index: 2;
  text-align: center; padding: 32px;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}

.map-facade__content p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
  max-width: 320px;
}

.map-facade__content small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 8px;
}

.map-facade .map-icon { color: var(--paper); }

.map-facade iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-facade--loaded {
  cursor: default;
  background: transparent;
  border-color: var(--rule);
}
.map-facade--loaded::before,
.map-facade--loaded .map-facade__content { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink); color: var(--paper);
  padding: 80px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.18);
}

.footer__brand {
  grid-column: 1 / span 5;
}

.footer__brand .brand__title { color: var(--paper); font-size: 24px; }
.footer__brand p {
  margin-top: 12px;
  color: rgba(250, 248, 244, 0.7);
  max-width: 360px;
  font-size: 14px;
}

.footer__col {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 12px;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.6);
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__col a {
  color: rgba(250, 248, 244, 0.85);
  font-size: 14px;
}

.footer__col a:hover { color: var(--paper); }

.footer__meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(250, 248, 244, 0.55);
  letter-spacing: 0.04em;
}

.footer__meta a { color: rgba(250, 248, 244, 0.8); }
.footer__meta a:hover { color: var(--paper); }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-shell { padding: 80px 0 var(--section-y); }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.legal-aside {
  grid-column: 1 / span 3;
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.legal-aside nav {
  display: flex; flex-direction: column; gap: 12px;
}

.legal-aside a {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

.legal-aside a:hover { color: var(--ink); border-color: var(--ink); }

.legal-body {
  grid-column: 5 / span 8;
  display: flex; flex-direction: column; gap: 56px;
}

.legal-intro h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); }
.legal-intro .lede { margin-top: 18px; }
.legal-intro .btn { margin-top: 28px; }

.legal-block {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.legal-block__head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px; align-items: baseline;
}

.legal-block__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent-deep);
  font-weight: 300;
}

.legal-block__head h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}

.legal-block p, .legal-block li { color: var(--ink-muted); }
.legal-block strong { color: var(--ink); font-weight: 500; }
.legal-block ul { margin: 0; padding-left: 18px; }
.legal-block a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }

.legal-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px;
  border-top: 1px solid var(--rule-soft); padding-top: 18px;
}

.legal-detail dt {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 4px;
}

.legal-detail dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
}

.legal-outro {
  margin-top: 80px;
  padding: 48px;
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}

.legal-outro h2 { font-size: clamp(24px, 2.2vw, 30px); }
.legal-outro p { color: var(--ink-muted); margin-top: 8px; }
.legal-outro__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Reveal animations (very subtle)
   ========================================================================== */

.reveal {
  opacity: 0;
  transition: opacity 900ms ease;
}
.reveal.visible { opacity: 1; }

html:not(.js) .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --col-gap: 24px; }
  .hero__text { grid-column: 1 / span 12; }
  .hero__meta { grid-column: 1 / span 12; border-left: none; padding-left: 0; border-top: 1px solid rgba(250,248,244,0.2); padding-top: 24px; margin-top: 24px; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .section-head__meta { grid-column: 1 / span 12; margin-bottom: 24px; }
  .section-head__title { grid-column: 1 / span 12; }
  .hours__intro { grid-column: 1 / span 12; position: static; }
  .hours__table { grid-column: 1 / span 12; margin-top: 32px; }
  .cabinet__photo { grid-column: 1 / span 12; }
  .cabinet__text { grid-column: 1 / span 12; position: static; margin-top: 32px; }
  .cabinet__secondary-photo { grid-column: 1 / span 12; }
  .value { grid-column: span 12; }
  .tech-item__media, .tech-item:nth-child(even) .tech-item__media { grid-column: 1 / span 12; order: 1; }
  .tech-item__text, .tech-item:nth-child(even) .tech-item__text { grid-column: 1 / span 12; order: 2; margin-top: 24px; }
  .journey-step { grid-column: span 12; }
  .engagements__rail { grid-template-columns: repeat(2, 1fr); }
  .treatment-row { grid-template-columns: 80px 1fr 1.2fr; }
  .treatment-row__thumb { width: 80px; height: 80px; }
  .rating-block__score { grid-column: 1 / span 12; }
  .rating-block__body { grid-column: 1 / span 12; }
  .faq-item { grid-column: span 12; }
  .contact__left { grid-column: 1 / span 12; }
  .contact__map { grid-column: 1 / span 12; margin-top: 40px; }
  .legal-aside { grid-column: 1 / span 12; position: static; margin-bottom: 32px; }
  .legal-body { grid-column: 1 / span 12; }
  .footer__brand { grid-column: 1 / span 12; }
  .footer__col { grid-column: span 4; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav { display: none; }
  .nav.nav--open {
    display: flex; flex-direction: column;
    position: fixed; top: 75px; left: 0; right: 0;
    background: var(--paper);
    padding: 32px 6vw;
    gap: 24px;
    border-bottom: 1px solid var(--rule);
    z-index: 49;
  }
  .nav.nav--open a { font-size: 16px; }
  .menu-toggle { display: inline-block; }
  .topbar__cta { display: none; }
  .topbar__content { grid-template-columns: 1fr auto; }
  .menu-toggle { order: 2; }

  .hero { min-height: 92vh; padding-bottom: 40px; }
  .hero__inner { gap: 24px; }
  .hero__meta { gap: 24px; }
  .hero__meta-item strong { font-size: 18px; }
  .hero__scroll { display: none; }

  .section-head { margin-bottom: 48px; }
  .section-head__title .lede { font-size: 18px; }

  .day { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .day__hours { text-align: left; }

  .cabinet__photo img { aspect-ratio: 4 / 5; }
  .cabinet__secondary { margin-top: 48px; }

  .engagements__rail { grid-template-columns: 1fr; gap: 24px; }
  .engagement__img { aspect-ratio: 16 / 10; }
  .engagement__text { font-size: 18px; }

  .treatments__group + .treatments__group { margin-top: 48px; }
  .treatment-row { grid-template-columns: 64px 1fr; padding: 20px 0; gap: 16px; }
  .treatment-row__thumb { width: 64px; height: 64px; }
  .treatment-row__title { font-size: 22px; }
  .treatment-row__desc { grid-column: 2; margin-top: 4px; }

  .rating-block { padding: 48px 0; gap: 24px; }
  .rating-block__cta { width: 100%; }

  .legal-outro { grid-template-columns: 1fr; padding: 32px 24px; }

  .footer { padding: 56px 0 24px; }
  .footer__col { grid-column: 1 / span 12; }
  .footer__meta { flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 24px; }
}
