/* ========================================
   Pato Kash - Modern Micro-Loan Website
   ======================================== */

/* CSS Variables for easy theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-main: #1f2937;
    --text-body: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-li {
    margin-left: 8px;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.burger div {
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Default Primary Style (Used in Form, etc.) */
.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Hero Section Primary Button - High Contrast */
.hero .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.hero .btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

/* Hero Section Secondary Button - Glassmorphism */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-5px);
}

/* Header Navigation Button - Elegant & Subtle */
.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 12px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.nav-links .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-block {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.license-badge {
    margin-top: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.badge-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.badge-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: linear-gradient(180deg, #0b1530 0%, #0d1f3f 100%);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.bg-dark .section-title h2 {
    color: white;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-body);
}

/* License Banner - Prominent Display */
.license-banner {
    max-width: 900px;
    margin: 40px auto 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.license-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.license-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.license-banner-text {
    flex: 1;
    color: white;
}

.license-banner-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.license-number {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.license-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.bg-dark .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-body);
    font-size: 1.05rem;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-weight: 500;
    color: var(--text-main);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-license-box {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.about-license-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.about-license-icon svg {
    width: 28px;
    height: 28px;
}

.about-license-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-license-text strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-license-text span {
    font-size: 0.95rem;
    color: var(--text-body);
    font-weight: 500;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Ensure centering for fewer items on desktop */
@media (min-width: 992px) {
    .center-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: 0 auto;
    }
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.card .icon-svg {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .icon-svg svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    border-color: rgba(37, 99, 235, 0.3);
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.info-icon svg {
    width: 28px;
    height: 28px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-text strong {
    font-size: 1.1rem;
    color: white;
}

.info-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #0b0f1d;
    color: white;
    padding: 60px 0 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 40px 0;
        gap: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-active {
        right: 0;
    }

    .btn-li {
        margin-left: 0;
        margin-top: 20px;
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    /* Keyframes for nav links */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Hero Section */
    .hero {
        padding: 60px 20px;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .license-banner {
        margin: 30px auto 40px;
        padding: 24px 20px;
    }

    .license-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .license-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .license-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .license-banner-text h3 {
        font-size: 1.25rem;
    }

    .license-number {
        font-size: 1rem;
    }

    .license-desc {
        font-size: 0.9rem;
    }

    .about-license-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }

    .about-license-icon {
        width: 44px;
        height: 44px;
    }

    .about-license-icon svg {
        width: 24px;
        height: 24px;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Section Padding */
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}