:root {
  --cor-principal: #3044a6;
  --cor-acento-claro: #f6ac1b;
  --cor-acento-escuro: #c42025;
  --cor-destaque: #35a9df;
  --cor-fundo: #F9FAFB;
  --cor-texto: #333333;
  --border-radius: 8px;
  --spacing-unit: 1rem;
  --font-main: 'Fredoka', sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
}

body {
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3 {
  color: var(--cor-principal);
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--cor-acento-escuro);
  color: white;
}

.btn-secondary {
  background-color: var(--cor-acento-claro);
  color: var(--cor-principal);
}

/* Navbar */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-logo {
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  max-height: 50px;
  width: auto;
}

.hero-logo {
  max-width: 150px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--cor-principal);
  font-weight: 500;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--cor-acento-claro);
}

/* Sections */
section {
  padding: 3rem 0;
}

/* Hero Section (#home) */
#home {
  background-color: white; /* Fallback */
  text-align: center;
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-slideshow, .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 50s infinite;
}

.hero-overlay {
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.35); /* White overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--cor-principal);
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius);
}

/* Animation Keyframes */
@keyframes fade {
  0% { opacity: 0; }
  2% { opacity: 1; }
  10% { opacity: 1; }
  12% { opacity: 0; }
  100% { opacity: 0; }
}

/* Sobre Section (#sobre) */
#sobre {
  background-color: var(--cor-fundo);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.highlight-item:hover {
  transform: translateY(-3px);
}

.highlight-item i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.highlight-item:nth-child(4n+1) i { color: var(--cor-acento-escuro); }
.highlight-item:nth-child(4n+2) i { color: var(--cor-acento-claro); }
.highlight-item:nth-child(4n+3) i { color: var(--cor-destaque); }
.highlight-item:nth-child(4n+4) i { color: var(--cor-principal); }

.highlight-item span {
  font-weight: 600;
  color: var(--cor-principal);
}

/* Diferenciais Section (#diferenciais) */
#diferenciais {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--cor-fundo);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--cor-acento-claro);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Multicolor icons */
.feature-card:nth-child(4n+1) .feature-icon { color: var(--cor-acento-escuro); }
.feature-card:nth-child(4n+2) .feature-icon { color: var(--cor-acento-claro); }
.feature-card:nth-child(4n+3) .feature-icon { color: var(--cor-destaque); }
.feature-card:nth-child(4n+4) .feature-icon { color: var(--cor-principal); }

/* Contato Section (#contato) */
#contato {
  background-color: var(--cor-fundo);
}

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

.contact-info, .iframe-container-wrapper {
  flex: 1;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #25D366;
  font-weight: 600;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.whatsapp-link:hover {
  color: #128C7E;
  text-decoration: underline;
}

.whatsapp-link i {
  font-size: 1.2rem;
}

/* Placeholder Iframe Container */
.iframe-container {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  color: #666;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--cor-principal);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

footer a {
  color: var(--cor-acento-claro);
  margin: 0 0.5rem;
}

/* Media Queries (Desktop) */
@media (min-width: 768px) {
  header {
    padding: 1rem 0;
  }

  .nav-logo {
    font-size: 1.5rem;
    padding: 0;
  }

  .nav-links {
    width: auto;
    justify-content: flex-end;
    padding-top: 0;
    gap: 2rem;
  }
  
  .nav-links a {
      font-size: 1rem;
  }

  section {
    padding: 5rem 0;
  }

  #home {
    min-height: 80vh;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  @media (min-width: 1024px) {
    .features-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .contact-wrapper {
    flex-direction: row;
  }
  
  .iframe-container {
      min-height: 450px;
  }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  transform: translateY(30px);
}

.fade-in {
  transform: scale(0.95);
}
