/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #081134;
  --accent: #60000f;
  --beige: #cebCAF;
  --light: #f7f4ef;
  --text: #1f1f1f;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--white);
  padding-top: 76px; 
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
  background-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
  height: 42px;
  width: auto;
}

.navbar .nav-link {
  color: var(--white);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  opacity: 1;
  color: var(--beige);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================
   3. COMPONENTS (Cards, Buttons, Inputs)
   ========================================= */

/* --- Buttons --- */

#topoContato {
  align-items: center;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #7a0014;
  border-color: #7a0014;
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 600;
}

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

.btn-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  transition: all 0.3s ease;
}

.btn-icon:hover,
.btn-icon:focus {
  background-color: #7a0014;
  color: var(--white);
}

/* --- Shared Card Styles (The requested border update) --- */
.card-custom,
.service-card,
.info-card,
.plan-card,
.step-card,
.metric-card,
.highlight-card {
  background-color: var(--beige);
  border-radius: 20px;
  
  border-top: 4px solid var(--accent);
  box-shadow: 0 16px 40px rgba(8, 17, 52, 0.1);
  padding: 24px;
  transition: transform 0.3s ease;
}

/* Cards escuros de contato */
.contact-card,
.cta-card,
.card-custom-dark {
  background-color: var(--primary);
  color: var(--white);
  padding: 24px;
  border-radius: 20px;
  border-top: 4px solid var(--accent);
}

.cta-card {
  text-align: center;
}

/* Specific Card Tweaks */
.info-card {
  padding: 20px;
  border-radius: 16px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background-color: var(--white); /* Sobrescreve background bege do agrupamento */
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card ul,
.metric-card ul {
  padding-left: 20px;
}

.plan-price {
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  font-size: 1.25rem;
}

.highlight-card {
  border-radius: 24px;
  padding: 28px;
}

.payment-box {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px;
  margin-top: 5%;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent); 
}

/* --- Outros Elementos --- */
.step-number {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.image-card img {
  width: 100%;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

#consulta,
#pacotes,
#contato,
#sobre {
  background-color: #081134;
}

#consulta .section-title, 
#consulta .section-subtitle,
#pacotes .section-title, 
#pacotes .section-subtitle,
#pacotes .section-subheading,
#sobre .section-title,
#sobre .quemsoueu  {
  color: #ffffff;
}

/* =========================================
   4. SECTIONS & LAYOUT
   ========================================= */

/* --- Typography Helpers --- */
.section-title {
  color: var(--primary);
  font-weight: 700;
}

.section-subtitle {
  color: #3b3b3b;
  margin-top: 8px;
}

.text-accent { color: var(--accent); }
.text-beige { color: var(--beige); }

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(130deg, rgba(8, 17, 52, 0.98), rgba(8, 17, 52, 0.90));
  color: var(--white);
  min-height: 85vh; 
}

.hero-photo {
  width: 90%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- Section Color Themes --- */
.section-light {
  background-color: var(--light);
}

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

/* --- Specific Section Overrides --- */
/* Info Grid (Sobre Mim) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Carousels */
.carousel-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  padding: 20px 0;
}

.carousel-image img {
  max-height: 520px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); 
}

/* Footer */
.footer-custom {
  background-color: var(--primary);
  color: var(--white);
  border-top: 4px solid var(--accent); 
  font-size: 0.95rem;
}

/* Links do Footer */
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7); 
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--beige);
  padding-left: 5px; 
}

/* Botões de Redes Sociais */
.social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: var(--white);
}

/* Cores específicas no Hover */
.social-btn.whatsapp:hover {
  background-color: #25D366; /* Verde WhatsApp */
}

.social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border: none;
}


.text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* =========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (min-width: 992px) {
  .content-block { padding-right: 28px; }
  .image-block { padding-left: 28px; }
}

@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .info-grid {
    margin-top: 40px;
  }
  
  .hero-photo {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .card-custom,
  .service-card,
  .info-card,
  .plan-card,
  .metric-card,
  .highlight-card {
    padding: 18px;
  }

  .hero-section {
    padding: 30px 0;
  }
  
  .display-5 {
    font-size: 2rem;
  }
}