
    /* Global Color Palette */
    :root {
      --cor-primaria: #FF6B35; /* Laranja vibrante */
      --cor-terciaria: #ffded2;
      --cor-secundaria: #FFFFFF; /* Branco */
      --cor-destaque: #FF8C61; /* Um laranja um pouco mais claro para destaque */
      --cor-fundo-escuro: #171717; /* Preto azulado escuro para fundos */
      --cor-fundo-claro: #F9F9F9; /* Fundo suave, quase branco */
      --cor-texto-claro: #FFFFFF; /* Texto claro para fundos escuros */
      --cor-texto-escuro: #1A1A2E; /* Texto escuro para fundos claros */
      --cor-sombra: rgba(0, 0, 0, 0.25); /* Sombra mais intensa */
    }

    /* Basic Reset and Global Styles */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      background-color: var(--cor-fundo-claro); /* Fundo padrão do body */
      color: var(--cor-texto-escuro);
      overflow-x: hidden; /* Prevent horizontal scroll from animations */
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }


/* --- Header Styling --- */
header {
  background-color: var(--cor-fundo-escuro); /* Default background */
  color: var(--cor-secundaria);
  padding: 1.2rem 0;
  box-shadow: 0 4px 10px var(--cor-sombra);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header img {
  max-height: 40px;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: transparent; /* Initially transparent */
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.4s ease;
  z-index: 0;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Acima do menu */
  margin-left: 1rem;
}

/* Tracinhos do hambúrguer */
.menu-btn .hamburger,
.menu-btn .hamburger::before,
.menu-btn .hamburger::after {
  content: '';
  display: block;
  background-color: var(--cor-primaria);
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  width: 100%;
  left: 0;
}

.menu-btn .hamburger {
  position: relative;
  width: 100%;
}

.menu-btn .hamburger::before,
.menu-btn .hamburger::after {
  position: absolute;
  width: 100%;
  left: 0;
}

.menu-btn .hamburger::before {
  top: -8px;
}
.menu-btn .hamburger::after {
  bottom: -8px;
}

/* Animação de X quando ativo */
.menu-btn.active .hamburger {
  background-color: transparent;
}
.menu-btn.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-btn.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

nav {
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--cor-secundaria);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative; /* Essential for positioning pseudo-elements */
  z-index: 2; /* Ensure text is above all backgrounds/lines */
  padding: 10px 15px; /* Padding for the solid background when scrolled */
  transition: color 0.3s ease, transform 0.3s ease;
  overflow: hidden; /* Important to contain ::before animation */
}

nav a:hover {
  color: var(--cor-destaque);
  transform: translateY(-2px);
}

/* --- Thin Orange Line (Default/Not Scrolled State) --- */
/* This is the default state: the thin line, visible only on hover */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; /* Position at the bottom of the link */
  left: 0;
  width: 0; /* Starts hidden */
  height: 3px; /* Thin line */
  background-color: var(--cor-primaria);
  transition: width 0.3s ease; /* Smooth expansion */
  z-index: 1; /* Below text */
}

nav a:hover::after {
  width: 100%; /* Expands on hover */
}


/* --- Solid Orange Background (When Scrolled State) --- */
/* This element is ONLY for when the header IS scrolled */
nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* agora cobre todo o link */
  background-color: var(--cor-primaria);
  transform: translateY(200%); /* começa abaixo do link */
  transition: transform 0.4s ease-out;
  z-index: -1; /* fica atrás do texto */
  border-radius: 4px; /* opcional: arredonda o fundo */
}

nav a.active::before {
  transform: translateY(0); /* sobe para cobrir todo o link */
}

/* --- Header Scrolled State --- */
header.header-scrolled {
  background-color: transparent;
  box-shadow: none;
}

header.header-scrolled .header-title {
  opacity: 0.1;
  color: var(--cor-primaria);
}

/* When header is scrolled, ensure the thin line (::after) is NOT visible */
header.header-scrolled nav a::after {
  width: 0;
  transition: none; /* No transition needed as it should immediately hide */
}

/* When header is scrolled, make the solid backgrounds (::before) visible */
header.header-scrolled nav a::before {
  transform: translateY(0); /* Slides up to cover the link */
}

/* Optional: Adjust link text color when background is visible for better contrast */
header.header-scrolled nav a {
    color: var(--cor-secundaria); /* Or a darker color if needed against orange */
}

/* --- Hover Effect for Individual Backgrounds when Scrolled --- */
header.header-scrolled nav a:hover::before {
  background-color: color-mix(in srgb, var(--cor-primaria) 85%, black); /* Slightly darker orange on hover */
}

 
   /* --- Hero Section - Banner com Transição Fade Corrigida --- */
.hero {
  background-color: var(--cor-fundo-escuro);
  color: var(--cor-texto-claro);
  position: relative;
  overflow: hidden;
  height: 90vh; /* Tela cheia fixa */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Slides */
.hero-slide {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay escura */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

/* Texto do slide */
.hero-content {
  position: absolute;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  max-width: 90%;
  display: none;
  padding: 0 20px;
}

.hero-content.active {
  opacity: 1;
  display: block;
}

/* Título */
.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(90deg, var(--cor-secundaria), var(--cor-destaque));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Parágrafo */
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cor-fundo-claro);
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

/* Botão */
.hero .cta {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background-color: var(--cor-primaria);
  color: var(--cor-texto-claro);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.hero .cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s ease;
}

.hero .cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(255, 107, 53, 0.4);
}

.hero .cta:hover::before {
  left: 100%;
}

.hero .cta:active {
  transform: translateY(-2px) scale(1.02);
}

/* Carousel - setas e pontos */
.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--cor-primaria);
  transform: scale(1.2);
}

.dot.active::after {
  border-color: var(--cor-primaria);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.carousel-arrow {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Elementos flutuantes decorativos */
.floating-element {
  position: absolute;
  z-index: 5;
  opacity: 0.4;
  filter: blur(2px);
  animation: float 15s infinite ease-in-out;
}

.element-1 { top: 15%; left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.element-2 { top: 60%; right: 15%; width: 120px; height: 120px; animation-delay: 2s; }
.element-3 { bottom: 20%; left: 20%; width: 100px; height: 100px; animation-delay: 4s; }

/* .scroll-indicator {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  fill: white;
} */
    /* --- General Section Styling --- */
    section {
      padding: 6rem 0; /* More vertical padding */
      background-color: var(--cor-secundaria);
      margin-bottom: 0; /* Sections directly follow each other */
      box-shadow: 0 4px 15px var(--cor-sombra); /* More pronounced shadow */
      border-radius: 0; /* No border-radius for full width sections */
      position: relative; /* For potential future internal animations */
    }

    section:nth-of-type(even) { /* Alternating background for sections */
        background-color: var(--cor-fundo-claro);
    }

    h2 {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(2rem, 4vw, 3.5rem);
      text-align: center;
      margin-bottom: 2.5rem;
      color: var(--cor-texto-escuro); /* Main headings use dark text */
      position: relative;
      font-weight: 700;
    }

    h2::after {
        content: '';
        display: block;
        width: 80px; /* Wider underline */
        height: 5px; /* Thicker underline */
        background-color: var(--cor-primaria);
        margin: 15px auto 0;
        border-radius: 3px;
    }

    #sobre p, ul {
        max-width: 900px; /* Wider content for readability */
        margin: 0 auto;
        text-align: center;
        font-size: 1.15rem;
        line-height: 1.7;
        color: var(--cor-texto-escuro);
        padding: 0 1rem;
    }
    
    .service-card {
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }
        
    .service-card:hover {
        border-bottom: 3px solid #FF6B00;
        transform: translateY(-5px);
    }

    /* --- Contact Section --- */
    #contato {
        background-color: var(--cor-fundo-escuro); /* Contact section is dark */
        color: var(--cor-texto-claro);
    }

    #contato h2 {
        color: var(--cor-primaria); /* Title is orange on dark background */
    }

    #contato h2::after {
        background-color: var(--cor-primaria);
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem; /* Larger gap in form */
      max-width: 700px; /* Wider form */
      margin: 0 auto 3rem;
      padding: 3rem; /* More padding */
      background-color: var(--cor-secundaria); /* Form background is white */
      border-radius: 12px;
      box-shadow: 0 8px 25px var(--cor-sombra);
      color: var(--cor-texto-escuro);
    }

    form label {
        font-weight: 500;
        margin-bottom: 0.5rem;
        display: block; /* Ensures label is on its own line */
    }

    input, textarea {
      padding: 1.1rem; /* Larger input fields */
      border: 1px solid #ddd;
      border-radius: 8px; /* More rounded inputs */
      font-size: 1rem;
      background-color: var(--cor-fundo-claro); /* Light background for inputs */
      color: var(--cor-texto-escuro);
      width: 100%;
    }

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--cor-primaria);
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    }

    form button {
      background-color: var(--cor-primaria);
      color: var(--cor-texto-claro);
      border: none;
      cursor: pointer;
      font-weight: 700;
      padding: 1.2rem 2rem; /* Larger button */
      border-radius: 50px;
      transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      font-size: 1.1rem;
    }

    form button:hover {
      background-color: var(--cor-destaque);
      transform: translateY(-3px);
      box-shadow: 0 8px 15px rgba(255, 107, 53, 0.3);
    }

    .mapa iframe {
      border: none;
      width: 100%;
      height: 400px; /* Taller map */
      border-radius: 12px;
      box-shadow: 0 8px 20px var(--cor-sombra);
    }

    /* --- Footer Styling --- */
    footer {
      background-color: var(--cor-fundo-escuro);
      color: var(--cor-texto-claro);
      text-align: center;
      padding: 2rem 0;
      margin-top: 0; /* No margin-top if sections go full width */
      font-size: 0.9rem;
      border-top: 5px solid var(--cor-primaria); /* Orange line at the top */
    }

    /* --- Animations --- */
    @keyframes pulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.5); opacity: 0.5; }
      100% { transform: scale(1); opacity: 1; }
    }

    @keyframes float {
      0% { transform: translateY(0) rotate(0); }
      50% { transform: translateY(-20px) rotate(5deg); }
      100% { transform: translateY(0) rotate(0); }
    }

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
      40% { transform: translateY(-10px) translateX(-50%); }
      60% { transform: translateY(-5px) translateX(-50%); }
    }

    /* --- Responsive Adjustments --- */
    @media (max-width: 1024px) {
        #servicos li {
            flex: 1 1 calc(50% - 2.5rem); /* 2 items per row */
            min-width: unset; /* Allow flexible width */
        }
    }

    @media (max-width: 768px) {
      
      header {
        position: fixed;
        width: 100%;
      }

      header .container {
          flex-direction: column;
          text-align: center;
      }

      header.header-scrolled {
        background-color: var(--cor-fundo-escuro); /* Mantém o fundo */
        box-shadow: 0 4px 10px var(--cor-sombra);   /* Ou o valor padrão */
      }

      nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--cor-fundo-escuro);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 1000;
      }

      nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
      }

    nav a::before {
    display: none !important;
  }
      .menu-btn {
        display: flex;
        position: absolute;
        left: 1rem;
        top: 1.2rem;
      }
    
       nav.open {
    left: 0; /* Slide in */
  }
    
      nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
      }

      nav a {
        padding: 0.5rem 0;
        display: block;
        font-size: 1rem;
      }

      .hero {      
        margin-top: 10%;
        min-height: 70vh; /* Adjust height for smaller screens */
      }

      .hero h2 {
        font-size: 2.2rem;
      }
      
      .hero p {
        font-size: 1rem;
      }

      .carousel-arrow {
        width: 40px;
        height: 40px;
      }

      .carousel-dots {
          gap: 8px;
      }

      .dot {
          width: 10px;
          height: 10px;
      }
      
      .floating-element {
        display: none; /* Hide floating elements on smaller screens */
      }

      .scroll-indicator {
          bottom: 80px;
      }

      section {
        padding: 4rem 0;
      }

      h2 {
        font-size: 2rem;
      }

      #sobre p, #servicos ul {
        font-size: 1rem;
      }

      #servicos li {
        flex: 1 1 100%; /* 1 item per row on mobile */
        padding: 1.5rem;
      }

      form {
          padding: 2rem;
      }
    }

    @media (max-width: 480px) {
        header h1 {
            font-size: 1.6rem;
        }

        .hero h2 {
            font-size: 1.8rem;
        }
        .hero p {
            font-size: 0.9rem;
        }
        .hero .cta {
            padding: 0.8rem 1.8rem;
            font-size: 1rem;
        }

        .carousel-controls {
            bottom: 20px;
        }
        .carousel-arrow {
            width: 35px;
            height: 35px;
        }
        .carousel-arrow svg {
            width: 16px;
            height: 16px;
        }

        h2 {
            font-size: 1.8rem;
            margin-bottom: 2rem;
        }
        h2::after {
            width: 60px;
            height: 4px;
            margin: 10px auto 0;
        }
        form {
            padding: 1.5rem;
            gap: 1rem;
        }
        input, textarea, form button {
            font-size: 0.9rem;
            padding: 0.9rem;
        }
        .whatsapp {
            padding: 0.9rem 1.5rem;
            font-size: 1rem;
        }
    }
