/* ============================================================
   styles.css — Dr. Marco Antonio Crisanto (GSD PRO)
   Estetica clinica. Mobile-first. Organizado por secoes.
   ============================================================ */
@import url('variables.css');

/* ---------- 1. Reset / Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-primary); color: var(--text-color); background: var(--bg-color);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.2; font-weight: 600; color: var(--secondary-color); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--spacing-md); }
.section { padding-block: var(--spacing-2xl); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--blue-tint); }

.section__head { text-align: center; max-width: 660px; margin: 0 auto var(--spacing-xl); }
.section__tag {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-color); margin-bottom: var(--spacing-sm);
}
.section__tag::before { content:''; width: 22px; height: 2px; background: var(--primary-color); display:inline-block; }
.section__title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.section__subtitle { color: var(--text-muted); margin-top: var(--spacing-sm); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; cursor: pointer;
  font-family: var(--font-primary); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: var(--border-radius); border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary-color); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--wpp { background: var(--whatsapp); color: #fff; }
.btn--wpp:hover { background: #1db855; }

/* ---------- 2. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-height); z-index: 100; display: flex; align-items: center;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color); transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__logo { height: 78px; width: auto; display: block; }
@media (max-width: 600px) { :root { --header-height: 82px; } .brand__logo { height: 58px; } }
.brand__name { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; line-height: 1.15; color: var(--secondary-color); }
.brand__role { font-size: 0.72rem; color: var(--primary-color); font-weight: 600; letter-spacing: 0.03em; }

.nav { position: fixed; inset: var(--header-height) 0 auto 0; background: var(--bg-color);
  border-bottom: 1px solid var(--border-color); transform: translateY(-120%); transition: transform var(--transition); }
.nav.open { transform: translateY(0); box-shadow: var(--shadow); }
.nav__list { display: flex; flex-direction: column; padding: var(--spacing-md); gap: 0.25rem; }
.nav__link { display: block; padding: 0.75rem var(--spacing-sm); font-weight: 500; border-radius: var(--border-radius); }
.nav__link:hover { background: var(--bg-soft); color: var(--blue); }
.nav__cta { margin-top: var(--spacing-sm); }

.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: none; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 24px; height: 2px; background: var(--secondary-color); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition); }
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg); }
.nav-toggle.active span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- 3. Hero ---------- */
.hero { margin-top: var(--header-height); position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 90% -10%, var(--blue-tint), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.hero::before { /* fina barra vermelha lateral */
  content:''; position: absolute; left:0; top:0; bottom:0; width:6px; background: linear-gradient(var(--primary-color), var(--blue)); }
.hero__grid { display: grid; gap: var(--spacing-xl); align-items: center; padding-block: var(--spacing-2xl); }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-tint); padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: var(--spacing-md); }
.hero__title { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--secondary-color); }
.hero__title span { color: var(--primary-color); }
.hero__text { font-size: 1.1rem; margin-top: var(--spacing-md); max-width: 540px; color: var(--text-muted); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--spacing-lg); }
.hero__chip { background: #fff; border: 1px solid var(--border-color); color: var(--secondary-color);
  padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.hero__chip strong { color: var(--primary-color); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--spacing-md); margin-top: var(--spacing-lg); }

/* Foto do medico */
.hero__figure { position: relative; justify-self: center; max-width: 420px; width: 100%; }
.hero__photo { width: 100%; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg);
  border: 6px solid #fff; position: relative; z-index: 2; }
.hero__figure::before { content:''; position: absolute; inset: 18px -18px -18px 18px; z-index: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--blue)); border-radius: var(--border-radius-lg); opacity: 0.14; }
.hero__badge {
  position: absolute; z-index: 3; left: -12px; bottom: 24px; background: var(--primary-color); color: #fff;
  padding: 0.7rem 1rem; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.6rem; }
.hero__badge b { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; }
.hero__badge small { font-size: 0.72rem; line-height: 1.15; display: block; opacity: 0.95; }
.hero__clinic { position: absolute; z-index: 3; right: -10px; top: 18px; background: #fff; color: var(--blue);
  font-weight: 700; font-size: 0.85rem; padding: 0.5rem 0.9rem; border-radius: 10px; box-shadow: var(--shadow);
  border: 1px solid var(--border-color); letter-spacing: 0.02em; }

/* ---------- 4. Secoes de conteudo ---------- */
.about__grid { display: grid; gap: var(--spacing-xl); }
.about__lead { font-size: 1.15rem; color: var(--secondary-color); font-weight: 500; margin-bottom: var(--spacing-md); }
.about__text p { color: var(--text-muted); margin-bottom: var(--spacing-md); }
.credentials { display: grid; gap: 0.8rem; }
.credential { background: #fff; border: 1px solid var(--border-color); border-left: 3px solid var(--blue);
  border-radius: var(--border-radius); padding: var(--spacing-md) var(--spacing-lg); box-shadow: var(--shadow-sm); }
.credential__year { font-size: 0.76rem; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; text-transform: uppercase; }
.credential__title { font-family: var(--font-heading); font-size: 1rem; margin-top: 0.15rem; }
.credential__place { color: var(--text-muted); font-size: 0.9rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: var(--spacing-lg); }
.stat { text-align: center; padding: var(--spacing-md); background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius); }
.stat__num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--primary-color); }
.stat__label { font-size: 0.82rem; color: var(--text-muted); }

.cards { display: grid; gap: var(--spacing-md); grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.card__icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--spacing-md);
  background: var(--blue-tint); color: var(--blue); }
.card:hover .card__icon { background: var(--primary-tint); color: var(--primary-color); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.12rem; margin-bottom: 0.35rem; }
.card__text { color: var(--text-muted); font-size: 0.95rem; }

.reviews { display: grid; gap: var(--spacing-md); grid-template-columns: 1fr; }
.review { background: #fff; border-radius: var(--border-radius-lg); padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: var(--spacing-md); }
.review__stars { color: #F5A623; letter-spacing: 2px; font-size: 1.05rem; }
.review__text { color: var(--text-color); }
.review__author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-heading); }
.review__name { font-weight: 600; font-size: 0.95rem; }
.review__source { font-size: 0.8rem; color: var(--text-muted); }
.reviews__note { text-align: center; margin-top: var(--spacing-lg); color: var(--text-muted); font-size: 0.9rem; }
.reviews__note a { color: var(--blue); font-weight: 600; }

.insurances { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: var(--spacing-lg); }
.insurance { background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
  padding: 0.55rem 1.2rem; font-weight: 600; color: var(--secondary-color); box-shadow: var(--shadow-sm); font-size: 0.95rem; }

.contact__grid { display: grid; gap: var(--spacing-xl); }
.info-list { display: grid; gap: 0.8rem; }
.info { display: flex; gap: var(--spacing-md); align-items: flex-start; background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--border-radius); padding: var(--spacing-md) var(--spacing-lg); box-shadow: var(--shadow-sm); }
.info__icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue); color: #fff; }
.info__icon svg { width: 22px; height: 22px; }
.info__label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.info__value { font-weight: 500; color: var(--secondary-color); }
.info__value a:hover { color: var(--primary-color); }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow); }

.cta-band { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center;
  border-radius: var(--border-radius-lg); padding: var(--spacing-xl); margin-top: var(--spacing-xl); position: relative; overflow: hidden; }
.cta-band::after { content:''; position:absolute; right:-60px; bottom:-60px; width:200px; height:200px; border-radius:50%;
  background: var(--primary-color); opacity: 0.25; }
.cta-band h3 { color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,0.9); margin-top: var(--spacing-sm); position: relative; z-index: 1; }
.cta-band .btn { margin-top: var(--spacing-lg); position: relative; z-index: 1; }

/* ---------- 5. Footer ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.85); padding-block: var(--spacing-xl) var(--spacing-lg); }
.footer__grid { display: grid; gap: var(--spacing-lg); }
.footer__brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: var(--spacing-md); }
.footer__logo { height: 104px; width: auto; display: block; max-width: 100%; }
.footer__legal { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 0.4rem; }
.footer__brand .brand__name { color: #fff; } .footer__brand .brand__role { color: #fff; opacity: 0.85; }
.footer p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--spacing-md); }
.footer__links { display: grid; gap: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--spacing-lg); padding-top: var(--spacing-lg);
  text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer__disclaimer { font-size: 0.78rem; margin-top: 0.4rem; }
.footer__credit { font-size: 0.82rem; margin-top: 0.6rem; color: rgba(255,255,255,0.5); }
.footer__credit a { color: rgba(255,255,255,0.85); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: #fff; }

/* ---------- 6. Utilitarios ---------- */
.float-wpp { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform var(--transition); animation: pulse 2.6s infinite; }
.float-wpp:hover { transform: scale(1.08); }
.float-wpp svg { width: 30px; height: 30px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

.to-top { position: fixed; right: 18px; bottom: 84px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 7. Media queries (min-width) ---------- */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; background: none; border: none; }
  .nav__list { flex-direction: row; align-items: center; padding: 0; gap: 0.25rem; }
  .nav__link { padding: 0.5rem 0.9rem; }
  .nav__cta { margin-top: 0; margin-left: 0.5rem; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .about__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .contact__grid > div:last-child { display: flex; flex-direction: column; }
  .contact__grid > div:last-child .map { flex: 1; height: 100%; min-height: 340px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 8. Novas secoes (conversao) ---------- */
.hero__micro { margin-top: var(--spacing-md); font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* Barra de prova social */
.proofbar { background: var(--secondary-color); color: #fff; }
.proofbar__inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; justify-content: center;
  padding-block: 0.85rem; text-align: center; }
.proofbar__item { font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.92); }
.proofbar__stars { color: #F5A623; letter-spacing: 1px; }
.proofbar__sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.35); display: none; }

/* Sintomas */
.symptoms { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
.symptom { display: flex; gap: 0.8rem; align-items: flex-start; background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--border-radius); padding: var(--spacing-md) var(--spacing-lg); box-shadow: var(--shadow-sm); font-weight: 500; color: var(--secondary-color); }
.symptom__dot { flex-shrink: 0; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%;
  background: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-tint); }

/* CTA de secao */
.section-cta { margin-top: var(--spacing-xl); }
.section-cta > p { max-width: 680px; color: var(--text-muted); margin-bottom: var(--spacing-md); }
.section-cta--center { text-align: center; }
.section-cta--center > p { margin-inline: auto; }
.section-cta__lead { font-size: 1.15rem; font-weight: 600; color: var(--secondary-color); margin-bottom: var(--spacing-md); }
.section-cta .btn { margin-inline: auto; }

/* Como funciona (passos) */
.steps { display: grid; gap: var(--spacing-md); grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg); padding-top: calc(var(--spacing-lg) + 8px); box-shadow: var(--shadow-sm); }
.step__num { position: absolute; top: -18px; left: var(--spacing-lg); width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-color); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; box-shadow: var(--shadow); }
.step__title { font-size: 1.1rem; margin-bottom: 0.35rem; margin-top: 0.4rem; }
.step__text { color: var(--text-muted); font-size: 0.95rem; }
.steps__note { text-align: center; margin-top: var(--spacing-lg); font-weight: 600; color: var(--secondary-color); }

/* FAQ (details/summary — funciona sem JS) */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq__item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__q { cursor: pointer; list-style: none; padding: var(--spacing-md) var(--spacing-lg); font-family: var(--font-heading);
  font-weight: 600; color: var(--secondary-color); display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-md); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; font-size: 1.5rem; color: var(--primary-color); line-height: 1; transition: transform var(--transition); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__item[open] .faq__q { color: var(--primary-color); }
.faq__a { padding: 0 var(--spacing-lg) var(--spacing-md); color: var(--text-muted); }

.cta-band__phone { margin-top: var(--spacing-md); font-size: 0.95rem; color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.cta-band__phone a { color: #fff; font-weight: 700; text-decoration: underline; }

@media (min-width: 600px) {
  .proofbar__sep { display: inline-block; }
}
@media (min-width: 768px) {
  .symptoms { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 9. Fotos reais (sobre / banner) ---------- */
.about__figure { margin: 0; position: relative; }
.about__photo { width: 100%; border-radius: var(--border-radius-lg); box-shadow: var(--shadow);
  border: 5px solid #fff; outline: 1px solid var(--border-color); }
.about__figure::before { content:''; position:absolute; inset: 14px -14px -14px 14px; z-index:-1;
  background: linear-gradient(135deg, var(--primary-color), var(--blue)); border-radius: var(--border-radius-lg); opacity: 0.12; }

.credentials-wrap { margin-top: var(--spacing-xl); }
.credentials-wrap__title { text-align: center; font-size: 1.25rem; margin-bottom: var(--spacing-lg); }

.banner { margin: 0 0 var(--spacing-xl); }
.banner__img { width: 100%; height: auto; border-radius: var(--border-radius-lg); box-shadow: var(--shadow); }

@media (min-width: 768px) {
  /* foto do "Sobre" com a MESMA altura do texto ao lado (texto define a altura) */
  .about__grid { grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
  .about__figure { min-height: 100%; }
  .about__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
  .credentials { grid-template-columns: repeat(2, 1fr); }
  .banner__img { max-height: 420px; object-fit: cover; }
}

/* ---------- 10. Cards de tratamento sem icone (acabamento) ---------- */
.card__title { position: relative; padding-top: 1rem; }
.card__title::before { content: ''; position: absolute; top: 0; left: 0; width: 34px; height: 3px;
  background: var(--primary-color); border-radius: 2px; transition: width var(--transition); }
.card:hover .card__title::before { width: 52px; }
