/* ============================================================
   SYNKA Wellness Studio — Design System (site público)
   Linhas finas · formas orgânicas · movimento sereno
   ============================================================ */

:root {
  /* Paleta da marca */
  --cacau: #251D17;
  --espresso: #3B2F25;
  --moca: #5A4636;
  --bronze: #A07B5B;
  --bronze-claro: #C4A184;
  --areia: #D8CABC;
  --linho: #E6E1DC;
  --marfim: #F6F3EF;
  --pedra: #8E7F72;
  --branco: #FFFFFF;

  /* Semântica */
  --bg: var(--linho);
  --surface: var(--marfim);
  --ink: var(--espresso);
  --ink-soft: #6B5B4E;
  --muted: var(--pedra);
  --line: rgba(59, 47, 37, .14);
  --line-strong: rgba(59, 47, 37, .28);
  --ok: #5E7A5A;
  --warn: #B58A3C;
  --err: #A4523F;

  /* Tipografia */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;

  /* Ritmo */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 32px;
  --r-xl: 48px;
  --pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-soft: 0 1px 1px rgba(37, 29, 23, .03), 0 12px 40px -18px rgba(37, 29, 23, .22);
  --shadow-float: 0 30px 80px -30px rgba(37, 29, 23, .35);
  --wrap: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--bronze); color: var(--marfim); }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; border-radius: 4px; }

/* Grão de papel (como no logótipo) */
.grain::before {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ── Tipografia ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.center::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.display em, h1 em, h2 em, h3 em { font-style: italic; color: var(--bronze); font-weight: 300; }
.h-xl { font-size: clamp(3rem, 7.4vw, 7rem); }
.h-lg { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.h-md { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.h-sm { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.2; }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.16rem); color: var(--ink-soft); max-width: 36rem; }
.caps { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }

/* ── Layout ── */
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 11vw, 9.5rem) 0; }
.section-head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head.center { text-align: center; justify-items: center; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Botões ── */
.btn {
  --b: var(--espresso);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.02rem 2rem;
  border-radius: var(--pill);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn .ico { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bronze);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn-solid { background: var(--espresso); color: var(--marfim); }
.btn-solid:hover { box-shadow: 0 18px 40px -18px rgba(160, 123, 91, .8); }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { color: var(--marfim); border-color: var(--bronze); }
.btn-light { background: var(--marfim); color: var(--espresso); }
.btn-light:hover { color: var(--marfim); }
.btn-ghost-light { border: 1px solid rgba(246, 243, 239, .35); color: var(--marfim); }
.btn-ghost-light:hover { border-color: var(--bronze); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { padding: .72rem 1.35rem; font-size: .68rem; }
.btn-block { width: 100%; }

.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding-bottom: .35rem;
}
.link-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: right; animation: lineIn .6s .3s var(--ease) forwards; }
@keyframes lineIn { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.link-line .ico { width: 15px; height: 15px; }

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .6s var(--ease), height .6s var(--ease), box-shadow .6s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.site-header.scrolled { background: rgba(230, 225, 220, .82); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); height: 70px; }
.site-header.scrolled::after { transform: scaleX(1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; color: var(--espresso); }
.brand .brand-mono { width: 42px; height: 36px; }
.brand .brand-word { width: 128px; height: 36px; }
.brand-divider { width: 1px; height: 30px; background: var(--bronze); opacity: .6; }
.brand img.brand-custom { height: 44px; width: auto; }
.nav { display: flex; gap: 2.3rem; }
.nav a {
  position: relative;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .4rem 0;
  transition: color .4s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bronze);
  transform: translate(-50%, 6px) scale(0);
  transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--espresso); }
.nav a:hover::after, .nav a.active::after { transform: translate(-50%, 6px) scale(1); }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-account { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--line); transition: border-color .4s, background .4s; }
.header-account:hover { border-color: var(--bronze); background: rgba(160, 123, 91, .08); }
.header-account .ico { width: 18px; height: 18px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--espresso); transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--linho);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  clip-path: circle(0 at calc(100% - 3rem) 2.6rem);
  transition: clip-path .9s var(--ease-in-out);
  pointer-events: none;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 3rem) 2.6rem); pointer-events: auto; }
.mobile-menu a.mm-link { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 300; line-height: 1.3; display: flex; align-items: baseline; gap: 1rem; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease); }
.mobile-menu a.mm-link small { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--bronze); }
.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.menu-open .mobile-menu a.mm-link:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a.mm-link:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a.mm-link:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a.mm-link:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu a.mm-link:nth-child(6) { transition-delay: .25s; }
.menu-open .mobile-menu a.mm-link:nth-child(7) { transition-delay: .3s; }
.mobile-menu .mm-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Formulários ── */
.field { display: grid; gap: .45rem; position: relative; }
.field label, .label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.field label .opt { text-transform: none; letter-spacing: 0; font-size: .78rem; opacity: .8; }
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: .75rem 0 .7rem;
  outline: none;
  transition: border-color .4s;
}
.textarea { resize: vertical; min-height: 110px; }
.input::placeholder, .textarea::placeholder { color: rgba(142, 127, 114, .65); }
.field .bar { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.input:focus ~ .bar, .textarea:focus ~ .bar, .select:focus ~ .bar { transform: scaleX(1); }
.input.boxed, .textarea.boxed, .select.boxed { border: 1px solid var(--line-strong); border-radius: 14px; padding: .8rem 1rem; background: rgba(255, 255, 255, .35); }
.input.boxed:focus, .textarea.boxed:focus, .select.boxed:focus { border-color: var(--bronze); background: rgba(255, 255, 255, .6); }
.form-grid { display: grid; gap: 1.8rem 2rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.msg { font-size: .9rem; padding: .85rem 1.1rem; border-radius: 14px; border: 1px solid; }
.msg-ok, .msg-success { color: var(--ok); border-color: rgba(94, 122, 90, .35); background: rgba(94, 122, 90, .08); }
.msg-error { color: var(--err); border-color: rgba(164, 82, 63, .35); background: rgba(164, 82, 63, .07); }
.msg-info { color: var(--moca); border-color: var(--line-strong); background: rgba(255, 255, 255, .35); }

/* ── Revelação ao scroll ── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
.reveal-mask.in { clip-path: inset(0 0 0 0); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* ── Emblema (selo animado) ── */
.emblem { position: relative; aspect-ratio: 1; color: var(--espresso); }
.emblem .ring { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.emblem .ring svg { width: 100%; height: 100%; }
.emblem .core { position: absolute; inset: 24%; display: grid; place-items: center; }
.emblem .core svg { width: 88%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toasts { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: .6rem; justify-items: center; }
.toast { background: var(--espresso); color: var(--marfim); padding: .85rem 1.4rem; border-radius: var(--pill); font-size: .88rem; box-shadow: var(--shadow-float); animation: toastIn .6s var(--ease); display: flex; gap: .7rem; align-items: center; }
.toast .ico { width: 16px; height: 16px; color: var(--bronze-claro); }
.toast-error { background: #6E3A2C; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(37, 29, 23, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open, .modal.active { display: flex; animation: fade .5s var(--ease); }
.modal-box { position: relative; width: min(470px, 100%); max-height: calc(100vh - 2.4rem); overflow: auto; background: var(--marfim); border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-float); animation: rise .7s var(--ease); }
.modal-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s; }
.modal-close:hover { transform: rotate(90deg); border-color: var(--bronze); }
.modal-close .ico { width: 16px; height: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ── Spinner (anel sincronizado) ── */
.loader { width: 34px; height: 34px; margin: 2rem auto; position: relative; }
.loader::before, .loader::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid transparent; border-top-color: var(--bronze); animation: spin 1.1s var(--ease-in-out) infinite; }
.loader::after { inset: 6px; border-top-color: var(--espresso); animation-duration: 1.6s; animation-direction: reverse; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .8rem; border-radius: var(--pill); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-pending { color: var(--warn); border-color: rgba(181, 138, 60, .35); background: rgba(181, 138, 60, .07); }
.badge-confirmed { color: var(--moca); border-color: rgba(90, 70, 54, .3); background: rgba(160, 123, 91, .1); }
.badge-done { color: var(--ok); border-color: rgba(94, 122, 90, .35); background: rgba(94, 122, 90, .08); }
.badge-cancelled { color: var(--err); border-color: rgba(164, 82, 63, .3); background: rgba(164, 82, 63, .06); }

/* ── Footer ── */
.site-footer { position: relative; background: var(--cacau); color: rgba(246, 243, 239, .72); padding: clamp(4rem, 9vw, 7rem) 0 2rem; overflow: hidden; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 3rem; }
.site-footer h4 { font-family: var(--sans); font-weight: 400; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-claro); margin: 0 0 1.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--marfim); }
.footer-seal { width: 170px; color: var(--marfim); }
.footer-bottom { margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid rgba(246, 243, 239, .1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.footer-dev { display: inline-flex; align-items: center; gap: .9rem; opacity: .9; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.footer-dev img { height: 38px; width: auto; display: block; }
.footer-dev:hover { transform: translateY(-1px); }
.footer-dev:hover { opacity: 1; }
.footer-contact div { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.footer-contact .ico { width: 17px; height: 17px; margin-top: .3rem; color: var(--bronze-claro); flex-shrink: 0; }
.footer-giant { position: absolute; left: 50%; bottom: -4vw; transform: translateX(-50%); width: 110%; color: rgba(246, 243, 239, .035); pointer-events: none; }

/* ── WhatsApp flutuante ── */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--marfim); background: var(--espresso); box-shadow: var(--shadow-float); transition: transform .5s var(--ease), background .4s; }
.wa-float::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--bronze); opacity: .6; animation: pulse 3s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.06); background: var(--bronze); }
.wa-float .ico { width: 24px; height: 24px; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }

/* ── Responsivo base ── */
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .header-actions .btn { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2rem); }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .brand .brand-word { width: 104px; }
  .brand .brand-mono { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-mask, .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
