/* Estilos gerais */
:root {
  --primary-color: #4CAF50;
  --secondary-color: #2E7D32;
  --accent-color: #8BC34A;
  --text-color: #333333;
  --light-text: #ffffff;
  --light-bg: #f9f9f9;
  --dark-bg: #333333;
  --border-color: #dddddd;
  --shadow: 0 2px 5px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color);
}

p {
  margin-bottom: 20px;
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

/* Header */
header {
  background-color: #ffffff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  padding: 15px 0;
}

.logo h1 {
  font-size: 28px;
  margin-bottom: 0;
  color: var(--primary-color);
}

.logo p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-color);
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 15px;
  position: relative;
}

nav ul li:first-child {
  margin-left: 0;
}

nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 5px;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

nav ul li a i {
  font-size: 10px;
  margin-left: 5px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Dropdown Menu Aprimorado */
nav ul li.has-submenu {
  position: relative;
}

nav ul li.has-submenu:hover .submenu {
  display: block;
  animation: fadeInDown 0.3s ease;
}

nav ul .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  min-width: 220px;
  z-index: 1001;
  border-radius: 0 0 8px 8px;
  border-top: 3px solid var(--primary-color);
  padding: 10px 0;
}

nav ul .submenu li {
  margin: 0;
  width: 100%;
}

nav ul .submenu li a {
  padding: 12px 20px;
  font-size: 14px;
  display: block;
  white-space: nowrap;
  color: #444;
  transition: all 0.2s ease;
}

nav ul .submenu li a:hover {
  background-color: #f1f8e9;
  color: var(--primary-color);
  padding-left: 25px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              linear-gradient(45deg, #4CAF50, #2E7D32);
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 150px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.hero-section p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              linear-gradient(135deg, #4CAF50, #2E7D32);
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--light-text);
}

.breadcrumb {
  font-size: 14px;
}

.breadcrumb a {
  color: var(--light-text);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: 0.6;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
}

.content-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.content-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 16px;
  margin-bottom: 0;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.principle-card {
  background-color: #fff;
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  box-shadow: var(--shadow);
  border-radius: 0 8px 8px 0;
}

.principle-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 20px;
}

.principle-card p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card p {
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              linear-gradient(45deg, #4CAF50, #2E7D32);
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 80px 0;
  text-align: center;
  margin-top: 60px;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form */
.contact-form {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-submit {
  text-align: right;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 0;
}

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

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--light-text);
}

.footer-logo p {
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--light-text);
  opacity: 0.8;
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 14px;
  opacity: 0.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav.active {
    max-height: 500px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  nav ul .submenu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
  }
  
  nav ul li.has-submenu.active .submenu {
    display: block;
  }
  
  nav ul li.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-section h1 {
    font-size: 36px;
  }
  
  .hero-section p {
    font-size: 18px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 28px;
  }
  
  .hero-section p {
    font-size: 16px;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  .content-section h2 {
    font-size: 26px;
  }
  
  .content-section h3 {
    font-size: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Carousel Styles */
.carousel-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('../images/carousel-bg.jpg') center/cover no-repeat,
              linear-gradient(45deg, #4CAF50, #2E7D32);
  color: var(--light-text);
  min-height: 500px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.carousel-container {
  position: relative;
  height: 500px;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-content {
  max-width: 800px;
}

.carousel-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--light-text);
  transform: translateY(20px);
  transition: transform 0.5s ease-out;
}

.carousel-slide.active .carousel-content h1 {
  transform: translateY(0);
}

.carousel-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

@media (max-width: 768px) {
  .carousel-section, .carousel-container {
    height: 400px;
    min-height: 400px;
  }
  .carousel-content h1 {
    font-size: 32px;
  }
  .carousel-content p {
    font-size: 16px;
  }
  .carousel-prev, .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Botão Flutuante WhatsApp Aprimorado */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(5deg);
    color: #FFF;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Tooltip do WhatsApp */
.whatsapp-tooltip {
    position: fixed;
    bottom: 50px;
    right: 110px;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.whatsapp-float:hover + .whatsapp-tooltip,
.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    right: 115px;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 28px;
    }
    .whatsapp-tooltip {
        display: none; /* Esconder tooltip em mobile para não poluir a tela */
    }
}
