@charset "UTF-8";
/**
 * Design System & Estilos Globais - Instituto Cinco Pilares
 * Arquitetura CSS Limpa, Moderna e de Alta Performance
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Cores Institucional (Regra de Cores Respeitada) */
    /* placeholder <label> aria-label */
    --primary: #E65100;         /* Laranja Institucional Profundo */
    --primary-hover: #EF6C00;
    --primary-light: #FFF3E0;
    --secondary: #C53030;       /* Vermelho/Rosa Escuro de Destaque */
    --secondary-hover: #9B2C2C;
    --accent-green: #2F855A;    /* Verde para ações de sucesso/doações */
    
    /* Cores Neutras */
    --bg-main: #FFFFFF;
    --bg-offset: #F7FAFC;       /* Fundo cinza suave para seções alternadas */
    --bg-dark: #1A202C;         /* Fundo escuro para rodapé/heros */
    --surface: #FFFFFF;
    
    /* Tipografia e Texto */
    --text-main: #2D3748;
    --text-muted: #718096;
    --text-light: #F7FAFC;
    
    /* Bordas e Sombras */
    --border-color: #E2E8F0;
    --radius: 4px;              /* Geometria Sharp/Crisp Premium */
    --radius-lg: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    
    /* Transições */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ==========================================================================
   CABEÇALHO & NAVEGAÇÃO (NAVBAR)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: transform var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.05);
}

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

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn-donate-nav {
    background-color: var(--accent-green);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.25);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-donate-nav:hover {
    background-color: #276749;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 133, 90, 0.35);
}

.btn-donate-nav:active {
    transform: translateY(0);
}

/* Menu Mobile Hamburguer */
.mobile-menu-toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   HERO SECTIONS & BANNERS
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main {
    background-color: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.3);
    transition: all var(--transition-normal);
}

.btn-main:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    border: 2px solid #FFFFFF;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: var(--text-main);
    transform: translateY(-3px);
}

/* Banner Interno (Sobre Nós, Projetos, etc.) */
.page-banner {
    position: relative;
    padding: 6rem 2rem;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    background-size: cover;
    background-position: center;
}

.page-banner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}

.page-banner-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.page-banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================================================
   SEÇÕES & LAYOUTS GERAIS
   ========================================================================== */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section-bg-offset {
    background-color: var(--bg-offset);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Títulos de Seção com Barra Vertical (Fidelidade aos Prints) */
.section-header {
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    padding-left: 1.25rem;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--secondary);
    border-radius: var(--radius);
}

/* Grid de Projetos e Cards */
.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-bounce);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* ==========================================================================
   ELEMENTOS ESPECÍFICOS (CITAÇÕES, PARCEIROS, VALORES)
   ========================================================================== */
.quote-box {
    background: linear-gradient(135deg, var(--primary-light), #FFFFFF);
    border-left: 6px solid var(--primary);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.value-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Grid de Parceiros */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
}

.partner-logo {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    transition: all var(--transition-normal);
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Carrossel de Parceiros (Home) */
.partners-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.partners-carousel-track {
    display: flex;
    align-items: center;
}

.carousel-partner {
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.carousel-partner img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.carousel-partner.colored-adjacent img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.5);
}

.carousel-partner.colored-center img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(2.0);
}

.carousel-partner-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.carousel-partner.colored-adjacent .carousel-partner-card {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.25);
    box-shadow: var(--shadow-sm);
}

.carousel-partner.colored-center .carousel-partner-card {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.5);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .carousel-partner { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 768px) {
    .carousel-partner { flex: 0 0 33.333%; max-width: 33.333%; }
}

@media (max-width: 480px) {
    .carousel-partner { flex: 0 0 50%; max-width: 50%; }
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ANIMAÇÕES & KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .section { padding: 3.5rem 1.5rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .btn-main, .btn-secondary { width: 100%; text-align: center; }
    .grid-projects { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
}
