/* =====================================================================
   Dra. Nathália Haddad — Design System
   Extraído e padronizado a partir da home v3-premium.
   ===================================================================== */

/* ---------------------------- Tokens ---------------------------- */
:root {
  --cream:      #F4EFE8;
  --cream-2:    #FBF8F3;
  --mint:       #EAF6F6;
  --ink:        #2B2822;
  --ink-2:      #3C372F;
  --ink-soft:   #474138;
  --ink-mute:   #6E6759;
  --green-900:  #0B2C2A;
  --green-800:  #0F3A37;
  --green-700:  #16514C;
  --teal:       #2E9A9A;
  --teal-600:   #2E7C7C;
  --teal-400:   #69C2C2;
  --teal-300:   #9FDAD2;
  --line:       rgba(43, 40, 34, 0.10);
  --line-teal:  rgba(46, 154, 154, 0.14);
  --card-line:  #EBE2D2;
  --card-line-teal: #D6ECEC;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1240px;
  --radius: 18px;
  --radius-lg: 20px;
  --header-h: 74px;
  --shadow-card: 0 24px 48px -30px rgba(46, 154, 154, 0.40);
  --shadow-photo: 0 28px 64px -30px rgba(15, 58, 55, 0.50);
}

/* ---------------------------- Reset ---------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  background: color-mix(in srgb, var(--cream) 30%, transparent);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------------------------- Layout ---------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px); }
.section { padding: clamp(20px, 12vw, 10px) 0; }
.section--sm { padding: clamp(56px, 8vw, 96px) 0; }
.section--mint { background: var(--mint); border-top: 1px solid var(--line-teal); border-bottom: 1px solid var(--line-teal); }
.section--cream2 { background: var(--cream-2); border-top: 1px solid rgba(43,40,34,0.06); }
/* Respiro maior só nas seções da HOME (as internas seguem o .section enxuto) */
#top > .section { padding: clamp(48px, 7vw, 90px) 0; }

/* ---------------------------- Tipografia ---------------------------- */
.eyebrow {
  margin: 0 0 20px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
}
.h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.5px; color: var(--ink);
}
.h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -0.5px; color: var(--ink);
}
.h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); }
.lead-italic {
  margin: 18px 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.2vw, 23px); font-weight: 500; color: var(--teal-600);
}
.prose { max-width: 640px; }
.prose p { margin: 20px 0 0; font-size: 16px; line-height: 1.85; font-weight: 400; color: var(--ink-soft); }
.prose p:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 18px 0 0; padding-left: 24px; font-size: 16px; line-height: 1.85; font-weight: 400; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--teal-400); }
.prose a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { font-weight: 600; color: var(--ink-2); }
.section-head { max-width: 700px; margin: 0 0 clamp(44px, 6vw, 72px); }

/* ---------------------------- Botões ---------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 500; border-radius: 44px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .35s, color .35s, border-color .35s, transform .3s;
}
.btn--lg { padding: 16px 34px; font-size: 12.5px; }
.btn--primary { background: var(--green-800); color: var(--cream); }
.btn--primary:hover { background: var(--teal); }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(43,40,34,0.22); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn--ondark { background: var(--teal-400); color: var(--green-900); font-weight: 600; }
.btn--ondark:hover { background: #86D5D5; }
.btn--ghost-dark { background: transparent; color: var(--green-800); border-color: rgba(15,58,55,0.28); }
.btn--ghost-dark:hover { background: var(--green-800); color: var(--cream); }

/* ---------------------------- Header ---------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(244, 239, 232, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 40, 34, 0.08);
}
.site-header__bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-header__logo img { height: 36px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav-desktop a { font-size: 12.5px; letter-spacing: .5px; color: var(--ink-2); text-decoration: none; font-weight: 400; transition: color .3s; }
.nav-desktop a:hover { color: var(--teal); }

/* Submenu (dropdown) do menu principal */
.nav-desktop .nav-item { position: relative; display: flex; align-items: center; }
.nav-desktop .caret { font-size: 9px; color: var(--teal); margin-left: 3px; }
.nav-desktop .submenu {
  position: absolute; top: 100%; left: -20px; padding-top: 16px; z-index: 210;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-desktop .has-sub:hover .submenu,
.nav-desktop .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu__card {
  background: #fff; border: 1px solid var(--card-line); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(15, 58, 55, 0.35); padding: 10px 0; min-width: 232px;
}
.nav-desktop .submenu__card a {
  display: block; padding: 11px 22px; font-size: 13px; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-desktop .submenu__card a:hover { background: var(--mint); color: var(--teal-600); }

/* Sub-itens no menu mobile */
.mobile-menu a.mobile-menu__sub { padding-left: 20px; font-size: 14px; color: var(--ink-soft); }
.site-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.crm-seal { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); font-weight: 500; white-space: nowrap; }
.header-cta {
  display: inline-flex; align-items: center; padding: 11px 24px; background: var(--green-800);
  color: var(--cream); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 500; border-radius: 40px; text-decoration: none; transition: background .35s;
}
.header-cta:hover { background: var(--teal); }
.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(43,40,34,0.2); border-radius: 50%;
  cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); display: block; }
.nav-check { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.22,.61,.36,1); background: var(--cream); border-bottom: 1px solid rgba(43,40,34,0.08); }
.mobile-menu__inner { padding: 8px clamp(20px,5vw,48px) 26px; display: flex; flex-direction: column; }
.mobile-menu a { padding: 13px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid rgba(43,40,34,0.07); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }
.nav-check:checked ~ .mobile-menu { max-height: 640px; }
.nav-check:checked ~ .site-header__bar .nav-toggle { border-color: var(--teal); }

/* Compensação do header fixo no início das páginas internas */
.page { padding-top: var(--header-h); }

/* ---------------------------- Faixa credibilidade ---------------------------- */
.cred-bar { background: var(--green-800); color: #D8EDEB; padding: clamp(22px,3vw,30px) 0; }
.cred-bar__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px,5vw,48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; }
.cred-bar span.txt { font-size: 12.5px; letter-spacing: .6px; font-weight: 400; color: #EAF6F6; }
.cred-bar span.dot { width: 5px; height: 5px; border-radius: 50%; background: #3DD6BA; flex-shrink: 0; }

/* ---------------------------- Breadcrumb ---------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .4px; color: var(--ink-mute); margin: 0 0 26px; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; transition: color .3s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--teal); font-weight: 500; }

/* ---------------------------- Hero interno ---------------------------- */
.hero-inner { padding: clamp(28px, 4.5vw, 56px) 0 clamp(24px, 4vw, 44px); }
.hero-inner__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

/* Hero centralizado + imagem larga abaixo (páginas de tratamento) */
.hero-inner--centered { text-align: center; }
.hero-inner--centered .breadcrumb { justify-content: center; }
.hero-inner__head { max-width: 780px; margin: 0 auto; }
.hero-inner__head .prose { max-width: 660px; margin-left: auto; margin-right: auto; }
.hero-inner__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-inner__banner {
  margin: clamp(28px, 4vw, 44px) 0 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-photo);
}
.hero-inner__banner img { width: 100%; height: auto; display: block; }
.hero-inner__head--sub { margin-top: clamp(22px, 3.5vw, 38px); }
.hero-inner__head--sub .lead-italic { margin-top: 0; }
.hero-inner__photo { position: relative; }
.hero-inner__photo .frame { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-photo); }
.hero-inner__photo .frame img { width: 100%; height: clamp(360px, 46vw, 520px); object-fit: cover; }
.hero-inner__photo .accent { position: absolute; right: -16px; bottom: -16px; width: 58%; height: 68%; background: linear-gradient(150deg, #CBEAE6, #9FDAD2); border-radius: var(--radius-lg); z-index: 0; }
.hero-inner__photo--placeholder .frame { display: flex; align-items: flex-end; padding: 28px; height: clamp(360px, 46vw, 520px); background: linear-gradient(150deg, var(--mint), #D8EFEF); }
.hero-inner__photo--placeholder .frame span { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 44px); color: rgba(46,124,124,0.45); line-height: 1.1; }

/* ---------------------------- Grid de cards de tratamento ---------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 22px); }
.t-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--card-line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .5s, box-shadow .5s;
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.t-card__media { overflow: hidden; background: linear-gradient(150deg, #D8EFEF, var(--mint)); position: relative; }
.t-card__media img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform .7s; }
.t-card:hover .t-card__media img { transform: scale(1.05); }
.t-card__media--placeholder { min-height: 210px; display: flex; align-items: flex-end; padding: 22px; }
.t-card__media--placeholder span { font-family: var(--serif); font-style: italic; font-size: 26px; color: rgba(46,124,124,0.5); line-height: 1.15; }
.t-card__body { padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; flex: 1; }
.t-card__rule { display: block; width: 32px; height: 2px; background: var(--teal-400); margin-bottom: 16px; }
.t-card__title { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--ink); line-height: 1.15; }
.t-card__desc { margin: 0; font-size: 15px; line-height: 1.7; font-weight: 400; color: var(--ink-soft); flex: 1; }
.t-card__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 500; color: var(--teal); }
.t-card__more .arw { font-size: 15px; }

/* ---------------------------- Conteúdo do tratamento ---------------------------- */
.t-body { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.t-content section + section { margin-top: clamp(36px, 5vw, 52px); }
.t-content h2 { font-size: clamp(26px, 3.2vw, 34px); }
.t-content .prose { max-width: none; }

.benefits { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 400; color: var(--ink-2); line-height: 1.6; }
.benefits li:last-child { border-bottom: 0; }
.benefits li .mk { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); flex-shrink: 0; margin-top: 7px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.chip { padding: 9px 18px; background: var(--mint); border: 1px solid var(--card-line-teal); border-radius: 40px; font-size: 13px; font-weight: 400; color: var(--teal-600); }

/* Sidebar sticky (CTA + indicações) */
.t-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(26px, 3vw, 34px); }
.aside-card--dark { background: linear-gradient(150deg, var(--green-800), var(--green-700)); border-color: var(--green-800); color: var(--mint); }
.aside-card--dark .h3 { color: var(--cream); }
.aside-card__label { margin: 0 0 12px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.aside-card--dark .aside-card__label { color: var(--teal-400); }
.aside-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; font-weight: 400; color: var(--ink-soft); }
.aside-card--dark p { color: #C7DEDB; }

/* Hero de categoria centralizado e enxuto */
.cat-hero { padding: clamp(28px, 4.5vw, 52px) 0 clamp(16px, 2.5vw, 32px); }
.cat-hero .breadcrumb { justify-content: center; }
.cat-hero .section-head { text-align: center; }
.cat-hero .prose { max-width: 640px; }
/* Grade de tratamentos da categoria mais próxima do hero */
.cat-cards { padding-top: clamp(16px, 2.5vw, 32px); }

/* Depoimentos: 2 por linha no desktop, 1 no mobile */
.depo-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .depo-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Mídia das seções ---------------------------- */
.sec-media-single { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(15,58,55,0.4); background: #000; }
.sec-media-single img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.sec-media-single iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.sec-media-gallery { margin-top: 26px; }
.sec-media-single + .prose, .sec-media-gallery + .prose { margin-top: 24px; }

/* ---------------------------- Galeria de mídia ---------------------------- */
.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(14px, 1.8vw, 20px); margin-top: clamp(28px, 4vw, 40px); }
.media-item { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 18px 40px -28px rgba(15,58,55,0.4); }
.media-item img, .media-item video { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.media-item--video { background: #000; }
.media-item--video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.media-item figcaption { padding: 12px 16px; font-size: 12.5px; color: var(--ink-mute); background: #fff; }

/* ---------------------------- FAQ ---------------------------- */
.faq details { border-top: 1px solid rgba(43,40,34,0.12); }
.faq details:last-child { border-bottom: 1px solid rgba(43,40,34,0.12); }
.faq summary { cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); color: var(--ink); }
.faq summary .pm { color: var(--teal-400); font-size: 26px; font-weight: 400; flex-shrink: 0; transition: transform .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 0 24px; font-size: 15.5px; line-height: 1.8; font-weight: 400; color: var(--ink-soft); max-width: 720px; }

/* ---------------------------- CTA band ---------------------------- */
.cta-band { background: var(--green-800); color: var(--mint); text-align: center; padding: clamp(72px, 10vw, 120px) 0; }
.cta-band .h2 { color: var(--cream); }
.cta-band p { margin: 20px auto 0; max-width: 480px; font-size: 16px; line-height: 1.8; font-weight: 400; color: #C7DEDB; }
.cta-band .btn { margin-top: 32px; }

/* ---------------------------- Rodapé ---------------------------- */
.site-footer { background: var(--green-900); color: #9FB8B4; padding: clamp(56px,8vw,84px) 0 clamp(36px,5vw,48px); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; padding-bottom: clamp(32px,4vw,48px); border-bottom: 1px solid rgba(159,184,180,0.18); }
.site-footer__brand { max-width: 360px; }
.site-footer__brand img { height: 42px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { margin: 0; font-size: 13px; line-height: 1.7; font-weight: 400; color: #9FB8B4; }
.site-footer__brand .slogan { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--teal-400); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #6E928D; font-weight: 500; }
.site-footer__cols p { margin: 0; font-size: 13.5px; line-height: 1.9; font-weight: 400; color: #B7CDC9; }
.site-footer__cols a { color: #B7CDC9; text-decoration: none; }
.site-footer__cols a.teal { color: var(--teal-400); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; padding-top: 26px; }
.site-footer__bottom p { margin: 0; font-size: 11.5px; line-height: 1.7; font-weight: 400; color: #6E928D; max-width: 640px; }
.site-footer__bottom .links { display: flex; gap: 22px; }
.site-footer__bottom .links a { font-size: 11.5px; letter-spacing: .4px; color: #9FB8B4; text-decoration: none; }

/* ---------------------------- WhatsApp flutuante ---------------------------- */
.wa-float {
  position: fixed; right: clamp(16px,3vw,30px); bottom: clamp(16px,3vw,30px); z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 14px 32px -8px rgba(37,211,102,0.6);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------------------------- Reveal on scroll ---------------------------- */
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 1; }
@supports (animation-timeline: view) {
  [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------------------------- Responsivo ---------------------------- */
@media (max-width: 980px) { .crm-seal { display: none; } }
@media (max-width: 900px) {
  .t-body { grid-template-columns: 1fr; }
  .t-aside { position: static; }
}
@media (max-width: 860px) {
  .nav-desktop, .header-cta { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
  .hero-inner__grid { grid-template-columns: 1fr; }
  .hero-inner__photo { order: -1; }
  .split-2 { grid-template-columns: 1fr !important; }
  .split-2 .hero-inner__photo { order: -1; }
  .clinica-grid figure { grid-column: span 12 !important; }
}
