/* ==========================================================================
   SDS Fin Advisory LLP - Style Sheet
   ========================================================================== */

/* --- Custom Variables & Theme Palette --- */
:root {
    --primary-blue: #1159af;
    --primary-blue-hover: #0d468b;
    --dark-blue: #021c41;
    --footer-dark: #08284e;
    --accent-red: #b82105;
    --accent-red-hover: #911a04;
    
    --text-dark: #1a202c;
    --text-slate: #2d3748;
    --text-muted: #718096;
    
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-white: #ffffff;
    
    --sidebar-purple: #7761df;
    --whatsapp-green: #26d367;
    --star-gold: #f5a524;
    
    --font-main: 'Lato', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-large: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-slate);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-tag.centered {
    display: block;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.section-title.centered {
    text-align: center;
}

.highlight-text {
    color: var(--primary-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    font-family: var(--font-heading);
}

.btn i {
    margin-left: 8px;
    font-size: 14px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.site-branding .logo-img {
    height: 50px;
    width: auto;
}

.desktop-navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    padding: 10px 15px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

/* Dropdown Submenu */
.nav-item-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    background-color: var(--text-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--bg-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background-color: var(--text-slate);
    color: var(--bg-white);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.header-btn:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 10px 20px rgba(184, 33, 5, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================================================
   Mobile Drawer Navigation
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-inner {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.mobile-drawer-overlay.open .drawer-inner {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.menu-toggle-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--bg-white);
    cursor: pointer;
}

.drawer-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-link {
    display: block;
    padding: 15px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--bg-gray);
}

.drawer-link:hover {
    color: var(--primary-blue);
}

/* Mobile Submenu Dropdown Trigger */
.dropdown-trigger-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-sub-toggle {
    background: none;
    border: none;
    color: var(--bg-gray);
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
}

.mobile-submenu {
    display: none;
    padding-left: 20px;
    background-color: rgba(255,255,255,0.02);
}

.mobile-submenu li a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.mobile-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-dropdown.active .drawer-sub-toggle i {
    transform: rotate(180deg);
}

.drawer-cta-wrap {
    margin-top: 30px;
}

.drawer-cta-btn {
    background-color: var(--accent-red);
    color: var(--bg-white);
    width: 100%;
    text-align: center;
    padding: 14px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15); /* Light overall tint */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    color: var(--text-dark);
}

.hero-subtitle {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title {
    font-size: 55px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--text-slate);
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-apply {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-apply:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 10px 20px rgba(184, 33, 5, 0.3);
}

.btn-consult {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-consult:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border-color: var(--primary-blue);
}

/* Hero Quick Enquiry Form */
.hero-form-wrapper {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-slate);
    text-align: center;
    margin-bottom: 25px;
}

.enquiry-form .form-group {
    margin-bottom: 15px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: #fcfcfc;
    color: var(--text-dark);
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary-blue);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(17, 89, 175, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    cursor: pointer;
}

.form-submit-btn {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: var(--primary-blue-hover);
    box-shadow: 0 10px 20px rgba(17, 89, 175, 0.2);
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.form-message.success {
    color: #38a169;
}

.form-message.error {
    color: #e53e3e;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-section {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-title {
    font-size: 35px;
    margin-bottom: 20px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-slate);
    margin-bottom: 30px;
}

.about-btn {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.about-btn:hover {
    background-color: var(--primary-blue-hover);
    box-shadow: 0 10px 20px rgba(17, 89, 175, 0.25);
}

.about-image-wrap .about-img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    width: 100%;
}

/* ==========================================================================
   Our Loan Products Section
   ========================================================================== */
.loan-products-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.loan-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.loan-card {
    background-color: var(--bg-white);
    border: 2px solid var(--bg-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: transparent;
}

.loan-card-inner {
    padding: 40px 30px;
}

.loan-icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.loan-icon-wrap.bg-blue {
    background-color: var(--primary-blue);
}

.loan-icon-wrap.bg-orange {
    background-color: var(--accent-red);
}

.loan-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.loan-title {
    font-size: 21px;
    margin-bottom: 15px;
}

.loan-desc {
    font-size: 16px;
    color: var(--text-slate);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-choose-section {
    background-color: var(--bg-gray);
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.why-item {
    text-align: center;
    background-color: transparent;
    padding: 10px;
}

.why-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon-wrap img {
    max-height: 55px;
    max-width: 55px;
    object-fit: contain;
}

.why-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.testimonials-slider-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    position: relative;
}

.testimonials-slider {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.stars-rating {
    margin-bottom: 20px;
    color: var(--star-gold);
    font-size: 18px;
}

.stars-rating i {
    margin: 0 2px;
}

.testimonial-quote {
    font-size: 20px;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-slate);
    margin-bottom: 25px;
    max-width: 700px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.author-city {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.slider-arrow {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--bg-gray);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--text-dark);
    transform: scale(1.2);
}

/* ==========================================================================
   Consultation Section
   ========================================================================== */
.consultation-section {
    background-color: var(--dark-blue);
    padding: 50px 0;
    color: var(--bg-white);
}

.consultation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consultation-heading {
    font-size: 32px;
    color: var(--bg-white);
    line-height: 1.3;
    margin-bottom: 8px;
}

.consultation-subheading {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

.btn-consult-large {
    background-color: var(--accent-red);
    color: var(--bg-white);
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 4px;
    font-weight: 700;
}

.btn-consult-large:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 10px 25px rgba(184, 33, 5, 0.4);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
    color: var(--bg-white);
}

.middle-footer {
    background-color: var(--dark-blue);
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
    gap: 40px;
}

.footer-brand-title {
    font-size: 22px;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-brand-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--bg-white);
}

.footer-social-links a:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.footer-col-title {
    font-size: 17px;
    color: var(--bg-white);
    margin-bottom: 25px;
    position: relative;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.footer-links-list li a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.list-arrow {
    font-size: 11px;
    margin-right: 8px;
}

.footer-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-info-list li.align-top {
    align-items: flex-start;
}

.info-icon {
    color: var(--bg-white);
    font-size: 15px;
    margin-top: 3px;
}

.info-text strong {
    color: var(--bg-white);
}

.bottom-footer {
    background-color: var(--footer-dark);
    padding: 25px 0;
    text-align: left;
}

.bottom-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Sticky & Floating Widgets
   ========================================================================== */

/* Floating WhatsApp Widget (Bottom Right) */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
}

.whatsapp-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--whatsapp-green);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(38, 211, 103, 0.3);
    position: relative;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 1024px) {
    /* Header mobile */
    .desktop-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-form-column {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    
    /* About mobile */
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Loan cards mobile */
    .loan-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Why grid mobile */
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Consultation mobile */
    .consultation-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    /* Footer mobile */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .loan-products-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .middle-footer {
        padding: 40px 0;
    }
    
    .footer-col-title {
        margin-bottom: 15px;
    }
    

}
