/* --- Global Variables and Resets --- */
:root {
    /* Primary brand colors based on your DSA/Professional sections */
    --primary-color: #0056b3;      /* Professional Blue (Headings, Main CTA) */
    --secondary-color: #28a745;    /* Confident Green (Features, Cards) */
    --accent-color: #ffc107;       /* Bright Yellow/Gold (Footer accents) */
    
    /* Footer Colors */
    --footer-bg: #0b1522;
    --footer-darker: #0d1a29;

    /* General Colors */
    --text-color: #333;
    --background-light: #f8f9fa;   /* Light grey for contrast sections */
    --background-white: #ffffff;
    --font-family: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f4f4f4; /* Light background for the body */
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding on sides for smaller screens */
}

/* ======================================= */
/* --- HEADER/NAVBAR STYLING --- */
/* ======================================= */
.navbar {
    background-color: var(--background-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Desktop Navigation Links */
.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    white-space: nowrap;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links li a:hover {
    background-color: var(--primary-color);
    color: var(--background-white);
    border-radius: 3px;
}

/* Mobile Menu Button (Hamburger) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* ======================================= */
/* --- BODY SECTION STYLING (DSA Content) --- */
/* ======================================= */
section {
    padding: 60px 0;
}

h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Utility CTAs */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
    border: none;
}

.cta-button:hover {
    background-color: #218838;
}

.cta-primary {
    background-color: var(--primary-color); /* Used for the second main CTA */
}

.cta-primary:hover {
    background-color: #004499;
}
.image-banner {
    width: 100%;
    /* Optional: add some vertical space */
    padding: 0; 
}

.banner-img {
    width: 100%;       /* Make the image span the full width */
    height: auto;      /* Maintain aspect ratio */
    max-height: 500px; /* Set a maximum height to prevent it from being too large */
    object-fit: cover; /* Ensures the image covers the container without stretching */
    display: block;    /* Removes any default spacing below the image */
}
/* --- Hero Section --- */
#hero {
    background-color: var(--background-light);
    text-align: center;
    padding: 80px 20px;
}

#hero h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

#hero .sub-headline {
    font-size: 1.4em;
    color: #555;
    margin-bottom: 40px;
}

.trust-signal {
    margin-top: 20px;
    color: #777;
    font-size: 0.9em;
}

/* --- Services Section --- */
#services {
    padding-bottom: 30px;
}

.loan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.loan-card {
    background: var(--background-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: box-shadow 0.3s;
}

.loan-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.loan-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--secondary-color);
}

.loan-card .tagline {
    font-style: italic;
    color: #777;
}

.cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* --- Why Choose Us Section --- */
#features {
    background-color: var(--background-light);
}

.feature-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.feature-list li {
    background: var(--background-white);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
}

/* --- Process Section --- */
#process {
    padding: 60px 0 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    text-align: center;
}

.step {
    padding: 25px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: var(--background-white);
}

.step h4 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-top: 0;
}

/* --- Social Proof Section --- */
#social-proof {
    background-color: var(--background-light);
    text-align: center;
}

.testimonial {
    font-style: italic;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 20px;
    background: var(--background-white);
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-box {
    padding: 20px 30px;
    min-width: 150px;
    margin: 10px;
    border-right: 1px solid #ddd;
}

.stat-box:last-child {
    border-right: none;
}

.stat-box .number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-box .label {
    font-size: 1em;
    text-transform: uppercase;
    color: #777;
}

/* --- Contact Section --- */
#contact-cta {
    text-align: center;
    padding: 50px 0;
}

#contact-cta h2 {
    margin-bottom: 30px;
    color: #212529;
}

.contact-details p {
    font-size: 1.1em;
    margin: 10px 0;
}

/* ======================================= */
/* --- FOOTER STYLING --- */
/* ======================================= */
.main-footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 60px 0 0;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Company Info Column */
.about-company .footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.about-company p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #cccccc;
}

.about-company .thank-you {
    font-weight: bold;
    margin-top: 25px;
    color: white;
}

/* Quick Links Styling */
.footer-col h3 {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: white;
}

.quick-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 0;
}

.quick-links li a {
    color: #cccccc;
    text-decoration: none;
    padding: 5px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.quick-links li a::before {
    content: '—';
    margin-right: 8px;
    color: var(--accent-color);
}

.quick-links li a:hover {
    color: var(--accent-color);
}

/* Company Locations Styling */
.company-locations .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.company-locations .contact-item .icon {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.company-locations .contact-item p {
    color: #cccccc;
    line-height: 1.4;
}

/* Social Media Section */
.footer-social {
    background-color: var(--footer-darker);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--footer-bg);
}

.social-icons .back-to-top {
    background-color: #ff0033; /* Distinct color for back to top */
    margin-left: 20px;
}

.social-icons .back-to-top:hover {
    background-color: #cc002a;
}

#contact { /* Footer copyright bar */
    text-align: center;
    padding: 15px 0;
    background-color: #081018; /* Even darker shade */
    font-size: 0.9em;
}


/* ======================================= */
/* --- MEDIA QUERIES (Responsiveness) --- */
/* ======================================= */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col.about-company {
        grid-column: 1 / -1;
        text-align: center;
    }
    .about-company .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu button */
    .menu-toggle {
        display: block;
        order: 1; /* Move button to the left */
        margin-right: 15px;
    }
    
    .logo-container {
        order: 3; /* Move logo to the right */
        margin-left: auto; /* Push the logo fully to the right */
    }

    /* Hide the navigation links by default on mobile */
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--background-white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        order: 2; /* It will be full width, but needs an order value */
    }

    /* When the menu is active */
    .nav-links.active {
        max-height: 500px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-links li {
        text-align: center;
        margin: 5px 0;
    }
    
    .nav-links li a {
        padding: 12px;
        border-bottom: 1px solid #eee;
        color: var(--text-color);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    /* Hamburger to 'X' transition */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* --- Rest of the mobile styling for content --- */
    
    /* Body Content Adjustments */
    #hero h1 {
        font-size: 2em;
    }
    #hero .sub-headline {
        font-size: 1.2em;
    }
    .stats {
        flex-direction: column;
    }
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .stat-box:last-child {
        border-bottom: none;
    }
    
    /* Footer Adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .quick-links li a {
        justify-content: center;
    }
    .company-locations .contact-item {
        justify-content: center;
    }
    .banner-img {
        height: 300px;
    }
}

/* ======================================= */
/* --- MODAL POP-UP STYLING --- */
/* ======================================= */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    width: 90%; /* Default width */
    max-width: 500px; /* Max width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation (Optional) */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* The Close Button */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Modal Specific Text Styling */
.modal-title {
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Contact Card Styling */
.contact-card {
    border: 2px solid var(--background-light);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contact-card .contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-card .contact-item i {
    font-size: 1.8em;
    color: var(--secondary-color); /* Green icon */
}

.contact-card .contact-item h4 {
    margin: 0;
    font-size: 1.1em;
    color: #555;
    text-align: left;
}

.contact-card .contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

.contact-card .contact-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.modal-footer-text {
    text-align: center;
    font-size: 0.9em;
    color: var(--primary-color);
    font-style: italic;
    margin-top: 25px;
}

/* Responsive adjustment for modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 20% auto;
    }
    .banner-img {
        height: 300px;
    }
}