/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Color Palette */
    --primary-blue: #0b3d91;
    --primary-green: #2e7d32;
    --bright-green: #4ade80;
    --accent-orange: #e67e22;
    --accent-gold: #d4af37;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 40px -10px rgba(11, 61, 145, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(11, 61, 145, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-blur: blur(12px);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0; /* Reduced to remove excess white space */
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-center { text-align: center; }
.text-blue { color: var(--primary-blue); }
.text-green { color: var(--primary-green); }
.text-orange { color: var(--accent-orange); }
.text-gold { color: var(--accent-gold); }
.text-bright-green { color: var(--bright-green); }
.text-white { color: var(--bg-white); }
.text-muted { color: var(--text-muted); }
.text-xl { font-size: 1.25rem; }

.bg-light { background-color: var(--bg-light); }
.bg-blue { background-color: var(--primary-blue); }
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #062a66 100%);
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.pb-4 { padding-bottom: 2rem; }
.pt-4 { padding-top: 2rem; }

.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.hide { display: none !important; }

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem; /* Better mobile spacing */
}
.grid-2, .grid-2-sm { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid { gap: 2rem; }
    .grid-2, .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
}

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

.flex-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Better mobile spacing */
}
@media (min-width: 992px) {
    .flex-layout {
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem;
    }
    .flex-layout > * {
        flex: 1;
    }
}
.align-center { align-items: center; }

/* =========================================================================
   ANIMATED BACKGROUND
   ========================================================================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-white);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-blue);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* =========================================================================
   UI COMPONENTS (GLASSMORPHISM, BADGES, BUTTONS)
   ========================================================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.95);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(11, 61, 145, 0.1);
    color: var(--primary-blue);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

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

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #1a5ac9);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(11, 61, 145, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 61, 145, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(11, 61, 145, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(11, 61, 145, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(11, 61, 145, 0); }
}

/* Social Buttons Floating */
.floating-social {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: none;
    animation: socialBounce 3s infinite ease-in-out;
}

.social-btn[aria-label="WhatsApp"] { background: #25D366; }
.social-btn[aria-label="Facebook"] { background: #1877F2; }
.social-btn[aria-label="Instagram"] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.4s; }

@keyframes socialBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.social-btn:hover {
    animation-play-state: paused;
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.social-btn[aria-label="WhatsApp"]:hover { background: #25D366; border-color: #25D366; }
.social-btn[aria-label="Facebook"]:hover { background: #1877F2; border-color: #1877F2; }
.social-btn[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.title-display {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
    margin-top: 0.5rem;
}
.title-underline.center { margin: 0.5rem auto 0; }
.title-underline.light { background: var(--accent-gold); }

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-wrapper {
    height: 100px; /* Made larger per user request */
    position: relative;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-logo-wrapper {
    height: 120px;
}

.footer-logo {
    filter: invert(1) grayscale(1) brightness(3); /* Turns a white-background JPG into a white cutout */
    mix-blend-mode: screen; /* Makes the original white background transparent over blue */
    padding: 0;
    background: transparent;
}

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

.nav-list {
    display: flex;
    gap: 1.5rem;
}

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

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

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

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

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

.lang-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.lang-toggle:hover {
    background: rgba(11, 61, 145, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: var(--shadow-soft);
        backdrop-filter: blur(10px);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-actions {
        flex-direction: column;
        margin-top: 2rem;
        width: 100%;
    }
    
    .nav-donate {
        width: 100%;
    }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 650px;
}

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

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

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

.stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius-md);
    z-index: 3;
    animation: float 6s infinite ease-in-out;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about {
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 3rem auto 0;
}

.about-text {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-dark);
}

/* =========================================================================
   PROGRAMS SECTION
   ========================================================================= */
.programs {
    position: relative;
}

.programs .grid {
    margin-top: 3rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
}

.card-icon.large {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.lucide {
    transition: var(--transition-smooth);
}

.card:hover .lucide {
    transform: scale(1.1);
}

.card:nth-child(1) .card-icon { color: var(--primary-green); box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15); }
.card:nth-child(2) .card-icon { color: var(--primary-blue); box-shadow: 0 4px 20px rgba(11, 61, 145, 0.15); }
.card:nth-child(3) .card-icon { color: var(--accent-orange); box-shadow: 0 4px 20px rgba(230, 126, 34, 0.15); }

.card-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.card-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    align-items: flex-start;
}

.card-list li i {
    margin-top: 0.25rem;
}

/* =========================================================================
   PHASE 2 - NEW SECTIONS (IMPACT, PARTNERS, TESTIMONIALS)
   ========================================================================= */
.impact-stat {
    padding: 1rem;
}

.stat-large {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--bg-white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
}

.partners-logo-grid {
    column-gap: 3rem;
    row-gap: 1.5rem;
}

.partner-logo {
    opacity: 0.6;
    transition: var(--transition-smooth);
    filter: grayscale(100%);
}

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

.testimonial-card {
    padding: 2rem;
    border-top: 4px solid var(--accent-orange);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    line-height: 1.7;
    flex-grow: 1;
}

.italic {
    font-style: italic;
}

/* =========================================================================
   EVENTS, GALLERY, FAQ, NEWSLETTER (PHASE 2)
   ========================================================================= */
.event-card {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

.event-date {
    min-width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    z-index: 10;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-btn {
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.faq-btn:hover {
    background: rgba(11,61,145,0.05);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

.newsletter-form .form-control {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-dark);
}

/* =========================================================================
   FUTURE PROGRAM SECTION
   ========================================================================= */
.rounded-img {
    border-radius: var(--radius-lg);
    border: 5px solid rgba(255,255,255,0.1);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15) !important;
}

.focus-item i {
    font-size: 1.25rem;
}

/* =========================================================================
   GET INVOLVED SECTION
   ========================================================================= */
.involved .grid {
    margin-top: 3rem;
}

.border-top-blue { border-top: 5px solid var(--primary-blue); }
.border-top-green { border-top: 5px solid var(--primary-green); }
.border-top-orange { border-top: 5px solid var(--accent-orange); }

.center-list li {
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.75rem;
}

.center-list li:last-child {
    border-bottom: none;
}

.highlight-card {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.highlight-card:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

@media (max-width: 1023px) {
    .highlight-card {
        transform: none;
    }
    .highlight-card:hover {
        transform: translateY(-10px);
    }
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-grid {
    margin-top: 3rem;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-map {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(11, 61, 145, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem; /* Tighter on mobile */
}

@media (min-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.form-success {
    color: var(--primary-green);
    background: rgba(46, 125, 50, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #062a66 100%);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-green), var(--primary-blue));
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links-footer a:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-legal .legal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.legal-links {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.legal-links a:hover {
    color: var(--accent-gold);
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* =========================================================================
   ANIMATION CLASSES & UTILITIES
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   LIABILITY MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 61, 145, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    max-width: 600px;
    width: 100%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.text-left {
    text-align: left;
}

/* =========================================================================
   LEGAL PAGES STYLES
   ========================================================================= */
.legal-main {
    padding: 150px 0 80px 0;
    min-height: 60vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

.legal-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hide {
    display: none !important;
}


/* Language block defaults for legal pages */
[data-es-content] { display: none; }
[data-en-content].hide,
[data-es-content].hide { display: none !important; }
