/* =========================================================
   Erika Arcanjo — Farmacêutica Esteta
   Paleta: marsala (logo #911A1A) · vinho · nude · creme
   ========================================================= */

@font-face { font-family: 'EB Garamond'; src: url(fonts/eb-garamond-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url(fonts/eb-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url(fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light only;
  --marsala: #8C1C24;      /* cor principal (logo) */
  --vinho: #5E141B;        /* hover / profundidade */
  --vinho-escuro: #4A1219; /* seções escuras (mesma família do marsala) */
  --vinho-rodape: #3A0E14;
  --rose-claro: #EBC9C1;   /* destaques sobre fundo escuro */
  --nude: #F3E6E0;         /* arco / destaques suaves */
  --rose: #F9F1ED;
  --creme: #FBF7F3;        /* fundo */
  --tinta: #2A1A1C;        /* texto */
  --suave: #75605F;        /* texto secundário */
  --linha: #F0E6E1;
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1160px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--creme); color: var(--tinta);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--marsala); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--marsala); color: #fff; padding: 10px 16px; }
.skip-link:focus-visible { left: 0; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }
h1, h2, h3 { color: var(--marsala); }  /* todos os títulos em marsala */
h1 em, h2 em { font-style: italic; color: var(--marsala); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--marsala); display: flex; align-items: center; gap: 12px;
}
.eyebrow.center { justify-content: center; }
.eyebrow-sub { margin-top: 6px; font-size: .72rem; letter-spacing: .16em; color: var(--suave); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--marsala); color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 12px 28px -12px rgba(140, 28, 36, .6);
}
.btn:hover { background: var(--vinho); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: .88rem; box-shadow: none; }
.btn-light { background: var(--creme); color: var(--marsala); box-shadow: none; }
.btn-light:hover { background: #fff; color: var(--vinho); }
.link-arrow { font-weight: 600; font-size: .95rem; color: var(--tinta); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .25s var(--ease); color: var(--marsala); }
.link-arrow:hover span { transform: translateX(4px); }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 247, 243, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--linha); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--suave); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--marsala); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 1100; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--tinta); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ================= HERO ================= */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); margin: 22px 0 26px; }
.lead { font-size: 1.12rem; color: var(--suave); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; }

.hero-visual { position: relative; justify-self: center; width: min(460px, 100%); }
.arch {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: linear-gradient(180deg, var(--nude) 0%, #EBD5CC 100%);
}
.arch::before { /* contorno fino, detalhe elegante */
  content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(255,255,255,.7);
  border-bottom: 0; border-radius: inherit; z-index: 2; pointer-events: none;
}
.arch img { position: absolute; left: 50%; bottom: -6%; width: 112%; max-width: none; transform: translateX(-50%); }

.float-card {
  position: absolute; left: -48px; bottom: 56px; z-index: 3;
  width: 270px; padding: 16px 20px; border-radius: 16px;
  background: #fff; box-shadow: 0 24px 50px -20px rgba(46, 11, 16, .35);
}
.float-card p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.3; font-style: italic; margin-top: 4px; }
.stars { color: #C59A4E; letter-spacing: .12em; font-size: .85rem; }

/* ================= FAIXA ================= */
.ribbon { background: var(--marsala); color: var(--rose); overflow: hidden; padding: 18px 0; }
.ribbon-track { display: flex; gap: 28px; width: max-content; animation: slide 120s linear infinite; font-family: var(--serif); font-size: 1.35rem; font-style: italic; white-space: nowrap; }
.ribbon i { font-style: normal; font-size: .8rem; opacity: .6; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ================= SEÇÕES ================= */
.section { padding: 120px 0; }
.section h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); margin-top: 18px; }
.section-head { margin-bottom: 64px; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-mark { color: var(--marsala); user-select: none; }
.about-mark svg { display: block; width: 100%; height: auto; }
.about-copy > p { color: var(--suave); margin-top: 22px; max-width: 58ch; }
.pillars { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--linha); padding-top: 28px; }
.pillars strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--marsala); margin-bottom: 4px; }
.pillars span { font-size: .9rem; color: var(--suave); line-height: 1.5; }

/* Tratamentos */
.treatments { background: var(--creme); }
.treat-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.treat-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid rgba(140, 28, 36, .18);
}
.treat-list .num { font-family: var(--serif); font-size: 1.1rem; color: var(--marsala); font-style: italic; }
.treat-list h3 { font-size: 1.7rem; margin-bottom: 6px; transition: color .25s; }
.treat-list p { color: var(--suave); font-size: .97rem; }
.treat-list li:hover h3 { color: var(--vinho); }
/* Categorias de tratamento */
.treat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 48px; }
.treat-tabs[hidden] { display: none; }
.treat-tab {
  font: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--marsala); border: 1px solid rgba(140, 28, 36, .28);
  transition: background .25s, color .25s, border-color .25s;
}
.treat-tab:hover { border-color: var(--marsala); }
.treat-tab[aria-selected="true"] { background: var(--marsala); color: var(--creme); border-color: var(--marsala); }
.treat-tab:focus-visible { outline: 2px solid var(--vinho); outline-offset: 3px; }
.treat-group + .treat-group { margin-top: 64px; }
.treatments .treat-group-title {
  font-size: 1.35rem; font-style: italic; margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.treatments .treat-group-title::before { content: "✦"; font-style: normal; font-size: .8rem; }
.treat-tabs-on .treat-group + .treat-group { margin-top: 0; }
.treat-tabs-on .treat-group[hidden] { display: none; }
.treat-tabs-on .treat-group-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.treat-note { margin-top: 48px; color: var(--suave); }
.treat-note a { color: var(--marsala); font-weight: 600; border-bottom: 1px solid currentColor; }

/* Como funciona */
.steps { background: var(--vinho-escuro); color: var(--rose); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.light .eyebrow { color: var(--rose-claro); }
.section-head.light h2, .section-head.light h2 em { color: var(--rose-claro); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps-grid article { padding: 36px 32px; background: rgba(255,255,255,.05); border: 1px solid rgba(244, 230, 224, .16); border-radius: 20px; }
.steps-grid span { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--rose-claro); }
.steps-grid h3 { font-size: 1.8rem; margin: 18px 0 10px; color: #fff; }
.steps-grid p { color: rgba(244, 230, 224, .72); font-size: .97rem; }

/* Depoimentos — cartões no estilo Google */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.review {
  background: #fff; border-radius: 16px; padding: 24px 26px;
  border: 1px solid var(--linha); box-shadow: 0 18px 40px -28px rgba(74, 18, 25, .35);
  font-family: Roboto, Arial, var(--sans); color: #202124;
}
.review header { display: flex; align-items: center; gap: 12px; }
.avatar { object-fit: cover; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 1.05rem; }
.who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who strong { font-weight: 600; font-size: .95rem; }
.who span { font-size: .8rem; color: #70757a; }
.review .g-logo { margin-left: auto; flex: 0 0 auto; }
.g-stars { display: block; margin: 14px 0 8px; color: #FBBC04; letter-spacing: 2px; font-size: 1rem; }
.review p { font-size: .95rem; line-height: 1.6; color: #3c4043; }
.review p + p { margin-top: 10px; }
.reviews-more { display: flex; width: max-content; margin: 36px 0 0; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--tinta); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--linha); background: #fff; transition: border-color .2s; }
.reviews-more:hover { border-color: var(--marsala); }

/* CTA */
.cta { background: var(--creme); color: var(--tinta); padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.cta p { margin: 16px auto 36px; color: var(--suave); max-width: 44ch; }

/* Footer */
.site-footer { background: var(--vinho-rodape); color: rgba(244, 230, 224, .7); padding: 56px 0 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer-grid img { height: 54px; width: auto; }
.footer-links { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }
.footer-links { align-items: center; }
.footer-links a:hover { color: #fff; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244,230,224,.3); transition: background .2s, border-color .2s; }
.social:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(244,230,224,.12); padding-top: 24px; font-size: .82rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.ig-float {
  position: fixed; right: 90px; bottom: 20px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.ig-float:hover { transform: scale(1.07); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ================= RESPONSIVO ================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .float-card { left: -12px; }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-mark { display: none; }
  .steps-grid { gap: 16px; }
  .steps-grid article { padding: 28px 22px; }
  .steps-grid h3 { font-size: 1.5rem; }
  .reviews { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 860px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--creme); } /* sem isso o menu fixo fica preso no header */
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1050;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--creme);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-links a:not(.btn) { font-family: var(--serif); font-size: 2rem; color: var(--tinta); }
  .menu-open { overflow: hidden; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { min-height: 68px; }
  .brand img { height: 38px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 3rem; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .float-card { width: 230px; bottom: 20px; left: -8px; padding: 12px 14px; }
  .float-card p { font-size: .92rem; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .treat-list { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 22px 20px; }
  .steps-grid article span { grid-row: span 2; font-size: 2.6rem; }
  .steps-grid h3 { margin: 0 0 6px; }
  .review { padding: 20px; }
  .treat-list h3 { font-size: 1.55rem; }
  .treat-tabs { flex-wrap: wrap; gap: 8px; margin: -32px 0 36px; }
  .treat-tabs::-webkit-scrollbar { display: none; }
  .treat-tab { flex: none; padding: 9px 16px; font-size: .86rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .ig-float { width: 54px; height: 54px; right: 80px; bottom: 16px; }
}
