/* ==========================================================================
   Digital Karo (digitalkaro.store) - Mobile-First Executive CSS
   ========================================================================== */

:root {
    --bg-main: #F3F4F6;
    --bg-surface: #E5E7EB;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --border-dark: #CBD5E1;

    --blue: #2563EB;
    --blue-hover: #1D4ED8;
    --green: #10B981;
    --amber: #F59E0B;
    --red: #EF4444;

    --text-heading: #111827;
    --text-body: #374151;
    --text-muted: #6B7280;

    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 75px; /* Space for mobile sticky action bar */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

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

.text-center { text-align: center; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-blue { color: var(--blue) !important; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-hero-primary {
    background: var(--blue);
    color: #fff;
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-hero-secondary {
    background: #10B981;
    color: #fff;
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.btn-wa {
    background: #25D366;
    color: #fff;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.btn-call {
    background: var(--blue);
    color: #fff;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.btn-kit {
    background: #FFFFFF;
    color: var(--text-heading);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    line-height: 1;
}
.brand-domain {
    display: block;
    font-size: 0.68rem;
    color: var(--blue);
    font-weight: 700;
    margin-top: 2px;
}
.nav-links {
    display: flex;
    gap: 24px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 8px; }

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    background: var(--bg-main);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 18px;
    color: var(--text-heading);
    letter-spacing: -0.8px;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 540px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    flex-wrap: wrap;
}
.stat-pill {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: #FFF;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-weight: 600;
}
.stat-pill strong { color: var(--blue); }

/* Hero Store Engine Card */
.hero-card-side {
    display: flex;
    justify-content: center;
}
.store-engine-card {
    width: 100%;
    max-width: 380px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.engine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.engine-header h5 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--text-heading); }
.engine-header span { font-size: 0.7rem; color: var(--text-muted); }
.live-pill {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--green);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 8px;
    border-radius: 20px;
}

.engine-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.m-box {
    background: var(--bg-main);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.m-box small { font-size: 0.65rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.m-box strong { font-family: var(--font-heading); font-size: 0.95rem; color: var(--text-heading); font-weight: 800; }

.engine-catalog-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.catalog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.c-info h6 { font-size: 0.78rem; color: var(--text-heading); }
.c-info span { font-size: 0.65rem; color: var(--text-muted); }
.btn-item-wa {
    background: #25D366;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.engine-footer-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* Sections */
.section-padding { padding: 70px 0; }
.bg-warm-white { background: #FFFFFF; }
.section-header { margin-bottom: 40px; }
.kicker { font-family: var(--font-heading); font-size: 0.78rem; color: var(--blue); font-weight: 800; letter-spacing: 1.5px; display: block; margin-bottom: 6px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 900; color: var(--text-heading); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; max-width: 540px; margin: 0 auto; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Services */
.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 24px 18px;
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-3px); }
.s-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.icon-blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }

.service-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-heading); margin-bottom: 6px; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Portfolio */
.portfolio-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius-md);
}
.p-tag { font-size: 0.65rem; font-weight: 800; color: var(--blue); letter-spacing: 1px; margin-bottom: 4px; display: block; }
.portfolio-card h4 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--text-heading); margin-bottom: 4px; }
.p-loc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.p-features { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; font-size: 0.82rem; color: var(--text-body); }

/* Table Wrapper */
.table-container { overflow-x: auto; background: #FFFFFF; border-radius: var(--radius-md); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.matrix-table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; }
.matrix-table th, .matrix-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.matrix-table th { background: #F9FAFB; color: var(--text-heading); font-family: var(--font-heading); }
.col-active { background: rgba(37, 99, 235, 0.04); }

/* Pricing */
.price-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    position: relative;
}
.card-featured { border-color: var(--blue); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12); }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.65rem; font-weight: 800; padding: 3px 12px; border-radius: 50px; }
.plan-head h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-heading); margin-bottom: 4px; }
.plan-head p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--text-heading); margin-bottom: 18px; font-family: var(--font-heading); }
.plan-price span { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

.plan-bullets { list-style: none; margin-bottom: 20px; }
.plan-bullets li { font-size: 0.85rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; color: var(--text-body); }

.btn-plan-primary { display: block; text-align: center; background: var(--blue); color: #fff; padding: 12px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.btn-plan-outline { display: block; text-align: center; border: 1px solid var(--border-dark); color: var(--text-heading); padding: 12px; border-radius: 8px; font-weight: 800; text-decoration: none; }

/* Footer */
.footer { background: #111827; color: #9CA3AF; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; max-width: 320px; color: #9CA3AF; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.9rem; color: #fff; margin-bottom: 12px; }
.footer-col a { display: block; color: #9CA3AF; text-decoration: none; margin-bottom: 6px; font-size: 0.85rem; }
.footer-col a:hover { color: #FFF; }
.footer-bottom { border-top: 1px solid #1F2937; padding-top: 16px; font-size: 0.78rem; color: #6B7280; }

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}
.btn-m-call {
    flex: 1;
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
}
.btn-m-wa {
    flex: 1;
    background: #25D366;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
}

/* ==========================================================================
   PIXEL-PERFECT MOBILE RESPONSIVE QUERIES (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Navbar on Mobile */
    .nav-links { display: none; }
    .btn-kit { display: none; } /* Hide print kit button on tiny screens */
    .btn-wa { padding: 8px 12px; font-size: 0.78rem; }
    .btn-call { padding: 8px 12px; font-size: 0.78rem; }
    .brand-title { font-size: 1.1rem; }
    .brand-domain { font-size: 0.62rem; }

    /* Hero Section on Mobile */
    .hero-section { padding: 32px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
    .hero-heading { font-size: 2.1rem; line-height: 1.18; margin-bottom: 14px; }
    .hero-sub { font-size: 0.95rem; margin-bottom: 20px; }
    
    .hero-buttons { flex-direction: column; gap: 10px; width: 100%; margin-bottom: 24px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; padding: 14px 20px; font-size: 0.95rem; }
    
    .hero-stats { justify-content: space-between; gap: 8px; }
    .stat-pill { font-size: 0.75rem; padding: 5px 10px; flex: 1; text-align: center; }

    /* Store Engine Card on Mobile */
    .store-engine-card { max-width: 100%; padding: 16px; }
    .engine-header h5 { font-size: 0.9rem; }
    .m-box strong { font-size: 0.88rem; }

    /* Grids on Mobile */
    .section-padding { padding: 50px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.6rem; }
    
    .grid-4, .grid-3 { grid-template-columns: 1fr; gap: 16px; }

    /* Footer on Mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
