/* =========================================================
   Studio Luíze Leal — v3 · mobile-first, enxuto
   Tokens em tokens.css
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: var(--track-tight); line-height: 1.05; }
::selection { background: var(--gold-2); color: var(--ink); }

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

/* ---------- elementos base ---------- */
.label { display: inline-block; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }
.head { display: grid; gap: 10px; margin-bottom: 28px; }
.head h2 { font-size: var(--fs-h2); max-width: 18ch; }
.head p { color: var(--muted); }
.sec { padding: var(--section) 0; }
.sec-tint { background: var(--cream); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none; display: inline-block; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: 0 1.4rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; white-space: nowrap; border: 1px solid transparent;
  transition: background var(--t-base) var(--ease), color var(--t-base), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .arr { transition: transform var(--t-base) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--gold); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy); }
.btn-line { border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 0 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link { font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold-2); padding: 12px 4px; }

/* ---------- header ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 61; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.header { position: fixed; inset: 0 0 auto; z-index: var(--z-header); padding: 14px 0; transition: background .4s, box-shadow .4s, padding .4s; }
.header.scrolled { background: rgba(251, 248, 243, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.logo small { font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 600; }
.nav { display: none; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(251, 248, 243, .6); }
.nav a { padding: 8px 16px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 500; color: var(--muted); transition: background .3s, color .3s; }
.nav a:hover { color: var(--ink); }
.nav a.active { background: var(--navy); color: var(--paper); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--cream); font-size: .8rem; font-weight: 500; }
.hero h1 { font-size: var(--fs-display); margin: 18px 0 14px; max-width: 13ch; }
.hl { color: var(--gold); }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.ctas { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 24px; }
.ctas .link { text-align: center; }
.hero-visual { position: relative; }
.stage {
  position: relative; overflow: hidden; height: min(62vh, 440px); border-radius: var(--r-arch);
  background: radial-gradient(120% 80% at 50% 25%, #F3ECE1 0%, #E6D8C4 62%, #D6C2A4 100%);
}
.fallback-img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-webgl .fallback-img { display: block; }
.next-slot {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: var(--z-float);
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-1);
}
.next-slot small { display: block; font-size: .68rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.next-slot b { font-weight: 600; font-size: .95rem; }
.next-slot .arr { margin-left: auto; color: var(--gold); }
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  .ctas { flex-direction: row; align-items: center; gap: 18px; }
  .stage { height: min(72vh, 580px); }
  .next-slot { left: -32px; right: auto; bottom: 36px; }
}

/* ---------- método ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--cream); }
.num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-weight: 700; color: var(--gold); }
.step h3 { font-size: var(--fs-h3); margin: 8px 0 4px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: .95rem; }
.mini-report { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--paper); }
.mr-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; }
.mr-row b { font-size: 1.5rem; letter-spacing: -.03em; }
.mr-row em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 500; }
.mr-bar { height: 6px; border-radius: 6px; background: var(--sand); margin: 10px 0 8px; overflow: hidden; }
.mr-bar i { display: block; height: 100%; width: 70%; background: var(--gold); border-radius: 6px; transition: width .3s linear; }
.mini-report small { font-size: .74rem; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { grid-template-columns: 1fr; padding: 28px; align-content: start; }
}

/* ---------- horários ---------- */
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.day {
  min-width: 0; min-height: 56px; padding: 8px 2px; border-radius: var(--r-md); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
  font-weight: 600; font-size: .88rem; transition: background .3s, color .3s;
}
.day small { font-weight: 500; color: var(--muted); font-size: .64rem; white-space: nowrap; }
@media (min-width: 900px) { .days { display: flex; } .day { min-width: 84px; padding: 8px 16px; } .day small { font-size: .72rem; } }
.day.active { background: var(--navy); color: var(--paper); }
.day.active small { color: var(--sand); }
.slots { display: grid; gap: 8px; }
.slot {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 14px 14px 16px; border-radius: var(--r-md); background: var(--paper); animation: fadeUp .45s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.slot time { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.slot .meta b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.seats { font-size: .78rem; color: var(--muted); }
.seats.low { color: var(--warn); font-weight: 600; }
.slot .btn { min-height: 40px; padding: 0 1rem; font-size: .85rem; }
.slot.full { opacity: .45; }
.slot.full .btn { background: transparent; color: var(--muted); border-color: var(--line); pointer-events: none; }
@media (min-width: 900px) {
  .slots { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- trilhos horizontais (modalidades / depoimentos) ---------- */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.arrows { display: flex; gap: 8px; margin-bottom: 28px; flex: none; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); transition: background .3s, color .3s, opacity .3s; }
.arrows button:hover { background: var(--navy); color: var(--paper); }
.arrows button:disabled { opacity: .3; pointer-events: none; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 4px; scrollbar-width: none;
  cursor: grab; overscroll-behavior-x: contain;
}
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { pointer-events: none; user-select: none; }
.rail img { -webkit-user-drag: none; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.rail-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--sand-2); transition: width .35s var(--ease), background .35s; }
.rail-dots i.on { width: 20px; background: var(--gold); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .rail { grid-auto-columns: 300px; padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2)); }
}
.mod figure {
  position: relative; margin: 0 0 12px; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(110% 90% at 30% 20%, rgba(255,255,255,.6), transparent 60%), linear-gradient(160deg, #E9DCC8, #D6C2A4);
}
.mod:nth-child(3n+2) figure { background: radial-gradient(110% 90% at 30% 20%, rgba(255,255,255,.12), transparent 60%), linear-gradient(160deg, #2A3C53, #1D2A3B); }
.mod figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mod h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
.mod p { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ---------- estúdio ---------- */
.about { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; margin-bottom: 36px; }
.about-photo { margin: 0; width: 96px; height: 120px; border-radius: var(--r-arch); overflow: hidden; background: linear-gradient(160deg, #E9DCC8, #D6C2A4); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: var(--fs-h2); margin: 8px 0 10px; }
.about p { color: var(--muted); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: .8rem; font-weight: 500; padding: 7px 12px; border-radius: var(--r-pill); background: var(--paper); }
@media (min-width: 900px) {
  .about { grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
  .about-photo { width: 240px; height: 300px; }
}
.quotes { grid-auto-columns: 80%; }
@media (min-width: 900px) { .quotes { grid-auto-columns: 360px; } }
.quote { margin: 0; padding: 22px; border-radius: var(--r-lg); background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote p { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.45; }
.quote footer { font-size: .8rem; color: var(--muted); }
.sample-note { margin-top: 14px; text-align: center; font-size: .75rem; color: var(--muted); font-style: italic; }

/* ---------- agendar ---------- */
.book { display: grid; gap: 24px; }
.form { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-xl); background: var(--navy); color: var(--paper); }
.field { display: grid; gap: 6px; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--sand); }
.field em { font-style: normal; font-weight: 400; opacity: .7; }
.field input, .field select {
  width: 100%; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-sm); font: inherit; font-size: 16px;
  color: var(--paper); background: rgba(255, 255, 255, .06); border: 1px solid rgba(245, 239, 230, .16); outline: none;
  transition: border-color .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A46A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { color: var(--ink); }
.field input::placeholder { color: rgba(245, 239, 230, .4); }
.field input:focus, .field select:focus { border-color: var(--gold-2); background: rgba(255, 255, 255, .1); }
.field.flash input { animation: flash 1.4s var(--ease); }
.field.err input, .field.err select { border-color: #E08A6A; }
@keyframes flash { 0%, 40% { background: rgba(201, 164, 106, .3); } }
.form .btn { margin-top: 6px; }
.sent { display: none; font-size: .88rem; color: var(--sand); }
.sent a { text-decoration: underline; }
.sent.show { display: block; }
.map { position: relative; height: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); margin-bottom: -16px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.15) contrast(1.02); transition: filter .5s; }
.map:hover iframe, .map:focus-within iframe { filter: none; }
.contact { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--cream); font-size: .88rem; }
.contact div { display: grid; gap: 2px; }
@media (max-width: 899px) { .contact { flex-direction: column; align-items: stretch; } .contact .btn { width: 100%; } }
.contact span { color: var(--muted); }
@media (min-width: 900px) {
  .book { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
  .book .head { grid-row: span 3; }
  .map { height: 280px; }
  .form { padding: 32px; }
}

/* ---------- footer ---------- */
.footer { padding: 40px 0 120px; border-top: 1px solid var(--line); }
.footer-in { display: grid; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; font-weight: 500; }
.footer small { color: var(--muted); font-size: .78rem; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } .footer-in { grid-template-columns: auto 1fr auto; align-items: center; } .footer nav { justify-content: center; } }

/* ---------- barra fixa do celular ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-dock);
  display: flex; gap: 8px; padding: 6px; border-radius: var(--r-pill);
  background: rgba(251, 248, 243, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-1);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.dock.show { transform: none; }
.dock-main { flex: 1; }
.dock-wa { width: var(--tap); height: var(--tap); flex: none; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; }
.dock-wa svg { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .dock { left: auto; right: 20px; bottom: 20px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .dock-main { display: none; }
  .dock-wa { width: 58px; height: 58px; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7); }
}

/* ---------- 3D ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: var(--z-gl); pointer-events: none; }

/* ---------- entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

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