*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --background: #f4f4f4;
    --foreground: black;
    --primary: black;
    --primary-foreground: #ffffff;
    --secondary: #ecf0f1;
    --secondary-foreground: #2C3E50;
    --accent: #F9BD0B;
    --accent-two:#0F172A;
    --accent-foreground: #ffffff;
    --card: #ffffff;
    --card-foreground: #2C3E50;
    --border: #e0e0e0;
    --fifth: #0F172A;
}

body {
    font-family: 'PT Sans', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    line-height: 1.6;
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

header .container {
    display: flex;
    height: 5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 95%;
    padding-left: 1.5rem; 
    padding-right: 1.5rem;
}

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

header nav {
    display: none;
}

@media (min-width: 768px) {
    header nav {
        display: flex;
        gap: 1.5rem;
    }
}

header nav a {
    font-weight: 500;
    transition: color 0.3s;
    color: var(--primary-foreground);
    text-decoration: none;
}

header.scrolled nav a {
    color: var(--foreground);
}

header nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: none;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    background-color: var(--accent);
    color: black;
    border: 1px solid transparent;
    cursor: pointer;
    
}

.button-two {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    background-color: var(--accent-two);
    color: #ffffff;
    border: 1px solid transparent;
    cursor: pointer;
    
}

.button:hover {
    background-color: #eda531;
}

.button.secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.button.secondary:hover {
    background-color: #bdc3c7;
}

.menu-button {
    display: block;
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

header.scrolled .menu-button {
    color: var(--foreground);
    border-color: var(--border);
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0; /* Changed from 0 to 0 */
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 40;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    font-size: 1.25rem;
    color: var(--foreground);
    text-decoration: none;
}

main {
    flex-grow: 1;
}

#home {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(44, 62, 80, 0.7);
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.section {
    padding: 4rem 0;
}

.section-secondary {
    background-color: var(--secondary);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary);
}

.section-header p {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #7f8c8d;
}

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

.about-container h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary);
}

.about-container p {
    color: #7f8c8d;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

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

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

.service-card {
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background-color: var(--card);
}

.service-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.service-icon {
    margin-bottom: 1rem;
    display: inline-block;
    background-color: rgba(230, 126, 34, 0.1);
    padding: 1rem;
    border-radius: 9999px;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #7f8c8d;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-content {
    display: flex;
    margin-left: -1rem;
    transition: transform 0.4s ease-in-out;
}



.carousel-item {
    flex: 0 0 100%;
    padding-left: 1rem;
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 33.333%;
    }
}

.carousel-item img {
    width: 100%;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.carousel-item img:hover {
    transform: scale(1.05);
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: block;
    z-index: 10;
}



.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-grid .card {
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.contact-grid .card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.contact-grid .card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.contact-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
}

.contact-grid .card.primary {
    background-color: var(--fifth);
    color: var(--primary-foreground);
}

.contact-grid .card.primary p {
    color: rgba(255, 255, 255, 0.8);
}

footer {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding-top: 3rem;
}

.footer-container {
    display: flex; 
    flex-direction: column; 
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row; 
        justify-content: center; 
        gap: 4rem; 
    }
}

.footer-container h4 {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: black;
}

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

.footer-container li {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--secondary-foreground);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #7f8c8d;
}
/* Estiliza o novo link de email no rodapé */
.footer-link {
    color: #7f8c8d; /* Mesma cor do texto 'li' */
    text-decoration: none; /* Remove o sublinhado */
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent); /* Fica amarelo ao passar o mouse */
    text-decoration: underline; /* Adiciona sublinhado no hover */
}

/* Garante a cor correta no modo escuro */
body[data-theme="dark"] .footer-link {
    color: hsl(215 20.2% 65.1%); /* Mesma cor do 'li' no modo escuro */
}

/* LÓGICA DO MODO ESCURO --- */

body[data-theme="dark"] {
    /* Mapeamento das cores do :root para o modo escuro */
    --background: hsl(222.2 84% 4.9%);
    --foreground: hsl(210 40% 98%);
    --primary: hsl(210 40% 98%);
    --primary-foreground: hsl(210 40% 98%);
    --secondary: hsl(217.2 32.6% 17.5%);
    --secondary-foreground: hsl(210 40% 98%);
    --accent: hsl(45 95% 51%);
    --accent-two: hsl(217.2 32.6% 17.5%);
    --accent-foreground: hsl(222.2 47.4% 11.2%);
    --card: hsl(222.2 84% 4.9%);
    --card-foreground: hsl(210 40% 98%);
    --border: hsl(217.2 32.6% 17.5%);
    --fifth: hsl(217.2 32.6% 17.5%);
}

/* Ajustes finos para elementos específicos no modo escuro */

/* Header rolando a página */
body[data-theme="dark"] header.scrolled {
    background-color: hsla(222.2, 84%, 4.9%, 0.8); /* Fundo escuro com transparência */
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Links do header rolando a página */
body[data-theme="dark"] header.scrolled nav a {
    color: var(--foreground);
}

/* Botão do menu mobile */
body[data-theme="dark"] header.scrolled .menu-button {
    color: var(--foreground);
    border-color: var(--border);
}

/* Fundo do menu mobile */
body[data-theme="dark"] .mobile-menu {
    background-color: var(--background);
}

/* Botões do carrossel */
body[data-theme="dark"] .carousel-prev,
body[data-theme="dark"] .carousel-next {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

/* Overlay da Hero section */
body[data-theme="dark"] .hero-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}



/* Card de Contato (Verificar Localização) */
body[data-theme="dark"] .contact-grid .card {
    background-color: var(--background); /* Fundo da página */
    border: 1px solid var(--border);     /* Borda clara (como no novo projeto) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Botão "Verificar localização" (dentro do card normal) */
body[data-theme="dark"] .button-two {
    background-color: var(--primary); /* Fundo branco */
    color: hsl(222.2 47.4% 11.2%); /* Texto preto */
    border: 1px solid var(--border);
}
body[data-theme="dark"] .button-two:hover {
    background-color: hsl(210 40% 90%); /* Um cinza claro no hover */
}


/* Card de Contato (Solicite Orçamento) */
body[data-theme="dark"] .contact-grid .card.primary {
    background-color: var(--primary); /* Fundo branco */
    color: hsl(222.2 47.4% 11.2%);  /* Texto preto */
}

body[data-theme="dark"] .contact-grid .card.primary p {
    color: hsl(222.2 47.4% 11.2%);
    opacity: 0.9;
}

/* Rodapé */
body[data-theme="dark"] footer {
    background-color: var(--secondary); /* Cor de fundo --secondary (cinza escuro) */
    color: var(--secondary-foreground); /* Texto principal claro */
}

/* Títulos do Rodapé (Contato, Localização) */
body[data-theme="dark"] .footer-container h4 {
    color: var(--primary); /* Cor branca */
}

/* Links/Texto do Rodapé (Endereço, Telefone) */
body[data-theme="dark"] .footer-container li {
    color: hsl(215 20.2% 65.1%); /* Cor --muted-foreground (cinza claro) */
}

/* Texto de Copyright no rodapé */
body[data-theme="dark"] .footer-bottom p {
     color: hsl(215 20.2% 65.1%); /* Cor --muted-foreground (cinza claro) */
}


body[data-theme="dark"] .card.primary .contact-card-title svg {
    stroke: var(--accent);
}

/* Fim da Logica do Modo Escuro */