/* --- Reset Básico e Variáveis --- */
:root {
    --primary-color: #d90429; /* Vermelho forte */
    --secondary-color: #2b2d42; /* Azul escuro/Chumbo */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #333;
    --light-text-color: #fff;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Titillium Web', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Cabeçalho e Navegação --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    text-decoration: none;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}


/* --- Seções Padrão --- */
main {
    padding-top: 80px; /* Altura do header */
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.bg-light {
    background-color: var(--light-gray);
}
.bg-dark {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}
.bg-dark .section-title {
    color: var(--light-text-color);
}

/* --- Slide Show --- */
#hero-slider {
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    background: var(--dark-gray);
    display: flex;
}

#hero-slider .slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-slider .slide:first-child {
    opacity: 1;
}

#hero-slider .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.slide-content h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.5rem;
}

/* --- Grid e Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.product-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    margin-bottom: auto;
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

/* --- Seção Sobre --- */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Formulário de Contato --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #555;
    background: #444;
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #b20320;
    transform: translateY(-2px);
}

.contact-form .btn {
    align-self: center;
    width: auto;
}


/* --- Rodapé --- */
.main-footer {
    background: var(--dark-gray);
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .main-header .container {
        position: relative;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .main-nav.active {
        max-height: 300px; /* Altura suficiente para os links */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }
}