/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header-nav { display: flex; gap: 1.6rem; align-items: center; }
.header-nav a { font-weight: 500; font-size: 0.92rem; transition: color 0.3s; }
.header-nav a:not(.btn-primary):hover { color: var(--color-accent-hover); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-background);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .header-nav.active { display: flex; }
  .header-nav .btn-primary { width: 100%; text-align: center; justify-content: center; }
}


/* ═══════════════════════════════════════
   BOTÕES
   Um único estilo de botão em todo o site.
   Sobre fundo dourado, o botão inverte para marrom escuro
   (mantém contraste e não "some" no fundo).
═══════════════════════════════════════ */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Inversão automática em seções douradas */
.bg-gold .btn-primary { background: var(--color-primary); }
.bg-gold .btn-primary:hover { background: var(--color-primary-dark); }


/* ═══════════════════════════════════════
   EYEBROW (selo pequeno acima do H1/H2)
═══════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4em 1em;
  margin-bottom: 1rem;
}
.bg-gold .eyebrow {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}


/* ═══════════════════════════════════════
   PAINEL — cartão branco usado para abrigar
   texto corrido dentro de seções douradas
   (garante contraste de leitura)
═══════════════════════════════════════ */
.panel {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}


/* ═══════════════════════════════════════
   PHOTO FRAME — elemento de assinatura visual
   (forma orgânica assimétrica)
═══════════════════════════════════════ */
.photo-frame {
  position: relative;
  border-radius: 62% 38% 68% 32% / 54% 66% 44% 56%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--alt { border-radius: 38% 62% 42% 58% / 56% 44% 68% 32%; }


/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -15%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at 60% 40%, rgba(188, 155, 115, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 50ch;
}
.hero-photo { display: flex; justify-content: center; }
.hero-photo .photo-frame { width: min(320px, 80vw); aspect-ratio: 3/4; }
.hero-micro { font-size: 0.8rem; color: var(--color-text-light); margin-top: 0.85rem; }

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .hero-subtitle { margin-inline: auto; }
}


/* ═══════════════════════════════════════
   SOBRE
═══════════════════════════════════════ */
.sobre-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.sobre-photo { display: flex; justify-content: center; }
.sobre-photo .photo-frame { width: 250px; aspect-ratio: 3/4; }

.sobre-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.sobre-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.sobre-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15em; color: var(--color-accent); }

.sobre-crm {
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 0.65rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .sobre-content { grid-template-columns: 1fr; text-align: center; }
  .sobre-list { text-align: left; }
}


/* ═══════════════════════════════════════
   ACCORDION — usado em Sintomas, Tratamento e FAQ
   Reduz densidade visual: só os títulos ficam visíveis.
   Ícone "+" gira 45° e vira "×" (sem SVG, sem emoji).
═══════════════════════════════════════ */
.accordion-item {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.accordion-item.active { box-shadow: var(--shadow-sm); border-color: var(--color-accent); }

.accordion-question {
  width: 100%;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border: none;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.accordion-question:hover { color: var(--color-primary-light); }

.accordion-question .accordion-label { flex: 1; }

.accordion-question .accordion-marker {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-marker { transform: rotate(45deg); }

/* Ícone opcional ao lado da pergunta (ex.: óculos, tampão, cirurgia) */
.accordion-question .accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-item.active .accordion-answer { max-height: 600px; }

.accordion-answer-content {
  padding: 0 1.4rem 1.4rem;
  color: var(--color-text-light);
  font-size: 0.93rem;
  line-height: 1.75;
}
.accordion-answer-content ul { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.accordion-answer-content li { display: flex; gap: 0.55rem; align-items: flex-start; }
.accordion-answer-content li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.22em; color: var(--color-accent); }


/* ═══════════════════════════════════════
   CALLOUT (caixa de destaque)
═══════════════════════════════════════ */
.callout {
  background: var(--color-background);
  border-left: 4px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.callout p { margin-bottom: 0; font-size: 0.97rem; }


/* ═══════════════════════════════════════
   FEATURE CARD (Diferenciais)
═══════════════════════════════════════ */
.feature-card {
  background: var(--color-background);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
  transition: background-color 0.3s, color 0.3s;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon { background: var(--color-accent); color: #fff; }

.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: var(--color-text-light); margin-bottom: 0; }


/* ═══════════════════════════════════════
   DEPOIMENTOS — slider de cartões
═══════════════════════════════════════ */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.slider-slide { min-width: 100%; padding: 0 0.5rem; }

.testimonial-card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem 2rem;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.6rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--color-accent);
  opacity: 0.25;
  pointer-events: none;
}
.testimonial-card p { font-style: italic; font-size: 1rem; color: var(--color-text); line-height: 1.8; padding-top: 0.5rem; }
.testimonial-card cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--color-text-light); font-weight: 600; margin-top: 1rem; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover { background: #fff; transform: scale(1.06); }
.slider-btn svg { width: 18px; height: 18px; }

.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
}
.slider-dot.is-active { background: #fff; border-color: #fff; transform: scale(1.2); }

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-background);
  color: var(--color-text);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
}
.google-rating .stars { display: flex; gap: 1px; color: #f5a623; }
.google-rating .stars svg { width: 15px; height: 15px; }


/* ═══════════════════════════════════════
   ATENDIMENTO — chips de cidades + mapa
═══════════════════════════════════════ */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0; }
.chip {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

.address-line { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.6rem; }
.address-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.18em; color: var(--color-accent); }

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}
.map-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.map-wrapper iframe.is-loaded { display: block; }

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
}
.map-fallback.is-hidden { display: none; }
.map-fallback svg { width: 34px; height: 34px; color: var(--color-accent); margin-bottom: 0.3rem; }
.map-fallback strong { color: var(--color-primary); font-size: 1rem; }
.map-fallback small {
  font-size: 0.75rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  max-width: 240px;
}


/* ═══════════════════════════════════════
   WHATSAPP FLOAT
═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: #25d366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

@media (max-width: 480px) {
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
}


/* ═══════════════════════════════════════
   FOOTER (barra utilitária — fora da regra das 2 cores)
═══════════════════════════════════════ */
.footer { background: var(--color-primary); color: rgba(255, 255, 255, 0.78); padding: 3rem 0 2rem; }
.footer-grid { display: flex; flex-direction: column; gap: 2rem; }

.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-brand img { height: 38px; width: auto; }
.footer-brand-name { font-family: var(--font-display); font-size: 1rem; color: #fff; margin-bottom: 0.15rem; }
.footer-crm { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

.footer-info { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; }
.footer-info a[href^="tel"] { color: var(--color-accent); font-weight: 500; }

.footer-social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-social a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); font-weight: 500; transition: color 0.3s; }
.footer-social a:hover { color: var(--color-accent); }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); line-height: 1.65; }
.footer-legal p { margin-bottom: 0.4rem; }

@media (min-width: 768px) {
  .footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: start; }
  .footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
