:root {
    --bg-color: #20232D; /* Tom de fundo escuro do layout */
    --text-light: #ffffff;
    --btn-green: #606640; /* Verde oliva do botão */
    --input-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Elms Sans';
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- Seção Hero --- */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 420px;
    max-height: 720px;
    background-color: var(--bg-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.logo-container {
    position: relative;
    z-index: 1;
    padding: 0 16px;
    animation: fadeUp 1s ease-out both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-container {
        animation: none;
    }
}

/* --- Fade-up reutilizável (acionado via JS ao entrar na viewport) --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.logo-icon {
    margin-bottom: 10px;
}

.logo-icon img {
    display: block;
    margin: 0 auto;
    width: clamp(280px, 32vw, 459px);
    height: auto;
}

.brand-name {
    font-weight: 300;
    font-size: clamp(1.2rem, 4vw, 2rem);
    letter-spacing: clamp(3px, 1vw, 6px);
    text-transform: uppercase;
}

/* --- Seção Manifesto --- */
.manifesto {
    padding: clamp(60px, 10vw, 120px) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
}

.title-container {
    display: flex;
    align-items: center; /* Alinhamento visual da tipografia */
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.title-main {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.title-sub {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    margin-top: 15px;
}

.keywords {
    display: flex;
    gap: clamp(20px, 6vw, 60px);
    font-weight: 100;
    font-size: clamp(1.1rem, 3vw, 2rem);
    letter-spacing: 1px;
    color: #d1d1d1;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Seção Split (Duas Imagens) --- */
.image-split {
    display: flex;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    background-color: var(--bg-color);
}

.img-left, .img-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.img-left img, .img-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- Footer --- */
.footer {
    padding: clamp(60px, 8vw, 100px) 20px;
    display: flex;
    justify-content: space-evenly;
    gap: 40px;
    background-color: var(--bg-color);
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-left h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    max-width: 400px;
    width: 100%;
}

.footer-left p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2;
    color: #b0b0b0;
    margin-bottom: 1rem;
    max-width: 400px;
    width: 100%;
}

.footer-left .form-disclaimer {
    max-width: 400px;
    width: 100%;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    background-color: var(--input-bg);
    color: #333;
    font-family: inherit;
    font-size: 0.8rem;
    border-radius: 2px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    align-self: flex-end;
    padding: 8px 18px;
    background-color: var(--btn-green);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.newsletter-form button:hover {
    background-color: #4d5233;
}

.form-feedback {
    font-size: 0.8rem;
    font-weight: 300;
    min-height: 1em;
    margin-top: 4px;
    color: #b0b0b0;
    transition: color 0.2s ease;
}

.form-feedback[data-type="success"] { color: #a8c080; }
.form-feedback[data-type="error"]   { color: #e07b7b; }

.footer-left .form-disclaimer {
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.4;
    color: #6a6a6a;
    margin-top: 8px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    text-align: center;
}

.footer-logo .logo-icon {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.footer-logo .brand-name {
    font-size: 1.4rem;
    letter-spacing: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    cursor: pointer;
}

/* --- Modal --- */
.footer-bottom {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
}

.privacy-link {
    background: none;
    border: none;
    color: #b0b0b0;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--text-light);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #8a8a8a;
    text-align: center;
    line-height: 1.5;
}

.footer-legal a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--text-light);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    background-color: var(--bg-color);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-content {
    padding: 36px 44px;
    overflow-y: auto;
    line-height: 1.75;
    color: #e0e0e0;
}

.modal-content h1 { font-size: 1.8rem; margin-bottom: 16px; }
.modal-content h2 { font-size: 1.25rem; margin: 32px 0 14px; color: var(--text-light); }
.modal-content h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text-light); }
.modal-content p  { margin-bottom: 14px; }
.modal-content ul { margin: 8px 0 16px 24px; }
.modal-content li { margin-bottom: 8px; }
.modal-content a  { color: #c8d4a0; text-decoration: underline; }
.modal-content .signature { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 480px) {
    .modal-overlay { padding: 10px; }
    .modal-header { padding: 20px 22px; }
    .modal-header h2 { font-size: 1.1rem; }
    .modal-content { padding: 24px 22px; line-height: 1.7; }
}

/* --- Responsividade --- */
@media (max-width: 900px) {
    .title-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        margin-bottom: 40px;
    }
    .title-sub { text-align: center; margin-top: 0; }

    .image-split {
        flex-direction: column;
        height: auto;
    }

    .img-left, .img-right {
        width: 100%;
        height: 50vh;
        min-height: 260px;
    }

    .footer {
        flex-direction: column;
        align-items: stretch;
        text-align: right;
        gap: 50px;
    }

    .footer-left {
        align-items: stretch;
    }

    .footer-left h3,
    .footer-left p,
    .footer-left .form-disclaimer,
    .newsletter-form {
        max-width: none;
    }

    .newsletter-form button { align-self: flex-end; }
}

@media (max-width: 480px) {
    .hero { height: 55vh; min-height: 360px; max-height: 560px; }
    .hero-img { object-fit: cover; object-position: center; }

    .manifesto { padding: 60px 16px; }
    .title-container { margin-bottom: 30px; gap: 0; }

    .keywords { gap: 14px; }

    .img-left, .img-right { height: 40vh; min-height: 220px; }

    .footer-logo img { width: 60% !important; }
    .social-links { gap: 16px; }
}