/* ===================================================================
   Colégio Batista Vida e Paz - Main Stylesheet
   Author: Desenvolvedor Web Especialista
   Version: 1.0
   Description: Estilos principais para o site do colégio
=================================================================== */

/* ===================================================================
   CSS VARIABLES (Custom Properties)
=================================================================== */
:root {
    /* Colors */
    --primary-color: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --instagram-color: #E4405F;
    --whatsapp-color: #25D366;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --hero-gradient: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Border Radius */
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

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

section {
    min-height: 100vh;    /* Define o tamanho mínimo de cada seção para ocupar toda a altura da tela */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===================================================================
   CUSTOM BOOTSTRAP OVERRIDES
=================================================================== */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.btn-warning {
    background-color: var(--warning-color);
    border: none;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* ===================================================================
   NAVIGATION
=================================================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-content .lead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: white;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* ===================================================================
   ANIMATIONS
=================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.5s both;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ===================================================================
   SECTIONS
=================================================================== */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===================================================================
   ABOUT SECTION
=================================================================== */
.highlight-box {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-row .stat-item {
    transition: var(--transition);
}

.stats-row .stat-item:hover {
    transform: translateY(-5px);
}

/* ===================================================================
   PROJECT SECTION
=================================================================== */
.project-card {
    transition: var(--transition);
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-card .icon-box {
    transition: var(--transition);
}

.project-card:hover .icon-box {
    transform: scale(1.1);
}

/* ===================================================================
   DONATION SECTION
=================================================================== */
.donation-methods .method-item {
    transition: var(--transition);
}

.donation-methods .method-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================================================
   EBOOKS SECTION
=================================================================== */
.ebook-card {
    transition: var(--transition);
    border: 2px solid transparent;
}

.ebook-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.ebook-card .ebook-icon {
    transition: var(--transition);
}

.ebook-card:hover .ebook-icon {
    transform: scale(1.1);
}

.step-item {
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    transition: var(--transition);
}

.step-item:hover .step-number {
    transform: scale(1.1);
}

/* ===================================================================
   CONTACT SECTION
=================================================================== */
.contact-item {
    transition: var(--transition);
    min-height: 200px; /* Altura mínima para igualar as caixas */
    border: 2px solid transparent;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.contact-icon {
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info a {
    transition: var(--transition);
}

.contact-info a:hover {
    transform: translateX(5px);
}

/* ===================================================================
   BACK TO TOP BUTTON
=================================================================== */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===================================================================
   UTILITY CLASSES
=================================================================== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-instagram {
    color: var(--instagram-color);
}

.text-whatsapp {
    color: var(--whatsapp-color);
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-instagram {
    background: var(--instagram-gradient);
}

.card-hover {
    transition: var(--transition);
}

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

/* ===================================================================
   RESPONSIVE DESIGN
=================================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hero-section {
        background-attachment: scroll;
        padding-top: 120px; /* Adiciona espaço para a navbar fixa */
        padding-bottom: 2rem;
        min-height: 100vh;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.75rem 0; /* Padding menor no mobile */
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        margin: 0.25rem 0;
    }
    
    .stats-row {
        margin-top: 2rem;
    }
    
    .donation-methods .method-item {
        margin-bottom: 1rem;
    }
    
    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px; /* Padding menor para telas muito pequenas */
        padding-bottom: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
    
    .project-card,
    .ebook-card,
    .contact-item {
        margin-bottom: 1.5rem;
    }
}

/* ===================================================================
   ACCESSIBILITY
=================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #404040;
        --accent-color: #ff6600;
    }
}

/* ===================================================================
   PRINT STYLES
=================================================================== */
@media print {
    .navbar,
    .btn-floating,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}