/* ==========================================
   Home Page Specific Styles
   CSS for the landing page of Buckeye Federal Savings and Loan
   ========================================== */

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, 
        var(--accent-cream) 0%, 
        rgba(245, 245, 220, 0.8) 50%, 
        var(--neutral-white) 100%);
    padding: var(--spacing-3xl) 0;
    min-height: 70vh; /* Ensure hero takes up significant viewport */
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Add to home.css - Hero Image Photo Styles */
.building-photo {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.bank-building-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.building-photo:hover .bank-building-photo {
    transform: scale(1.02);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    color: var(--neutral-white);
}

.photo-caption {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    font-style: italic;
}

/* Responsive adjustments for the photo */
@media (max-width: 767px) {
    .building-photo {
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }
}

.hero-text {
    /* Text content styling is handled by global styles */
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Hero Image/Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-illustration {
    width: 100%;
    max-width: 400px;
}

.bank-building {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-lg));
}

/* Features Section */
.features-section {
    background-color: var(--neutral-light);
    padding: var(--spacing-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

/* Feature Card Component */
.feature-card {
    background-color: var(--neutral-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border-top: 4px solid var(--primary-green);
}

.feature-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: var(--shadow-xl);
    border-top-color: var(--accent-gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg) auto;
    color: var(--neutral-white);
    transition: background-color var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-gold);
}

.feature-icon .icon {
    width: 30px;
    height: 30px;
}

.feature-title {
    font-size: 1.375rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-brown);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.feature-link:hover {
    color: var(--primary-brown-light);
    text-decoration: none;
    transform: translateX(3px); /* Subtle movement on hover */
}

.feature-link::after {
    content: '→';
    margin-left: var(--spacing-sm);
    transition: transform var(--transition-fast);
}

.feature-link:hover::after {
    transform: translateX(3px);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, 
        var(--primary-green) 0%, 
        var(--primary-green-light) 100%);
    color: var(--neutral-white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--neutral-white);
    margin-bottom: var(--spacing-lg);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--accent-cream);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Special button styling for CTA section */
.cta-section .btn-primary {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--neutral-dark);
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
    color: var(--neutral-white);
}

.cta-section .btn-outline {
    border-color: var(--neutral-white);
    color: var(--neutral-white);
}

.cta-section .btn-outline:hover {
    background-color: var(--neutral-white);
    color: var(--primary-green);
}

/* Responsive Design for Home Page */

/* Mobile devices (up to 575px) */
@media (max-width: 575px) {
    .hero-content {
        grid-template-columns: 1fr; /* Stack hero content vertically */
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-actions .btn {
        flex: 1 1 100%; /* Full width buttons on mobile */
        min-width: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Small tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on small tablets */
    }
}

/* Medium devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium tablets */
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns on desktop */
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: var(--spacing-3xl) 0 calc(var(--spacing-3xl) + var(--spacing-xl)) 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .cta-title {
        font-size: 3rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to hero content */
.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both; /* Slight delay for staggered effect */
}

/* Apply animations to feature cards */
.feature-card {
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
    .hero-text,
    .hero-image,
    .feature-card {
        animation: none;
    }
    
    .feature-card:hover {
        transform: none; /* Disable hover transforms for users who prefer reduced motion */
    }
}
