/* 
 * LoanBazzar Main Stylesheet
 * Based on warm yellow theme and modern UI design
 */

/* ========== Reset & Base Styles ========== */
:root {
    /* Royal Blue & Warm Orange Theme */
    --primary-blue: #1E3A8A; /* Royal Blue - Trust, stability */
    --secondary-orange: #FF7A00; /* Warm Orange - Energy, enthusiasm */
    --white: #FFFFFF; /* White - Clean, professional */
    --light-gray: #F3F4F6; /* Light Gray - Neutral balance */
    
    /* Legacy Variable Names (for compatibility) */
    --primary-yellow: #FF7A00; /* Now Warm Orange */
    --secondary-yellow: #1E3A8A; /* Now Royal Blue */
    --dark-gold: #E05F00; /* Darker Orange */
    --light-gold: #FF9933; /* Lighter Orange */
    --secondary-gold: #FF7A00; /* Warm Orange */
    --warm-dark: #152760; /* Darker Royal Blue */
    --warm-gray: #F3F4F6; /* Light Gray */
    
    /* Neutral Colors */
    --black: #000000;
    --text-dark: #1A202C;
    --text-muted: #4A5568;
    
    /* State Colors */
    --success: #28a745; /* Green */
    --warning: #D4AF37; /* Gold */
    --danger: #dc3545;
    --info: #1E3A8A; /* Royal Blue */
    
    /* Additional Colors */
    --teal: #20c997;
    --cyan: #17a2b8;
    
    /* Legacy Colors (for backward compatibility) */
    --secondary-blue: #2D4EA0;
    --accent-gold: #D4AF37;
    --accent-orange: #D4AF37; /* Updated to Gold */
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--warm-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue); /* Royal Blue */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-gold); /* Gold */
    text-decoration: none;
}

ul {
    list-style: none;
}

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

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

section {
    padding: 60px 0;
}

/* Modern Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.title-tag {
    display: inline-block;
    background-color: rgba(255, 122, 0, 0.1); /* Warm Orange with transparency */
    color: var(--secondary-orange); /* Warm Orange */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-orange); /* Warm Orange */
    border-radius: 3px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--warm-dark);
    opacity: 0.8;
}

/* ========== Buttons & Form Elements ========== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue); /* Royal Blue */
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-orange); /* Warm Orange */
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-orange); /* Warm Orange */
    border: 2px solid var(--secondary-orange);
}

.btn-secondary:hover {
    background-color: var(--secondary-orange);
    color: var(--white);
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 16px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary-yellow);
    box-shadow: 0 0 5px rgba(0,85,170,0.2);
}

/* ========== Pre-Header Styles ========== */
.pre-header {
    background-color: var(--warm-dark);
    padding: 10px 0;
    color: var(--white);
    font-size: 0.9rem;
}

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

.contact-info a {
    color: var(--warm-gray);
    margin-right: 20px;
}

.contact-info a:hover {
    color: var(--light-gold);
}

.contact-info i {
    margin-right: 5px;
    color: var(--light-gold);
}

.social-links a {
    color: var(--warm-gray);
    margin-left: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
color: var(--light-gold);
}

/* ========== Header Styles ========== */
/* All navigation, dropdown, and mega menu styles moved to header.php as inline styles */

/* Featured Column */
.menu-featured {
    display: none;
    background-color: var(--warm-gray);
    border-radius: 6px;
}

.featured-product {
    display: none;
    padding: 15px;
    text-align: center;
}

.featured-product img {
    border-radius: 6px;
    margin-bottom: 10px;
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.featured-product h5 {
    font-size: 15px;
    margin-bottom: 5px;
}

.featured-product p {
    font-size: 13px;
    margin-bottom: 10px;
}

.featured-product .btn {
    padding: 6px 12px;
    font-size: 12px;
    background-color: var(--secondary-yellow); /* #fd7e14 Orange */
    color: var(--white);
}

/* Regular dropdown hover */
.dropdown:hover .dropdown-menu:not(.mega-menu) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega menu dropdown hover */
.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
}

/* ========== Footer Styles ========== */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 0;
}

.pre-header {
    background-color: var(--warm-dark);
    color: var(--white);
    padding: 8px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

/* Target all links in footer */
.footer-column a {
    color: var(--white);
}

.footer-column a:hover {
    color: var(--secondary-orange);
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--secondary-orange);
}

.footer-column address p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-column address p i {
    margin-right: 10px;
    color: var(--secondary-orange);
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-orange);
    color: var(--white);
}

.newsletter-form {
    position: relative;
    margin-top: 15px;
}

.newsletter-form input {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    padding-right: 50px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background-color: var(--secondary-orange);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.newsletter-form button:hover {
    background-color: var(--dark-gold);
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

/* ========== Home Page Styles ========== */
/* Hero Banner */
.hero-banner {
    background: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.pre-heading {
    display: inline-block;
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-banner h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-cta .btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
}

.hero-cta .btn i {
    margin-right: 8px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow); /* #ffc107 Yellow */
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 450px;
}

.hero-image img {
    max-height: 100%;
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--secondary-yellow); /* #fd7e14 Orange */
    font-size: 1.2rem;
}

.floating-card span {
    color: var(--warm-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: 30%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 0;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.shape-divider .shape-fill {
    fill: var(--white);
}

/* Product Highlights */
.product-highlights {
    background-color: var(--warm-gray);
    padding: 80px 0;
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Modern Product Cards */
.modern-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(253, 126, 20, 0.2);
    border-color: var(--secondary-yellow); /* #fd7e14 Orange */
}

.card-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--secondary-yellow); /* #fd7e14 Orange */
    color: var(--white);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-icon i {
    color: var(--secondary-yellow); /* #fd7e14 Orange */
    font-size: 1.5rem;
}

.modern-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.modern-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 25px;
}

.modern-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--warm-dark);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--warm-gray);
}

.product-meta span {
    font-size: 0.9rem;
    color: var(--warm-dark);
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.product-meta i {
    color: var(--secondary-yellow); /* #fd7e14 Orange */
    margin-right: 5px;
}

.modern-card p {
    color: var(--warm-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-outline {
    padding: 8px 15px;
    border: 1px solid var(--secondary-yellow); /* #fd7e14 Orange */
    color: var(--secondary-yellow); /* #fd7e14 Orange */
    background-color: transparent;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-outline i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--secondary-yellow); /* #fd7e14 Orange */
    color: var(--white);
}

.btn-outline:hover i {
    transform: translateX(3px);
}

.product-cta {
    margin-top: 60px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-cta h3 {
    margin-bottom: 15px;
    color: var(--warm-dark);
}

.product-cta p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.btn-lg i {
    margin-right: 8px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    opacity: 0.05;
    z-index: 0;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--warm-gray);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--light-gold);
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.quote-icon {
    position: absolute;
    top: -15px;
    right: -5px;
    color: var(--secondary-yellow); /* #fd7e14 Orange */
    font-size: 1.5rem;
    opacity: 0.2;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    color: var(--warm-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--warm-gray);
    padding-top: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-yellow); /* #ffc107 Yellow */
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--warm-dark);
    font-size: 1.1rem;
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--warm-dark);
    opacity: 0.7;
}

.rating {
    color: var(--secondary-orange); /* Warm Orange */
    font-size: 0.8rem;
}

.testimonial-cta {
    background: var(--primary-blue);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3); /* Royal Blue shadow */
}

.cta-text h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cta-text p {
    opacity: 0.9;
}

.testimonial-cta .btn {
    padding: 12px 25px;
    border-radius: 50px;
    background-color: var(--white);
    color: var(--secondary-yellow); /* #fd7e14 Orange */
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us */
.why-choose-us {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-box {
    padding: 30px 20px;
    border-radius: 8px;
    background-color: var(--warm-gray);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 3rem;
    color: var(--light-gold);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* DSA Onboarding Teaser */
.dsa-teaser {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.dsa-teaser h2 {
    color: var(--white);
}

.dsa-teaser p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Lead Capture CTA */
.lead-capture-cta {
    background: url('../images/cta-bg.jpg') center/cover;
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.lead-capture-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,51,102,0.8);
}

.lead-capture-cta .container {
    position: relative;
    z-index: 1;
}

.lead-capture-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lead-capture-cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav .nav-list li {
        margin: 0;
    }
    
    .main-nav .nav-list li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--warm-gray);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        display: none;
    }
    
    .dropdown-menu ul {
        padding: 0;
    }
    
    .dropdown-menu ul li a {
        padding-left: 40px;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-banner {
        padding: 60px 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
}
