/* ========================================
   Custom CSS Styles for Baraka Houses
   Overrides Bootstrap defaults
   ======================================== */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    padding-top: 76px;
}

/* Navigation Overrides */
#mainNav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

#mainNav .navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

#mainNav .navbar-brand .brand-text {
    color: var(--primary-color);
}

#mainNav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary-color);
}

#mainNav .nav-cta {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

#mainNav .nav-cta:hover {
    background-color: #1e3a6f;
    transform: translateY(-2px);
}

/* Hero Section - Smaller and more proportional */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh; /* Reduced from 100vh */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem; /* Slightly smaller */
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
}

.hero-features {
    color: white;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 2rem;
    display: block;
}

.hero-image-wrapper {
    position: relative;
    height: 400px; /* Reduced from 500px */
}

.hero-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px; /* Reduced from 400px */
    height: 350px; /* Reduced from 400px */
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

/* Page Header - Smaller for other pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #1e3a6f);
    padding: 80px 0 40px; /* Reduced padding */
    color: white;
    min-height: 40vh; /* Added min-height */
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-detail-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.service-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.service-header h4 {
    margin: 0;
    color: #333;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #1e3a6f);
    color: white;
}

/* Footer */
.footer-section {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-description {
    color: rgba(255,255,255,0.8);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
}

.contact-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.copyright-text {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Commitment Cards */
.commitment-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    height: 100%;
}

.commitment-card i {
    font-size: 2rem;
}

/* Specialty Cards */
.specialty-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.specialty-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Admission Section */
.admission-section {
    background: var(--light-color);
    border-radius: 10px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Error Pages */
.error-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #666;
    margin-bottom: 2rem;
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .page-header {
        min-height: 35vh;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .hero-section {
        min-height: 45vh;
    }
    
    .page-header {
        min-height: 30vh;
        padding: 60px 0 30px;
    }
    
    .hero-image-wrapper {
        height: 300px;
    }
    
    .hero-image-bg {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 40vh;
    }
    
    .page-header {
        min-height: 25vh;
    }
    
    .service-card,
    .contact-card,
    .specialty-card {
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    #mainNav,
    .hero-section,
    .cta-section,
    .footer-section {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}