/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography - Updated to match Navigator Brand Guide */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 400; }

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Navigator Brand Colors - Official Brand Guide */
:root {
    --primary-teal: #00B5A5;
    --primary-charcoal: #6B6B6B;
    --secondary-navy: #003366;
    --secondary-blue: #0066CC;
    --secondary-light-green: #66D9B3;
    --accent-teal: #1DE9B6;
    --light-teal: #E0F7F4;
    --charcoal-dark: #4A4A4A;
    --charcoal-light: #9E9E9E;
    --gray-light: #F5F5F5;
    --gray-medium: #757575;
    --gray-dark: #424242;
    --white: #ffffff;
    --black: #000000;
    --success: #00BFA5;
    --warning: #FF9800;
    --danger: #F44336;
    
    /* Legacy support - mapping old colors to new brand colors */
    --primary-blue: var(--secondary-navy);
    --secondary-blue: var(--secondary-blue);
    --accent-blue: var(--primary-teal);
    --dark-blue: var(--secondary-navy);
    --light-blue: var(--light-teal);
    --navy: var(--charcoal-dark);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 165, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-secondary:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 165, 0.3);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px;
    width: auto;
    max-width: 280px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 0;
}

.tagline {
    font-size: 0.8rem;
    color: var(--gray-medium);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-btn {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-btn:hover {
    color: var(--dark-blue);
}

.cta-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--light-teal) 0%, var(--white) 100%);
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.trust-item i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Social Proof */
.social-proof {
    background-color: var(--gray-light);
    padding: 2rem 0;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-highlight {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.testimonial-highlight:first-child {
    display: block;
}

.testimonial-highlight blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.testimonial-highlight cite {
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Services Overview */
.services-overview {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
    background: var(--light-blue);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--dark-blue);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* About Preview */
.about-preview {
    background-color: var(--gray-light);
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-text h2 {
    color: var(--navy);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.about-text h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credential i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    width: 20px;
}

.credential span {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* Bank Partners */
.bank-partners {
    padding: 5rem 0;
    text-align: center;
    background: var(--white);
}

.lenders-heading {
    color: var(--gray-dark);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 4rem;
    line-height: 1.4;
}

.lenders-count {
    color: var(--secondary-navy);
    font-weight: 700;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.partners-grid-six {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 80px;
}

.partner-logo img {
    max-width: 180px;
    height: 60px;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.partner-logo:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-color: var(--light-blue);
}

.cta-section .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--accent-blue);
    width: 16px;
}

.contact-info a {
    color: #cbd5e1;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--white);
}

.footer-cta {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 1rem;
}

.legal-info p {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-popup.show {
    display: flex;
    opacity: 1;
}

.success-popup-content {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    color: #00BFA5;
    margin-bottom: 1.5rem;
}

.success-title {
    color: var(--navy);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-menu.active {
        display: flex;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.5rem 0;
        background: var(--gray-light);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hide header Book a Chat button on mobile */
    .nav-contact {
        display: none;
    }

    /* Move floating CTA to left side on mobile to avoid menu overlap */
    .floating-cta {
        right: auto;
        left: 20px;
        z-index: 999;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .lenders-heading {
        font-size: 1.6rem;
    }

    .partner-logo img {
        max-width: 140px;
        height: 50px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }

    .floating-cta {
        bottom: 10px;
        left: 10px;
        right: auto;
    }
}