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

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --text-dark: #1f2937;
    --text-mid: #374151;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─────────────────────────────────────────────── */

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    max-height: 115px;
    height: auto;
    width: auto;
}

.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: block;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
    background: #f0fdf4;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.6rem;
    /* Slightly larger bridge */
}

.dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    min-width: 230px;
    padding: 0.375rem 0;
    transition: opacity 0.2s ease, visibility 0.2s;
    transition-delay: 0.1s;
    /* Tiny delay on mouse-out to prevent flickering */
    pointer-events: none;
    z-index: 110;
}

.nav-item:hover .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.dropdown a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 1.125rem;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

.dropdown a:hover {
    background: #f0fdf4;
    color: var(--primary);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */

.btn-wrapper {
    position: relative;
    display: inline-block;
}

.btn-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 230px;
    padding: 0.375rem 0;
    z-index: 10;
    animation: dropIn 0.15s ease;
}

.btn-wrapper:hover .btn-dropdown {
    display: block;
}

.btn-dropdown a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn-dropdown a:hover {
    background: #f0fdf4;
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.8125rem 1.875rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ─── HERO ─────────────────────────────────────────────────── */

.hero {
    position: relative;
    background: linear-gradient(150deg, #f0fdf4 0%, #ecfdf5 50%, #f0faf7 100%);
    padding: 7rem 2rem 6rem;
    text-align: center;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 150, 105, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 150, 105, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.08);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.375rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1875rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    text-align: center;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.7;
}

.hero-scroll-hint svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

/* ─── TOPICS ────────────────────────────────────────────────── */

.topics-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.topics-label,
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.topics-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.topics-row {
    display: grid;
    gap: 1rem;
}

.topics-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.topics-row-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 66.67%;
    margin: 0 auto;
    width: 100%;
}

.topic-card {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    padding: 1.5rem 1.375rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.topic-card:hover {
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
    transform: translateY(-2px);
}

.topic-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f0fdf4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.12);
}

.topic-content {
    flex: 1;
    min-width: 0;
}

.topic-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.topic-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.55;
}

.topic-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 1.125rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    align-self: center;
}

.topic-card:hover .topic-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--primary);
}

/* ─── ABOUT INTRO ───────────────────────────────────────────── */

.about-intro-section {
    background: #f8fffe;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5rem 2rem;
}

.about-intro-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Header: label + h2 — full width, acima das 2 colunas */
.about-intro-header {
    width: 100%;
    margin-bottom: 2rem;
}

.about-intro-header .section-label {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.about-intro-header h2 {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

/* Body: 2 colunas alinhadas ao topo — parágrafo vs pillars */
.about-intro-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
    align-items: start;
}

.about-intro-text p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-intro-pillars {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-self: center;
}

.pillar {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pillar:last-child {
    padding-bottom: 0;
}

.pillar-num {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: #f0fdf4;
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    margin-top: 0.15rem;
}

.pillar strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.pillar p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
    .about-intro-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ─── ABOUT ─────────────────────────────────────────────────── */

.about-section {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.about-inner {
    max-width: 760px;
    margin: 0 auto;
}

.about-inner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.015em;
    text-align: left;
}

.about-body p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* ─── CONTACT ───────────────────────────────────────────────── */

.contact-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 5rem 2rem;
}

.contact-inner {
    max-width: 640px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -0.015em;
    text-align: left;
}

.contact-sub {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.req {
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.contact-direct {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.contact-direct a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-direct a:hover {
    text-decoration: underline;
}

/* ─── FOOTER ────────────────────────────────────────────────── */

footer {
    background: var(--text-dark);
    color: white;
    padding: 3.5rem 2rem 2rem;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
    margin-top: 0.5rem;
}

.footer-section h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.625rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.linkedin-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ─── HIDDEN FEATURES ───────────────────────────────────────── */

.feature-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-intro-pillars {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1.5rem;
    }

    .nav-center {
        display: none;
    }

    .hero {
        padding: 5rem 1.5rem 4.5rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .topics-row-3,
    .topics-row-2 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* ─── MOBILE HAMBURGER NAVIGATION ───────────────────────────── */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap !important;
        flex-direction: row !important;
        height: auto !important;
        padding: 1rem 1.5rem !important;
    }

    .hamburger {
        display: block !important;
    }

    .nav-center {
        display: none !important;
        width: 100%;
        margin-top: 1rem;
        background: var(--bg-white);
        padding-bottom: 1rem;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .nav-center.show {
        display: flex !important;
    }

    nav ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--border);
        border-radius: 0 !important;
        font-size: 1.125rem !important;
    }

    /* Submenus - show expanded but indented */
    .dropdown {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        min-width: 100% !important;
        display: block !important;
        margin-left: 1rem !important;
        border-left: 2px solid var(--border) !important;
        pointer-events: auto !important;
        transform: none !important;
    }
    
    .dropdown a {
        padding: 0.5rem 1rem !important;
        font-size: 1rem !important;
        border-bottom: none !important;
    }
    
    /* Ensure feature-hidden items are actually hidden when meant to be, though we rely on existing classes. But let's let existing css handle it unless overridden here. */
}

/* ─── COOKIE NOTICE ─────────────────────────────────────── */
#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 30, 22, 0.97);
    border-top: 1px solid rgba(5, 150, 105, 0.35);
    z-index: 9999;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cookie-inner {
    max-width: 960px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
#cookie-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    text-align: left;
}
#cookie-notice a { color: #4caf50; text-decoration: underline; }
#cookie-accept {
    flex-shrink: 0;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
}
#cookie-accept:hover { background: #047857; }

/* ─── DATA DISCLAIMER ────────────────────────────────────── */
.data-disclaimer {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    background: rgba(5,150,105,0.04);
    border: 1px solid rgba(5,150,105,0.15);
    border-radius: 8px;
}
.data-disclaimer p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-light, #6b7280);
    line-height: 1.65;
    text-align: left;
}
.data-disclaimer a { color: var(--primary, #059669); text-decoration: none; }
.data-disclaimer a:hover { text-decoration: underline; }
