:root {
    --primary: #2ecc71;
    --primary-hover: #27ae60;
    --dark: #0b1c14;
    --white: #ffffff;
    --blue: #3498db;
    --orange: #e67e22;
    --purple: #9b59b6;
    --gray-bg: #f8fafc;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-light: #64748b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,h2,h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
}

h1 {
    font-size: 3rem; /* ou 48px */
}

h2 {
    font-size: 2.5rem; /* ou 40px */
}

h3 {
    font-size: 2rem; /* ou 32px */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Ajuste no Nav para alinhar tudo verticalmente */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Espaço entre o Logo, Links e Botão */
}

/* Remova o flex: 1 e ajuste as margens */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0; /* Removi o margin-left: 40px que estava empurrando os itens */
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 15px;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap; /* Impede que o texto do link quebre em duas linhas */
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 20px;
    align-items: center;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-visual-wrapper {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 20px;
}

.map-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid var(--primary-mid);
    color: var(--primary-hover);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

/* Botões */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-main);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--gray-bg);
}

.btn-map {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
    background: var(--primary-light);
    border: 1.5px solid var(--primary-mid);
    color: var(--primary-hover);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.84rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
}
.btn-map:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(46,204,113,0.28);
}

/* Secção de Locais e Filtro */
.collection-locations {
    padding: 88px 0;
    background: var(--gray-bg);
    position: relative;
}
.collection-locations::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary) 40%, transparent);
}
.section-header { margin-bottom: 40px; }
.sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 10px;
}
.sub-title::before {
    content: '';
    display: inline-block;
    width: 18px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}
.section-header p { color: var(--text-light); font-size: 0.93rem; }

/* Filter */
.locations-filter {
    margin-bottom: 32px;
    position: relative;
}
.filter-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.9rem;
}
.locations-filter input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    font-size: 0.93rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    background: white;
    color: var(--text-main);
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}
.locations-filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46,204,113,0.11);
}
.locations-filter input::placeholder { color: var(--text-muted); }

/* Grid & Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: start;
}
.location-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.location-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}
.location-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.location-card:hover::before,
.location-card.active::before { transform: scaleY(1); }
.location-card.active { border-color: var(--primary); box-shadow: 0 8px 30px rgba(46,204,113,0.12); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 0.93rem;
    user-select: none;
}
.card-icon {
    width: 36px; height: 36px;
    background: var(--primary-light);
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.location-card.active .card-icon,
.location-card:hover .card-icon { background: var(--primary); color: white; }

/* Icon color variants */
.card-header.elt .card-icon { background: rgba(52,152,219,0.11); color: var(--blue); }
.location-card:hover .card-header.elt .card-icon,
.location-card.active .card-header.elt .card-icon { background: var(--blue); color: white; }
.card-header.org .card-icon { background: rgba(230,126,34,0.11); color: var(--orange); }
.location-card:hover .card-header.org .card-icon,
.location-card.active .card-header.org .card-icon { background: var(--orange); color: white; }

.card-name { flex: 1; }
.arrow-icon {
    margin-left: auto;
    transition: transform 0.35s ease;
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.location-card.active .arrow-icon { transform: rotate(180deg); color: var(--primary); }

/* Expandable */
.card-content { max-height: 0; overflow: hidden; transition: max-height 0.45s ease-out; }
.location-card.active .card-content { max-height: 300px; transition: max-height 0.5s ease-in; }

.card-body {
    padding: 14px 18px 16px;
    border-top: 1px solid var(--border);
}
.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.tag {
    font-size: 0.73rem;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--primary-mid);
}
.tag.blue   { background: rgba(52,152,219,0.09);  color: #1f72b5;  border-color: rgba(52,152,219,0.22); }
.tag.orange { background: rgba(230,126,34,0.09);  color: #b35a0a;  border-color: rgba(230,126,34,0.22); }
.tag.purple { background: rgba(155,89,182,0.09);  color: #7a32a0;  border-color: rgba(155,89,182,0.22); }
.tag.gray   { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2px;
}
.card-meta i { color: var(--primary); font-size: 0.72rem; }

/* Mapa */
.map-section {
    padding: 60px 20px;
    background: white;
}
.map-wrapper {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    position: relative;
}
#map { height: 500px; width: 100%; z-index: 1; }


/* Empresa */
.empresas-section {
    padding: 88px 0;
    background: var(--gray-bg);
    position: relative;
}
.empresas-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary) 40%, transparent);
}
.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    padding: 42px;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.input-group:last-of-type { margin-bottom: 0; }
.input-group label {
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--text-main);
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 0.91rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    outline: none;
    transition: all 0.25s;
    background: var(--gray-bg);
}
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(46,204,113,0.10);
}
.input-group input::placeholder,
.input-group textarea::placeholder { color: var(--text-muted); font-size: 0.86rem; }
.input-group textarea { resize: vertical; min-height: 110px; }

/* Footer */
footer {
    background: var(--dark);
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1300px;
    margin: 0 auto;
}
.footer-inner > * {
    min-width: 0;
}
.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}
.footer-logo em { font-style:normal; color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.40); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* ========== HAMBURGER ========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== RESPONSIVIDADE ========== */

/* Tablet largo */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .hero {
        gap: 30px;
        padding: 60px 20px;
    }
    .hero h1 { font-size: 2.4rem; }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-wrapper {
        padding: 32px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }

    /* Navbar hamburger */
    .hamburger { display: flex; }
    header { position: relative; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 12px 24px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        border-top: 1px solid var(--border);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        margin: 0;
        padding: 11px 0;
        border-bottom: 1px solid var(--border);
        display: block;
    }
    .nav-links li:last-child a { border-bottom: none; }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 0;
        gap: 30px;
    }
    .hero h1 { font-size: 2rem; }
    .hero-btns { justify-content: center; flex-wrap: wrap; }

    /* Seção de coleta */
    .collection-locations { padding: 60px 0; }
    .grid-4 { grid-template-columns: 1fr; }

    /* Mapa */
    .map-section { padding: 40px 0; }
    #map { height: 380px; }

    /* Empresas / Form */
    .empresas-section { padding: 60px 0; }
    .form-wrapper { padding: 28px 20px; }
    .form-grid-2 { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Mobile */
@media (max-width: 480px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.5rem; }

    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 1rem; }

    .btn-primary,
    .btn-outline {
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section-header h2 { font-size: 1.5rem; }

    .highlight-box h2 { font-size: 1.6rem; }

    #map { height: 300px; }

    .form-wrapper { padding: 20px 16px; border-radius: 16px; }

    .footer-links { gap: 14px; }
}
