/* =========================================================
   Clínica de Exercício — Estoril
   World: plantar-pressure scan. Isobaric contour lines,
   clinical white, deep navy fields, logo green as "load".
   ========================================================= */

:root {
  --navy-950: #071d33;
  --navy-900: #0b2a4a;
  --navy-800: #123a63;
  --blue-700: #1a5592;
  --blue: #2268af;
  --blue-400: #5b93cf;
  --blue-200: #b9d2ec;
  --blue-100: #e7f0f9;
  --green: #70a94c;
  --green-700: #3d7a22;
  --green-800: #2f6219;
  --green-300: #a9d18c;
  --green-100: #eef6e7;
  --ink: #13202c;
  --ink-2: #44535f;
  --ink-3: #56636e;
  --line: #dbe3ea;
  --line-2: #e9eef3;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --on-navy: #eaf2fb;
  --on-navy-2: #a9c1da;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 6px -2px rgb(11 42 74 / 0.10), 0 1px 2px rgb(11 42 74 / 0.06);
  --shadow-md: 0 18px 40px -20px rgb(11 42 74 / 0.30), 0 4px 10px -6px rgb(11 42 74 / 0.10);
  --shadow-lg: 0 40px 80px -32px rgb(7 29 51 / 0.45), 0 10px 24px -12px rgb(7 29 51 / 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--green-300); color: var(--navy-950); }
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}
html { scrollbar-color: var(--blue-200) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 99px; border: 3px solid var(--bg); }
input, textarea, select { caret-color: var(--blue); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[data-lucide], .lucide { width: 1.2em; height: 1.2em; stroke-width: 1.8; flex: none; }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.35em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out),
    border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--lg { min-height: 56px; padding: 0 1.7em; font-size: 1.0625rem; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  border-color: var(--line);
  background: var(--surface);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--blue); color: var(--blue); }
.btn--call {
  --btn-bg: var(--green-100);
  --btn-fg: var(--green-800);
  border-color: #cfe5bf;
}
.btn--call:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--light:hover { background: var(--green-100); color: var(--navy-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgb(255 255 255 / 0.35); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; }
.btn--wa { --btn-bg: #1f8f4e; }
.btn--wa:hover { background: #17733e; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; color: var(--blue); text-decoration: none;
}
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgb(11 42 74 / .5); }
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand__mark { display: none; height: 40px; width: 50px; overflow: hidden; }
.brand__mark img { height: 40px; max-width: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--navy-900); background: var(--blue-100); }
.nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px;
  translate: -50% 0; border-radius: 3px; background: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 0 1.1em; font-size: 0.95rem; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 0.9rem; color: var(--navy-900);
  transition: border-color .2s;
}
.lang__btn:hover { border-color: var(--blue); }
.lang__btn .lucide { width: 18px; height: 18px; color: var(--blue); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; translate: 0 -6px;
  transition: opacity .2s var(--ease-out), translate .3s var(--ease-out), visibility .2s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; translate: 0 0; }
.lang__list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 0.95rem;
}
.lang__list button:hover { background: var(--blue-100); }
.lang__list button[aria-current="true"] { font-weight: 700; color: var(--blue); }
.lang__list small { color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  align-items: center; justify-content: center;
}

/* Legally required call-cost notice next to every phone number (DL 59/2021) */
.call-cost { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; opacity: .8; }
.call-number, .call-stack { display: grid; text-align: left; line-height: 1.1; }
.btn--call .call-cost { font-size: .6rem; opacity: .75; }
.btn .call-stack .call-cost { font-size: .68rem; }
.big-phone .call-cost { margin-top: 10px; font-size: .85rem; color: var(--on-navy-2); opacity: 1; }
.site-footer li .call-cost { margin-top: 2px; color: var(--ink-3); opacity: 1; }
.assist__action .call-cost { font-size: .62rem; }
@media (max-width: 1080px) {
  .call-number { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s var(--ease-out);
    visibility: hidden;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { padding: 16px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line-2); }
  .nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; translate: 0 -50%; width: 8px; height: 8px; border-radius: 50%; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav { margin-left: 0; }
}
@media (max-width: 600px) {
  .brand__full { display: none; }
  .brand__mark { display: block; }
  .site-header .wrap { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn--call { width: 44px; padding: 0; }
  .header-actions .btn--call .label { display: none; }
  .lang__btn { padding: 0 10px; }
  .lang__btn .lucide { display: none; }
}
@media (max-width: 360px) {
  .header-actions .btn--book { padding: 0 0.85em; }
}

/* ---------------- Contour textures ---------------- */
.contour-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.contour-bg path { fill: none; vector-effect: non-scaling-stroke; }

/* ---------------- Section scaffolding ---------------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end; gap: 32px 64px;
}
.h-xl { font-size: clamp(2.5rem, 2rem + 3.2vw, 5rem); }
.h-lg { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.75rem); }
.h-md { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); letter-spacing: -0.02em; }
.h-sm { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.accent-green { color: var(--green-700); }
.accent-blue { color: var(--blue); }

.on-navy { background: var(--navy-900); color: var(--on-navy); }
.on-navy .lede { color: var(--on-navy-2); }
.on-navy .accent-green { color: var(--green-300); }

@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 4vh, 56px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--blue-100) 0%, transparent 70%),
    radial-gradient(40% 50% at 10% 100%, var(--green-100) 0%, transparent 70%),
    var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: .62; filter: saturate(.95);
  transform-origin: 60% 40%;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(245 248 250 / .9) 0%, rgb(245 248 250 / .7) 40%, rgb(245 248 250 / .15) 72%, rgb(245 248 250 / .3) 100%),
    linear-gradient(180deg, transparent 70%, var(--surface) 100%);
}
@media (max-width: 960px) {
  .hero__bg::after { background: linear-gradient(180deg, rgb(245 248 250 / .55) 0%, rgb(245 248 250 / .8) 45%, var(--surface) 100%); }
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}
.hero__copy { display: grid; gap: clamp(18px, 2.6vh, 28px); }
.hero__title {
  font-size: clamp(2.7rem, 2.6vw + 3.4vh, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--navy-900);
}
.hero__title em {
  font-style: normal;
  color: var(--green-700);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.1em; height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 300 30%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M4 22 C 60 6, 120 6, 160 16 S 260 26, 296 8%27 fill=%27none%27 stroke=%27%2370a94c%27 stroke-width=%275%27 stroke-linecap=%27round%27/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}
.hero__lede { max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding-top: clamp(6px, 1.4vh, 16px);
}
.g-rating {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
}
.g-rating__logo {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.g-rating__score { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.g-rating__stars { display: flex; gap: 2px; color: #f4b400; }
.g-rating__stars svg { width: 15px; height: 15px; fill: currentColor; }
.g-rating small { display: block; color: var(--ink-3); font-size: 0.85rem; }
.open-status {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: 0.95rem;
}
.open-status__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); position: relative;
}
.open-status.is-open .open-status__dot { background: var(--green); }
.open-status.is-open .open-status__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { from { opacity: .8; scale: .5; } to { opacity: 0; scale: 1.4; } }

/* Scan plate */
.scan {
  position: relative;
  height: min(calc(100svh - var(--header-h) - 80px), 640px);
  min-height: 460px;
}
.scan__plate {
  position: absolute; inset: 0 0 0 5%;
  border-radius: var(--r-xl);
  background:
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 22px 22px,
    #fbfdff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.scan__plate::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 50%, transparent 40%, rgb(251 253 255 / .9) 100%);
  pointer-events: none;
}
.scan__svg { position: absolute; left: 4%; top: 9%; width: 92%; height: 76%; }
.scan__svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.scan__head {
  position: absolute; z-index: 2; top: 22px; left: 26px; right: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-3);
}
.scan__tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy-900);
}
.scan__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.scan__readout {
  position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 22px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  font-variant-numeric: tabular-nums;
}
.scan__side { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy-900); line-height: 1; }
.scan__side small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 4px; }
.scan__side--r { text-align: right; }
.scan__bar { height: 8px; border-radius: 99px; background: var(--blue-200); overflow: hidden; }
.scan__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; transform-origin: left center; scale: .5 1; transition: scale .2s linear; }
.scan__legend {
  position: absolute; z-index: 2; right: 26px; top: 64px;
  display: grid; gap: 4px; justify-items: end; font-size: .7rem; color: var(--ink-3); font-weight: 600;
}
.scan__legend i { width: 10px; height: 64px; border-radius: 99px; background: linear-gradient(var(--green), var(--blue), var(--blue-200)); }

.scan__photo {
  position: absolute; z-index: 3;
  left: 0; bottom: 15%;
  width: 36%; aspect-ratio: 4 / 3.3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  rotate: -3deg;
}
.scan__photo img { width: 100%; height: 100%; object-fit: cover; }
.crop-badge img { transform-origin: 0 0; scale: 1.2; }
.scan__hint {
  position: absolute; z-index: 3; left: 5%; right: 0; bottom: -34px; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--ink-3);
}
.scan__hint .lucide { width: 16px; height: 16px; color: var(--green-700); }
.scan { margin-bottom: 34px; }
@media (hover: none) { .scan__hint { display: none; } .scan { margin-bottom: 0; } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-block: 40px 64px; }
  .hero__grid { grid-template-columns: 1fr; }
  .scan { height: 520px; min-height: 0; }
  .scan__plate { inset: 0 0 0 0; }
}
@media (max-width: 600px) {
  .scan { height: 440px; }
  .scan__photo { width: 52%; bottom: auto; top: 54%; left: -6px; }
  .scan__hint { display: none; }
  .scan__legend { display: none; }
  .scan__head { top: 16px; left: 16px; right: 16px; }
  .scan__head > span:last-child { display: none; }
  .scan__tag { white-space: nowrap; font-size: .78rem; }
  .scan__readout { left: 18px; right: 18px; bottom: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Hero figures (curl, stretch, massage, treadmill) — reuse the .scan frame */
.move { margin-bottom: 0; }
.move .scan__plate::after { display: none; }
.move__grid {
  position: absolute; inset: 70px 20px 20px; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.move__tile {
  position: relative; margin: 0; min-height: 0;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: rgb(255 255 255 / .78);
  overflow: hidden;
}
.move__tile svg { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); }
.move__tile figcaption {
  position: absolute; left: 12px; bottom: 10px;
  font-size: .8rem; font-weight: 600; color: var(--navy-900);
}
.move__tile svg path, .move__tile svg line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.move__limb { stroke: var(--navy-900); stroke-width: 8; }
.move__limb--far { stroke: var(--blue-400); }
.move__torso { stroke: var(--green); stroke-width: 13; }
.move__head { fill: var(--navy-900); }
.move__fig--therapist .move__torso { stroke: var(--blue); }
.move__weight { fill: var(--navy-800); stroke: #fff; stroke-width: 2; }
.move__weight--far { fill: var(--blue-400); }
.move__floor { stroke: var(--line); stroke-width: 2; }
.move__mat { fill: var(--green-100); stroke: var(--green-300); stroke-width: 1; }
.move__table rect { fill: var(--blue-100); stroke: var(--blue-200); stroke-width: 1.5; }
.move__table line { stroke: var(--blue-200); stroke-width: 4; }
.move__treadmill line { stroke: var(--ink-3); stroke-width: 5; }
.move__treadmill rect { fill: var(--navy-800); }
.move__treadmill .move__belt { stroke: var(--blue-200); stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: butt; animation: belt .5s linear infinite; }
@keyframes belt { to { stroke-dashoffset: 14; } }
@media (prefers-reduced-motion: reduce) { .move__treadmill .move__belt { animation: none; } }
@media (max-width: 600px) {
  .move__grid { inset: 60px 12px 12px; gap: 8px; }
  .move__tile figcaption { font-size: .72rem; left: 10px; bottom: 8px; }
  .move__tile svg { inset: 0 0 26px; height: calc(100% - 26px); }
}

/* ---------------- Reviews marquee ---------------- */
.reviews { padding-block: clamp(80px, 10vw, 140px); background: var(--surface); overflow: hidden; position: relative; isolation: isolate; }
.reviews > .contour-bg { z-index: -1; }
.marquee + .marquee { margin-top: 4px; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track { list-style: none; margin: 0; }
.reviews__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px;
  margin-bottom: 48px;
}
.reviews__score {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px 14px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s;
}
.reviews__score:hover { border-color: var(--blue); }
.reviews__score .g-rating__score { font-size: 2.2rem; }
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; gap: 20px; width: max-content;
  padding-block: 12px 24px;
  animation: marquee var(--marquee-dur, 90s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.review {
  position: relative;
  flex: none; width: min(400px, 82vw);
  display: flex; flex-direction: column; gap: 16px;
  padding: 30px 30px 26px; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--line-2);
  transition: background-color .3s, border-color .3s, box-shadow .3s, translate .4s var(--ease-out);
}
.review::before {
  content: "\201C"; position: absolute; right: 22px; top: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; line-height: 1;
  color: var(--green); opacity: .35; pointer-events: none;
  transition: opacity .3s, translate .4s var(--ease-out);
}
.review:hover::before { opacity: .9; translate: 0 -4px; }
.review--short { width: auto; max-width: min(460px, 82vw); flex-direction: row; align-items: center; gap: 22px; padding: 20px 26px; border-radius: 999px; background: var(--navy-900); border-color: var(--navy-900); }
.review--short::before { display: none; }
.review--short .review__stars { display: none; }
.review--short .review__stars svg { width: 12px; height: 12px; }
.review--short .review__text { color: #fff; font-weight: 500; -webkit-line-clamp: 2; font-size: .98rem; }
.review--short .review__who { margin: 0; flex: none; order: -1; }
.review--short .review__who > span:last-child { display: none; }
.review--short .review__avatar { background: rgb(255 255 255 / .12); color: var(--green-300); }
.review.review--short:hover { background: var(--navy-800); border-color: var(--navy-800); }
.review:hover { background: #fff; border-color: var(--blue-200); box-shadow: var(--shadow-md); translate: 0 -4px; }
.review__stars { display: flex; gap: 3px; color: #f4b400; }
.review__stars svg { width: 18px; height: 18px; fill: currentColor; }
.review__text {
  font-size: 1.02rem; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue); font-weight: 700; font-family: var(--font-display);
}
.review__who strong { display: block; font-size: .95rem; }
.review__who small { color: var(--ink-3); font-size: .82rem; }
.reviews__note { margin-top: 20px; font-size: .85rem; color: var(--ink-3); text-align: center; }

/* ---------------- Story ---------------- */
.story__grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.story__media { position: relative; aspect-ratio: 5 / 5.6; }
.story__media figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.story__media figure img { width: 100%; height: 100%; object-fit: cover; }
.story__media .m1 { inset: 0 18% 26% 0; }
.story__media .m2 { inset: 44% 0 0 34%; border: 6px solid var(--bg); }
.story__stamp {
  position: absolute; z-index: 2; left: 6%; bottom: 4%;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--green-700); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; line-height: 1.05; font-size: 1.05rem;
  box-shadow: var(--shadow-md);
}
.story__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.story__stamp text { font-family: var(--font-body); font-size: 9.5px; font-weight: 700; letter-spacing: .18em; fill: #fff; text-transform: uppercase; }
@keyframes spin { to { rotate: 360deg; } }
.story__body { display: grid; gap: 22px; }
.story__body p { color: var(--ink-2); max-width: 62ch; }

.path-wrap { position: relative; margin-top: clamp(72px, 9vw, 120px); padding-top: 0; }
.path__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 64px; overflow: visible; }
.path__line path { fill: none; stroke: var(--blue-200); stroke-width: 2; stroke-dasharray: 0.006 0.008; vector-effect: non-scaling-stroke; }
.path--band { margin: 0; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.path--band::before { display: none; }
.path.path--band li { gap: 14px; }
.path.path--band .path__dot { width: 64px; height: 64px; border-width: 2px; box-shadow: 0 0 0 8px var(--bg); }
.path.path--band .path__dot .lucide { width: 26px; height: 26px; }
.path.path--band strong { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; color: var(--navy-900); }
.path.path--band li:nth-child(n+3) strong { color: var(--green-700); }
.path.path--band span:not(.path__dot) { font-size: 1rem; max-width: 22ch; }
.path {
  position: relative; margin-top: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  list-style: none; padding: 0;
}
.path::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 6px, transparent 6px 12px);
}
.path li { position: relative; display: grid; gap: 10px; }
.path__dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--blue-200); color: var(--blue);
  position: relative; z-index: 1;
}
.path li:nth-child(n+3) .path__dot { color: var(--green-700); border-color: var(--green-300); }
.path strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.path span { font-size: .9rem; color: var(--ink-3); line-height: 1.4; }

.coords { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.coord {
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.coord:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.coord img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.coord strong { display: block; font-size: .95rem; line-height: 1.2; }
.coord small { color: var(--ink-3); font-size: .8rem; }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 560px; }
}
@media (max-width: 760px) {
  .path--band { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .path__line { display: none; }
}
@media (max-width: 560px) {
  .path { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .path::before { display: none; }
}

/* ---------------- Featured services (bento) ---------------- */
.featured { position: relative; overflow: hidden; isolation: isolate; }
.featured .contour-bg { z-index: -1; opacity: .9; }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 18px;
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--navy-800);
  border: 1px solid rgb(255 255 255 / .08);
  color: #fff; text-decoration: none;
  isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / .22); }
.tile__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgb(255 255 255 / .1); color: var(--green-300);
  margin-bottom: auto;
}
.tile__icon .lucide { width: 26px; height: 26px; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.9rem); letter-spacing: -0.02em; }
.tile p { color: var(--on-navy-2); font-size: .98rem; line-height: 1.5; max-width: 46ch; }
.tile__go {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy-900);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.tile:hover .tile__go { transform: rotate(-45deg); background: var(--green-300); }
.tile--photo { min-height: 420px; }
.tile--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: scale 1.2s var(--ease-out);
}
.tile--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(7 29 51 / 0) 25%, rgb(7 29 51 / .55) 55%, rgb(7 29 51 / .94) 100%);
}
.tile--photo:hover img { scale: 1.05; }
.tile--green { background: var(--green-700); border-color: transparent; }
.tile--green .tile__icon { background: rgb(255 255 255 / .2); color: #fff; }
.tile--green p { color: #f1f8ea; }
.tile--green h3 { color: #fff; }
.tile--light { background: #fff; color: var(--navy-900); }
.tile--light p { color: var(--ink-2); }
.tile--light .tile__icon { background: var(--blue-100); color: var(--blue); }
.tile--light .tile__go { background: var(--navy-900); color: #fff; }
.t-a { grid-column: span 7; grid-row: span 2; }
.t-b { grid-column: span 5; grid-row: span 2; }
.t-c { grid-column: span 4; }
.t-d { grid-column: span 4; }
.t-e { grid-column: span 4; }
.t-f > .contour-bg { z-index: -1; opacity: .9; }
.t-f { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; }
.featured__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.featured__foot p { color: var(--on-navy-2); max-width: 60ch; }
@media (max-width: 960px) {
  .t-a, .t-b { grid-column: span 12; }
  .t-c, .t-d, .t-e { grid-column: span 6; }
  .t-e { grid-column: span 12; }
}
@media (max-width: 600px) {
  .t-c, .t-d, .t-e { grid-column: span 12; }
  .tile--photo { min-height: 360px; }
  .tile { padding: 24px; }
}

/* ---------------- Gallery ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--blue); color: var(--navy-900); }
.chip[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.chip small { font-variant-numeric: tabular-nums; opacity: .6; }

.gallery-bleed { padding-inline: clamp(16px, 2vw, 32px); max-width: 1880px; margin-inline: auto; }
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 13vw, 250px);
  grid-auto-flow: dense;
  gap: 14px;
}
.shot {
  position: relative; overflow: hidden; margin: 0; border-radius: var(--r-md);
  background: var(--line-2); cursor: zoom-in;
  border: 0; padding: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out), filter .4s; }
.shot:hover img { scale: 1.06; }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; grid-row: span 2; }
.shot figcaption, .shot .cap {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .92); color: var(--navy-900);
  font-size: .8rem; font-weight: 600;
  translate: 0 6px; opacity: 0; transition: opacity .3s, translate .4s var(--ease-out);
}
.shot:hover .cap, .shot:focus-visible .cap { opacity: 1; translate: 0 0; }
.shot[hidden] { display: none; }
@media (max-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .shot--wide { grid-column: span 2; }
  .shot .cap { opacity: 1; translate: 0 0; }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: rgb(7 29 51 / .94); color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; overflow: hidden; }
/* Bar + nav take ~160px; keep the photo inside the viewport height */
.lightbox__stage img {
  width: auto; height: auto;
  max-width: 100%; max-height: calc(100dvh - 170px);
  border-radius: var(--r-md); object-fit: contain;
}
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #fff;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgb(255 255 255 / .12); }

/* ---------------- Contact ---------------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact .contour-bg { z-index: -1; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.contact__info { display: grid; gap: 28px; align-content: start; }
.big-phone {
  display: inline-flex; align-items: center; gap: 20px; justify-self: start;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.big-phone small { display: block; font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--on-navy-2); margin-bottom: 6px; }
.big-phone__ic {
  width: clamp(56px, 5vw, 76px); height: clamp(56px, 5vw, 76px); border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--green-700); color: #fff;
  transition: transform .4s var(--ease-out), background-color .3s;
}
.big-phone__ic .lucide { width: 45%; height: 45%; }
.big-phone:hover .big-phone__ic { transform: rotate(-12deg) scale(1.06); background: var(--green-800); }
.big-phone:hover { color: var(--green-300); }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card {
  display: grid; gap: 8px; padding: 22px; border-radius: var(--r-md);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  text-decoration: none; color: var(--on-navy);
  transition: background-color .3s, border-color .3s;
}
a.info-card:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .3); }
.info-card .lucide { color: var(--green-300); width: 24px; height: 24px; }
.info-card small { color: var(--on-navy-2); font-size: .82rem; font-weight: 600; }
.info-card strong { color: #fff; font-size: 1.05rem; line-height: 1.35; font-weight: 600; }
.hours {
  padding: 26px; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.hours__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.hours__head h3 { font-size: 1.35rem; color: var(--navy-900); }
.hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 10px 12px; border-top: 1px solid var(--line-2); font-size: .98rem; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy-900); }
.hours tr.is-closed td:last-child { color: var(--ink-3); font-weight: 500; }
.hours tr.is-today td { background: var(--green-100); }
.hours tr.is-today td:first-child { border-radius: 10px 0 0 10px; font-weight: 700; }
.hours tr.is-today td:last-child { border-radius: 0 10px 10px 0; color: var(--green-800); }
.hours tr.is-today + tr td, .hours tr.is-today td { border-top-color: transparent; }
.map {
  position: relative; min-height: 520px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgb(255 255 255 / .15); box-shadow: var(--shadow-lg); background: var(--navy-800);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.map__pin {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 14px 14px 20px; border-radius: var(--r-md); background: #fff; color: var(--ink); box-shadow: var(--shadow-md);
}
.map__pin strong { display: block; color: var(--navy-900); }
.map__pin small { color: var(--ink-3); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .22); color: #fff;
  transition: background-color .25s, color .25s, border-color .25s;
}
.socials a:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
}
@media (max-width: 480px) {
  .contact__cards { grid-template-columns: 1fr; }
}

/* ---------------- CTA band ---------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: var(--green-700);
  color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); max-width: 18ch; }
.cta-band .contour-bg { z-index: -1; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--light:hover { background: var(--navy-900); color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 64px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { margin-top: 18px; color: var(--ink-3); max-width: 34ch; font-size: .95rem; }
.site-footer h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--blue); text-decoration: underline; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--ink-3);
}
.footer__bottom a { color: var(--navy-900); font-weight: 700; }
.footer__bottom a:hover { color: var(--blue); }
.socials--dark a { border-color: var(--line); color: var(--navy-900); }
.socials--dark a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------------- Booking modal ---------------- */
.modal {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgb(7 29 51 / .55); backdrop-filter: blur(4px); }
.modal__head {
  flex: none;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px 28px 22px; background: var(--navy-900); color: #fff;
}
.modal__head .contour-bg { z-index: -1; }
.modal__head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); padding-right: 48px; }
.modal__head p { color: var(--on-navy-2); margin-top: 8px; font-size: .98rem; }
.modal__close { position: absolute; top: 18px; right: 18px; }
.modal__body { padding: 24px 28px 28px; overflow-y: auto; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 22px;
}
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; color: var(--ink-2);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy-900); }
.field label .opt { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d8a95; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue-200); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100);
}
.field.has-error input, .field.has-error select { border-color: #c2412d; }
.field__err { display: none; color: #b3381f; font-size: .85rem; font-weight: 600; }
.field.has-error .field__err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-foot small { color: var(--ink-3); max-width: 36ch; font-size: .85rem; line-height: 1.4; }
.is-message-mode .only-book { display: none; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal__body, .modal__head { padding-inline: 20px; }
  .form-foot .btn { width: 100%; }
  .seg button { font-size: .9rem; line-height: 1.2; padding-inline: 8px; }
}

/* ---------------- Page head (inner pages) ---------------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px); }
.page-head .contour-bg { z-index: -1; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Navy veil keeps the white title readable over the photo */
.page-head__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(11 42 74 / .94) 0%, rgb(11 42 74 / .82) 45%, rgb(11 42 74 / .55) 100%);
}
.page-head__intro { display: grid; gap: 22px; max-width: 820px; }
.page-head__title { font-size: clamp(2.8rem, 2rem + 4vw, 6rem); line-height: .96; letter-spacing: -0.04em; }

/* ---------------- Services page ---------------- */
.svc-index { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1200px) { .svc-index { grid-template-columns: repeat(3, 1fr); } }
.grp-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  min-height: 210px; padding: 24px; border-radius: var(--r-lg);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14);
  color: #fff; text-decoration: none;
  transition: background-color .35s var(--ease-out), border-color .35s, transform .5s var(--ease-out), color .35s;
}
.grp-card strong { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); line-height: 1.08; letter-spacing: -0.02em; align-self: end; }
.grp-card__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgb(255 255 255 / .1); color: var(--green-300); transition: background-color .35s, color .35s; }
.grp-card__ic .lucide { width: 26px; height: 26px; }
.grp-card__foot { display: flex; justify-content: space-between; align-items: center; color: var(--on-navy-2); font-weight: 600; }
.grp-card__foot .lucide { transition: translate .4s var(--ease-out); }
.grp-card:hover { background: #fff; border-color: #fff; color: var(--navy-900); transform: translateY(-4px); }
.grp-card:hover .grp-card__ic { background: var(--green-100); color: var(--green-700); }
.grp-card:hover .grp-card__foot { color: var(--ink-3); }
.grp-card:hover .grp-card__foot .lucide { translate: 0 4px; color: var(--green-700); }
@media (max-width: 960px) { .svc-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .grp-card { min-height: 170px; padding: 20px; } .svc-index { gap: 10px; } }
.svc-group-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.svc-group-row__label { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.svc-group-row__label .lucide { width: 22px; height: 22px; color: var(--green-300); }
.svc-group-row__label strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; }
.svc-group-row__label small { display: block; color: var(--on-navy-2); font-size: .8rem; font-weight: 600; }
.svc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.svc-chip {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 40px 12px 12px; border-radius: var(--r-md);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; line-height: 1.25;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease-out);
}
.svc-chip > span:not(.svc-chip__ic) { overflow-wrap: anywhere; hyphens: auto; }
.svc-chip:hover { background: #fff; color: var(--navy-900); border-color: #fff; transform: translateY(-3px); }
.svc-chip__ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: rgb(255 255 255 / .1); color: var(--green-300);
  transition: background-color .3s, color .3s;
}
.svc-chip:hover .svc-chip__ic { background: var(--green-100); color: var(--green-700); }
.svc-chip__arrow { position: absolute; right: 14px; top: 50%; translate: 0 -50%; opacity: .5; transition: translate .3s var(--ease-out), opacity .3s; }
.svc-chip:hover .svc-chip__arrow { opacity: 1; translate: 0 -30%; }
@media (max-width: 760px) {
  .svc-group-row { grid-template-columns: 1fr; gap: 12px; }
  .svc-group-row__label { padding-top: 0; }
  .svc-chips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .svc-chips { grid-template-columns: 1fr; } }

.svc-section { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.svc-section:nth-of-type(even) { background: var(--surface); }
.svc-section__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.svc-section__head figure { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.svc-section__head figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-section__head .group-ic {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 20px;
}
.svc-section__head .group-ic .lucide { width: 28px; height: 28px; }
.svc-section__head p { margin-top: 16px; }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article {
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color .3s, box-shadow .4s var(--ease-out);
}
.svc-section:nth-of-type(even) .article { background: var(--bg); }
.article:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.article:target { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-100), var(--shadow-md); }
.article__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.article__ic {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--green-300);
}
.article__ic .lucide { width: 28px; height: 28px; }
.article h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); color: var(--navy-900); letter-spacing: -0.02em; }
.article p { color: var(--ink-2); }
.article__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-top: 6px; }
.article > .contour-bg { z-index: 0; -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 62%); mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 62%); }
.article > *:not(.contour-bg) { position: relative; z-index: 1; }
.article__contour { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .5; pointer-events: none; }
.article--wide { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .svc-section__head { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr; }
}

/* ---------------- Team page ---------------- */
.team-mosaic {
  position: relative;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  margin-top: clamp(40px, 5vw, 64px);
}
.team-mosaic a {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md);
  background: var(--line-2);
}
.team-mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: scale .7s var(--ease-out), filter .4s; }
.team-mosaic a:hover img { scale: 1.06; }
.team-mosaic a span {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 10px;
  background: rgb(255 255 255 / .94); font-size: .74rem; font-weight: 700; color: var(--navy-900);
  line-height: 1.2; text-align: center;
  opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s var(--ease-out);
}
.team-mosaic a:hover span, .team-mosaic a:focus-visible span { opacity: 1; translate: 0 0; }
@media (max-width: 860px) { .team-mosaic { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .team-mosaic { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
/* Team hero: copy left, all 16 cards right, sized to fit the first screen */
.team-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.team-hero .team-mosaic {
  margin-top: 0; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  height: clamp(520px, calc(100svh - var(--header-h) - 150px), 760px);
}
.team-hero .team-mosaic a { aspect-ratio: auto; min-height: 0; }
.team-hero .team-mosaic img { object-position: center 45%; }
@media (max-width: 1100px) {
  .team-hero { grid-template-columns: 1fr; }
  .team-hero .team-mosaic { height: auto; grid-template-columns: repeat(8, 1fr); grid-template-rows: none; margin-top: 8px; }
  .team-hero .team-mosaic a { aspect-ratio: 4 / 5; }
}
@media (max-width: 860px) { .team-hero .team-mosaic { grid-template-columns: repeat(4, 1fr); } }

.team-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.team-stat {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.team-stat strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1; }
.team-stat span { color: var(--ink-2); font-weight: 600; font-size: .95rem; }

.team-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  padding-block: 14px; background: rgb(245 248 250 / .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.team-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.coord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.member {
  position: relative;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow .4s var(--ease-out), border-color .3s, translate .5s var(--ease-out);
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.member:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); translate: 0 -4px; }
.member:target { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-100), var(--shadow-md); }
.member__photo { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--line-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: scale .9s var(--ease-out); }
.member:hover .member__photo img { scale: 1.04; }
.member__dept {
  position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: rgb(255 255 255 / .94); color: var(--navy-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.member__dept i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.member[data-dept="exercicio"] .member__dept i { background: var(--green); }
.member__body { display: grid; align-content: start; gap: 14px; padding: 22px 22px 24px; }
.member__name { font-size: 1.45rem; color: var(--navy-900); letter-spacing: -0.02em; }
.member__role { color: var(--ink-3); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li {
  padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--blue-100); color: var(--blue-700);
}
.member[data-dept="exercicio"] .tags li { background: var(--green-100); color: var(--green-800); }
.member details { border-top: 1px solid var(--line-2); padding-top: 12px; }
.member summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 700; font-size: .92rem; color: var(--navy-900); min-height: 36px;
}
.member summary::-webkit-details-marker { display: none; }
.member summary .lucide { transition: rotate .35s var(--ease-out); color: var(--blue); }
.member details[open] summary .lucide { rotate: 45deg; }
.creds { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.creds li { position: relative; padding-left: 20px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.creds li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--green);
}
.member__book { margin-top: 4px; justify-self: start; }
.member--coord { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: none; }
/* Coordinators: show the whole photo, never crop */
.member--coord .member__photo { aspect-ratio: 558 / 741; align-self: start; }
.member--coord .member__photo img { height: auto; object-fit: contain; }
.member--coord:hover .member__photo img { scale: 1; }
/* Matilde's photo is wider: match Francisco's height, trimming only wall on the left */
#matilde-machado .member__photo img { height: 100%; object-fit: cover; object-position: 62% center; }
.member--coord .member__name { font-size: 1.8rem; }
.member--coord .member__role { color: var(--green-700); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.team-grid .member[hidden], .coord-grid .member[hidden] { display: none; }
.dept-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 28px; }
.dept-head small { color: var(--ink-3); font-weight: 600; }
@media (max-width: 960px) { .coord-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .member--coord { grid-template-columns: 1fr; }
  .member--coord .member__photo { aspect-ratio: 558 / 741; }
}

/* ---------------- Motion: authored moments ---------------- */
/* Pressure lines draw themselves in, like a scan being taken */
.contours-armed .contour-bg path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-out);
}
.contours-armed .contour-bg path:nth-child(3n+1) { transition-delay: .15s; }
.contours-armed .contour-bg path:nth-child(3n+2) { transition-delay: .35s; }
.contours-armed .contour-bg.is-drawn path { stroke-dashoffset: 0; }

/* Underline under the hero promise draws after the title lands */
.js .hero__title em::after {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out) .55s;
}
.js .hero__title.is-in em::after { clip-path: inset(0 0 0 0); }

/* Gait line traces left to right, steps follow (delays set inline) */
.js .path__line { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-in-out); }
.js .path-wrap.is-in .path__line { clip-path: inset(0 0 0 0); }

/* Booking modal: rise into focus; backdrop dims */
.modal[open] { animation: modal-in .45s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in .3s var(--ease-out); }
.lightbox[open] { animation: fade-in .3s var(--ease-out); }
.lightbox__stage img { animation: photo-in .5s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; translate: 0 24px; scale: .97; filter: blur(4px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes photo-in { from { opacity: 0; scale: .97; } }
.is-message-mode .only-book { display: none; }

/* Service reached from the index: a short pulse confirms the destination */
.article:target { animation: target-pulse 1.4s var(--ease-out) .35s; }
@keyframes target-pulse {
  0% { box-shadow: 0 0 0 0 rgb(112 169 76 / .55), var(--shadow-md); }
  100% { box-shadow: 0 0 0 18px rgb(112 169 76 / 0), var(--shadow-md); }
}

/* Credentials open smoothly where supported */
:root { interpolate-size: allow-keywords; }
.member details::details-content {
  block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size .45s var(--ease-out), opacity .3s, content-visibility .45s allow-discrete;
}
.member details[open]::details-content { block-size: auto; opacity: 1; }

/* Language switch crossfade */
::view-transition-old(root) { animation: .22s ease-in both fade-out; }
::view-transition-new(root) { animation: .32s var(--ease-out) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }

/* Header actions acknowledge press */
.btn:active, .chip:active, .lang__btn:active { scale: .97; }

/* ---------------- Motion: reveal system ---------------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="clip"] {
  translate: none; filter: none;
  clip-path: inset(12% 12% 12% 12% round var(--r-lg));
  transition: opacity .8s var(--ease-out), clip-path 1.2s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; filter: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; filter: none; clip-path: none; }
  .marquee__track { animation: none; overflow-x: auto; }
  .marquee { overflow-x: auto; }
  .contours-armed .contour-bg path { stroke-dashoffset: 0; }
  .js .hero__title em::after, .js .path__line { clip-path: none; }
}

/* ---------------- Virtual assistant ---------------- */
.assist { --as-gap: clamp(16px, 2.2vw, 28px); position: fixed; right: var(--as-gap); bottom: var(--as-gap); z-index: 95; font-family: var(--font-body); }
.assist__launcher {
  position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--navy-900);
  background: #fff; outline: 1px solid var(--line); outline-offset: -1px;
  box-shadow: 0 18px 40px -14px rgb(7 29 51 / .5), 0 4px 10px -4px rgb(7 29 51 / .25);
  transition: background-color .2s, scale .3s var(--ease-out);
}
.assist__launcher:hover { scale: 1.06; }
.assist.is-open .assist__launcher { background: var(--navy-900); color: #fff; outline-color: var(--navy-900); }
.assist__launcher:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.assist__launcher-ic { grid-area: 1 / 1; width: 36px; height: 36px; object-fit: contain; transition: opacity .25s, rotate .35s var(--ease-out), scale .35s var(--ease-out); }
.assist__launcher-ic--close { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: 0; rotate: -90deg; scale: .6; }
.assist.is-open .assist__launcher-ic--chat { opacity: 0; rotate: 90deg; scale: .6; }
.assist.is-open .assist__launcher-ic--close { opacity: 1; rotate: 0deg; scale: 1; }
.assist__badge {
  position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2.5px solid #fff;
}
.assist.is-open .assist__badge, .assist.is-seen .assist__badge { display: none; }

/* Teaser bubble */
.assist__teaser { position: absolute; right: 0; bottom: 78px; display: flex; align-items: flex-start; gap: 6px; width: max-content; max-width: min(300px, calc(100vw - 2 * var(--as-gap))); }
.assist__teaser[hidden] { display: none; }
.assist__teaser:not([hidden]) { animation: assist-pop .5s var(--ease-out); }
.assist__teaser-msg {
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left;
  padding: 14px 16px; border-radius: 18px 18px 4px 18px; font: inherit; font-size: .92rem; font-weight: 500; line-height: 1.4;
  box-shadow: var(--shadow-md);
}
.assist__teaser-msg:hover { border-color: var(--blue-200); }
.assist__teaser-x {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
}
.assist__teaser-x .lucide { width: 14px; height: 14px; }

/* Panel */
.assist__panel {
  position: absolute; right: 0; bottom: 80px;
  width: min(392px, calc(100vw - 2 * var(--as-gap)));
  height: min(640px, calc(100dvh - var(--header-h) - 120px));
  display: grid; grid-template-rows: auto 1fr auto auto auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform-origin: 100% 100%;
}
.assist__panel[hidden] { display: none; }
.assist__panel:not([hidden]) { animation: assist-in .45s var(--ease-out); }
@keyframes assist-in { from { opacity: 0; scale: .92; translate: 0 12px; } }
@keyframes assist-pop { from { opacity: 0; translate: 0 8px; } }

.assist__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(112 169 76 / .28) 0%, transparent 55%),
    var(--navy-900);
  color: #fff;
}
.assist__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .14);
}
.assist__avatar img { width: 28px; height: 28px; object-fit: contain; }
.assist__who { flex: 1; min-width: 0; }
.assist__who h2 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.assist__who p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--on-navy-2); }
.assist__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 3px rgb(169 209 140 / .25); }
.assist__icon-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--on-navy);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s;
}
.assist__icon-btn:hover { background: rgb(255 255 255 / .12); }
.assist__icon-btn .lucide { width: 18px; height: 18px; }

.assist__log { overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.assist__day { align-self: center; font-size: .72rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 4px; }
.assist__msg { max-width: 86%; display: grid; gap: 8px; animation: assist-pop .35s var(--ease-out); }
.assist__bubble { padding: 11px 14px; font-size: .92rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.assist__bubble p { margin: 0; }
.assist__bubble p + p { margin-top: 6px; }
.assist__bubble strong { color: var(--navy-900); }
.assist__msg--bot { align-self: flex-start; }
.assist__msg--bot .assist__bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; }
.assist__msg--user { align-self: flex-end; }
.assist__msg--user .assist__bubble { background: var(--navy-900); color: #fff; border-radius: 16px 4px 16px 16px; }
.assist__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.assist__action {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--blue-200); background: var(--blue-100); color: var(--blue-700);
  font: inherit; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.assist__action:hover { background: #fff; border-color: var(--blue); }
.assist__action--primary { background: var(--green); border-color: var(--green); color: #fff; }
.assist__action--primary:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.assist__action .lucide { width: 15px; height: 15px; }
.assist__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.assist__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); animation: assist-dot 1.1s infinite ease-in-out; }
.assist__typing i:nth-child(2) { animation-delay: .15s; }
.assist__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes assist-dot { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -4px; } }

.assist__chips { display: flex; gap: 6px; padding: 8px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.assist__chips::-webkit-scrollbar { display: none; }
.assist__chips button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-900); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.assist__chips button:hover { border-color: var(--blue); background: var(--blue-100); }
.assist__chips .lucide { width: 15px; height: 15px; color: var(--green-700); }

.assist__form {
  display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  transition: border-color .2s, box-shadow .2s;
}
.assist__form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.assist__form textarea {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; padding: 8px 0;
  font: inherit; font-size: .95rem; line-height: 1.4; color: var(--ink); max-height: 120px;
}
.assist__form textarea::placeholder { color: #7d8a95; }
.assist__send {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--green); color: #fff; transition: background-color .2s, opacity .2s;
}
.assist__send:hover { background: var(--green-700); }
.assist__send:disabled { opacity: .4; cursor: default; background: var(--green); }
.assist__send .lucide { width: 18px; height: 18px; }
.assist__note { margin: 0; padding: 8px 16px 12px; text-align: center; font-size: .72rem; color: var(--ink-3); }

@media (max-width: 600px) {
  .assist { --as-gap: 16px; }
  .assist__launcher { width: 58px; height: 58px; }
  .assist__teaser { bottom: 70px; }
  .assist.is-open .assist__launcher { display: none; }
  .assist__panel { position: fixed; inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .assist__panel:not([hidden]), .assist__teaser:not([hidden]), .assist__msg { animation: none; }
  .assist__typing i { animation: none; opacity: .6; }
}

/* ---------------- Legal ---------------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { font-weight: 600; color: var(--ink-2); }
.form-foot small a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal { padding-block: clamp(24px, 4vw, 48px) clamp(80px, 10vw, 140px); }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; font-size: .92rem; }
.legal__toc-t { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.legal__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.legal__toc a:hover { color: var(--navy-900); border-left-color: var(--green); }
.legal__updated { margin: 8px 0 0; font-size: .8rem; color: var(--ink-3); }
.legal__body { max-width: 74ch; display: grid; gap: 56px; }
.legal__lang-note { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--blue-100); color: var(--blue-700); font-size: .88rem; }
html:lang(pt-PT) .legal__lang-note { display: none; }
.legal__sec { scroll-margin-top: calc(var(--header-h) + 24px); color: var(--ink-2); line-height: 1.65; }
.legal__sec h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); letter-spacing: -.02em; color: var(--navy-900); }
.legal__sec h3 { margin: 28px 0 8px; font-size: 1.05rem; color: var(--navy-900); }
.legal__sec p { margin: 0 0 12px; }
.legal__sec ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__sec a { color: var(--blue-700); font-weight: 600; }
.legal__id { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.legal__id dt { font-weight: 600; color: var(--navy-900); }
.legal__id dd { margin: 0; }
.legal__id small { color: var(--ink-3); }
.legal__todo { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.legal__table { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal__table th, .legal__table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.legal__table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__lre {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-900) !important; text-decoration: none; box-shadow: var(--shadow-sm);
}
.legal__lre:hover { border-color: var(--blue); }
.legal__lre .lucide { width: 18px; height: 18px; color: var(--green-700); }
@media (max-width: 860px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__id { grid-template-columns: 1fr; gap: 2px; }
  .legal__id dd { margin-bottom: 10px; }
}
