/* ============================================
   COMPONENTS - Componentes Reutilizáveis
   Dra. Luciana Ishikawa
   ============================================ */

/* ========== BOTÕES ========== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: var(--body);
  font-weight: var(--weight-bold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

/* Botão Primário (CTA) */
.btn-primary {
  background-color: #A83550;
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #7C2639;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Botão Secundário */
.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: none;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
  color: #5f2e3a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Botão Outline */
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--text-light);
}

/* Tamanho pequeno */
.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--small);
}

/* Tamanho grande */
.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 18px;
}

/* Botão em bloco (full width) */
.btn-block {
  display: block;
  width: 100%;
}

/* ========== CARDS ========== */

.card {
  background-color: var(--bg-primary);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-title {
  font-size: var(--h3);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.card-text {
  color: var(--text-muted);
  line-height: var(--lh-body);
}

.card .btn {
  margin-top: auto;
}

/* Card com degradê */
.card-gradient {
  background: linear-gradient(135deg, #7C2639 0%, #A83550 100%);
  border: none;
  box-shadow: var(--shadow-md);
  height: 300px;
  display: flex;
  flex-direction: column;
}

.card-gradient:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Card com cor de fundo */
.card-colored {
  background-color: var(--bg-light);
}

/* ========== HERO SECTION ========== */

.hero {
  position: relative;
  height: 720px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Background com gradiente e imagem */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-primary) 40%,
    rgba(116, 55, 71, 0.6) 55%,
    transparent 65%
  );
  z-index: 1;
}

/* Imagem de fundo (lado direito) */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Container do hero (conteúdo) */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: var(--spacing-xl);
  padding-left: var(--spacing-lg);
  color: var(--text-light);
  margin-top: 120px;
  margin-bottom: 60px;
  margin-left: calc((100% - 1200px) / 2);
}

.hero-title {
  font-size: var(--h1);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

.hero-subtitle {
  font-size: 18px;
  line-height: var(--lh-body);
  margin-bottom: var(--spacing-xl);
  color: var(--text-light);
  font-weight: 300;
}

.hero-cta {
  margin-top: var(--spacing-lg);
}

/* ========== SEÇÕES COM FUNDO ALTERNADO ========== */

section {
  padding: var(--spacing-3xl) var(--spacing-lg);
}

section.bg-light {
  background-color: var(--bg-light);
}

section.bg-dark {
  background-color: var(--color-primary);
  color: var(--text-light);
}

section.bg-dark h2,
section.bg-dark h3 {
  color: var(--text-light);
}

/* ========== GRID DE CARDS ========== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* ========== CTA EMOCIONAL ========== */

.cta-emotional {
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  margin: var(--spacing-xl) 0;
}

.cta-emotional-title {
  font-size: var(--h2);
  margin-bottom: var(--spacing-md);
  color: #ffffff;
}

.cta-emotional-text {
  font-size: 18px;
  margin-bottom: var(--spacing-lg);
  color: #ffffff;
}

.cta-emotional .btn {
  background-color: #ffffff;
  color: var(--color-primary);
}

.cta-emotional .btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* ========== SEÇÃO COM TÍTULO E INTRO ========== */

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.section-intro h2 {
  font-size: var(--h2);
  margin-bottom: var(--spacing-md);
}

.section-intro p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ========== FAQ ========== */

.faq-item {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: var(--h4);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  font-size: var(--body);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ========== DEPOIMENTOS ========== */

.testimonial {
  background-color: var(--bg-primary);
  padding: var(--spacing-lg);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
  color: var(--text-muted);
}

.testimonial-author {
  margin-top: var(--spacing-md);
  font-style: normal;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-size: var(--small);
}

/* ========== LISTA DE PASSOS ========== */

.steps-list {
  counter-reset: step-counter;
  max-width: 800px;
  margin: var(--spacing-xl) auto;
}

.step-item {
  counter-increment: step-counter;
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-xl);
  position: relative;
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
}

.step-title {
  font-size: var(--h4);
  font-weight: var(--weight-bold);
  margin-bottom: var(--spacing-sm);
}

.step-description {
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ========== LISTA DE SINTOMAS ========== */

.symptoms-list {
  list-style: none;
  columns: 2;
  gap: var(--spacing-lg);
}

.symptoms-list li {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
  position: relative;
}

.symptoms-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
}

/* ========== MAPA ========== */

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== BADGE / AVALIAÇÃO ========== */

.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: var(--small);
  font-weight: var(--weight-semibold);
}

.rating {
  font-size: 18px;
  color: #ffc107;
  margin-right: var(--spacing-sm);
}

/* ========== DIVIDER / SEPARADOR ========== */

.divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: var(--spacing-xl) 0;
}

.divider-accent {
  height: 3px;
  background-color: var(--color-primary);
  width: 80px;
  margin: var(--spacing-lg) auto;
}

/* ========== BANNER ANIMADO (SCROLLING) ========== */

.scrolling-banner {
  width: 100%;
  background-color: var(--bg-primary);
  padding: 2px 0;
  overflow: hidden;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}

.scrolling-text {
  display: flex;
  animation: scroll-left 15s linear infinite;
  white-space: nowrap;
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 600;
  gap: var(--spacing-3xl);
  align-items: center;
  min-width: 200%;
}

.scrolling-text span {
  display: inline-block;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========== FOTO CONTAINER 13:16 ========== */

.photo-container-9-16 {
  aspect-ratio: 13 / 16;
  overflow: hidden;
  max-height: 600px;
}

/* ========== FOTO RESPONSIVA (Desktop-First Isolation) ========== */

/* DESKTOP - Base (mostra desktop, esconde tablet e mobile) */
.photo-desktop {
  display: block;
}

.photo-tablet {
  display: none;
}

.photo-mobile {
  display: none;
}

/* ========== FLOATING SIDEBAR (DESKTOP) ========== */

.floating-sidebar {
  position: fixed;
  left: 16px;
  top: 185px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 160px;
}

.floating-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background-color: #A83550;
  color: var(--text-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--weight-bold);
  font-size: 13px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  padding: 8px 12px;
  text-align: center;
  border: 2px solid #A83550;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
}

.floating-btn:hover {
  background-color: #ffffff;
  color: #A83550;
  border: 2px solid var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.floating-btn:active {
  transform: translateY(0);
}

/* ========== MODAIS COMERCIAIS ========== */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
  clip-path: inset(0 round var(--radius-lg));
}

.modal-close {
  color: var(--text-muted);
  float: right;
  font-size: 56px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-content h2 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  margin-top: 0;
}

.modal-content h3 {
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.modal-content p {
  color: var(--text-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--spacing-md);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#btnBuyWebsite:hover {
  background-color: #ffffff !important;
  color: #2d9d4a !important;
  border-color: #2d9d4a !important;
  animation: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#btnBuyWebsite:active {
  transform: translateY(0);
}

/* ========== POPUP EM BREVE ========== */

.soon-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1200;
  transform: translate(-50%, -50%) scale(1);
  background-color: transparent;
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--weight-bold);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.85);
}

.soon-popup.show {
  animation: soonFadeOut 2s ease-out forwards;
}

@keyframes soonFadeOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes gentle-swing {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

/* ========== FLOATING BOTTOM BAR (MOBILE/TABLET) ========== */

.floating-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background-color: var(--color-primary);
  border-top: none;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  padding: 12px 8px;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  height: auto !important;
  overflow: visible !important;
}

.floating-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.floating-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  color: var(--color-primary);
  border-radius: 50%;
  text-decoration: none;
  font-size: 22px;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.floating-icon-btn:hover {
  background-color: #f0f0f0;
  color: #7C2639;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.floating-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background-color: #ffffff;
  color: var(--color-primary);
  border: none;
  padding: 0 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  white-space: nowrap;
}

.floating-buy-btn:hover {
  background-color: #f0f0f0;
  color: #7C2639;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.floating-buy-btn:active {
  transform: scale(0.95);
}

/* ========== SEÇÃO SOBRE MOBILE (só aparece em mobile) ========== */

.sobre-mobile-section {
  display: none;
}
