/* 
   RC Ambiental - CSS 
   Desenvolvido com foco em alta performance e UI Moderna (Glassmorphism & Cores Ambientais).
*/

:root {
    /* Paleta de Cores baseada na Logo */
    --color-primary-blue: #0059B2;
    --color-primary-blue-hover: #00468c;
    --color-accent-green: #6BBF2B;
    --color-accent-green-hover: #5ba324;
    --color-dark-green: #295A1E;

    /* Cores de Fundo e Texto */
    --color-bg-light: #f4f9f4;
    /* Fundo suave sugerido */
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;

    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(41, 90, 30, 0.08);
    /* Sombra usando o verde escuro */

    /* Transições */
    --transition-fast: 0.3s ease;

    /* Fontes */
    --font-main: 'Poppins', sans-serif;
}

/* ================== GLOBAL ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ================== GLASS EFFECT ================== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4 {
    color: var(--color-dark-green);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h1 span {
    color: var(--color-accent-green);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-primary-blue);
}

p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(107, 191, 43, 0.15);
    color: var(--color-dark-green);
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(107, 191, 43, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 191, 43, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark-green);
}

.btn-block {
    width: 100%;
}

/* ================== HEADER & NAVBAR ================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-white);
    /* Default for transparent header */
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--color-dark-green);
}

.nav-link:hover {
    color: var(--color-accent-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent-green);
    transition: var(--transition-fast);
}

.nav-link:not(.btn-contato):hover::after {
    width: 100%;
}

.btn-contato {
    background-color: var(--color-primary-blue);
    color: var(--color-white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 89, 178, 0.2);
}

.btn-contato:hover {
    background-color: var(--color-primary-blue-hover);
    transform: translateY(-2px);
}

/* Hamburguer Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-white);
}

.header.scrolled .bar {
    background-color: var(--color-dark-green);
}

/* ================== HERO SECTION ================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 90, 30, 0.85) 0%, rgba(0, 89, 178, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--color-white);
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 25px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ================== ABOUT SECTION ================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-list {
    margin-top: 25px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-list li i {
    color: var(--color-accent-green);
    font-size: 1.2rem;
}

.image-wrapper {
    padding: 15px;
}

.image-wrapper img {
    border-radius: 12px;
}

/* ================== BENEFITS SECTION ================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-accent-green) 0%, var(--color-primary-blue) 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(107, 191, 43, 0.2);
}

/* ================== COVERAGE BANNERS ================== */
.coverage {
    background: linear-gradient(rgba(0, 89, 178, 0.9), rgba(41, 90, 30, 0.9)), url('../images/hero.png') center/cover fixed;
    color: var(--color-white);
    text-align: center;
}

.coverage h2 {
    color: var(--color-white);
}

.coverage p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent-green);
    line-height: 1;
}

.stat .label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* ================== CONTACT SECTION ================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--color-primary-blue);
    background-color: rgba(0, 89, 178, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--color-dark-green);
}

.info-item p {
    margin-bottom: 0;
}

.contact-form form {
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-group.half-width {
    width: calc(50% - 10px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(41, 90, 30, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 3px rgba(107, 191, 43, 0.1);
}

/* ================== FOOTER ================== */
.footer {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Deixa a logo branca temporariamente caso a original não seja */
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-social h3 {
    color: var(--color-white);
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--color-accent-green);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-white);
}

.social-icons a:hover {
    background-color: var(--color-accent-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================== ANIMATIONS ================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .nav-link {
        color: var(--color-dark-green);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-group.half-width {
        width: 100%;
    }

    .stats-row {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}