/* Centro Odontológico Leão — landing page */

:root {
  --navy: #1B2540;
  --navy-2: #243052;
  --ink: #111319;
  --gold: #C9A85C;
  --gold-soft: #E3CC94;
  --gold-ink: #D6B770;   /* dourado de texto sobre fundo escuro */
  --sand: #0B0D14;
  --sand-2: #1B2030;
  --paper: #10131D;
  --surface: #171C2B;
  --strong: #F4EFE7;
  color-scheme: dark;
  --text: #E4E1DB;
  --muted: #ABA8A2;
  --line: rgba(244, 239, 231, .14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --section: clamp(3.5rem, 8vw, 7rem);     /* between sections */
  --after-head: clamp(1.8rem, 3.5vw, 3rem); /* section title to its content */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--strong); letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, blockquote { text-wrap: pretty; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--navy); color: #fff; border-radius: 10px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem;
  font: 600 .95rem var(--sans); text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--gold); color: var(--ink); }
.btn--dark:hover { background: var(--gold-soft); }
.btn--line { border-color: var(--line); color: var(--strong); background: transparent; }
.btn--line:hover { border-color: var(--gold); }
.btn--full { width: 100%; }

.link {
  display: inline-flex; gap: .4rem; align-items: center;
  font-weight: 700; font-size: .92rem; color: var(--gold-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link span { transition: transform .3s var(--ease); }
.link:hover span { transform: translateX(4px); }
.link--light { color: var(--gold-soft); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(17, 19, 25, .4); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--strong); margin: 0; }
.brand__mono {
  font: 600 1.85rem/1 var(--serif); letter-spacing: .02em;
  color: var(--gold-ink);
  padding-right: .75rem; border-right: 1px solid var(--line);
}
.brand__name { font-size: .72rem; line-height: 1.35; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.brand__name b { font-weight: 700; letter-spacing: .5em; }
.brand--light { color: #fff; }
.brand--light .brand__mono { color: var(--gold); border-color: rgba(255, 255, 255, .2); }

.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--text); position: relative; padding: .3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--strong);
  transition: border-color .25s var(--ease);
}
.header__phone:hover { border-color: var(--gold); }
.header__phone svg { width: 16px; height: 16px; }

.menu-btn { display: none; }

/* Hero */
.hero { position: relative; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem); background: #000; /* same black as the photo backdrop, so no frame shows */ overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin: 1.2rem 0 1.4rem; line-height: .98; }
.hero h1 .line { display: block; }
.hero h1 .line--gold { color: var(--gold-ink); }
.lead { font-size: 1.12rem; max-width: 34rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.proof { list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; }
.proof li { display: flex; align-items: center; gap: .75rem; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.proof b { color: var(--strong); font-weight: 700; }
.proof svg { width: 30px; height: 30px; color: var(--gold-ink); flex: none; }
.proof__stars { color: var(--gold-ink); letter-spacing: .08em; font-size: .95rem; }

/* Portrait melts into the page */
.hero__media { position: relative; justify-self: end; width: min(100%, 560px); }
.facade { position: relative; aspect-ratio: 640 / 720; }
.facade__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  padding-top: 6%; /* keeps the hair clear of the top fade */
  mask-image:
    linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(180deg, transparent, #000 8%, #000 82%, transparent);
  mask-composite: intersect;
}
.facade__sign {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 2; text-align: center;
  font: italic 500 1.7rem var(--serif); color: var(--gold-soft); letter-spacing: .02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
}

.status {
  position: absolute; left: 0; bottom: 2.6rem; z-index: 3;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.15rem .85rem .95rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  font-size: .85rem; line-height: 1.3;
}
.status b { display: block; color: var(--strong); }
.status small { color: var(--muted); font-size: .8rem; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #B8B3AA; flex: none; }
.status.is-open .status__dot { background: #2E9E5B; animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, .5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(46, 158, 91, 0); }
}

/* Sections */
.section { padding: var(--section) 0; }
.section__head { max-width: 40rem; margin-bottom: var(--after-head); }
.section__head h2:not(:last-child) { margin-bottom: 1rem; }
/* on wide screens the intro text sits beside its title, on the same columns as the cards */
@media (min-width: 901px) {
  .section__head:has(p) { max-width: none; display: grid; grid-template-columns: 1.3fr 2fr; gap: 1.1rem; align-items: end; }
  .section__head:has(p) h2 { margin: 0; }
  .section__head:has(p) p { max-width: 30rem; }
}
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(230px, auto); gap: 1.1rem; }
.service {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service::after {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(27, 37, 64, .5); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service svg { width: 52px; height: 52px; color: var(--gold-ink); stroke-width: 1.3; margin-bottom: auto; }
.service h3 { margin-top: 1.4rem; }
.service p { color: var(--muted); font-size: .95rem; }
.service .link { align-self: flex-start; }

.service--main {
  grid-row: span 2; background: var(--navy); border-color: var(--navy); color: #fff;
  padding: 2.6rem 2.2rem; overflow: clip; /* hidden would capture the scroll timeline */
}
.service--main::before {
  content: ""; position: absolute; right: -30%; top: -20%; width: 90%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(201, 168, 92, .25), transparent);
}
.service--main .implant { width: 100%; max-width: 310px; height: auto; margin: 0 auto auto; stroke: none; }
.service--main h3 { color: #fff; font-size: clamp(2rem, 3vw, 2.6rem); }
.service--main p { color: rgba(255, 255, 255, .78); font-size: 1.02rem; max-width: 26rem; }
.service--main .link { color: var(--gold-soft); margin-top: .8rem; }

/* The implant, assembled by scrolling. Without scroll timelines it simply shows assembled. */
.implant { view-timeline-name: --implant; }
.implant__bone { fill: rgba(201, 168, 92, .12); }
.implant__gum { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.implant__thread { fill: none; stroke: #3d4458; stroke-width: 3; }
.implant__shine { fill: none; stroke: #fff; stroke-width: 4; }
.implant__label path { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 4; }
.implant__label text { fill: var(--strong); stroke: none; font: 600 22px var(--serif); }
.implant__label .implant__note { fill: rgba(255, 255, 255, .72); font: 500 14px var(--sans); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .implant :is(.implant__root, .implant__post, .implant__crown, .implant__label, .implant__shine) {
      animation: seat linear both; animation-timeline: --implant;
    }
    .implant .implant__root { --from: 20px; animation-range: cover 8% cover 22%; }
    .implant .implant__post { --from: -14px; animation-range: cover 18% cover 30%; }
    .implant .implant__crown { --from: -48px; animation-range: cover 26% cover 40%; animation-timing-function: cubic-bezier(.3, .6, .3, 1.25); }
    .implant .implant__label { animation-name: label-in; }
    .implant .implant__label--root { animation-range: cover 18% cover 26%; }
    .implant .implant__label--post { animation-range: cover 28% cover 34%; }
    .implant .implant__label--crown { animation-range: cover 36% cover 42%; }
    .implant .implant__shine { animation-name: glint; animation-range: cover 40% cover 47%; }
  }
}
@keyframes seat { from { transform: translateY(var(--from)); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes label-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes glint { from { opacity: 0; } 60% { opacity: 1; } to { opacity: .8; } }

/* Stroke-draw on reveal */
.draw * { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.6s var(--ease) .15s; }
.is-in .draw *, .is-in.draw * { stroke-dashoffset: 0; }

/* About */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--sand-2);
}
.about__media figcaption {
  position: absolute; right: -1rem; bottom: 2rem; max-width: 13rem;
  padding: .8rem 1rem; border-radius: 14px; background: var(--navy); color: rgba(255, 255, 255, .85);
  font-size: .8rem; line-height: 1.4;
}
.about__copy h2 { margin: 0 0 1.4rem; }
.about__copy > p { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.about__copy > p + p { margin-top: 1rem; }

.timeline { position: relative; list-style: none; padding: 0; margin: 2.2rem 0; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--gold); transform-origin: top; }
.timeline li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .55rem 0 .55rem 1.4rem; font-size: .95rem; }
.timeline li::before { content: ""; position: absolute; left: -3px; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.timeline b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--strong); line-height: 1.2; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stats div { padding: 1.3rem 1rem 0 0; }
.stats div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.stats dt { font: 600 2.6rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--strong); }
.stats dd { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* Reviews */
.reviews {
  position: relative; padding: var(--section) 0; color: #fff;
  background: var(--navy);
  border-radius: 48px 48px 0 0;
  margin-top: -1px;
}
.reviews h2 { color: #fff; }
.reviews__head { margin-bottom: clamp(.8rem, 2vw, 1.6rem); } /* the ring adds its own 24px */

.reviews__track {
  list-style: none; padding: 0 0 .5rem; margin: 0 0 1.2rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.2rem) / 3); gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.8rem; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08);
}
.review__stars { color: var(--gold); letter-spacing: .12em; }
.review blockquote { margin: 0; font: italic 500 1.32rem/1.35 var(--serif); color: #fff; flex: 1; }
.review__who { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.review__avatar {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.review__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Circular carousel (after React Bits' CircularCarousel). Without JS the list stays a scroll row. */
.reviews__track.is-ring {
  position: relative; display: block; overflow: hidden; overflow: clip; scroll-snap-type: none; padding: 0; height: var(--ring-h);
  perspective: 2500px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.reviews__track.is-ring.is-dragging { cursor: grabbing; }
.is-ring .review {
  position: absolute; top: 24px; left: calc(50% - var(--card-w) / 2); width: var(--card-w); min-height: var(--card-h);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.reviews__track { --card-w: min(320px, 68vw); }

/* Booking */
.book { background: var(--sand); }
.book__grid { display: grid; grid-template-columns: .9fr 1.1fr .7fr; gap: clamp(1.8rem, 3.5vw, 3rem); align-items: start; }
.book__media { margin: 0; align-self: stretch; }
.book__media img {
  width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 8% 50%;
  border-radius: 999px 999px var(--radius) var(--radius); background: var(--sand-2);
}
.book__form h2 { margin: 0 0 .8rem; }
.book__form > .muted { font-size: .95rem; margin-bottom: 1.6rem; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--strong); padding: 0; }
.field input[type="text"], .field select {
  width: 100%; min-height: 52px; padding: 0 1rem;
  font: 500 1rem var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A85C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 168, 92, .18); }
.field__error { display: none; color: #FF9B85; font-size: .82rem; }
.field.is-invalid input { border-color: #FF9B85; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid { animation: nudge .35s var(--ease); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.field--choice { grid-template-columns: 1fr 1fr; gap: .5rem; }
.field--choice legend { margin-bottom: .4rem; }
.field--choice label { position: relative; }
.field--choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field--choice label span {
  display: grid; place-items: center; min-height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.field--choice input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.field--choice input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.form .btn { margin-top: .6rem; }

.book__info { padding: 1.8rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.book__info h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.book__info h3 + ul + h3 { margin-top: 1.8rem; }
.info, .hours { list-style: none; padding: 0; margin: 0; }
.info a { font-weight: 700; color: var(--strong); text-decoration: none; font-size: 1.05rem; }
.info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info small { display: block; color: var(--muted); font-size: .82rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.hours b { color: var(--strong); white-space: nowrap; }
.book__info .small { margin-top: 1rem; }

/* Units */
.units__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.4rem; }
.units__tabs, .units__list { display: flex; flex-direction: column; gap: .8rem; }
.units__tabs [role="tab"] {
  text-align: left; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--text);
  display: grid; gap: .35rem;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.units__tabs [role="tab"] b { font: 600 1.6rem/1.1 var(--serif); color: var(--strong); transition: color .3s var(--ease); }
.units__tabs [role="tab"] span { font-size: .9rem; color: var(--muted); transition: color .3s var(--ease); }
.units__tabs [role="tab"]:hover { border-color: var(--gold); }
.units__tabs [aria-selected="true"] { background: var(--navy); border-color: var(--gold); }
.units__tabs [aria-selected="true"] b { color: var(--gold); }
.units__tabs [aria-selected="true"] span { color: rgba(255, 255, 255, .8); }
.units__book { margin-top: auto; }
.units__map { min-height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); }
.units__map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; transition: opacity .4s var(--ease); }
.units__map.is-loading iframe { opacity: .25; }

/* Footer */
.footer { background: #07080D; color: rgba(255, 255, 255, .7); padding: 4rem 0 2rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer nav { display: grid; gap: .5rem; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__note { margin-top: 1rem; max-width: 22rem; }
.footer__wa { font: 600 1.6rem var(--serif); font-variant-numeric: lining-nums; color: var(--gold); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 5rem 0 0; font-size: .82rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transform: translateY(120%) scale(.8); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .45s var(--ease), visibility .45s;
}
.wa-float.is-shown:not(.is-away) { transform: none; opacity: 1; visibility: visible; }
.wa-float svg { width: 28px; height: 28px; stroke-width: 1.7; }

/* Form follow-up and missing photos */
.form__sent { font-size: .9rem; color: var(--muted); }
.form__sent a { color: var(--gold-ink); font-weight: 700; }
figure.is-missing { display: grid; place-items: center; min-height: 240px; background: var(--sand-2); border-radius: var(--radius); }
figure.is-missing::before { content: "COL"; grid-area: 1 / 1; font: 600 2.4rem var(--serif); color: var(--gold-ink); }
figure.is-missing img { grid-area: 1 / 1; }

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

@media (min-width: 361px) and (max-width: 620px) {
  .header__inner { gap: .5rem; }
  .header .brand__name { white-space: nowrap; }
}

/* Motion: the portrait arrives and gets signed. Visible by default if animations never run. */
:root { --out: cubic-bezier(.16, 1, .3, 1); }
.hero h1 .line { animation: line-in .8s var(--out) both; }
.hero h1 .line--gold { animation-delay: .12s; }
.lead, .hero__actions, .proof { animation: settle .6s var(--out) .3s both; }
.facade__img { animation: arrive 1.1s var(--out) both; }
.facade__sign { animation: sign 1.2s cubic-bezier(.6, 0, .3, 1) .7s both; }
.status { animation: settle .5s var(--out) 1.6s both; }
@keyframes line-in { from { clip-path: inset(0 0 100% 0); transform: translateY(.35em); } to { clip-path: inset(-10% -5% -25% 0); transform: none; } }
@keyframes settle { from { opacity: 0; translate: 0 10px; } }
@keyframes arrive { from { opacity: 0; scale: 1.05; } }
@keyframes sign { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% 0 -30% 0); } }

/* Arched photos open from the floor up, like a door */
.js .about__media.reveal, .js .book__media.reveal, .js .timeline.reveal { opacity: 1; transform: none; }
.js .about__media img, .js .book__media img { clip-path: inset(45% 0 0 0); transition: clip-path 1s var(--out); }
.js .about__media.is-in img, .js .book__media.is-in img { clip-path: inset(0); }

/* The training timeline draws itself in order */
.js .timeline::before { transform: scaleY(0); transition: transform .9s var(--out); }
.js .timeline li { opacity: 0; translate: -8px 0; transition: opacity .4s var(--out), translate .5s var(--out); }
.js .timeline.is-in::before { transform: none; }
.js .timeline.is-in li { opacity: 1; translate: 0 0; }
.js .timeline li:nth-child(2) { transition-delay: .25s; }
.js .timeline li:nth-child(3) { transition-delay: .5s; }

.form__sent:not([hidden]) { animation: settle .3s var(--out) both; }

/* Responsive */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .book__grid { grid-template-columns: 1fr 1fr; }
  .book__media { grid-row: span 2; align-self: start; }
  .book__media img { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header__inner { gap: .6rem; }
  .header__phone { display: inline-flex; justify-content: center; width: 46px; height: 46px; padding: 0; margin-left: auto; flex: none; }
  .header__phone span { display: none; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
  }
  .menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--strong); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.5rem;
    background: var(--paper); box-shadow: 0 20px 30px -20px rgba(17, 19, 25, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }

  .hero__grid, .about__grid, .units__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; width: min(100%, 460px); }
  .hero { padding-top: .5rem; }
  .hero__media { order: -1; }
  .facade { aspect-ratio: 6 / 5; }
  .status { position: static; width: fit-content; margin: .4rem auto 0; white-space: nowrap; }
  .hero__grid { gap: .8rem; }
  .link, .footer nav a, .footer__base a, .info a { display: inline-flex; align-items: center; min-height: 44px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service--main { grid-column: 1 / -1; grid-row: auto; }
  .about__media { max-width: 420px; }
  .reviews__track { grid-auto-columns: calc((100% - 1.1rem) / 2); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2.5rem); }
  .brand { gap: .55rem; }
  .brand__mono { font-size: 1.6rem; padding-right: .55rem; }
  .brand__name { font-size: .72rem; letter-spacing: .02em; }
  .brand__name b { letter-spacing: .3em; }
  /* phone: the booking button has to fit on the first screen */
  .facade { aspect-ratio: 4 / 3; }
  .facade__sign { bottom: .3rem; font-size: 1.5rem; }
  .status { margin-top: .1rem; padding-block: .6rem; }
  .hero__grid { gap: .2rem; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.4rem); margin: 1rem 0; }
  .hero__actions { margin-top: 1.4rem; }
  .proof { margin-top: 2rem; }
  .service:not(.service--main) { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: .7rem 1rem; padding: 1.5rem 1.4rem; }
  .service:not(.service--main) svg { width: 40px; height: 40px; margin: 0; }
  .service:not(.service--main) h3 { margin: 0; }
  .service:not(.service--main) :is(p, .link) { grid-column: 1 / -1; justify-self: start; }
  .about__media img { aspect-ratio: 1; }
  .footer { padding-top: 3rem; }
  .footer nav { grid-template-columns: 1fr 1fr; column-gap: 1rem; row-gap: 0; }
  .lead { font-size: 1.02rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .proof { gap: 1.1rem 1.6rem; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .about__media figcaption { right: .6rem; }
  .stats dt { font-size: 2.1rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .reviews { border-radius: 32px 32px 0 0; }
  .reviews__track { grid-auto-columns: 86%; }
  .book__grid { grid-template-columns: 1fr; }
  .book__media { grid-row: auto; order: 1; } /* "Agendar" lands on the form, the facade closes it */
  .book__media img { min-height: 0; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .units__map, .units__map iframe { min-height: 320px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .draw * { stroke-dashoffset: 0; }
  .js .timeline li { opacity: 1; translate: 0 0; }
  .js .timeline::before { transform: none; }
  .js .about__media img, .js .book__media img { clip-path: inset(0); }
}
