/* ==========================================================
   Pixelwyre Schools — Complete Digital Transformation for Schools
   Main Stylesheet
   Version: 2.0 (Reseller ERP & Marketing Platform)
   Author: Pixelwyre Digital
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/*==========================================================
01 ROOT VARIABLES
==========================================================*/

:root {
    --primary: #0057FF;
    --primary-dark: #003FC2;
    --primary-light: #EAF2FF;
    --secondary: #11B5E4;
    --accent: #6366F1;

    --success: #22C55E;
    --success-light: #DCFCE7;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;

    --dark: #0F172A;
    --dark-2: #1E293B;

    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-700: #334155;
    --gray-800: #1E293B;

    --white: #ffffff;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 15px 35px rgba(0, 87, 255, 0.25);

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/*==========================================================
02 RESET & BASE STYLES
==========================================================*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*==========================================================
03 TYPOGRAPHY
==========================================================*/

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.display-3 { font-size: 3.5rem; font-weight: 800; }
.display-4 { font-size: 2.75rem; font-weight: 800; }
.display-5 { font-size: 2.25rem; font-weight: 800; }

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
}

/*==========================================================
04 NAVIGATION
==========================================================*/

.navbar {
    padding: 18px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md) !important;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand img {
    height: 42px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-2) !important;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

/*==========================================================
05 HERO SECTION
==========================================================*/

.hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 87, 255, 0.05) 0%, rgba(17, 181, 228, 0.03) 90%);
    overflow: hidden;
}

.hero .badge {
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.hero-dashboard-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    transition: var(--transition);
}

.hero-dashboard-img:hover {
    transform: translateY(-8px) scale(1.02);
}

.counter-box {
    text-align: center;
}

.counter-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/*==========================================================
06 BUTTONS & BADGES
==========================================================*/

.btn {
    border-radius: 100px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 87, 255, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-success {
    background: #25D366; /* WhatsApp brand color */
    border: none;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background: #1DA851;
    transform: translateY(-3px);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    color: var(--primary-dark);
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/*==========================================================
07 CARDS & MODULES
==========================================================*/

.feature-card,
.challenge-card,
.service-box,
.module-card,
.service-card,
.trust-card,
.process-card,
.impact-card,
.case-study-card,
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover,
.service-box:hover,
.module-card:hover,
.service-card:hover,
.trust-card:hover,
.case-study-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 87, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.challenge-card {
    background: var(--gray-50);
}

.challenge-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #FEE2E2;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.module-card {
    text-align: center;
    border: 1px solid var(--gray-200);
}

.module-card i {
    transition: var(--transition);
}

.module-card:hover i {
    transform: scale(1.15);
}

/*==========================================================
08 LIVE ERP DEMO SANDBOX
==========================================================*/

.demo-sandbox-wrapper {
    background: var(--dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-header {
    background: var(--dark-2);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.role-btn-group .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.role-btn-group .btn.active {
    background: var(--primary);
    color: var(--white);
}

.demo-body {
    padding: 30px;
    min-height: 450px;
    background: #0B1120;
}

.demo-card-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.demo-card-stat h3 {
    color: var(--white);
}

/*==========================================================
09 PRICING & FAQ
==========================================================*/

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured .popular {
    position: absolute;
    top: -16px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 20px 0;
}

.pricing-card ul {
    margin-bottom: 30px;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px border-subtle;
    color: var(--gray-700);
}

.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    padding: 20px 24px;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--primary-light);
}

/*==========================================================
10 CONTACT FORM & FOOTER
==========================================================*/

.contact-card {
    border: 1px solid var(--gray-200);
}

.form-control, .form-select {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-300);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.1);
}

.footer-links a {
    color: var(--gray-400);
    line-height: 2.2;
}

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

/* High-Contrast Readability for Demo Showcase & Hero Banners */
.demo-module-pane {
    color: #FFFFFF !important;
}
.demo-module-pane small {
    color: #CBD5E1 !important; /* High contrast light slate */
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}
.demo-module-pane p, .demo-module-pane span, .demo-module-pane td, .demo-module-pane th {
    color: #F8FAFC !important;
}
.demo-module-pane h1, .demo-module-pane h2, .demo-module-pane h3, .demo-module-pane h4, .demo-module-pane h5, .demo-module-pane h6 {
    color: #FFFFFF !important;
}
.text-gray-300, .text-gray-400 {
    color: #CBD5E1 !important;
}

/* High Contrast Lead Paragraphs */
.bg-primary .lead, .bg-dark .lead, .bg-primary p, .bg-dark p {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

/*==========================================================
11 UTILITY & FLOATING WIDGETS
==========================================================*/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-md);
    z-index: 998;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    h1, .display-3 { font-size: 2.5rem; }
    h2, .display-4 { font-size: 2rem; }
    .hero { padding: 120px 0 60px; }
}
