/*
Theme Name: DentalCare
Description: Tema WordPress moderno para clínicas odontológicas, baseado em React/Tailwind
Version: 1.0
Author: Seu Nome
*/

/* Reset básico e variáveis CSS */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-foreground: #ffffff;
  --secondary: #f0fdfa;
  --secondary-foreground: #0f172a;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #f0fdfa;
  --accent-foreground: #0f172a;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utilitários básicos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid #1e293b;
  background-color: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background-color: #ffffff;
  border-color: #0d9488;
  color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Header fixo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-content {
  height: 160px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo {
  max-height: 101px;
  width: auto;
  height: auto;
  display: block;
  margin-top: 50px;
  transition: margin-top 0.3s;
}

.site-header.scrolled .custom-logo {
  margin-top: 50px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.5rem;
  transition: color 0.2s;
}

.mobile-menu-toggle:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
#mobile-menu {
  background-color: var(--background);
  padding-top: 50px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-menu nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}

#mobile-menu nav a:hover {
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-text .highlight {
  color: var(--primary);
  display: block;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  color: #373536;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  /* Ocultar texto alt quando imagem não carrega */
  color: transparent;
  font-size: 0;
  line-height: 0;
}

/* Ocultar completamente se a imagem falhar ao carregar */
.hero-image img[alt]:not([src]),
.hero-image img[alt][src=""] {
  display: none;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Seções gerais */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 3rem;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: #e0f2f1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #0d9488;
  flex-shrink: 0;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #0d9488;
  stroke-width: 2;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1e293b;
  line-height: 1.4;
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.service-link {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--muted);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s;
}

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

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Excellence Section */
.excellence-section {
  padding: 5rem 0;
  background: #ffffff;
}

.excellence-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.excellence-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.excellence-text p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.stats-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: #0d9488;
  stroke-width: 2;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d9488;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #e0f2f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  stroke: #0d9488;
  stroke-width: 2;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.excellence-image {
  position: relative;
}

.excellence-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.excellence-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #0d9488;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.badge-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

@media (max-width: 768px) {
  .excellence-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .excellence-text {
    text-align: center;
  }
  
  .excellence-text h2 {
    font-size: 2rem;
  }

  .stats-grid {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-item {
    justify-content: center;
  }
  
  .features-list {
    align-items: center;
  }
  
  .feature-item {
    max-width: 400px;
  }
  
  .excellence-badge {
    bottom: 15px;
    left: 15px;
    padding: 1rem 1.25rem;
  }
  
  .badge-text {
    font-size: 1.25rem;
  }
}

/* Structure Section */
.structure-section {
  padding: 5rem 0;
  background: var(--background);
}

.structure-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

  .gallery-main img {
    height: 250px;
  }

  .gallery-item img {
    height: 150px;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background: var(--muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author strong {
  display: block;
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
}

.contact-details h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contact-details p {
  color: var(--muted-foreground);
  line-height: 1.5;
}

.contact-form-wrapper {
  background: var(--muted);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

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

/* Utility Classes */
.highlight {
  color: var(--primary);
}

/* Icons (usando emojis como fallback) */
.icon-shield::before {
  content: "🛡️";
}

.icon-doctor::before {
  content: "●";
  color: #163c57;
  font-size: 0.8em;
  margin-right: 0.25rem;
}

.icon-star::before {
  content: "⭐";
}

.icon-tooth::before {
  content: "🦷";
}

.icon-sparkle::before {
  content: "✨";
}

.icon-braces::before {
  content: "🔧";
}

.icon-implant::before {
  content: "🦴";
}

.icon-child::before {
  content: "👶";
}

.icon-emergency::before {
  content: "🚨";
}

.icon-location::before {
  content: "📍";
}

.icon-phone::before {
  content: "📞";
}

.icon-email::before {
  content: "✉️";
}

/* Additional Content Section */
.additional-content-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.icon-clock::before {
  content: "🕒";
}

/* Removido: regra que forçava font-family: inherit no preview do Customizer
   Isso impedia que a fonte selecionada no Customizer fosse aplicada corretamente */