/* Fábio Brandão Odontologia — v2. Mobile-first, layout inspirado na referência "clínica azul". */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  --blue: #2763F0;
  --blue-deep: #1A47C9;
  --blue-soft: #E8EEFE;
  --blue-line: #C9D6F5;
  --navy: #0B1530;
  --ink: #0D1424;
  --muted: #5A6478;
  --bg: #EEF2FA;
  --card: #FFFFFF;
  --line: #E1E7F3;
  --star: #F5B301;
  --on-blue: rgba(255, 255, 255, .82);

  --gutter: 16px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --section-y: 56px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --orb: radial-gradient(circle at 32% 28%, #FFFFFF 0, #B9CCFF 14%, #4F82FF 42%, #1F4FD6 78%, #163CA8 100%);
  --shadow: 0 24px 60px -28px rgba(18, 44, 120, .35);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 88px; --radius-xl: 40px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img, svg, video { display: block; }
img, video { max-width: 100%; height: auto; }
a { color: var(--blue); -webkit-tap-highlight-color: transparent; }
input, select, button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.star { fill: var(--star); flex: none; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.shell { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 22px;
  border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .25s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 58px; padding-left: 26px; font-size: 16px; }

.btn-orb {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  transition: transform .3s var(--ease-out);
}
.btn-lg .btn-orb { width: 46px; height: 46px; }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue .btn-orb { background: #fff; color: var(--blue); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white .btn-orb { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline .btn-orb { background: var(--blue); color: #fff; }

.round-btn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.round-btn:active { transform: scale(.94); }
.round-btn-dark { background: var(--ink); color: #fff; }
.round-btn-soft { background: var(--blue-soft); color: var(--blue); }
.round-btn-blue { background: var(--blue); color: #fff; }
.round-btn-outline { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue-line); }
.round-btn:disabled { opacity: .4; cursor: default; }

.text-link { font-size: 14px; font-weight: 600; text-underline-offset: 4px; }

@media (hover: hover) {
  .btn-blue:hover { background: var(--blue-deep); box-shadow: 0 14px 30px -12px rgba(39, 99, 240, .7); }
  .btn:hover .btn-orb { transform: rotate(-20deg) scale(1.05); }
  .btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
  .round-btn:hover { transform: translateY(-2px); }
}

/* ---------- Rótulos e títulos ---------- */

.label { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.label-light { color: var(--on-blue); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: 13px; font-weight: 600;
}

.ping { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue); }
.ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: ping 2s ease-out infinite; }

.h2 {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 56px); font-weight: 500;
  line-height: 1.02; letter-spacing: -.04em;
}
.h2 small { display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); vertical-align: middle; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 242, 250, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(18, 44, 120, .35); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto;
  min-height: 72px;
}

.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-insta { display: none; }
@media (min-width: 420px) { .header-insta { display: grid; } }

.menu-toggle {
  position: relative; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--blue); cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .25s var(--ease-out), opacity .2s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu em tela cheia no celular */
.nav {
  position: fixed; inset: var(--nav-top, 72px) 0 0; z-index: -1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.nav.is-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.nav > a:not(.btn) {
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-size: 26px; font-weight: 500; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none;
}
.nav-cta { margin-top: 24px; }
.nav.is-open > a { animation: rise .45s var(--ease-out) both; }
.nav.is-open > a:nth-child(2) { animation-delay: .04s; }
.nav.is-open > a:nth-child(3) { animation-delay: .08s; }
.nav.is-open > a:nth-child(4) { animation-delay: .12s; }
.nav.is-open > a:nth-child(5) { animation-delay: .16s; }
.nav.is-open > a:nth-child(6) { animation-delay: .22s; }

@media (min-width: 1024px) {
  .logo img { height: 46px; }
  .menu-toggle { display: none; }
  .nav {
    position: static; z-index: auto; flex-direction: row; gap: 2px;
    padding: 5px; border-radius: 999px; background: #fff;
    visibility: visible; opacity: 1; overflow: visible;
  }
  .nav > a:not(.btn) {
    padding: 10px 16px; border: 0; border-radius: 999px;
    font-size: 14px; font-weight: 600; letter-spacing: 0;
    transition: background-color .2s ease, color .2s ease;
  }
  .nav > a[aria-current="true"] { background: var(--blue-soft); color: var(--blue-deep); }
  .nav > a:not(.btn):hover { background: var(--bg); }
  .nav-cta { display: none; }
}

/* ---------- Seções ---------- */

.section { padding-block: var(--section-y); }

/* Painel branco alternando com o fundo azulado. No celular vai de ponta a ponta, sem bordas. */
.section-panel { background: var(--card); }
@media (min-width: 768px) { .section-panel { margin-inline: 16px; border-radius: var(--radius-xl); } }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: 32px;
}
.section-head-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 400px; }
.section-head-aside p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: 8px 0 var(--section-y); }

.hero-grid { display: grid; gap: 16px; }

.hero-main {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
  padding: 56px; border-radius: var(--radius-xl); background: var(--card);
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 13.4vw, 128px); font-weight: 500;
  line-height: .92; letter-spacing: -.06em;
}
.nowrap { white-space: nowrap; }

.orb {
  display: inline-block; width: .5em; height: .5em; margin-left: .06em;
  border-radius: 50%; background: var(--orb);
  box-shadow: inset -.04em -.06em .12em rgba(10, 30, 110, .45), 0 .08em .2em rgba(39, 99, 240, .35);
  animation: orb-float 5s ease-in-out infinite;
}

.hero-note { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.hero-note b { color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.hero-link .icon { color: var(--blue); transition: transform .25s var(--ease-out); }

.stat-row {
  display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 440px;
  margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none;
}
.stat-row li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.stat-row li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-row b { display: flex; align-items: center; gap: 4px; font-size: 36px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.stat-row .star { width: .55em; height: .55em; }

.hero-photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-xl); background: var(--blue); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

.tagpill {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -12px rgba(10, 30, 90, .45);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  animation: pill-in .6s var(--ease-pop) both;
}
.tagpill i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); }
.tagpill-a { top: 24px; right: 24px; animation-delay: .9s; }
.tagpill-b { bottom: 28px; left: 24px; animation-delay: 1.05s; }

@media (hover: hover) {
  .hero-link:hover .icon { transform: translateX(4px); }
}

/* Desktop: card branco com o texto à esquerda, foto do doutor à direita. Nada além disso. */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; min-height: min(720px, calc(100svh - 96px)); }
  .hero-title { font-size: clamp(72px, 6.9vw, 112px); }
  .hero-photo img { position: absolute; inset: 0; }
}

/* Celular e tablet: a página abre com a foto do doutor de ponta a ponta, sem bordas.
   display: contents solta os filhos do card no grid do hero, permitindo
   sobrepor selo e título à foto sem duplicar o HTML. */
@media (max-width: 1023px) {
  .hero { padding: 0 0 8px; background: var(--card); }
  .hero .shell { width: 100%; }
  .hero-grid { grid-template-columns: 100%; grid-template-rows: 1fr auto auto; gap: 0; }
  .hero-main { display: contents; }

  .hero-photo { grid-row: 1 / 4; grid-column: 1; border-radius: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; min-height: 480px; max-height: 86svh; }
  .hero-photo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(9, 22, 66, 0) 40%, rgba(9, 22, 66, .55) 64%, rgba(9, 22, 66, .94) 100%);
  }
  .tagpill-a { top: 16px; right: var(--gutter); }
  .tagpill-b { top: 16px; bottom: auto; left: var(--gutter); }

  .hero .kicker {
    grid-row: 2; grid-column: 1; z-index: 1; justify-self: start;
    margin: 0 var(--gutter) 14px;
    background: rgba(255, 255, 255, .16); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .hero .ping, .hero .ping::after { background: #fff; }
  .hero-title {
    grid-row: 3; grid-column: 1; z-index: 1;
    padding: 0 var(--gutter) 28px; color: #fff;
    text-shadow: 0 2px 24px rgba(5, 14, 45, .35);
  }

  /* Abaixo da foto, só o essencial: frase, botão, link e dois números */
  .hero-note { max-width: none; margin: 26px var(--gutter) 0; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 6px; margin: 18px var(--gutter) 0; }
  .stat-row { width: auto; max-width: none; margin: 10px var(--gutter) 8px; padding-top: 22px; }
  .stat-row li + li { padding-left: 22px; }
  .stat-row b { font-size: 34px; }
}

/* Entrada do hero em CSS puro: funciona sem JS e não atrasa a primeira pintura */
.intro { animation: rise .7s var(--ease-out) both; }
.intro[data-intro="2"] { animation-delay: .08s; }
.intro[data-intro="3"] { animation-delay: .2s; }
.intro[data-intro="4"] { animation-delay: .32s; }
.hero-photo { animation: panel-in .9s var(--ease-out) .1s both; }

/* ---------- Manifesto ---------- */

.statement { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.statement-text {
  margin: 0; max-width: 1000px;
  font-size: clamp(25px, 4.2vw, 50px); font-weight: 400;
  line-height: 1.18; letter-spacing: -.035em; color: #3A4458;
}
.statement-text b { font-weight: 700; color: var(--ink); }
.statement-sub { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.statement-sub b { color: var(--ink); }


/* ---------- Tratamentos ---------- */

.services {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.services::-webkit-scrollbar { display: none; }

.service {
  position: relative; overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px; margin: 0; padding: 22px;
  border-radius: var(--radius-lg); background: var(--card);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.service-num {
  margin-bottom: auto;
  font-size: 64px; font-weight: 600; line-height: .9; letter-spacing: -.05em;
  color: var(--blue);
}
.service h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.service h3 .icon { color: var(--blue); }
.service p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.service-link { margin-top: 6px; font-size: 13px; font-weight: 600; text-underline-offset: 4px; }

.service-brand {
  justify-content: flex-start;
  background: linear-gradient(150deg, #3A74FF, var(--blue) 50%, var(--blue-deep));
}
.service-brand img { width: 170px; height: auto; }
.service-brand p { max-width: 220px; color: var(--on-blue); }

.service-photo { padding: 0; }
.service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.bubble { position: absolute; z-index: 0; border-radius: 50%; background: var(--orb); pointer-events: none; animation: orb-float 6s ease-in-out infinite; }
.bubble-a { width: 130px; height: 130px; right: -30px; bottom: -36px; }
.bubble-b { width: 56px; height: 56px; right: 96px; bottom: 44px; animation-delay: -2s; }
.bubble-c { width: 30px; height: 30px; right: 54px; bottom: 120px; animation-delay: -4s; }

.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

@media (hover: hover) {
  .service:not(.service-photo):hover { transform: translateY(-6px); box-shadow: var(--shadow); }
}

@media (min-width: 700px) {
  .services {
    grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto;
    overflow: visible; margin-inline: 0; padding: 0;
  }
  .carousel-nav { display: none; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* ---------- Antes e depois ---------- */

.cases-top, .cases-bottom { display: grid; gap: 14px; }
.cases-bottom { margin-top: 14px; }

.case { margin: 0; padding: 8px; border-radius: var(--radius-lg); background: var(--bg); }
.case img { width: 100%; border-radius: var(--radius-md); }
.case figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 8px 6px; font-size: 15px; font-weight: 600;
}
.tag { padding: 5px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 12px; font-weight: 600; }

.case-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px;
  min-height: 260px; padding: 28px;
  border-radius: var(--radius-lg); background: var(--blue); color: #fff;
}
.case-cta::before {
  content: ''; position: absolute; z-index: -1; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%; background: var(--orb); opacity: .9;
}
.case-cta p { margin: 0; max-width: 260px; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }

@media (min-width: 560px) {
  .cases-bottom { grid-template-columns: 1fr 1fr; }
  .case-cta { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  /* Colunas proporcionais à proporção de cada foto: as duas ficam com a mesma altura */
  .cases-top { grid-template-columns: 1.5fr 1.25fr; }
  .cases-bottom { grid-template-columns: 1fr 1fr 1fr; }
  .case-cta { grid-column: auto; }
}

/* ---------- Por que escolher ---------- */

.why { display: grid; gap: 14px; }

.why-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px 22px 22px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #3A74FF, var(--blue) 45%, var(--blue-deep));
  color: #fff;
}
.why-panel::before {
  content: ''; position: absolute; z-index: -1; left: -120px; bottom: -140px;
  width: 360px; height: 360px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .16);
}
.why-title { margin: 0 0 10px; font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.why-sub { font-size: 13px; color: var(--on-blue); }
.why-sub b { color: #fff; }
.why-photo {
  width: 100%; aspect-ratio: 3 / 2; margin-top: 24px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .14);
}
/* Mobile: etiquetas em linha abaixo da foto, para não cobrir o rosto */
.why-panel .tagpill { position: static; margin: 12px 6px 0 0; animation: none; }

.why-stats { padding: 28px 22px; border-radius: var(--radius-xl); background: var(--card); }
.why-grid { display: grid; gap: 28px 24px; margin-top: 22px; }
.why-item { border-top: 1px solid var(--line); padding-top: 20px; }
.why-value { display: flex; align-items: flex-start; gap: 2px; font-size: clamp(48px, 6vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.why-value em { font-style: normal; font-size: .48em; letter-spacing: -.02em; color: var(--blue); margin-top: .08em; }
.why-item strong { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }
.why-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (min-width: 480px) { .why-grid { grid-template-columns: 1fr 1fr; } }

@media (min-width: 960px) {
  .why { grid-template-columns: 1fr 1.1fr; }
  .why-stats { padding: 40px; }
}

/* Foto no canto e etiquetas à esquerda, como na referência, a partir do tablet */
@media (min-width: 600px) {
  .why-panel { display: flex; flex-direction: column; align-items: flex-start; min-height: 560px; padding: 40px; }
  .why-photo { margin-top: auto; }
  .why-sub { margin-bottom: 28px; }
  /* Etiquetas sobre a parede lisa, à direita do doutor e abaixo do letreiro */
  .why-panel .tagpill { position: absolute; right: 56px; margin: 0; }
  .tagpill-d { bottom: 136px; }
  .tagpill-e { bottom: 96px; }
  .tagpill-f { bottom: 56px; }
}

/* ---------- Tecnologia ---------- */

.tech { display: grid; gap: 28px; align-items: center; }

.tech-media { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: #3D3479; }
.tech-media video { width: 100%; aspect-ratio: 1280 / 742; object-fit: cover; }

.video-toggle {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.video-toggle svg { fill: var(--blue); }
.video-toggle[aria-pressed="true"] svg { display: none; }
.video-toggle[aria-pressed="true"]::before {
  content: ''; width: 10px; height: 12px;
  border-inline: 3.5px solid var(--blue); box-sizing: border-box;
}

.tech-copy { display: flex; flex-direction: column; gap: 16px; }
.tech-copy > p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }

.tech-list { display: grid; gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.tech-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tech-list b { display: block; font-size: 15px; color: var(--ink); }
.tech-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
.gallery figure { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600;
}

@media (hover: hover) { .gallery figure:hover img { transform: scale(1.06); } }

@media (min-width: 960px) {
  .tech { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
}

/* ---------- Avaliações ---------- */

.rating { display: flex; align-items: center; gap: 14px; }
.rating-value { font-size: 52px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.rating-detail { display: flex; flex-direction: column; gap: 4px; }
.stars { display: inline-flex; gap: 2px; }
.rating-label { font-size: 13px; color: var(--muted); }

.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 340px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }

.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  margin: 0; padding: 26px; border-radius: var(--radius-lg); background: var(--card);
}
.review blockquote { margin: 0; font-size: 15px; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.review strong { display: block; font-size: 15px; color: var(--ink); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.review:nth-child(even) .avatar { background: var(--ink); }

@media (min-width: 1024px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding: 0; gap: 14px; }
}

/* ---------- Contato ---------- */

.contact { display: grid; gap: 28px; }
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.contact-list { display: grid; gap: 20px; width: 100%; margin: 8px 0; }
.contact-list dt { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.contact-list dt .icon { color: var(--blue); }
.contact-list dd { margin: 6px 0 0 30px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-list a { font-weight: 600; text-underline-offset: 3px; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 20px; }

.contact-photo { width: 100%; margin: 0; }
.contact-photo img { width: 100%; border-radius: var(--radius-lg); }
.contact-photo figcaption { padding: 10px 4px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.booking {
  position: relative; overflow: hidden; isolation: isolate; align-self: start;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 22px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #3A74FF, var(--blue) 45%, var(--blue-deep));
  color: #fff;
}
.booking > *:not(.bubble) { position: relative; z-index: 1; }
.booking-title { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.booking p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-blue); }

.booking-fields { display: grid; gap: 12px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font-size: 13px; font-weight: 600; color: var(--on-blue); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  color: #fff; font-size: 16px; color-scheme: dark;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.field input::placeholder { color: rgba(255, 255, 255, .6); }
.field input:focus, .field select:focus { outline: none; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px #fff; }
.field select option { color: var(--ink); }
.booking-send { margin-top: 10px; }

@media (min-width: 520px) { .booking-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .contact { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .booking { position: sticky; top: 96px; padding: 40px; }
}

/* ---------- Rodapé ---------- */

.footer {
  margin-top: 16px; padding: 56px 0 calc(104px + env(safe-area-inset-bottom));
  background: var(--navy); color: #AEB9D3; font-size: 14px;
}
.footer-cols { display: grid; gap: 36px; }
.footer-brand img { width: 190px; height: auto; }
.footer-brand p { max-width: 360px; margin: 16px 0 0; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-heading { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.footer a { color: #D7DFF0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px;
}

@media (min-width: 768px) { .footer { border-radius: var(--radius-xl) var(--radius-xl) 0 0; } .footer-cols { grid-template-columns: 1.6fr 1fr 1.2fr; } }
@media (min-width: 1024px) { .footer { padding-bottom: 40px; } }

/* ---------- Barra fixa no celular ---------- */

.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 8px; padding: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(10, 30, 90, .45);
  transform: translateY(160%); visibility: hidden;
  transition: transform .3s var(--ease-out), visibility 0s linear .3s;
}
.mobile-cta.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease-out); }
.mobile-cta-main { flex: 1; min-width: 0; }
.mobile-cta-call { width: 52px; height: 52px; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ---------- Revelação ao rolar (main.js) ---------- */

.is-pending { opacity: 0; }
.reveal-in { animation: rise .7s var(--ease-out) var(--reveal-delay, 0ms) both; }
.is-pending .stars-pop .star { opacity: 0; }
.reveal-in .stars-pop .star { animation: pop .45s var(--ease-pop) both; }
.reveal-in .stars-pop .star:nth-child(2) { animation-delay: .08s; }
.reveal-in .stars-pop .star:nth-child(3) { animation-delay: .16s; }
.reveal-in .stars-pop .star:nth-child(4) { animation-delay: .24s; }
.reveal-in .stars-pop .star:nth-child(5) { animation-delay: .32s; }

/* ---------- Keyframes ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pill-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Mapa (Google Maps) ---------- */
.contact-map { margin-top: 40px; height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .contact-map { margin-top: 56px; height: 440px; } }

/* ---------- Crédito (Noxxe) ---------- */

.footer-credit { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 18px auto 0; color: inherit; font-size: 10px; letter-spacing: .04em; text-decoration: none; opacity: .32; transition: opacity .2s ease; }
.footer-credit:hover, .footer-credit:focus-visible { opacity: .7; }
.footer-credit img { display: block; width: 47px; height: auto; }
