/* Rubi Smile Turkey — design system
   Tokens: ruby burgundy, champagne, ivory, ink. Display: Bodoni Moda. Text: Hanken Grotesk.
   Signature device: the arch — echoing the clinic's sculpted plaster walls. */

:root {
  --ruby: #7d1230;
  --ruby-bright: #9a1a3e;
  --ruby-deep: #3a0a18;
  --ruby-ink: #23070f;
  --champagne: #c1ae73;
  --champagne-soft: #e6dcbc;
  --gold-text: #75632f;
  --ivory: #f6f3ed;
  --stone: #ece5d8;
  --paper: #fffdf9;
  --ink: #252320;
  --muted: #5d5850;
  --line: #d9cfbd;
  --focus: #9a1a3e;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ruby); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ruby-bright); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; margin: 0; color: inherit; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.kicker { font-size: .95rem; color: var(--gold-text); font-weight: 600; margin-bottom: 1rem; display: block; }
.on-dark .kicker { color: var(--champagne); }
.prose { max-width: 42em; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ruby); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.6em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--ruby); color: #fff; }
.btn-primary:hover { background: var(--ruby-bright); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.on-dark .btn-ghost { color: var(--ivory); }
.on-dark .btn-ghost:hover { background: var(--ivory); color: var(--ruby-deep); border-color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--ruby-deep); }
.btn-light:hover { background: var(--champagne-soft); color: var(--ruby-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--champagne); padding-bottom: 2px; }
.textlink:hover { border-color: var(--ruby); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 237, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(12px, 1.6vw, 26px); }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 6px 0; position: relative; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ruby); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 7px; border-radius: 4px; }
.lang-switch a[aria-current="true"] { color: var(--ruby); }
.lang-switch a:hover { color: var(--ink); }
.header-cta { min-height: 42px; padding: .6em 1.2em; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; color: var(--ink); padding: 0; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1120px) {
  .main-nav, .header-tools .lang-switch, .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-menu {
    display: block; position: fixed; inset: 76px 0 0 0; background: var(--ruby-deep); color: var(--ivory);
    padding: 28px var(--gutter) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; z-index: 49;
  }
  .menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
  .mobile-menu li a { display: block; font-family: var(--serif); font-size: 1.85rem; line-height: 1.2; padding: 10px 0; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(230, 220, 188, .16); }
  .mobile-menu .lang-switch a { color: var(--champagne-soft); font-size: 1rem; padding: 8px 12px 8px 0; }
  .mobile-menu .lang-switch a[aria-current="true"] { color: #fff; text-decoration: underline; }
  .mobile-menu .btn { width: 100%; margin-top: 24px; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.02; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lead { margin-top: 1.6rem; }
.hero-arch { position: relative; aspect-ratio: 4 / 5.2; border-radius: var(--arch); overflow: hidden; background: var(--stone); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.hero-meta strong { color: var(--ink); font-weight: 600; display: block; }
/* One orchestrated entrance, pure CSS so it never waits for JavaScript */
@keyframes arch-open { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-arch { animation: arch-open 1.4s var(--ease) both; }
.hero-arch img { transform: none; animation: settle 2.2s var(--ease) both; }
.hero h1 { animation: rise .9s var(--ease) both; }
.hero .lead { animation: rise .9s .15s var(--ease) both; }
.hero .btn-row { animation: rise .9s .28s var(--ease) both; }
.hero-meta { animation: rise .9s .4s var(--ease) both; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-arch { aspect-ratio: 4 / 4.4; max-width: 520px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.page-hero .lead { margin-top: 1.2rem; }
.page-hero .arch-img { aspect-ratio: 4 / 5; }
.page-hero.compact .page-hero-grid { grid-template-columns: 1fr; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero .arch-img { max-width: 440px; aspect-ratio: 1 / 1; } }

.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ruby); }

/* ---------- Arch images ---------- */
.arch-img { border-radius: var(--arch); overflow: hidden; background: var(--stone); position: relative; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-img.portrait img { object-position: center top; }
.soft-img { border-radius: 6px; overflow: hidden; background: var(--stone); }
.soft-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(44px, 6vw, 80px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); margin: 0; max-width: 34em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.on-stone { background: var(--stone); }
.on-paper { background: var(--paper); }
.on-dark { background: var(--ruby-deep); color: var(--ivory); }
.on-dark a:not(.btn) { color: var(--champagne-soft); }
.on-dark .lead, .on-dark .section-head p, .on-dark .muted { color: #d9c9cd; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Intro / split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .arch-img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } .split .arch-img { max-width: 460px; } }

.statement { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.25; max-width: 26em; }

/* ---------- Expertise trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.trio-item { display: block; text-decoration: none; color: inherit; }
.trio-item .arch-img { aspect-ratio: 3 / 4; }
.trio-item .arch-img img { transition: transform 1.2s var(--ease); }
.trio-item:hover .arch-img img { transform: scale(1.04); }
.trio-item h3 { margin: 1.2rem 0 .4rem; }
.trio-item p { color: var(--muted); margin: 0 0 .8rem; }
.trio-item .textlink { color: var(--ruby); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } .trio-item .arch-img { aspect-ratio: 4 / 3.6; max-width: 520px; } }

/* ---------- Treatment index (featured) ---------- */
.t-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.t-row { border-bottom: 1px solid var(--line); }
.t-link { display: grid; grid-template-columns: 1.1fr 1.4fr 96px minmax(120px, auto); gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(18px, 2.4vw, 28px) 0; text-decoration: none; color: inherit; position: relative; }
.t-link .t-cat { grid-column: 4; grid-row: 1; justify-self: end; }
.t-link h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); transition: color .3s var(--ease), transform .4s var(--ease); }
.t-link p { margin: 0; color: var(--muted); font-size: .98rem; }
.t-cat { font-size: .85rem; color: var(--gold-text); font-weight: 600; white-space: nowrap; }
.t-thumb { grid-column: 3; grid-row: 1; justify-self: center; width: 96px; aspect-ratio: 3 / 4; margin: -22px 0; border-radius: var(--arch); overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.92); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 980px) {
  .t-link:hover h3 { color: var(--ruby); transform: translateX(10px); }
  .t-link:hover .t-thumb, .t-link:focus-visible .t-thumb { opacity: 1; transform: scale(1); }
}
@media (max-width: 979px) {
  .t-link { grid-template-columns: 1.1fr 1.4fr auto; }
  .t-link .t-cat { grid-column: 3; }
  .t-thumb { display: none; }
}
@media (max-width: 760px) {
  .t-link { grid-template-columns: 1fr; gap: 6px; }
  .t-link .t-cat { grid-column: auto; grid-row: auto; justify-self: start; }
}

/* Treatment gallery cards (catalogue) */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px) clamp(18px, 2.4vw, 32px); }
.t-card { text-decoration: none; color: inherit; display: block; }
.t-card .arch-img { aspect-ratio: 3 / 3.8; }
.t-card .arch-img img { transition: transform 1.2s var(--ease); }
.t-card:hover .arch-img img { transform: scale(1.045); }
.t-card h3 { margin: 1rem 0 .3rem; font-size: 1.55rem; }
.t-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.t-card .t-cat { display: block; margin-top: .9rem; }
@media (max-width: 980px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t-grid { grid-template-columns: 1fr; } }

.t-compact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.t-compact a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.t-compact a span:first-child { font-family: var(--serif); font-size: 1.35rem; }
.t-compact a span:last-child { color: var(--muted); font-size: .9rem; align-self: center; text-align: right; }
.t-compact a:hover span:first-child { color: var(--ruby); }
@media (max-width: 700px) { .t-compact { grid-template-columns: 1fr; } }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 96px); }
.reason { padding: 28px 0; border-top: 1px solid var(--line); }
.on-dark .reason { border-top-color: rgba(230, 220, 188, .22); }
.reason h3 { font-size: 1.45rem; margin-bottom: .55rem; }
.reason p { margin: 0; color: var(--muted); }
.on-dark .reason p { color: #d9c9cd; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Journey steps (sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--ruby); }
.on-dark .steps li::before { color: var(--champagne); }
.steps li::after { content: ""; position: absolute; top: 1.15rem; left: 2.4rem; right: 0; height: 1px; background: var(--line); }
.on-dark .steps li::after { background: rgba(230, 220, 188, .25); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.steps p { margin: 0; font-size: .97rem; color: var(--muted); }
.on-dark .steps p { color: #d9c9cd; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.stage-list { list-style: none; margin: 0; padding: 0; counter-reset: stage; border-top: 1px solid var(--line); }
.stage-list li { counter-increment: stage; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stage-list li::before { content: counter(stage); font-family: var(--serif); font-size: 1.9rem; color: var(--ruby); line-height: 1; }
.stage-list h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.stage-list p { margin: 0; color: var(--muted); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.member .arch-img { aspect-ratio: 3 / 3.7; background: var(--stone); }

.member h3 { margin: 1rem 0 .2rem; font-size: 1.5rem; }
.member .role { color: var(--gold-text); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.member p { color: var(--muted); font-size: .97rem; margin: 0 0 .6em; }
.team-grid.small { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .team-grid, .team-grid.small { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid, .team-grid.small { grid-template-columns: 1fr; } }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.profile .arch-img { aspect-ratio: 3 / 3.8; }
.profile dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 20px; margin: 1.4rem 0 0; font-size: .97rem; }
.profile dt { color: var(--gold-text); font-weight: 600; }
.profile dd { margin: 0; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .arch-img { max-width: 300px; } .profile dl { grid-template-columns: 1fr; } .profile dd { margin-bottom: 8px; } }

/* ---------- Treatment detail ---------- */
.answer { background: var(--paper); border-left: 3px solid var(--ruby); padding: 22px 26px; margin: 0 0 2.4rem; max-width: 46em; }
.answer p { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.answer strong { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.facts div { padding: 20px 20px 20px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--gold-text); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(odd) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts div { padding-left: 0 !important; border-left: 0 !important; } .facts div + div { border-top: 1px solid var(--line); } }

.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; font-size: .92rem; }
.toc p { font-weight: 600; margin-bottom: .6rem; color: var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover, .toc a.active { color: var(--ruby); border-left-color: var(--ruby); }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.detail-body > section { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.detail-body > section:first-child { border-top: 0; padding-top: 0; }
.detail-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }
.two-col h3 { font-size: 1.3rem; margin-bottom: .6rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 9px; border-radius: 999px 999px 0 0; background: var(--ruby); }
.checklist.alt li::before { background: transparent; border: 1px solid var(--gold-text); }
.note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px; }
caption { text-align: left; font-size: .9rem; color: var(--muted); padding-bottom: 10px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; color: var(--gold-text); font-size: .88rem; border-bottom-color: var(--ink); }
tbody th { font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--ruby); border-bottom: 1.5px solid var(--ruby); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq-a { padding: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq .faq-a p:last-child { margin: 0; }

.review-box { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); padding: 20px 22px; font-size: .94rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; }
.review-box strong { color: var(--ink); }

.pending { display: inline-block; background: #fff4d6; color: #5a4300; border: 1px dashed #b8902a; font-size: .82rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; vertical-align: middle; }
.pending-block { background: #fff8e6; border: 1px dashed #b8902a; color: #4d3a00; padding: 16px 18px; border-radius: 6px; font-size: .95rem; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.story { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-top: 3px solid var(--ruby); }
.story blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; }
.story figcaption { font-size: .92rem; color: var(--muted); }
.story figcaption strong { color: var(--ink); }
@media (max-width: 760px) { .stories { grid-template-columns: 1fr; } }

/* ---------- Journal ---------- */
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.j-card { text-decoration: none; color: inherit; display: block; }
.j-card .soft-img { aspect-ratio: 4 / 3; }
.j-card h3 { font-size: 1.45rem; margin: 1rem 0 .4rem; }
.j-card p { color: var(--muted); font-size: .97rem; margin: 0; }
.j-card .j-meta { font-size: .86rem; color: var(--gold-text); font-weight: 600; margin-top: 1rem; display: block; }
.j-card:hover h3 { color: var(--ruby); }
@media (max-width: 900px) { .j-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .j-grid { grid-template-columns: 1fr; } }
.j-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.j-cats button { font: 500 .92rem var(--sans); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; color: var(--ink); min-height: 40px; }
.j-cats button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.8em 0 .6em; }
.article-body blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--ruby); font-family: var(--serif); font-size: 1.3rem; }
.article-cover { aspect-ratio: 16 / 8; max-height: 520px; margin-bottom: 40px; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.cta-band .contact-lines { font-size: 1rem; line-height: 2; }
.cta-band .contact-lines a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(230, 220, 188, .4); }
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 640px; border: 1px solid rgba(193, 174, 115, .28); border-radius: var(--arch); pointer-events: none; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.consult { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .consult { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--ruby); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--ivory);
  border: 1px solid #b9ad97; border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #a3201a; font-size: .86rem; margin-top: 4px; display: none; }
.field.has-err .err { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .94rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ruby); }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 4px; display: none; font-size: .97rem; }
.form-status.ok { display: block; background: #e8f3ea; color: #1d4a28; border: 1px solid #9cc7a5; }
.form-status.bad { display: block; background: #fbeaea; color: #7a1b16; border: 1px solid #e0a39f; }
.form-status.busy { display: block; background: var(--stone); color: var(--ink); }
.form-foot { font-size: .86rem; color: var(--muted); margin-top: 14px; }
.next-steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.next-steps li::before { content: counter(ns); font-family: var(--serif); font-size: 1.5rem; color: var(--ruby); line-height: 1.1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.contact-grid > div { padding-top: 20px; border-top: 1px solid var(--line); }
.contact-grid h3 { font-size: 1.3rem; margin-bottom: .6rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.hours { width: auto; min-width: 0; font-size: .97rem; }
.hours td, .hours th { padding: 6px 18px 6px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ruby-ink); color: #e9dfe1; padding: clamp(56px, 7vw, 96px) 0 32px; font-size: .95rem; }
.site-footer a { color: #e9dfe1; text-decoration: none; }
.site-footer a:hover { color: var(--champagne); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.footer-brand p { color: #c9b8bc; max-width: 26em; }
.site-footer .f-h { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--champagne); margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(233, 223, 225, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .86rem; color: #b9a6ab; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-disclaimer { margin-top: 28px; font-size: .84rem; color: #b9a6ab; max-width: 70em; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Aftercare hub ---------- */
.ac-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.ac-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.ac-hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.8rem); color: var(--ruby); line-height: 1.02; max-width: 9.5em; }
.ac-hero .lead { margin-top: 1.4rem; }
.ac-hero .arch-img { aspect-ratio: 4 / 5; }
.ac-pillars { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 640px; }
.ac-pillars li { border-bottom: 1px solid var(--line); }
.ac-pillars a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 20px 4px; text-decoration: none; color: inherit; align-items: center; }
.ac-pillar-t { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ruby); }
.ac-pillar-d { color: var(--muted); font-size: .97rem; padding-left: 20px; border-left: 2px solid var(--champagne); }
.ac-pillars a:hover .ac-pillar-t { color: var(--ruby-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ac-sub { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 1.4rem; }
.ac-subtext { color: var(--muted); margin: -.6rem 0 1.6rem; max-width: 40em; }
.ac-block { margin-top: clamp(48px, 7vw, 88px); }
.ac-guides { border-top: 1px solid var(--line); margin-bottom: 1.4rem; }
.ac-guide { border-bottom: 1px solid var(--line); }
.ac-guide summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem); min-height: 44px; }
.ac-guide summary::-webkit-details-marker { display: none; }
.ac-guide summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--ruby); line-height: 1; }
.ac-guide[open] summary::after { content: "\2212"; }
.ac-guide-body { padding: 0 4px 28px; }
.ac-guide-body h4 { color: var(--gold-text); }
.ac-links { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); }
.ac-links a { margin-right: 14px; }
.ac-triage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ac-tri { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 6px; padding: 22px 22px 18px; }
.ac-tri h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: .8rem; }
.ac-calm { border-top-color: var(--champagne); }
.ac-watch { border-top-color: var(--ruby); }
.ac-urgent { border-top-color: var(--ruby-ink); background: #fbf4f5; }
.ac-tri-list { margin: 0; padding-left: 1.1em; color: var(--ink); }
.ac-tri-list li { margin-bottom: .45em; }
.ac-tri .note { margin: 1rem 0 0; font-size: .92rem; }
.ac-reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 1.2rem; }
.ac-reach div { padding: 12px 0; border-top: 1px solid var(--line); }
.ac-reach dt { font-size: .85rem; color: var(--gold-text); font-weight: 600; }
.ac-reach dd { margin: 2px 0 0; }
.ac-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(48px, 7vw, 88px); }
.ac-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 34px); }
.ac-card h3 { margin-bottom: .9rem; }
.ac-card > p { color: var(--muted); }
.ac-card .pending-block { margin-bottom: 0; }
.ac-send { margin: 0; padding-left: 1.2em; }
.ac-send li { margin-bottom: .6em; }
.ac-send strong { display: block; }
.reasons.ac-three { grid-template-columns: repeat(3, 1fr); }
.reason .textlink { display: inline-block; margin-top: 1rem; }
@media (max-width: 900px) {
  .ac-hero-grid { grid-template-columns: 1fr; }
  .ac-hero .arch-img { max-width: 440px; aspect-ratio: 5 / 4; order: -1; }
  .ac-triage, .ac-cards, .reasons.ac-three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ac-pillars a { grid-template-columns: 1fr; gap: 6px; }
  .ac-pillar-d { padding-left: 0; border-left: 0; }
  .ac-reach { grid-template-columns: 1fr; }
}

/* ---------- Smile guide ---------- */
.sg { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 56px); max-width: 980px; }
.sg-count { font-size: .92rem; font-weight: 600; color: var(--gold-text); margin: 0 0 .6rem; }
.sg h2, .sg .sg-q { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1.6rem; }
.sg h2:focus, .sg .sg-q:focus { outline: none; }
.sg-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 18px 18px 18px 22px; min-height: 72px; cursor: pointer; box-shadow: 0 1px 0 rgba(35, 7, 15, .05), 0 6px 18px rgba(35, 7, 15, .07); transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.sg-opt-t, .sg-opt-d { grid-column: 1; }
.sg-opt::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--ruby) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .15s, background-color .15s; }
.sg-opt:hover { border-color: var(--ruby); box-shadow: 0 2px 0 rgba(35, 7, 15, .06), 0 12px 28px rgba(35, 7, 15, .12); transform: translateY(-2px); }
.sg-opt:hover::after { background-color: var(--ruby-bright); transform: translateX(3px); }
.sg-opt:active { transform: translateY(0); background: var(--ivory); }
.sg-hint { font-size: .95rem; color: var(--muted); margin: -.8rem 0 1.1rem; }
@media (prefers-reduced-motion: reduce) { .sg-opt, .sg-opt::after { transition: none; } .sg-opt:hover, .sg-opt:hover::after { transform: none; } }
.sg-opt-t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--ruby); }
.sg-opt-d { font-size: .93rem; color: var(--muted); }
.sg-back { margin-top: 1.4rem; color: var(--ruby); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.sg-result .lead { margin-bottom: 1.4rem; }
.sg-h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; }
.sg-urgent { border-left: 3px solid var(--ruby); background: #fbf4f5; padding: 12px 16px; margin: 0 0 1.2rem; }
.sg-disclaimer { margin-top: 1.6rem; }
.sg-ctanote { font-size: .92rem; color: var(--muted); margin: .8rem 0 0; }
@media (max-width: 640px) { .sg-options { grid-template-columns: 1fr; } }

/* ---------- Review band ---------- */
.review-band { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; }
.review-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.review-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .4rem; }
.review-inner p { margin: 0; max-width: 46em; }
.review-inner .btn-row { margin: 0; flex-shrink: 0; }
.review-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Photo slider ---------- */
.slider { position: relative; margin: 6px 0 26px; }
.slider .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 10px; scrollbar-width: none; }
.slider .slides::-webkit-scrollbar { display: none; }
.slider .slides:focus-visible { outline: 2px solid var(--ruby); outline-offset: 3px; }
.slider .slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 860 / 538; }
.slider .slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sl-btn { position: absolute; top: calc((100% - 34px) / 2 - 22px); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(35, 7, 15, .18); cursor: pointer; }
.sl-prev { left: 12px; }
.sl-next { right: 12px; }
.sl-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--ruby); border-right: 2px solid var(--ruby); }
.sl-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.sl-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.sl-btn:hover { background: #fff; }
.sl-btn:focus-visible, .sl-dots button:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
.sl-dots { display: flex; justify-content: center; align-items: center; gap: 8px; height: 22px; margin-top: 12px; }
.sl-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .2s; }
.sl-dots button[aria-current] { width: 22px; background: var(--ruby); }
@media (prefers-reduced-motion: reduce) { .slider .slides { scroll-behavior: auto; } .sl-dots button { transition: none; } }

/* ---------- Header dropdown ---------- */
.main-nav li.has-sub { position: relative; }
.main-nav .has-sub > a { padding-right: 14px; }
.main-nav .has-sub > a::before { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-75%) rotate(45deg); }
.main-nav .sub { display: none; position: absolute; left: -18px; top: 100%; z-index: 60; flex-direction: column; gap: 0; min-width: 250px; padding: 10px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(35, 7, 15, .12); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }
.main-nav .sub a { display: block; padding: 9px 18px; }
.main-nav .sub a::after { display: none; }
.main-nav .sub a:hover, .main-nav .sub a:focus-visible { background: var(--ivory); color: var(--ruby); }
.mobile-menu li.m-sub a { font-family: var(--sans); font-size: 1.05rem; padding: 8px 0 8px 18px; color: var(--champagne-soft); border-bottom: 0; }

/* ---------- WhatsApp button ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border-radius: 28px; background: #25d366; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px rgba(18, 140, 126, .35); transition: transform .15s, box-shadow .15s; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18, 140, 126, .42); color: #fff; }
.wa-fab:focus-visible { outline: 3px solid var(--ruby); outline-offset: 3px; }
@media (max-width: 760px) {
  .wa-fab { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .wa-fab-t { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } .wa-fab:hover { transform: none; } }
@media print { .wa-fab { display: none; } }
/* ---------- Rubi Care chat ---------- */
.care-fab { position: fixed; right: 20px; bottom: 20px; z-index: 46; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 14px; border: 0; border-radius: 28px; background: var(--ruby); color: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; box-shadow: 0 10px 28px rgba(58, 10, 24, .32); transition: transform .15s, box-shadow .15s, background .15s; }
.care-fab svg { color: var(--champagne-soft); }
.care-fab:hover { background: var(--ruby-bright); transform: translateY(-2px); }
.care-fab:focus-visible, .care button:focus-visible, .care a:focus-visible, .care textarea:focus-visible { outline: 3px solid var(--champagne); outline-offset: 2px; }
.care-fab[aria-expanded="true"] { display: none; }
.care-panel { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(35, 7, 15, .28); overflow: hidden; }
.care-panel[hidden] { display: none; }
.care-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--ruby-deep); color: #fff; }
.care-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ruby); color: var(--champagne-soft); }
.care-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.care-tt b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.care-tt span { font-size: .8rem; color: var(--champagne-soft); }
.care-ai { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--champagne); color: var(--ruby-ink); font: 700 .66rem/1.4 var(--sans); vertical-align: 3px; }
.care-reset { border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: 14px; padding: 5px 10px; font: 500 .78rem/1 var(--sans); cursor: pointer; }
.care-x { border: 0; background: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.care-x:hover, .care-reset:hover { background: rgba(255,255,255,.12); }
.care-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.care-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.care-bot { align-self: flex-start; background: var(--stone); border-bottom-left-radius: 5px; }
.care-me { align-self: flex-end; background: var(--ruby); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.care-bot a { color: var(--ruby); font-weight: 600; }
.care-bot ul { margin: 6px 0; padding-left: 18px; }
.care-bot p { margin: 0 0 6px; } .care-bot p:last-child { margin: 0; }
.care-msg.care-err { background: #fbf0e6; color: #6d3a12; }
.care-typing { color: var(--muted); font-style: italic; }
.care-chips[hidden] { display: none; }
.care-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.care-chips button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 16px; padding: 7px 11px; font: 500 .82rem/1.2 var(--sans); cursor: pointer; text-align: left; }
.care-chips button:hover { border-color: var(--ruby); color: var(--ruby); }
.care-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--ivory); }
.care-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font: 400 .95rem/1.4 var(--sans); background: var(--paper); color: var(--ink); }
.care-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--ruby); color: #fff; display: grid; place-items: center; cursor: pointer; }
.care-send:disabled { opacity: .5; cursor: default; }
.care-hand { display: flex; gap: 8px; padding: 0 12px 6px; background: var(--ivory); }
.care-hand a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .84rem/1.2 var(--sans); text-decoration: none; text-align: center; }
.care-hand a.care-wa { background: #25d366; border-color: #25d366; color: #fff; }
.care-hand a.care-wa svg { width: 18px; height: 18px; }
.care-note { margin: 0; padding: 4px 14px 12px; background: var(--ivory); font-size: .74rem; line-height: 1.4; color: var(--muted); }
.care-note a { color: var(--muted); }
@media (max-width: 760px) {
  .care-fab { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .care-fab-t { display: none; }
  .care-panel { right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .care-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .care-note { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  body.care-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .care-fab { transition: none; } .care-fab:hover { transform: none; } }
@media print { .care { display: none; } }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(35, 7, 15, .18); }
.consent-inner { padding: 22px 22px 18px; }
.consent h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .5rem; }
.consent p { font-size: .94rem; color: var(--muted); margin: 0 0 1rem; }
.consent-choices { display: grid; gap: 10px; margin: 0 0 1rem; }
.consent-choices[hidden] { display: none; }
.consent-opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .92rem; color: var(--muted); align-items: start; }
.consent-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ruby); }
.consent-opt strong { color: var(--ink); display: block; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-btns .btn { min-height: 44px; padding: .6em 1.1em; font-size: .92rem; flex: 1 1 auto; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--champagne); text-decoration: underline; }
@media (max-width: 760px) { .consent { left: 8px; right: 8px; bottom: 8px; } .consent-inner { padding: 18px 16px 14px; } }

/* ---------- Mobile contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 243, 237, .97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 46px; padding: .6em 1em; font-size: .95rem; }
  body { padding-bottom: 72px; }
}

/* ---------- Reveal (single, restrained) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-arch, .hero-arch img, .hero h1, .hero .lead, .hero .btn-row, .hero-meta { animation: none !important; }
}

/* ---------- Language gateway (root) ---------- */
.gateway { min-height: 100vh; display: grid; place-items: center; background: var(--ruby-deep); color: var(--ivory); text-align: center; padding: 40px 20px; }
.gateway img { height: 40px; width: auto; margin: 0 auto 36px; filter: brightness(0) invert(1); }
.gateway h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.6rem; }
.gateway ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media print {
  .site-header, .mobile-bar, .site-footer, .cta-band, .toc { display: none !important; }
  body { background: #fff; }
}