/* ==========================================================================
   DRA. LETÍCIA BERMUDES — SITE INSTITUCIONAL
   Global Stylesheet (Vanilla CSS)
   ========================================================================== */

/* 1. TOKENS DE DESIGN */
:root {
  /* Cores Principais */
  --preto: #141414;
  --dourado: #C6A35F;
  --dourado-escuro: #9A7B3C;
  --bege: #E8DFD0;
  --marfim: #F6F1E9;
  --branco: #FFFFFF;

  /* Opacidade / Tons */
  --preto-70: rgba(20, 20, 20, 0.72);
  --preto-45: rgba(20, 20, 20, 0.5);
  --preto-14: rgba(20, 20, 20, 0.14);
  --branco-70: rgba(255, 255, 255, 0.72);
  --branco-45: rgba(255, 255, 255, 0.45);
  --branco-14: rgba(255, 255, 255, 0.14);
  --dourado-20: rgba(198, 163, 95, 0.22);
  --dourado-10: rgba(198, 163, 95, 0.1);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* 2. RESET E REGRAS GERAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--marfim);
  color: var(--preto);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Acessibilidade */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--dourado-escuro);
  outline-offset: 3px;
}

/* Links padrão */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--preto);
}

h2 em, h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--dourado-escuro);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: var(--branco);
}

body.dark-mode h2 em,
body.dark-mode h1 em {
  color: var(--dourado);
}

/* Elementos de Design do Sistema */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--dourado-escuro);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: currentColor;
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 56px;
  color: var(--preto-70);
}

.flourish {
  display: block;
  width: 180px;
  height: auto;
  margin: 22px 0 0;
}

.flourish path {
  fill: none;
  stroke: var(--dourado);
  stroke-width: 2;
  stroke-linecap: round;
}

/* 4. BOTÕES E COMPONENTES INTERATIVOS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--dourado);
  color: var(--branco);
}

.btn-primary:hover {
  background-color: var(--dourado-escuro);
}

.btn-secondary {
  background-color: transparent;
  color: var(--preto);
  border-color: var(--dourado);
}

.btn-secondary:hover {
  background-color: var(--dourado-10);
  border-color: var(--dourado-escuro);
}

.btn-dark {
  background-color: var(--preto);
  color: var(--branco);
  border-color: var(--branco-14);
}

.btn-dark:hover {
  background-color: var(--branco);
  color: var(--preto);
}

/* Side Card Estilo Premium */
.side-card {
  border: 1px solid var(--dourado);
  border-radius: 0;
  padding: 48px 40px;
  background-color: var(--branco);
  position: relative;
}

.side-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--dourado-20);
  pointer-events: none;
}

/* 5. LAYOUT BASE */
section {
  position: relative;
  padding: 100px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-dark {
  background-color: var(--preto);
  color: var(--branco);
}

.section-dark .eyebrow {
  color: var(--dourado);
}

.section-dark .lead {
  color: var(--branco-70);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 6. HEADER / NAVEGAÇÃO */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.4s ease, border-bottom 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header-scrolled {
  background-color: var(--branco);
  border-bottom: 1px solid var(--preto-14);
}

.header-scrolled.dark-mode {
  background-color: var(--preto);
  border-bottom: 1px solid var(--branco-14);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1);
}

.header-scrolled .logo img {
  filter: none;
}

/* Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--branco-70);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.header-scrolled .nav-link {
  color: var(--preto);
}

.nav-link:hover {
  color: var(--dourado-escuro);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--dourado);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown de Procedimentos */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 460px;
  background-color: var(--branco);
  border: 1px solid var(--preto-14);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-col-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--preto-14);
}

.dropdown-item {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--preto-70);
  padding: 6px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-item:hover {
  color: var(--dourado-escuro);
  padding-left: 4px;
}

/* Botão Mobile Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--branco);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header-scrolled .hamburger-line {
  background-color: var(--preto);
}

/* 7. MENU MOBILE (DRAWER) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--branco);
  z-index: 105;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--preto);
}

/* Acordeões Mobile */
.drawer-accordion {
  border-bottom: 1px solid var(--preto-14);
  padding-bottom: 10px;
}

.drawer-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--preto);
  text-align: left;
  cursor: pointer;
}

.drawer-accordion-btn::after {
  content: '+';
  font-size: 18px;
  transition: transform 0.3s;
}

.drawer-accordion.active .drawer-accordion-btn::after {
  content: '−';
}

.drawer-accordion-content {
  display: none;
  padding-top: 12px;
  padding-left: 15px;
  flex-direction: column;
  gap: 10px;
}

.drawer-accordion.active .drawer-accordion-content {
  display: flex;
}

.drawer-sublink {
  font-size: 14px;
  color: var(--preto-70);
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--preto-14);
  padding-top: 24px;
}

/* Overlay do Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 102;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hamburger State when active */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 8. BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--branco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 99;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.whatsapp-float.visible {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* 8b. BANNER DE COOKIES / LGPD */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background-color: var(--preto);
  color: var(--branco-70);
  padding: 20px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--dourado-20);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-text {
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--dourado);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 10px 22px;
  font-size: 11px;
}

.cookie-banner-actions .btn-secondary {
  color: var(--branco);
  border-color: var(--branco-45);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 18px 5vw;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* 9. FOOTER E ASSINATURA */
.footer {
  background-color: var(--preto);
  color: var(--branco-70);
  padding: 80px 8vw 40px;
  border-top: 1px solid var(--branco-14);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-proc-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 24px;
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-logo {
  margin-bottom: 20px;
  max-width: 180px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--dourado);
}

.footer-bottom {
  border-top: 1px solid var(--branco-14);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--branco-45);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--branco);
}

/* 10. COMPONENTES REUTILIZÁVEIS E FAQ */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--preto-14);
  padding: 16px 0;
}

.faq-item-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--preto);
  text-align: left;
  cursor: pointer;
  padding: 8px 0;
}

.faq-item-question::after {
  content: '+';
  font-size: 22px;
  color: var(--dourado-escuro);
  transition: transform 0.3s;
}

.faq-item.active .faq-item-question::after {
  content: '−';
}

.faq-item-answer {
  display: none;
  padding: 12px 0 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--preto-70);
}

.faq-item.active .faq-item-answer {
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--preto-45);
  margin-bottom: 40px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--dourado-escuro);
}

.breadcrumbs span {
  color: var(--preto-70);
}

/* Related Procedures Cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.procedure-card {
  border: 1px solid var(--preto-14);
  background-color: var(--branco);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.procedure-card:hover {
  transform: translateY(-4px);
  border-color: var(--dourado);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.procedure-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.procedure-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.procedure-card:hover .procedure-card-img img {
  transform: scale(1.05);
}

.procedure-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.procedure-card-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.procedure-card-desc {
  font-size: 14px;
  color: var(--preto-70);
  margin-bottom: 20px;
  line-height: 1.6;
}

.procedure-card-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.procedure-card-link-more {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
}

.procedure-card-link-more:hover {
  color: var(--preto);
}

/* 10b. CARROSSEL DE IMAGENS (hero de procedimento e página "A Dra. Letícia") */
.procedure-carousel {
  position: relative;
  width: 100%;
  border: 1px solid var(--dourado);
}

.procedure-carousel-viewport {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.procedure-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.procedure-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.procedure-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(20, 20, 20, 0.55);
  color: var(--branco);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.procedure-carousel-btn:hover {
  background: rgba(20, 20, 20, 0.85);
}

.procedure-carousel-prev {
  left: 10px;
}

.procedure-carousel-next {
  right: 10px;
}

.procedure-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.procedure-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.procedure-carousel-dot.active {
  background: var(--dourado);
}

/* 11. RESPONSIVIDADE GERAL */
@media (max-width: 1024px) {
  .nav-menu,
  .header-btn {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  section {
    padding: 80px 6vw;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumbs {
    margin-bottom: 24px;
  }
  section {
    padding: 60px 5vw;
  }
}
