/* Tokens — ver design-system/MASTER.md */
:root {
  --ice-50: #F6F8FB;
  --ice-200: #E6EDF5;
  --blue-300: #9DB3CB;
  --blue-600: #2F5B8C;
  --blue-700: #244A75;
  --navy-800: #1F3E63;
  --navy-900: #1C3352;
  --navy-950: #152A45;
  --ink-soft: #4F6178;
  --gold-500: #BF9A55;
  --gold-700: #8A6A2E;
  --gold-200: #E3C48B;
  --white: #FFFFFF;

  --color-bg: var(--ice-50);
  --color-surface-alt: var(--ice-200);
  --color-text: var(--navy-900);
  --color-text-soft: var(--ink-soft);
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-on-primary: var(--white);
  --color-focus: var(--navy-900);

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-script: "Pinyon Script", "Brush Script MT", cursive;
  --font-body: "Mulish", 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(28 51 82 / .5);
  --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-weight: 400; line-height: 1.2; margin: 0 0 var(--s2); text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--s2); }
a { color: var(--color-primary); }
address { font-style: normal; }
strong { font-weight: 700; }

.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(--navy-900); color: var(--ice-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(--ice-50); color: var(--navy-800); }
.btn-light:hover { background: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(246 248 251 / .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgb(157 179 203 / .45);
}
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text); margin-right: auto; }
.brand-logo { width: 74px; height: 43px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-script); font-size: 2rem; color: var(--blue-600); line-height: 1; }
.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: arte oficial dentro do h1 */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.hero-lead { font-size: 1.1875rem; color: var(--color-text-soft); margin: 0; }
.hero-band-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }

@media (min-width: 900px) {
  .hero-band { position: absolute; left: 0; top: 77%; width: 61%; }
  .hero-band .container { width: 100%; }
  .hero-band-inner { align-items: center; text-align: center; gap: var(--s2); }
  .hero-lead { font-size: 1.0625rem; color: var(--navy-900); }
}
@media (max-width: 899px) {
  .hero-band { background: var(--color-bg); padding-block: var(--s4) var(--s5); }
}

/* Credenciais */
.creds { background: var(--navy-800); color: var(--ice-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%, 420px); }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% center;
  border-radius: 210px 210px 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: 420px 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 { position: relative; padding-block: var(--s4); }
.service-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--blue-300); transform-origin: left center;
}
.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 */
.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(--blue-600); }
.steps-list::before {
  content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--gold-500), var(--blue-300));
}
@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); padding-top: 140px; }
  .steps-list li { padding-left: 0; }
  .step-dot { top: -80px; left: 0; }
}

/* Contato */
.contact { background: var(--navy-800); color: var(--ice-50); padding-block: var(--section-y); }
.contact h2 { color: var(--ice-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; margin-top: -10px;
  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(--navy-950); color: var(--ice-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(--ice-50); border-bottom: 1px solid var(--blue-300);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { width: 100%; min-height: 48px; padding: 0; font-size: 1.125rem; }
}
@media (max-width: 420px) {
  .brand-logo { width: 56px; height: 33px; }
  .brand-name { font-size: 1.75rem; }
}
@media (max-width: 1080px) and (min-width: 900px) { .nav-list a { padding: 0 8px; } }

/* ===== Motion — só com JS e sem reduced-motion ===== */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } 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(47 91 140 / .45), var(--shadow-float); }
  100% { box-shadow: 0 0 0 18px rgb(47 91 140 / 0), var(--shadow-float); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-art img { animation: settle 2.2s var(--ease-out) both; }
  .js .hero-lead { animation: fade-up .7s var(--ease-out) .6s both; }
  .js .hero-band .btn { animation: fade-up .7s var(--ease-out) .8s both; }

  .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; }

  .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); }

  .js [data-reveal="arch"] { opacity: 1; transform: none; }
  .js [data-reveal="arch"] img {
    clip-path: inset(100% -20px -20px -20px round 230px 230px 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 230px 230px 40px 40px); }

  .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); }

  .wa-float { animation: ring 1.6s ease-out 2.5s 3; transition: transform var(--t-fast) var(--ease-out); }
  .wa-float:hover { transform: scale(1.06); }
  .btn .icon { transition: transform var(--t-fast) var(--ease-out); }
  .btn:hover .icon { transform: rotate(-12deg) scale(1.1); }
}

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