/* =========================================================
   Karoline Lenke · Estética Avançada
   Mobile first — ajustes para telas maiores no final
   ========================================================= */

:root {
  --wine: #8E1F45;
  --wine-dark: #6E1534;
  --wine-soft: #A8355D;
  --rose: #F6E8EC;
  --rose-2: #EFD9E0;
  --cream: #FCF8F6;
  --gold: #B8955A;
  --ink: #3A2A30;
  --ink-soft: #6F5D63;
  --white: #fff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Allura", cursive;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(110, 21, 52, .12);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body::before { /* pinta a faixa da barra de status do celular */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70;
  background: #FBF0F2;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 14px; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
h2 { font-size: clamp(2rem, 8.4vw, 2.7rem); color: var(--wine-dark); }
p { margin: 0 0 14px; }

.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.32em;
  line-height: .8;
  color: var(--wine-soft);
  letter-spacing: 0;
  white-space: nowrap;
}
.hero .script { color: #F5C9D6; }
.booking .script { color: #F5C9D6; }

.eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow-light { color: #F2D3B0; letter-spacing: .14em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .88rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--wine); color: var(--white); box-shadow: var(--shadow); }
.btn-light { background: var(--white); color: var(--wine-dark); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-whats { background: #25D366; color: #fff; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: .78rem; }
.btn-block { width: 100%; }
.ico { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--gutter);
  background: rgba(251, 240, 242, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--wine-dark);
  transition: box-shadow .2s ease;
}
.topbar.scrolled { box-shadow: 0 6px 20px rgba(110,21,52,.10); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mono {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold);
  font: italic 500 1.1rem/1 var(--serif); letter-spacing: -.04em; color: var(--gold);
}
.footer .logo-mono { color: #E6C79A; border-color: #E6C79A; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font: 500 1.02rem/1.05 var(--serif); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.logo-text small { font-size: .55rem; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }

.menu-btn {
  width: 42px; height: 42px; border: 0; background: transparent; padding: 10px;
  display: grid; align-content: center; gap: 5px; cursor: pointer;
}
.menu-btn span { display: block; height: 1.5px; background: var(--wine-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 22px;
  background: #FBF0F2;
  border-top: 1px solid var(--rose-2);
  box-shadow: 0 14px 24px rgba(110,21,52,.10);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu.open { transform: none; opacity: 1; visibility: visible; }
.menu a { text-decoration: none; padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--rose-2); }
.menu a.btn { margin-top: 12px; border: 0; background: var(--wine); color: var(--white); }

/* ---------- Hero (fundo claro, foto que se funde à esquerda) ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 420px;
  padding: 36px var(--gutter) 40px;
  color: var(--ink);
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, #FBF0F2 0%, #F5E3E8 100%);
}
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% 25%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
}
.hero-text { position: relative; z-index: 1; max-width: 60%; }
.hero h1 { color: var(--wine-dark); font-size: clamp(2rem, 8.6vw, 3.6rem); line-height: 1.02; }
.hero h1 .script { display: block; margin-top: 6px; color: var(--wine); font-size: 1.18em; line-height: .95; white-space: normal; }
.hero .lead { font-size: .84rem; line-height: 1.5; color: var(--ink); max-width: 30ch; margin-bottom: 20px; }
.hero-btn { white-space: nowrap; min-height: 44px; padding: 10px 18px; font-size: .8rem; border-radius: 10px; }
.ico-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Diferenciais (faixa com divisórias) ---------- */
.perks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 18px var(--gutter);
  background: #FDF7F8;
  border-bottom: 1px solid var(--rose-2);
}
.perk {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 4px 6px;
  font-size: .74rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.perk + .perk { border-left: 1px solid var(--rose-2); }
.perk svg, .why svg, .place svg, .secure svg, .social svg {
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.perk svg { width: 30px; height: 30px; color: var(--wine); }

/* ---------- Seções ---------- */
.section { padding: 56px var(--gutter); }
.section-tint { background: var(--rose); }
.section-lead { color: var(--ink-soft); font-size: .92rem; margin-bottom: 24px; }

/* ---------- Tratamentos ---------- */
.treat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.treat {
  position: relative; display: block; aspect-ratio: 3 / 4;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--rose-2);
  box-shadow: 0 6px 18px rgba(110,21,52,.10);
}
.treat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.treat:active img { transform: scale(1.04); }
.treat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(78, 12, 36, .85) 0%, rgba(78,12,36,.2) 45%, transparent 70%);
}
.treat-name {
  position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px;
  color: var(--white); font-weight: 600; font-size: .86rem; line-height: 1.25;
}
.treat-name em { font-style: normal; opacity: .85; }
.treat-cta {
  display: flex; flex-direction: column; justify-content: center; padding: 16px;
  background: linear-gradient(160deg, var(--wine), var(--wine-dark)); color: var(--white);
}
.treat-cta::after { display: none; }
.treat-cta .script { color: #F5C9D6; font-size: 2.3rem; line-height: 1; }
.treat-cta > span:nth-child(2) { font: 500 1.35rem/1.1 var(--serif); margin-bottom: 8px; }
.treat-cta small { font-size: .72rem; opacity: .85; line-height: 1.4; margin-bottom: 12px; }
.treat-cta b { font-size: .78rem; font-weight: 600; }

/* ---------- Antes e depois ---------- */
.ba-track, .quote-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.ba-track::-webkit-scrollbar, .quote-track::-webkit-scrollbar { display: none; }
.ba { margin: 0; scroll-snap-align: center; background: var(--white); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-pair div { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair span {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  background: var(--wine); color: var(--white);
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.ba-pair div:first-child span { background: rgba(58,42,48,.75); }
.ba figcaption { padding: 12px 6px 4px; font-size: .84rem; color: var(--ink-soft); line-height: 1.45; }
.ba figcaption strong { display: block; font: 600 1.2rem/1.2 var(--serif); color: var(--wine-dark); }
.ba-dots { display: flex; justify-content: center; gap: 7px; margin: 6px 0 14px; }
.ba-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose-2); transition: background .2s, width .2s; }
.ba-dots i.on { background: var(--wine); width: 20px; border-radius: 4px; }
.disclaimer { font-size: .72rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* ---------- Sobre ---------- */
.about-photo { position: relative; margin: 0 auto 26px; max-width: 320px; }
.about-photo::before {
  content: ""; position: absolute; inset: 14px -12px -12px 14px;
  border: 1.5px solid var(--gold); border-radius: 999px 999px var(--radius) var(--radius);
}
.about-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.about p { color: var(--ink-soft); }
.why { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.why li { display: flex; gap: 14px; align-items: flex-start; }
.why svg {
  flex: none; width: 46px; height: 46px; padding: 10px;
  color: var(--wine); background: var(--rose); border-radius: 50%;
}
.why strong { display: block; font-size: .92rem; color: var(--ink); }
.why span { font-size: .84rem; color: var(--ink-soft); }
.signature { font-family: var(--script); font-size: 2.2rem; color: var(--wine-soft) !important; text-align: center; margin: 10px 0 0; line-height: 1.1; }

/* ---------- Depoimentos ---------- */
.quote {
  position: relative; margin: 0; scroll-snap-align: center;
  background: var(--white); border-radius: var(--radius); padding: 22px 20px;
  box-shadow: 0 6px 18px rgba(110,21,52,.08);
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: .95rem; }
.quote p { font: italic 500 1.2rem/1.4 var(--serif); color: var(--ink); margin: 10px 0 14px; }
.quote footer { font-size: .8rem; font-weight: 600; color: var(--wine-dark); }
.quote footer em { font-weight: 400; color: var(--ink-soft); }
.tag-modelo {
  position: absolute; top: 14px; right: 14px;
  font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  background: #FFF3CD; color: #7A5B00; padding: 3px 8px; border-radius: 6px;
}

/* ---------- Agendamento ---------- */
.booking {
  position: relative; overflow: hidden;
  margin: 0; padding: 56px var(--gutter);
  color: var(--white);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 100%);
}
.booking h2 { color: var(--white); }
.booking > p { font-weight: 300; opacity: .92; }
.form { display: grid; gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .74rem; font-weight: 500; letter-spacing: .04em; opacity: .9; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  background: var(--white); color: var(--ink);
  font: 400 16px/1.2 var(--sans); /* 16px evita zoom automático no iPhone */
  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' fill='none' stroke='%238E1F45' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus { outline: none; border-color: #F2D3B0; box-shadow: 0 0 0 3px rgba(242,211,176,.35); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #FFB4C6; box-shadow: 0 0 0 3px rgba(255,180,198,.35); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .76rem; line-height: 1.45; opacity: .92; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.consent a { color: #F2D3B0; }
.form-msg { min-height: 1em; margin: 0; font-size: .82rem; font-weight: 500; color: #FFE3EA; }
.form-msg.ok { color: #DFF5E3; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .74rem; opacity: .8; margin: 0; }
.secure svg { width: 15px; height: 15px; }

/* ---------- Localização ---------- */
.contact-list { display: grid; gap: 12px; }
.place {
  display: flex; gap: 14px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(110,21,52,.08);
  text-decoration: none;
}
.place > div { flex: 1; min-width: 0; }
.place svg { flex: none; width: 26px; height: 26px; color: var(--wine); }
.place strong { display: block; color: var(--ink); font-size: .9rem; }
.place span { display: block; font-size: .84rem; color: var(--ink-soft); }
.place .contact-value { font-size: 1rem; font-weight: 600; color: var(--wine); user-select: all; }
.place em { font-style: normal; color: var(--wine); }

/* ---------- Rodapé ---------- */
.footer {
  padding: 40px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  text-align: center; background: var(--wine-dark); color: var(--white);
}
.logo-footer { justify-content: center; margin: 0 0 8px; }
.footer-tag { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.social { display: flex; justify-content: center; gap: 14px; margin: 18px 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
}
.social svg { width: 20px; height: 20px; }
.social .fill { fill: currentColor; stroke: none; }
.footer-small { font-size: .72rem; opacity: .65; margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  animation: pulse 2.6s ease-in-out infinite;
}
.whats-float svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 0 12px rgba(37,211,102,0); }
}

/* ---------- Faixa de prévia ---------- */
.preview-bar {
  background: #FFF3CD; color: #5C4400;
  font-size: .74rem; line-height: 1.4; text-align: center;
  padding: 8px var(--gutter);
}

/* ---------- Deslizar ao rolar ----------
   Navegadores novos: animação ligada à rolagem (CSS puro).
   Demais: o script.js adiciona .sr-js e desliza com IntersectionObserver. */
main { overflow-x: clip; }
@keyframes sr-up    { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes sr-left  { from { opacity: 0; transform: translateX(-56px); } to { opacity: 1; transform: none; } }
@keyframes sr-right { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
@keyframes sr-zoom  { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes hero-in  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: hero-in .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
  .hero-photo img { animation: photo-in 1.2s ease-out both; }

  @supports (animation-timeline: view()) {
    .sr { animation: sr-up linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .sr-left  { animation-name: sr-left; }
    .sr-right { animation-name: sr-right; }
    .sr-zoom  { animation-name: sr-zoom; }
  }

  .sr-js .sr { transition: transform .8s cubic-bezier(.2,.7,.2,1); transform: translateY(40px); }
  .sr-js .sr-left  { transform: translateX(-44px); }
  .sr-js .sr-right { transform: translateX(44px); }
  .sr-js .sr-zoom  { transform: scale(.9); }
  .sr-js .sr.sr-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whats-float { animation: none; }
}

/* =========================================================
   Telas maiores (tablet / desktop) — versão inicial
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .treat-grid { grid-template-columns: repeat(4, 1fr); }
  .ba-track, .quote-track { grid-auto-columns: 46%; }
  .hero { min-height: 520px; }
  .hero-text { max-width: 52%; }
  .hero .lead { font-size: 1rem; }
  .perk { font-size: .86rem; }
}
@media (min-width: 1024px) {
  main > section:not(.hero):not(.perks):not(.booking) { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .hero { min-height: 600px; padding-left: max(40px, calc((100% - 1120px) / 2)); }
  .hero-photo { width: 58%; }
  .hero-text { max-width: 46%; }
  .ba-track, .quote-track { grid-auto-columns: 31%; }
}

/* ---------- página de privacidade (antes num <style> dentro do HTML; aqui para a CSP não precisar de 'unsafe-inline') ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 60px; }
.doc h1 { color: var(--wine-dark); font-size: 2.4rem; }
.doc h2 { font-size: 1.5rem; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .back { display: inline-block; margin-bottom: 20px; color: var(--wine); font-weight: 600; text-decoration: none; }
