/* ============================================================
   VITALY CLINIC — Global Styles
   ============================================================ */

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --gray-50: #faf9f7;
  --gray-100:#f0ede8;
  --gray-400:#9ca3af;
  --gray-600:#4b5563;
  --green:   #b8973a;       /* reaproveitando var --green como cor primária dourada */
  --green-light: #d4af5a;
  --gold:    #b8973a;
  --gold-light: #d4af5a;
  --gold-bg: #c9a84c;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2 { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { color: var(--gray-600); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark p { color: #aaa; }
.section--gray { background: var(--gray-50); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(184,151,58,.35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(184,151,58,.45); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white); box-shadow: 0 4px 20px rgba(184,151,58,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(184,151,58,.45); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(184,151,58,.12); color: var(--green); margin-bottom: 16px;
}
.badge--gold { background: rgba(184,151,58,.12); color: var(--gold); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  min-height: 76px;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; }
.navbar__logo img { display: block; height: 44px; width: auto; }
.navbar__links { display: flex; gap: 16px; align-items: center; }
.navbar__links a { font-size: .75rem; font-weight: 500; color: var(--gray-600); transition: color var(--transition); }
.navbar__links a:hover { color: var(--green); }
.navbar__cta { display: flex; gap: 12px; align-items: center; }
.navbar__cta .btn { font-size: .85rem; padding: 10px 20px; }
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.navbar__hamburger span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: var(--transition); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #faf8f3 0%, #fff 60%, #f5f0e0 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,151,58,.08) 0%, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero__eyebrow-text { font-size: .85rem; font-weight: 600; color: var(--green); letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__sub { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__trust { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--gray-600); }
.hero__trust-item svg { color: var(--green); flex-shrink: 0; }
.hero__visual { position: relative; }
.hero__card {
  background: var(--white); border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero__card-stat { display: flex; flex-direction: column; gap: 20px; }
.hero__stat { display: flex; align-items: center; gap: 16px; }
.hero__stat-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(184,151,58,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero__stat-icon svg { color: var(--green); }
.hero__stat-num { font-size: 1.6rem; font-weight: 800; color: var(--black); line-height: 1; }
.hero__stat-label { font-size: .8rem; color: var(--gray-400); }
.hero__floating {
  position: absolute; background: var(--white); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600;
}
.hero__floating--top { top: -20px; right: -20px; }
.hero__floating--bottom { bottom: -20px; left: -20px; }
.hero__floating-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* ── Section Header ── */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 12px; }

/* ── Authority ── */
.authority__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.authority__card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.authority__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.authority__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(184,151,58,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.authority__icon svg { color: var(--green); }
.authority__card h3 { margin-bottom: 8px; }

/* ── Problems ── */
.problems__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.problem-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition); cursor: pointer;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.problem-card__icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(184,151,58,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.problem-card__icon svg { color: var(--green); }
.problem-card h3 { margin-bottom: 4px; font-size: 1rem; }
.problem-card p { font-size: .88rem; }
.problem-card__arrow { margin-left: auto; color: var(--green); opacity: 0; transition: var(--transition); }
.problem-card:hover .problem-card__arrow { opacity: 1; transform: translateX(4px); }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 28px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 2px; background: linear-gradient(90deg, var(--green), var(--gold));
}
.step { text-align: center; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green);
  color: var(--white); font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(184,151,58,.4);
}
.step h3 { margin-bottom: 8px; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--black) 0%, #1a2e25 100%);
  border-radius: 24px; padding: 64px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,151,58,.2) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p  { color: #aaa; margin-bottom: 32px; font-size: 1.05rem; }

/* ── Footer ── */
.footer { background: var(--black); color: #aaa; padding: 60px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand p { font-size: .88rem; margin-top: 12px; max-width: 260px; }
.footer__col h4 { color: var(--white); font-size: .9rem; margin-bottom: 16px; }
.footer__col a { display: block; font-size: .85rem; margin-bottom: 8px; transition: color var(--transition); }
.footer__col a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid #1f1f1f; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; flex-wrap: wrap; gap: 12px; }
.footer__logo { font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; }
.footer__logo span { color: var(--green); }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; bottom: 90px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition); cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.6); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--white); border-top: 1px solid var(--gray-100);
  padding: 12px 20px; display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.sticky-cta.visible { display: flex; }
.sticky-cta p { font-size: .9rem; font-weight: 600; }
.sticky-cta p span { color: var(--green); }

/* ── Quiz / Chat ── */
.quiz-page {
  min-height: 100vh; background: linear-gradient(135deg, #f8faf9 0%, #fff 100%);
  padding: 100px 0 60px; display: flex; align-items: center;
}
.quiz-wrapper { width: 800px; max-width: 100%; margin: 0 auto; }
.quiz-header { text-align: center; margin-bottom: 40px; }
.quiz-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.quiz-progress { background: var(--gray-100); border-radius: 50px; height: 6px; margin-bottom: 32px; overflow: hidden; }
.quiz-progress__bar { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 50px; transition: width .5s ease; }

/* Chat bubbles */
.chat-window {
  background: var(--white); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-lg); height: 420px;
  display: flex; flex-direction: column;
}
#chat-messages {
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.chat-msg { display: flex; gap: 10px; align-items: flex-end; }
.chat-msg--bot { flex-direction: row; }
.chat-msg--user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--white);
  overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-bubble {
  max-width: 80%; padding: 12px 16px; border-radius: 18px;
  font-size: .92rem; line-height: 1.5;
}
.chat-bubble--bot { background: var(--gray-50); border-bottom-left-radius: 4px; color: var(--black); }
.chat-bubble--user { background: var(--green); color: var(--white); border-bottom-right-radius: 4px; }

/* Typing indicator */
.typing { display: flex; gap: 4px; align-items: center; padding: 14px 18px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Quiz options */
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.quiz-option {
  padding: 12px 18px; border-radius: 50px; border: 2px solid var(--gray-100);
  background: var(--white); cursor: pointer; font-size: .9rem; font-weight: 500;
  transition: var(--transition); text-align: left;
}
.quiz-option:hover { border-color: var(--green); color: var(--green); background: rgba(184,151,58,.06); }
.quiz-option.selected { border-color: var(--green); background: var(--green); color: var(--white); }

/* Quiz form */
.quiz-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.quiz-input {
  padding: 14px 18px; border-radius: 12px; border: 2px solid var(--gray-100);
  font-size: .95rem; outline: none; transition: var(--transition); width: 100%;
  font-family: inherit;
}
.quiz-input:focus { border-color: var(--green); }
.quiz-input::placeholder { color: var(--gray-400); }

/* ── Thank You / Result ── */
.result-page { min-height: 100vh; padding: 100px 0 60px; background: var(--gray-50); }
.result-card {
  background: var(--white); border-radius: 24px; padding: 48px;
  box-shadow: var(--shadow-lg); max-width: 680px; margin: 0 auto;
}
.result-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,151,58,.12); color: var(--green);
  padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: .85rem;
  margin-bottom: 24px;
}
.result-card h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.result-diagnosis {
  background: var(--gray-50); border-radius: 16px; padding: 24px;
  border-left: 4px solid var(--green); margin: 24px 0;
}
.result-diagnosis h3 { color: var(--green); margin-bottom: 8px; }
.result-suggestions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.result-suggestion {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 12px; background: var(--gray-50);
}
.result-suggestion__icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(184,151,58,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-suggestion__icon svg { color: var(--green); }
.result-cta { text-align: center; margin-top: 32px; }
.result-cta .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 18px; }

/* ── SEO Pages ── */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #f8faf9 0%, #fff 100%);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { font-size: 1.15rem; max-width: 640px; }
.content-section { padding: 60px 0; }
.content-section h2 { margin-bottom: 16px; }
.content-section h3 { margin: 28px 0 10px; color: var(--green); }
.content-section p { margin-bottom: 16px; }
.content-section ul { margin: 12px 0 20px 20px; }
.content-section ul li { margin-bottom: 8px; color: var(--gray-600); list-style: disc; }
.content-cta {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 20px; padding: 48px; text-align: center; margin: 48px 0;
}
.content-cta h2 { color: var(--white); margin-bottom: 12px; }
.content-cta p  { color: rgba(255,255,255,.8); margin-bottom: 24px; }

/* ── Blog ── */
.blog-hero { padding: 120px 0 60px; background: var(--gray-50); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__img { height: 180px; background: linear-gradient(135deg, var(--green), var(--green-light)); display: flex; align-items: center; justify-content: center; }
.blog-card__img svg { color: rgba(255,255,255,.4); width: 64px; height: 64px; }
.blog-card__body { padding: 24px; }
.blog-card__tag { font-size: .75rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 8px; }
.blog-card p { font-size: .85rem; }
.blog-card__link { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: .85rem; font-weight: 600; margin-top: 12px; }
.article-hero { padding: 120px 0 48px; background: var(--gray-50); }
.article-body { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
.article-body h2 { margin: 36px 0 12px; }
.article-body h3 { margin: 24px 0 8px; color: var(--green); }
.article-body p  { margin-bottom: 16px; }
.article-body ul { margin: 12px 0 20px 20px; }
.article-body ul li { margin-bottom: 8px; color: var(--gray-600); list-style: disc; }
.article-cta {
  background: var(--gray-50); border-radius: 16px; padding: 32px;
  text-align: center; margin: 40px 0; border: 1px solid var(--gray-100);
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p  { margin-bottom: 20px; }

/* ── Play button ── */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.btn-play__circle {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(184,151,58,.45);
  transition: var(--transition);
}
.btn-play:hover .btn-play__circle { transform: scale(1.1); box-shadow: 0 8px 28px rgba(184,151,58,.55); }
.btn-play__label { font-size: .9rem; font-weight: 600; color: var(--black); }

/* ── Tour Modal ── */
.tour-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.tour-modal.open { opacity: 1; pointer-events: all; }
.tour-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
}
.tour-modal__content {
  position: relative; z-index: 1;
  width: min(420px, 92vw);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  transform: scale(.95); transition: transform .3s ease;
}
.tour-modal.open .tour-modal__content { transform: scale(1); }
.tour-modal__content video { display: block; width: 100%; aspect-ratio: 9/16; background: #000; }
.tour-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: var(--transition);
}
.tour-modal__close:hover { background: var(--white); transform: scale(1.1); }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .authority__grid { grid-template-columns: 1fr; }
  .problems__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 76px; left: 0; right: 0; background: var(--white);
    padding: 24px 20px; border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow); gap: 16px;
  }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .result-card { padding: 28px 20px; }
  .sticky-cta { flex-direction: column; gap: 8px; text-align: center; }
}
