/* Tokens — ver design-system/MASTER.md */
:root {
  --blush-50: #FBF4F2;
  --blush-200: #F1DCD7;
  --rose-400: #CF9893;
  --rose-700: #8E4049;
  --rose-800: #763540;
  --wine-800: #5E2A33;
  --wine-900: #3E1F27;
  --ink-soft: #6B4A50;
  --gold-500: #B38A4E;
  --gold-700: #8A6430;
  --gold-200: #E9C9A0;
  --white: #FFFFFF;

  --color-bg: var(--blush-50);
  --color-surface-alt: var(--blush-200);
  --color-text: var(--wine-900);
  --color-text-soft: var(--ink-soft);
  --color-primary: var(--rose-700);
  --color-primary-hover: var(--rose-800);
  --color-on-primary: var(--white);
  --color-focus: var(--wine-900);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section-y: clamp(64px, 10vw, 128px);
  --container: 1180px;
  --radius-pill: 999px;
  --shadow-float: 0 12px 32px -16px rgb(62 31 39 / .45);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 450;
  line-height: 1.15;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem); letter-spacing: -0.005em; }
h3 { font-size: 1.375rem; font-weight: 500; }
p { margin: 0 0 var(--s2); }
a { color: var(--color-primary); }
address { font-style: normal; }

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

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--wine-900); color: var(--blush-50); padding: 12px 20px; border-radius: 8px;
}
.skip-link:focus { top: var(--s2); }

.icon { width: 22px; height: 22px; flex: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius-pill);
  font: 700 1.0625rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-light { background: var(--blush-50); color: var(--wine-800); }
.btn-light:hover { background: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 1rem; }

.link-quiet {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--color-text); font-weight: 700; text-underline-offset: 6px;
  text-decoration-color: var(--rose-400); text-decoration-thickness: 2px;
}
.link-quiet:hover { color: var(--color-primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(251 244 242 / .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgb(207 152 147 / .35);
}
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); line-height: 1.2; margin-right: auto; }
.brand-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.4rem; font-weight: 500; }
.brand-role { font-size: .875rem; color: var(--color-text-soft); }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--color-text); text-decoration: none; font-weight: 600; border-radius: 8px;
}
.nav-list a:hover { color: var(--color-primary); }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--color-text); cursor: pointer; border-radius: 8px;
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy h1 { margin-bottom: var(--s3); }
.lead { font-size: 1.1875rem; color: var(--color-text-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); }

@media (min-width: 900px) {
  .hero { aspect-ratio: 1672 / 941; max-height: 820px; min-height: 560px; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { object-position: 70% center; }
  .hero-inner { position: relative; height: 100%; display: flex; align-items: center; padding-bottom: 6%; }
  .hero-copy { max-width: 520px; }
}
@media (max-width: 899px) {
  .hero-media img { aspect-ratio: 4 / 3; object-position: 82% 25%; }
  .hero-inner { padding-block: var(--s4) var(--s6); }
}

/* Credenciais */
.creds { background: var(--wine-800); color: var(--blush-50); }
.creds-list {
  list-style: none; margin-block: 0; padding-block: var(--s3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4);
}
.creds-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.creds-list .icon { color: var(--gold-200); }

/* Seções */
.section { padding-block: var(--section-y); }
.section-intro { color: var(--color-text-soft); max-width: 52ch; margin-bottom: var(--s5); }

/* Sobre */
.about-grid { display: grid; gap: var(--s5); align-items: center; }
.about-photo { margin: 0; justify-self: center; width: min(100%, 440px); }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% center;
  border-radius: 220px 220px 24px 24px;
  outline: 1px solid var(--gold-500); outline-offset: 10px;
}
.about-text { max-width: 60ch; }
.crp { color: var(--gold-700); font-weight: 700; margin-top: var(--s3); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 440px 1fr; gap: var(--s7); }
}

/* Atendimento */
.services { background: var(--color-surface-alt); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s6); }
.service-list li { padding-block: var(--s4); border-top: 1px solid var(--rose-400); }
.service-list p { color: var(--color-text-soft); margin: 0; max-width: 48ch; }
@media (min-width: 768px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}

/* Sinais */
.signs-grid { display: grid; gap: var(--s4); }
.signs-grid > div p { color: var(--color-text-soft); max-width: 44ch; }
.signs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.signs-list li { position: relative; padding-left: 36px; }
.signs-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px;
  background: var(--gold-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 20s-7.5-4.4-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.6-7.5 10-7.5 10z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 20s-7.5-4.4-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.6-7.5 10-7.5 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 900px) {
  .signs-grid { grid-template-columns: 5fr 6fr; gap: var(--s7); align-items: start; }
}

/* Como funciona — fio dourado (assinatura) */
.steps { padding-top: 0; }
.steps-wrap { position: relative; margin-top: var(--s5); }
.thread { display: none; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); position: relative; }
.steps-list li { position: relative; padding-left: 44px; }
.steps-list p { color: var(--color-text-soft); margin: 0; }
.step-dot {
  position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-bg); border: 2px solid var(--gold-700);
}
.step-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--rose-700); }
/* fio vertical no mobile */
.steps-list::before {
  content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--gold-500), var(--rose-400));
}
.steps-list li:last-child::after { content: none; }

@media (min-width: 900px) {
  .steps-list::before { content: none; }
  .thread {
    display: block; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px;
    overflow: visible;
  }
  .thread path {
    fill: none; stroke: var(--gold-500); stroke-width: 2; stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }
  .steps-list { grid-template-columns: repeat(4, 1fr); gap: var(--s4); padding-top: 140px; }
  .steps-list li { padding-left: 0; }
  .step-dot { top: -80px; left: 0; }
}

/* ===== Motion — só com JS e sem reduced-motion (ver MASTER.md) ===== */
.service-list li { position: relative; border-top: 0; }
.service-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--rose-400); transform-origin: left center;
}
.word { display: inline-block; }

@keyframes rise { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgb(142 64 73 / .45), var(--shadow-float); }
  100% { box-shadow: 0 0 0 18px rgb(142 64 73 / 0), var(--shadow-float); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: entrada orquestrada no carregamento */
  .js .hero-media img { animation: settle 2.2s var(--ease-out) both; }
  .js .hero h1 .word { opacity: 0; animation: rise .7s var(--ease-out) both; animation-delay: calc(.15s + var(--w) * 55ms); }
  .js .hero .lead { animation: fade-up .7s var(--ease-out) .75s both; }
  .js .hero-actions { animation: fade-up .7s var(--ease-out) .95s both; }

  /* Revelação genérica por scroll */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Listas: itens em cascata */
  .js [data-reveal="list"] { opacity: 1; transform: none; }
  .js [data-reveal="list"] > li { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal="list"].is-in > li { opacity: 1; transform: none; }
  .js .service-list > li::before { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + .1s); }
  .js .service-list.is-in > li::before { transform: scaleX(1); }
  .js .signs-list > li::before { transform: scale(0); }
  .js .signs-list.is-in > li::before { animation: pop .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + .15s); }

  /* Foto do Sobre: arco se abre de baixo para cima */
  .js [data-reveal="arch"] { opacity: 1; transform: none; }
  .js [data-reveal="arch"] img {
    clip-path: inset(100% -20px -20px -20px round 240px 240px 40px 40px);
    transition: clip-path 1.2s var(--ease-out);
  }
  .js [data-reveal="arch"].is-in img { clip-path: inset(-20px -20px -20px -20px round 240px 240px 40px 40px); }

  /* Fio dourado + etapas em sequência */
  .js .thread path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
  .js .thread.is-drawn path { stroke-dashoffset: 0; }
  .js .steps-list > li { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 350ms + .2s); }
  .js .steps-wrap.is-in .steps-list > li { opacity: 1; transform: none; }
  .js .steps-list > li .step-dot { transform: scale(0); }
  .js .steps-wrap.is-in .steps-list > li .step-dot { animation: pop .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 350ms + .25s); }

  /* WhatsApp flutuante: pulso de atenção (3x) */
  .wa-float { animation: ring 1.6s ease-out 2.5s 3; }

  /* Microinterações */
  .btn .icon { transition: transform var(--t-fast) var(--ease-out); }
  .btn:hover .icon { transform: rotate(-12deg) scale(1.1); }
  .about-photo img { transition: clip-path 1.2s var(--ease-out), transform .6s var(--ease-out); }
  .wa-float { transition: transform var(--t-fast) var(--ease-out); }
  .wa-float:hover { transform: scale(1.06); }
}

/* Contato */
.contact { background: var(--wine-800); color: var(--blush-50); padding-block: var(--section-y); }
.contact h2 { color: var(--blush-50); }
.contact p { max-width: 46ch; }
.contact .btn { margin-top: var(--s2); }
.contact-grid { display: grid; gap: var(--s5); align-items: center; }
.contact-info { border-left: 1px solid var(--gold-500); padding-left: var(--s4); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .icon { color: var(--gold-200); margin-top: 2px; }
.contact-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--gold-200); font-weight: 700; text-underline-offset: 5px;
}
.contact-link:hover { color: var(--white); }
.contact :focus-visible { outline-color: var(--gold-200); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: var(--s7); }
}

/* Footer */
.site-footer { background: var(--wine-900); color: var(--blush-200); font-size: .9375rem; padding-block: var(--s5); }
.footer-inner { display: grid; gap: var(--s2); }
.footer-inner p { margin: 0; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr auto; align-items: end; }
}

/* WhatsApp flutuante (mobile) */
.wa-float {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-float);
}
.wa-float svg { width: 28px; height: 28px; }

/* Mobile nav */
@media (max-width: 899px) {
  .header-cta { display: none; }
  .wa-float { display: inline-flex; }
  .site-footer { padding-bottom: 96px; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: var(--s1) var(--s3) var(--s3);
    background: var(--blush-50); border-bottom: 1px solid var(--rose-400);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { width: 100%; min-height: 48px; padding: 0; font-size: 1.125rem; }
}
@media (max-width: 1080px) and (min-width: 900px) {
  .nav-list a { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
