/* Global Styles */
:root {
    --oxford-navy: #002147;
    --oxford-navy-lighter: #06315c;
    --cold-gray: #A0A0A0;
    --off-white: #F8F9FA;
    --text-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --accent-blue: #4a90e2;
}

body {
    background-color: var(--off-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Home Page Styles moved from index.html */
.hero {
    height: 90vh;
    background-image: linear-gradient(rgba(0, 33, 71, 0.85), rgba(0, 33, 71, 0.85)), url('../assets/images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.partners-section {
    background-color: var(--oxford-navy-lighter);
    padding: 60px 0;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-connecting {
    padding: 100px 0;
    background-color: white;
}

.connecting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.connecting-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.connecting-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Contact Page Styles moved from contact.html */
.contact-section {
    min-height: 80vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    font-size: 1.1rem;
    padding: 30px;
    border: 1px solid #eee;
    background: white;
    display: inline-block;
}

.contact-details a {
    color: var(--oxford-navy);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.contact-details address {
    font-style: normal;
    color: #555;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Paper Page Styles moved from paper1.html */
.paper-hero {
    height: 60vh;
    background-color: var(--oxford-navy);
    /* background-image is set inline or via specific class usually, but here it was generic. 
       We will need to keep the background-image inline or add specific classes for each paper if they differ. 
       paper1.html has url('papers/images/paper1.png'). 
       I will set the common styles here and leave the specific background-image to be handled or overriding. 
       Actually, the inline style block in paper1.html had the URL. 
       I should probably create .paper-hero-1, .paper-hero-2 etc or just leave the background-image in the HTML style if it's unique?
       No, better to just put the common stuff here and maybe add a modifier class or inline style for the image url in the HTML element itself.
       However, reducing complexity: I will copy the common styles. 
    */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.paper-hero h1 {
    color: white;
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.paper-meta {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.paper-content {
    padding: 80px 0;
    background-color: white;
    max-width: 800px;
    margin: 0 auto;
}

.paper-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.paper-text h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--oxford-navy);
}

.paper-text li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Montserrat', 'Inter', sans-serif;
    list-style-type: none;
    padding-left: 20px;
    border-left: 3px solid var(--accent-blue);
}

.cta-section {
    padding: 60px 0;
    background-color: var(--off-white);
    text-align: center;
}

/* Intelligence Page Styles moved from intelligence.html */
.page-header {
    padding: 80px 0 40px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--cold-gray);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-style: italic;
}

.papers-list {
    padding: 60px 0;
}

.paper-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.paper-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.paper-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

/* Scoped to avoid conflict with paper-content in article pages */
.paper-item .paper-content {
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    /* Reset because paper-content has white bg in article styles */
    max-width: none;
    /* Reset max-width */
    margin: 0;
    /* Reset margin */
}

/* Scoped meta */
.paper-item .paper-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--cold-gray);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.paper-item h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--oxford-navy);
}

.paper-item p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Media query for paper-item is handled in mobile section of style.css or here? 
   Better to put it in the main mobile media query block or a new one. 
   I'll add it here for now or append to the existing media query block. 
   To be safe and clean, I will add a specific media query here. */
@media (max-width: 768px) {
    .paper-item {
        grid-template-columns: 1fr;
    }

    .paper-item .paper-content {
        padding: 30px;
    }

    .paper-item .paper-image {
        height: 200px;
    }
}

/* Paper Card (Index) */
.paper-card {
    background: white;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paper-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.paper-card .paper-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.paper-card .paper-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.paper-card .paper-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--cold-gray);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.paper-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--oxford-navy);
}

.paper-card p {
    color: #555;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.paper-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Metodo Page Styles moved from metodo.html */
.method-hero {
    padding: 100px 0 80px;
    background-color: white;
    text-align: center;
}

.method-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.method-hero h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #555;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}

.method-content {
    padding: 80px 0;
    background-color: var(--off-white);
}

.method-text {
    max-width: 720px;
    margin: 0 auto 40px;
}

.method-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.lead-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--oxford-navy);
    border-left: 3px solid var(--accent-blue);
    padding-left: 20px;
    margin-bottom: 40px;
}

.graphic-container {
    margin: 80px 0;
    text-align: center;
}

.graphic-container img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.graphic-caption {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    border-top: 1px solid #ddd;
    display: inline-block;
    padding-top: 10px;
}

.pillar-emphasized {
    color: var(--oxford-navy);
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--oxford-navy);
    /* Underline the key term */
    margin-right: 5px;
}

.conclusion-section {
    padding: 100px 0;
    background-color: var(--oxford-navy);
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.9)), url('../assets/PNG/sqdAtivo 1@2x.png');
    /* Subtle texture if available, or just keeping brand color */
    background-size: cover;
}

.conclusion-section h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.conclusion-section p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 30px;
    opacity: 0.95;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .method-hero h1 {
        font-size: 2.2rem;
    }

    .method-text p {
        font-size: 1.05rem;
    }
}

/* About Page Styles moved from about.html */
.about-hero {
    height: 70vh;
    /* Increased height for more impact */
    background-image: linear-gradient(to bottom, rgba(0, 33, 71, 0.6), rgba(0, 33, 71, 0.9)), url('../assets/images/veiculo2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.about-hero h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 4rem;
    color: white;
    margin-bottom: 0;
    max-width: 1000px;
    padding: 0 20px;
    text-transform: uppercase;
    /* More authority */
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* Decorative line below title */
.about-hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 30px auto 0;
}

.manifesto-section {
    padding: 80px 0;
    background-color: white;
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-title {
    /* Now handled by hero, can be removed or kept for semantic reasons if re-used */
    display: none;
}

.manifesto-text p {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.founder-section {
    background-color: var(--off-white);
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.founder-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.founder-image {
    width: 100%;
    height: 350px;
    background-color: #ddd;
    /* Placeholder */
    filter: grayscale(100%) contrast(120%);
}

.founder-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.founder-role {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cold-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: block;
}

@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }

    .founder-image {
        height: 400px;
    }

    .about-hero h1 {
        font-size: 2.2rem;
    }
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--oxford-navy);
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* consistent reset */
}

/* Grid System */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3x1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 40px;
}

@media (max-width: 768px) {

    .grid-2x2,
    .grid-3x1 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--oxford-navy);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--oxford-navy);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--oxford-navy);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--oxford-navy);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Partner Logos */
.partner-logo {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    max-width: 150px;
    margin: 0 20px;
    height: auto;
}

.partner-logo:hover {
    opacity: 1;
}

/* Header & Nav */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--oxford-navy);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--cold-gray);
}

/* Footer */
footer {
    background-color: var(--oxford-navy);
    color: white;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .footer-logo {
    height: auto;
    width: auto;
    margin-bottom: 0;
}

footer .footer-right {
    text-align: right;
}

footer .address {
    margin-bottom: 5px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

footer p {
    margin: 0;
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
    /* Ensure above dropdown */
    position: relative;
}

/* Hamburguer lines */
.mobile-menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--oxford-navy);
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Rotate first span */
.mobile-menu-icon.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

/* Hide second span */
.mobile-menu-icon.active span:nth-child(2) {
    opacity: 0;
}

/* Rotate last span */
.mobile-menu-icon.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form Styles */
.contact-form {
    max-width: 700px;
    margin: 60px auto 0;
    text-align: left;
    background: white;
    padding: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--oxford-navy);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    /* More breathing room */
    border: 1px solid #e0e0e0;
    border-radius: 0;
    /* Sharp edges for professional look */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
    /* Ensure padding doesn't break layout */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--oxford-navy);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.05);
    /* Subtle focus ring */
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form button.btn {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
}

/* Language Selector */
.lang-selector {
    margin-left: 30px;
    display: flex;
    gap: 10px;
}

.lang-selector button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.3s;
}

.lang-selector button.active,
.lang-selector button:hover {
    color: var(--oxford-navy);
    font-weight: 700;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 85px;
        /* Height of the header */
        height: calc(100vh - 85px);
        background-color: white;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 50px;
        gap: 30px;
        align-items: center;
        z-index: 1000;
        /* Ensure it stays on top */
        overflow-y: auto;
        /* Allow scrolling if menu is tall */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-icon {
        display: block;
    }

    .lang-selector {
        margin-left: 0;
        justify-content: center;
        margin-top: 10px;
    }

    /* Footer Responsive */
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    footer .footer-right {
        text-align: center;
    }

    /* Home Page Responsive */
    .connecting-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-connecting {
        padding: 60px 0;
    }

    .hero {
        height: auto;
        min-height: 90vh;
        padding: 100px 0 60px;
        /* Account for fixed header */
        background-attachment: scroll;
        /* Better performance on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Smaller font for mobile */
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero p {
        font-size: 1rem !important;
        /* Override inline style */
        margin-bottom: 30px !important;
    }

    /* Additional Polish */
    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .paper-hero {
        height: auto;
        min-height: 50vh;
        padding: 80px 0 40px;
    }

    .paper-hero h1 {
        font-size: 2rem;
    }

    .paper-content {
        padding: 40px 0;
    }

    .paper-text p,
    .paper-text li {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .contact-form {
        padding: 20px;
        margin-top: 40px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 2000;
    display: block;
    /* We'll control visibility via transform/opacity or class */
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    flex: 1;
    /* Allow text to take available space */
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-text a {
    color: var(--oxford-navy);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn {
    background-color: var(--oxford-navy);
    color: white;
    border: none;
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid var(--oxford-navy);
}

.cookie-btn:hover {
    background-color: var(--oxford-navy-lighter);
    border-color: var(--oxford-navy-lighter);
}

.cookie-deny {
    background-color: transparent;
    color: #666;
    border-color: #ccc;
    font-weight: 600;
}

.cookie-deny:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #bbb;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Partner Logos */
.partner-logo {
    max-height: 50px;
    /* Reduced slightly for better proportion */
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
    /* Force white */
    opacity: 0.8;
}

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Container spacing fix */
.partners-grid {
    gap: 50px !important;
    /* Force more gap */
    padding: 20px 0;
}