/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #000000;
  --secondary-color: #F5F5F5;
  --accent-color: #333333;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-dark: #000000;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --gradient-primary: linear-gradient(135deg, #000000, #333333);
  --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  
  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Layout */
  --header-height: 60px;
  --bottom-nav-height: 70px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 500ms ease-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  overflow-x: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-logo {
  margin-bottom: var(--space-8);
}

.logo-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  background: linear-gradient(45deg, #FFFFFF, #CCCCCC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--text-secondary);
  border-top: 3px solid var(--text-primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--primary-color);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-4);
}

.menu-toggle,
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.menu-toggle:hover,
.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.header-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  flex: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  visibility: visible;
  opacity: 1;
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.active .menu-content {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  color: var(--text-primary);
}

.menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-list {
  list-style: none;
  padding: var(--space-4) 0;
}

.menu-item {
  margin-bottom: var(--space-2);
}

.menu-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  margin-right: var(--space-4);
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(var(--space-2));
}

.menu-link i {
  width: 20px;
  height: 20px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: var(--header-height);
  margin-bottom: var(--bottom-nav-height);
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ===== BANNERS ===== */
.banners {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.banner-slide.active {
  opacity: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  color: var(--text-primary);
  padding: 0 var(--space-4);
}

.banner-content h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-indicators {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.indicator.active {
  background: var(--text-primary);
}

/* ===== ABOUT ===== */
.about {
  padding: var(--space-12) 0;
  background: var(--secondary-color);
}

.about-content {
  text-align: center;
}

.about-logo {
  margin-bottom: var(--space-8);
}

.logo-image {
    width: 120px;
    height: auto;
    margin: 0 auto var(--space-4);
    display: block;
    /* Linha removida/comentada para tirar o efeito de sombra */
    /* filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); */
    transition: transform var(--transition-normal);
}

.logo-image:hover {
    transform: scale(1.05);
}

.about-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-6);
}

.about-text p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--accent-color);
  margin-bottom: var(--space-8);
  text-align: justify;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  gap: var(--space-4);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--accent-color);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-1);
}

/* ===== SERVICES ===== */
.services {
  padding: var(--space-12) 0;
  background: var(--primary-color);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--secondary-color);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-overlay i {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
}

.service-content {
  padding: var(--space-6);
}

.service-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.service-description {
  color: var(--accent-color);
  line-height: 1.6;
}

/* ===== LOCATION ===== */
.location {
  padding: var(--space-12) 0;
  background: var(--secondary-color);
}

.location-content {
  display: grid;
  gap: var(--space-8);
}

.location-info {
  text-align: center;
}

.address-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--primary-color);
  padding: var(--space-6);
  border-radius: var(--border-radius-xl);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.address-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.address-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.address-details {
  text-align: left;
  flex: 1;
}

.address-details h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.address-details p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--accent-color);
  font-weight: var(--font-weight-medium);
}

.contact-item i {
  width: 20px;
  height: 20px;
}

.map-container {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-fixed);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column; /* Para empilhar ícone e texto */
  align-items: center;   /* Centraliza o conteúdo horizontalmente dentro de cada item */
  justify-content: center; /* Centraliza o conteúdo verticalmente dentro de cada item */
  gap: var(--space-1);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  min-width: 60px; /* Manter para dar espaço uniforme aos itens */
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-item span {
  display: block; /* Garante que o texto seja visível */
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-align: center; /* Centraliza o texto sob o ícone */
  white-space: nowrap; /* Evita quebra de linha se o texto for curto */
}

.nav-item i {
  width: 24px;
  height: 24px;
}

/* Estilo específico para mover o ícone da Agenda mais para a direita */
.agenda-item {
    margin-left: 8px; /* Ajuste este valor (era 10px, agora 8px para um ajuste mais fino) */
}


/* ===== ANIMATIONS ===== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .address-card {
    flex-direction: column;
    text-align: center;
  }
  
  .address-details {
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .banner-content h2 {
    font-size: var(--font-size-2xl);
  }
  
  .banner-content p {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .about-title {
    font-size: var(--font-size-2xl);
  }
  
  .header-title {
    font-size: var(--font-size-lg);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}