/* ============================================
   SIMPLE LOAN WEBSITE CSS
   CA Sunil Patel & Associates
   ============================================ */

:root {
    --primary: #0052FF;
    --secondary: #00A3FF;
    --dark: #1A1A2E;
    --light: #F8FAFF;
    --text: #6B7280;
    --white: #FFFFFF;
    --success: #10B981;
    --shadow: 0 4px 20px rgba(0, 82, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #001A4D 0%, #0052FF 100%);
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   QUICK INFO
   ============================================ */
.quick-info {
    background: var(--white);
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 82, 255, 0.15);
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-item h4 {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text);
}

/* ============================================
   ALL LOANS SECTION
   ============================================ */
.all-loans {
    padding: 80px 0;
    background: var(--light);
}

.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.loan-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 82, 255, 0.2);
}

.loan-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.loan-header i {
    font-size: 2.5rem;
    color: var(--primary);
}

.loan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
}

.loan-card p {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.loan-details {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.detail-item span {
    color: var(--text);
    font-size: 0.95rem;
}

.detail-item strong {
    color: var(--primary);
    font-weight: 700;
}

.loan-features {
    list-style: none;
    margin-bottom: 25px;
}

.loan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--dark);
}

.loan-features i {
    color: var(--success);
    font-size: 1rem;
}

.btn-loan {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-loan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4);
}

/* ============================================
   EMI CALCULATOR
   ============================================ */
.calculator-section {
    padding: 80px 0;
    background: var(--white);
}

.calculator-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--light);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.input-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #E0E7FF;
    border-radius: 5px;
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.input-group .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.calculator-result {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.emi-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    color: var(--white);
    margin-bottom: 30px;
}

.emi-display h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.emi-amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
}

.breakdown-row span {
    color: var(--text);
}

.breakdown-row strong {
    color: var(--dark);
    font-weight: 700;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.info-card p {
    color: var(--text);
    font-size: 0.95rem;
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px 18px;
    border: 2px solid #E0E7FF;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #001A4D;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact i {
    margin-right: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credit a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 2rem;
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .calculator-box,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 1.5rem;
        transition: left 0.3s;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loans-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.6rem;
    }
}
