/*
Theme Name: Movimento Futuro
Theme URI: https://movimentofuturo.org/
Author: Matheus Rosmaninho
Description: Tema baseado no projeto app-mf, com estilo moderno usando Tailwind CSS.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: movimento-futuro
*/

/* Custom styles can go here if needed, but we'll primarily use Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Figtree', sans-serif;
}

/* WordPress Menu Styling */
.nav-link-mf ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link-mf li a {
    text-decoration: none;
    color: inherit;
}

/* WordPress Sub-menu (Dropdown) Styling */
.menu-item-has-children {
    position: relative;
}

/* Indicator arrow for items with children */
.menu-item-has-children > a::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #188353; /* mf-green */
}

/* Desktop Dropdown */
@media (min-width: 1024px) {
    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        min-width: 12rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease-in-out;
        transform: translateY(10px);
        z-index: 50;
        border: 1px solid #f3f4f6;
    }

    .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sub-menu li a {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem;
        color: #374151 !important;
    }

    .sub-menu li a:hover {
        background-color: #f3f4f6;
        color: #188353 !important; /* mf-green */
    }
}

/* Mobile Sub-menu Styling */
@media (max-width: 1023px) {
    .sub-menu {
        padding-left: 1rem;
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        border-left: 2px solid #e5e7eb;
    }
}

/* Fix for Contact Button hover text color - High Priority */
li.btn-contato a:hover, 
li.btn-contato a:hover * {
    color: white !important;
}

.btn-contato a {
    transition: all 0.2s ease-in-out;
}

/* ── Linha do tempo (mf-timeline) ── */
.timeline-section {
    background: #f5f5f4;
    padding: 5rem 1rem;
}

.timeline-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2A6546;
    text-align: center;
    margin-bottom: 2rem;
}

/* ── O que fazemos ── */
.oqf-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #07110d;
}

.oqf-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://sitemf.blob.core.windows.net/images/home/row1-img1.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.oqf-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.oqf-hero-card {
    position: relative;
    z-index: 1;
    width: min(92%, 540px);
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
    background: rgba(12, 68, 43, 0.62);
}

.oqf-hero-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.oqf-hero-title {
    margin-bottom: 1.4rem;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.oqf-hero-text {
    max-width: 420px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.7;
}

.oqf-section-title {
    color: #145c3c;
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.oqf-section-text {
    max-width: 700px;
    margin: 1.75rem auto 0;
    color: #33443b;
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
}

.oqf-audience {
    background: #f5faf8;
    padding: 6rem 1.5rem 7rem;
}

.oqf-audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto 0;
}

.oqf-audience-card {
    min-height: 370px;
    padding: 6rem 1.5rem 2rem;
    border-radius: 12px;
    background: #16764d;
    color: #fff;
    box-shadow: 0 12px 28px rgba(10, 71, 45, 0.12);
}

.oqf-audience-card h3 {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
}

.oqf-audience-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

.oqf-pillars {
    position: relative;
    overflow: hidden;
    background: #188353;
    padding: 5.5rem 1.5rem 6rem;
    color: #fff;
}

.oqf-pillars::before {
    content: '';
    position: absolute;
    left: -140px;
    bottom: -180px;
    width: 540px;
    height: 540px;
    border: 28px solid rgba(9, 101, 61, 0.55);
    border-radius: 50%;
    pointer-events: none;
}

.oqf-pillars::after {
    content: '';
    position: absolute;
    left: 250px;
    top: 20px;
    width: 140px;
    height: 54px;
    border-top: 34px solid rgba(9, 101, 61, 0.55);
    border-right: 34px solid rgba(9, 101, 61, 0.55);
    border-radius: 0 80px 0 0;
    transform: rotate(28deg);
    pointer-events: none;
}

.oqf-pillars-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
}

.oqf-pillars .oqf-section-title,
.oqf-pillars .oqf-section-text {
    color: #fff;
}

.oqf-pillars .oqf-section-text {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.86);
}

.oqf-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4.5rem;
}

.oqf-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.95rem;
}

.oqf-pillar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.oqf-pillar p {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
}

.oqf-featured {
    position: relative;
    overflow: hidden;
    background: #dcf7e7;
    padding: 5.5rem 1.5rem 6rem;
}

.oqf-featured::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    width: 520px;
    height: 520px;
    border: 32px solid rgba(22, 118, 77, 0.32);
    border-radius: 46% 54% 43% 57%;
    transform: translateX(-50%) rotate(18deg);
    pointer-events: none;
}

.oqf-featured::after {
    content: '';
    position: absolute;
    right: 15%;
    top: 6rem;
    width: 34px;
    height: 520px;
    border-radius: 999px;
    background: rgba(22, 118, 77, 0.36);
    transform: rotate(14deg);
    pointer-events: none;
}

.oqf-featured-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.oqf-featured-title {
    margin-bottom: 3rem;
    color: #254437;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    text-align: center;
}

.oqf-project-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.oqf-project-media {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 8px;
    background: #0f3326;
}

.oqf-project-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.oqf-project-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
}

.oqf-project-caption {
    position: absolute;
    left: 1.75rem;
    bottom: 1.75rem;
    z-index: 1;
    color: #fff;
}

.oqf-project-caption i {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.oqf-project-caption h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.oqf-project-copy {
    margin-top: 1.75rem;
    color: #1f3028;
    line-height: 1.65;
}

.oqf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.62rem 1.25rem;
    border-radius: 4px;
    background: #22b36f;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.oqf-button:hover {
    background: #188353;
    color: #fff;
}

@media (min-width: 768px) {
    .oqf-audience-grid,
    .oqf-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .oqf-hero-card {
        padding: 3.5rem 3rem;
    }
}
