:root {
    /* Color Palette */
    --primary-green: #00a859;
    /* Cor principal inspirada na arte original STX */
    --primary-dark: #008744;
    --primary-light: #e5f6ed;

    --text-dark: #2d3748;
    --text-body: #4a5568;
    --text-light: #a0aec0;

    --bg-light: #f7fafc;
    --surface-bg: #ffffff;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -5px rgba(0, 168, 89, 0.15);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --text-dark: #f7fafc;
    --text-body: #cbd5e0;
    --text-light: #a0aec0;
    
    --bg-light: #1a202c; /* Fundo principal escuro */
    --surface-bg: #2d3748; /* Fundo dos cards e navbar escuros */
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -5px rgba(0, 168, 89, 0.3);
}

#themeToggle {
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-light);
}

#themeToggle:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info i {
    margin-right: 6px;
    opacity: 0.9;
}

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

.social-links a {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    background-color: var(--surface-bg);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: var(--primary-green);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    bottom: 0;
    left: 0;
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 75px;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 4px 14px rgba(0, 168, 89, 0.3);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.4);
    color: var(--white);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 75vh;
    min-height: 700px;
    margin-top: 0px;
    /* Espaçamento da parte branca superior para a página principal */
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') top center/cover no-repeat;
    /* Efeito parallax (background-attachment: fixed) removido para a imagem iniciar exatamente e não ser cortada ou escondida pelo cabeçalho */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 68, 35, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 100px;
    /* Aumenta a distância para o cabeçalho */
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 3.25rem;
    /* Ajustado para melhor proporção */
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: #a8e6cf;
    /* Soft green highlight */
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* =========================================
   FEATURES (OVERLAPPING CARDS)
   ========================================= */
.features {
    margin-top: -100px;
    /* Pulls up over the hero */
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--surface-bg);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card.highlighted {
    border-top-color: var(--primary-green);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-green);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.5;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--primary-green);
    background-color: var(--primary-light);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.feature-card:hover .icon-wrapper {
    background-color: var(--primary-green);
    color: var(--white);
}

.feature-card:hover .icon-wrapper i {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--primary-green);
}

.feature-card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: 100px 0;
    background-color: var(--surface-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.02);
}

.image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--surface-bg);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.subtitle {
    display: inline-block;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    position: relative;
}

.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -40px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.about-text h2 span {
    color: var(--primary-green);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-actions {
    margin-top: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* =========================================
   VIDEOS SECTION (EDIÇÃO ANTERIOR)
   ========================================= */
.videos {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-header h2 span {
    color: var(--primary-green);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-body);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background-color: var(--surface-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo preencher todo o espaço sem distorcer */
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(0, 168, 89, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.video-placeholder.transparent-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-placeholder.transparent-overlay i,
.video-placeholder.transparent-overlay span {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.video-placeholder:hover {
    filter: brightness(1.1);
}

.video-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 12px;
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.video-placeholder span {
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 40px 20px;
    }

    .about-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Em um projeto real, adicionar menu hamburger */
    }

    .hero {
        min-height: 500px;
        height: auto;
        padding: 120px 0 160px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .features {
        margin-top: -50px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-card.highlighted {
        transform: none;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .image-badge {
        right: 20px;
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-width: 5px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }
}

/* =========================================
   VIDEO MODAL
   ========================================= */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    position: relative;
    height: 85vh; /* Ocupa altura vertical principal */
    aspect-ratio: 9 / 16; /* Força proporção 9:16 e corta rebarbas laterais */
    max-width: 90vw; /* Garante que não transpasse nos celulares */
    display: flex;
    justify-content: center;
    background: transparent;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    background-color: #000;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
}

.close-modal:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}