/*
 * SMMizo UPI — Premium SaaS Light Theme Override
 * Loads AFTER style.css to override dark Xolio template
 * Does NOT touch original style.css
 */

/* ─── Google Font: Inter ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties Override ──────────────────────────────────────── */
:root {
    /* Brand Palette */
    --primary-color: #0a2540;
    --secondary-color: #0a2540;
    --accent-color: #4f46e5;
    --accent-light: #6366f1;
    --accent-gradient: linear-gradient(135deg, #4f46e5, #3b82f6);

    /* Surfaces */
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-section-alt: #f1f5f9;
    --bg-footer: #0a2540;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Override Xolio template vars */
    --tg-body-font-family: 'Inter', sans-serif;
    --tg-heading-font-family: 'Inter', sans-serif;
    --tg-primary-color: #4f46e5;
    --tg-secondary-color: #0a2540;
    --tg-body-font-color: #334155;
    --tg-heading-font-color: #0f172a;
    --tg-banner-title-color: #0f172a;
    --tg-paragraph-color: #64748b;
    --tg-section-background: #f8fafc;
    --tg-section-background-two: #ffffff;
    --tg-section-background-three: #f1f5f9;
    --tg-menu-color: #0f172a;
    --tg-white: #ffffff;
    --tg-black: #0f172a;
    --tg-border-color: #e2e8f0;
    --tg-border-color-two: #e2e8f0;
    --tg-arrow-color: #64748b;
}

/* ─── Body & Base ─────────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body) !important;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

p {
    color: var(--text-muted);
    line-height: 1.75;
}

a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-light);
}

/* ─── Header Light Mode ──────────────────────────────────────────────────── */
.menu-area {
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: auto;
    padding: 10px 0;
}

#sticky-header.sticky-menu {
    background: rgba(255,255,255,0.97) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    height: auto;
}

.navbar-wrap ul li a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 30px 18px;
}

.navbar-wrap > ul > li.active > a,
.navbar-wrap > ul > li:hover > a {
    color: var(--accent-color) !important;
}

.navbar-wrap ul li .sub-menu {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.navbar-wrap ul li .sub-menu li a {
    color: var(--text-secondary) !important;
}

.navbar-wrap ul li .sub-menu li a:hover,
.navbar-wrap ul li .sub-menu li.active a {
    color: var(--accent-color) !important;
}

.header-action .header-btn .btn {
    background: var(--accent-gradient) !important;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    border: none;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.header-action .header-btn .btn:hover {
    box-shadow: 0 6px 20px rgba(79,70,229,0.45);
    transform: translateY(-1px);
}

.header-action .header-btn .btn span {
    background: rgba(255,255,255,0.2);
}

.logo img {
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain;
}

/* Mobile menu toggler */
.mobile-nav-toggler {
    color: var(--text-primary) !important;
}

.mobile-nav-toggler svg {
    fill: var(--text-primary);
}

/* ─── Premium Card ────────────────────────────────────────────────────────── */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(79,70,229,0.15);
}

/* ─── Premium Buttons ─────────────────────────────────────────────────────── */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    line-height: 1;
}

.btn-premium-primary {
    background: var(--accent-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.btn-premium-primary:hover {
    box-shadow: 0 8px 25px rgba(79,70,229,0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-premium-outline {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border-color);
}

.btn-premium-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color) !important;
    background: rgba(79,70,229,0.04);
}

/* ─── Text Gradient ───────────────────────────────────────────────────────── */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Heading XL ──────────────────────────────────────────────────────────── */
.heading-xl {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

@media (max-width: 991px) {
    .heading-xl {
        font-size: 36px;
    }
}

@media (max-width: 575px) {
    .heading-xl {
        font-size: 28px;
    }
}

/* ─── Section Padding ─────────────────────────────────────────────────────── */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* ─── Section Backgrounds ─────────────────────────────────────────────────── */
.bg-white {
    background: var(--bg-white) !important;
}

.black-background {
    background: var(--bg-body) !important;
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, rgba(79,70,229,0.04) 0%, rgba(59,130,246,0.06) 50%, rgba(79,70,229,0.03) 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.75;
}

.status-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl) !important;
    border-radius: var(--radius-md) !important;
}

/* ─── Trust Strip ─────────────────────────────────────────────────────────── */
.trust-strip {
    background: var(--bg-white) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.logo-item {
    color: #cbd5e1 !important;
}

/* ─── Feature Cards ───────────────────────────────────────────────────────── */
.feature-card .icon-box {
    background: rgba(79,70,229,0.08) !important;
    color: var(--accent-color) !important;
    border-radius: var(--radius-md);
}

.feature-card:hover .icon-box {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
}

.feature-card h4 {
    color: var(--text-primary) !important;
}

/* ─── Pricing Cards ───────────────────────────────────────────────────────── */
.pricing-card.popular {
    border-color: var(--accent-color) !important;
}

.pricing-card .popular-badge {
    background: var(--accent-gradient) !important;
}

.price-amount {
    color: var(--text-primary) !important;
}

.price-amount span {
    color: var(--text-muted) !important;
}

/* ─── Service Cards (service.php) ─────────────────────────────────────────── */
.service-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, #3b82f6 100%) !important;
}

.service-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
}

.service-card:hover {
    box-shadow: var(--shadow-xl) !important;
}

.service-card:after {
    background: var(--accent-gradient) !important;
}

.service-icon {
    background: var(--accent-gradient) !important;
    border-radius: var(--radius-md) !important;
}

.service-card h3 {
    color: var(--text-primary) !important;
}

.service-card p,
.service-features li {
    color: var(--text-muted) !important;
}

.service-features li:before {
    background: var(--accent-color) !important;
}

/* Works section */
.works-section {
    background: var(--bg-section-alt) !important;
}

.step-number {
    background: var(--accent-gradient) !important;
}

.work-step h4 {
    color: var(--text-primary) !important;
}

.work-step p {
    color: var(--text-muted) !important;
}

/* Benefit cards */
.benefit-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md) !important;
}

.benefit-card h4 {
    color: var(--text-primary) !important;
}

.benefit-card p {
    color: var(--text-muted) !important;
}

/* ─── Blog Cards ──────────────────────────────────────────────────────────── */
.saas-blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.saas-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79,70,229,0.15);
}

.saas-blog-img-box {
    display: block;
    overflow: hidden;
    height: 200px;
}

.saas-blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.saas-blog-card:hover .saas-blog-img-box img {
    transform: scale(1.05);
}

.saas-blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.saas-badge {
    display: inline-block;
    background: rgba(79,70,229,0.08);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saas-blog-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.saas-blog-title a {
    color: inherit !important;
    text-decoration: none;
}

.saas-blog-title a:hover {
    color: var(--accent-color) !important;
}

.saas-blog-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}

/* ─── Blog Hero ───────────────────────────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, rgba(79,70,229,0.06) 0%, rgba(59,130,246,0.08) 100%);
    padding: 120px 0 100px;
    text-align: center;
}

.blog-hero h1 {
    color: var(--text-primary);
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 18px;
}

/* ─── Blog Single ─────────────────────────────────────────────────────────── */
.blog-single-content {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 48px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.blog-single-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
}

.blog-single-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

/* ─── Footer Light Mode ──────────────────────────────────────────────────── */
.footer-area {
    background: var(--bg-footer) !important;
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-widget .fw-title {
    color: #e2e8f0 !important;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-widget .fw-link ul li a,
.footer-about ul li a,
.footer-about ul li span {
    color: #94a3b8 !important;
    font-size: 14px;
}

.footer-widget .fw-link ul li a:hover,
.footer-about ul li a:hover {
    color: #ffffff !important;
}

.footer-contact span {
    color: #94a3b8 !important;
}

.footer-contact .title a {
    color: #e2e8f0 !important;
}

.footer-social ul li a svg {
    fill: #94a3b8 !important;
    transition: fill 0.3s ease;
}

.footer-social ul li a:hover svg {
    fill: #ffffff !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding: 20px 0;
}

.copyright-text p {
    color: #64748b !important;
    font-size: 13px;
}

/* ─── Scroll Top Button ──────────────────────────────────────────────────── */
.scroll-top {
    background: var(--accent-gradient) !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.scroll-top:hover {
    background: var(--accent-color) !important;
}

/* ─── Default .btn Override ───────────────────────────────────────────────── */
.btn {
    border-radius: var(--radius-sm);
}

/* ─── Mobile Menu Light Mode ──────────────────────────────────────────────── */
.mobile-menu .menu-box {
    background: var(--bg-white) !important;
}

.mobile-menu .navigation li > a {
    color: var(--text-secondary) !important;
}

.mobile-menu .navigation li {
    border-top-color: var(--border-color) !important;
}

.mobile-menu .navigation li.menu-item-has-children .dropdown-btn {
    color: var(--text-muted);
}

.mobile-menu .close-btn {
    color: var(--accent-color) !important;
}

.mobile-menu .close-btn svg {
    fill: var(--accent-color);
}

.mobile-menu .social-links .btn {
    background: var(--accent-gradient) !important;
}

/* ─── Tables (pricing comparison) ─────────────────────────────────────────── */
.table {
    color: var(--text-secondary);
}

.table thead {
    background: var(--bg-section-alt) !important;
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
}

.bg-light {
    background: var(--bg-section-alt) !important;
}

/* ─── Alerts & Badges ─────────────────────────────────────────────────────── */
.text-primary {
    color: var(--accent-color) !important;
}

.badge-primary {
    background: rgba(79,70,229,0.1) !important;
    color: var(--accent-color) !important;
}

/* ─── Final CTA Section ──────────────────────────────────────────────────── */
.premium-card[style*="background: var(--secondary-color)"] {
    background: var(--accent-gradient) !important;
    border: none !important;
}

/* ─── Misc ────────────────────────────────────────────────────────────────── */
.text-muted {
    color: var(--text-muted) !important;
}

::selection {
    background: var(--accent-color);
    color: #ffffff;
}

/* ─── Responsive Fine-tuning ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section::before,
    .hero-section::after {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

    .premium-card {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .btn-premium {
        padding: 12px 20px;
        font-size: 14px;
    }

    .premium-card {
        padding: 20px;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .blog-hero {
        padding: 100px 0 60px;
    }
}

/* CKEditor 5 Frontend Rendering Fixes */
.ck-content {
    font-family: inherit;
    line-height: 1.8;
}
.ck-content h2, .ck-content h3, .ck-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--secondary-color);
    font-weight: 700;
}
.ck-content p {
    margin-bottom: 1em;
}
.ck-content ul {
    list-style-type: disc !important;
    padding-left: 2em !important;
    margin-bottom: 1em;
}
.ck-content ol {
    list-style-type: decimal !important;
    padding-left: 2em !important;
    margin-bottom: 1em;
}
.ck-content li {
    display: list-item !important;
    margin-bottom: 8px;
}
.ck-content blockquote {
    border-left: 4px solid var(--primary-color);
    color: var(--text-muted);
    font-style: italic;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 1.5em 0;
}
.ck-content figure.table {
    width: 100%;
    overflow-x: auto;
    margin: 1.5em 0;
}
.ck-content table {
    width: 100%;
    border-collapse: collapse;
}
.ck-content table td, .ck-content table th {
    border: 1px solid var(--border-color);
    padding: 12px;
}
.ck-content table th {
    background: #f1f5f9;
    font-weight: 600;
}
.ck-content figure.image {
    margin: 1.5em 0;
    text-align: center;
}
.ck-content figure.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.ck-content figcaption {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}
.ck-content a {
    color: var(--primary-color);
    text-decoration: underline;
}
.ck-content a:hover {
    color: var(--secondary-color);
}
.ck-content strong {
    font-weight: 700;
}
.ck-content em {
    font-style: italic;
}