/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
}

.btn {
    display: inline-block;
    background-color: #16a04a;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #006929;
    color: white;
}

/* Ícones SVG locais (Font Awesome Free 7.3.1) */
.fa-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: -0.125em;
}

.card-icon {
    width: 3rem;
    height: 3rem;
}

.heading-icon {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.35rem;
}

.social-icon {
    width: 40px;
    height: 40px;
}

/* Header */
header {
    background-color: #048d3e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    border: 1px white solid;
}

.logo p {
    border: 1px white solid;
    color: #ecf0f1;
    font-size: 0.9rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 1rem;
}

nav ul li {
    margin-right: 1.5rem;
}

nav ul li a {
    color: #ecf0f1;
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a.active {
    color: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    padding: 5px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #27ae60;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

.nav-icon {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/galpao-001.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background-color: white;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Materials Section */
.materials {
    padding: 4rem 0;
    background-color: #f1f8e9;
}

.materials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.material-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.material-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #4882bd;
    color: #ecf0f1;
    padding: 3rem 0 0;
}

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

.social-link .social-icon,
.social-link img {
    transition: transform 0.3s;
}

.social-link:hover .social-icon,
.social-link:hover img {
    transform: scale(1.1);
}

.footer-info, .footer-links, .footer-contact {
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: #ecf0f1;
}

.footer-links h3, .footer-contact h3 {
    color: #ecf0f1;
    margin-bottom: 1.5rem;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #bdc3c7;
}

.footer-links ul li a:hover {
    color: #27ae60;
}

.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #027532;
    color: #ffffff;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    header {
        position: relative;
        padding: 0.75rem 0;
    }

    header .container {
        display: flex;
        justify-content: center;
    }

    .logo img {
        display: block;
        width: 72px;
        height: auto;
    }

    nav ul {
        position: fixed;
        z-index: 1000;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: repeat(4, 52px);
        gap: 8px;
        width: max-content;
        max-width: calc(100vw - 24px);
        margin: 0;
        padding: 8px 12px;
        background-color: #048d3e;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a,
    nav ul li a.active {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
        color: white;
        background-color: #17211b;
        border: 2px solid transparent;
        border-radius: 50%;
    }

    nav ul li a.active {
        background-color: white;
        border-color: #17211b;
        box-shadow: 0 0 0 3px #048d3e;
    }

    nav ul li a:after {
        display: none;
    }

    .nav-icon {
        display: block;
        width: 25px;
        height: 25px;
        object-fit: contain;
        filter: invert(1);
    }

    nav ul li a.active .nav-icon {
        filter: none;
    }

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

    .hero {
        padding: 3.5rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .benefits,
    .materials {
        padding: 3rem 0;
    }

    .benefits-grid,
    .materials-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        margin-top: 0;
    }

    footer > .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
