/* Global Styles */
:root {
    --primary-bg: #0A2E26;
    /* Deep Sustainable Green */
    --secondary-bg: #144036;
    /* Lighter Green Section */
    --accent-gold: #C5A059;
    /* Metallic Gold/Bronze */
    --accent-hover: #D4AF37;
    --text-light: #F5F5F7;
    --text-muted: #B0C4DE;
    --text-dark: #1A1A1A;
    --white: #FFFFFF;
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--white);
    border-color: var(--white);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #0F3A30 100%);
    padding-top: 6rem;
    /* Header space if needed */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-col {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Flavia Image Handling */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 46, 38, 0.6), transparent);
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.02);
}

/* Hero Text */
.hero-text-col {
    z-index: 2;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Problem Section */
.problem-section {
    background-color: #051A15;
    /* Darker/different bg for contrast */
    text-align: center;
    padding: 6rem 0;
}

.highlight-text {
    color: var(--accent-gold);
    display: block;
    margin-top: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.section-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Delivery Section */
.delivery-section {
    background-color: var(--white);
    color: var(--text-dark);
}

.delivery-section .section-title {
    color: var(--primary-bg);
    text-align: center;
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
    text-align: center;
    /* Center content in cards */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-bg);
    /* Use primary green for icons */
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-bg);
}

.card p {
    font-size: 0.95rem;
    color: #4B5563;
}

.delivery-footer {
    text-align: center;
    font-weight: 600;
    color: var(--primary-bg);
    margin-top: 2rem;
    font-size: 1.1rem;
}


/* Application Section */
.application-section {
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Application Section Visuals */
.visual-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Height removed to adapt to image */
}

.application-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Constrain image width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.application-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.application-image-wrapper:hover .application-img {
    transform: scale(1.02) rotate(1deg);
}

.abstract-shape-bg {
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
    position: absolute;
    top: -10%;
    left: -10%;
    z-index: 1;
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Audience Section */
.audience-section {
    background-color: var(--primary-bg);
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.audience-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audience-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.check-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.audience-text {
    font-weight: 500;
}

/* Author Section */
.author-section {
    background: linear-gradient(135deg, #051A15 0%, var(--primary-bg) 100%);
    padding: 5rem 0;
}

.author-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.author-image-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.author-image-wrapper {
    position: relative;
    display: inline-flex;
    max-width: 320px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(197, 160, 89, 0.35);
    transition: var(--transition);
    /* Crítico: sem height nem min-height — o wrapper colapsa ao tamanho exato da imagem */
}

.author-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 46, 38, 0.45), transparent 60%);
    pointer-events: none;
}

.author-image-wrapper:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 28px 64px rgba(197, 160, 89, 0.25);
}

.author-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.author-image-wrapper:hover .author-img {
    transform: scale(1.04);
}

.author-text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.author-section-title {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.author-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.author-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 2;
    max-width: 600px;
    margin-bottom: 2rem;
}

.author-bio strong {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Author Outline Button */
.btn-author-outline {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background-color: transparent;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-author-outline:hover {
    background-color: rgba(197, 160, 89, 0.12);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B88E00 100%);
    color: var(--primary-bg);
    text-align: center;
    padding: 7rem 0;
}

.cta-headline {
    font-size: 2.8rem;
    color: var(--primary-bg);
    /* Dark on gold */
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary-inv {
    background-color: var(--primary-bg);
    color: var(--accent-gold);
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary-inv:hover {
    background-color: #051A15;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary-inv {
    background-color: transparent;
    border: 2px solid var(--primary-bg);
    color: var(--primary-bg);
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-secondary-inv:hover {
    background-color: rgba(10, 46, 38, 0.1);
}

/* Closing CTA Button */
.cta-closing-wrapper {
    margin-top: 2.5rem;
}

.btn-closing {
    display: inline-block;
    background-color: var(--primary-bg);
    color: var(--accent-gold);
    padding: 1.1rem 3rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    border: 2px solid var(--primary-bg);
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(10, 46, 38, 0.4);
}

.btn-closing:hover {
    background-color: #051A15;
    color: var(--white);
    border-color: #051A15;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(5, 26, 21, 0.5);
}


/* Footer */
footer {
    background-color: #051A15;
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image-col {
        order: -1;
        /* Image first on mobile? Or verify preference. Usually text first or image first depending on design.. let's check prompt. "Hero section: Foto... (esquerda), Título... (direita)". Usually stack image on top on mobile. */
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .author-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .author-image-col {
        order: -1;
    }

    .author-image-wrapper {
        max-width: 260px;
        margin: 0 auto;
    }

    .author-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .author-bio {
        margin: 0 auto;
    }
}