/* ==========================================
   1. CORE DESIGN TOKENS & SYSTEM COLORS
   ========================================== */
:root {
    --bg-deep: #080F18;
    --bg-navy: #0D1B2A;
    --bg-card: #152438;
    --bg-light-input: #1F2E45;
    
    /* The Top-fold Theme: Royal Blue, Sea Blue, and White */
    --royal-blue: #2563EB;     
    --sea-blue: #0284C7;       
    --accent-sky: #38BDF8;     
    --white: #FFFFFF;
    
    --light-gray: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --success: #10B981;
    --error: #EF4444;
    
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    --border-style: 1px solid rgba(255, 255, 255, 0.08);
    --border-dark-style: 1px solid rgba(15, 23, 42, 0.08);
}

/* Light Theme Variable Overrides */
body.light-theme {
    --bg-deep: #F8FAFC;
    --bg-navy: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-light-input: #F1F5F9;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --white: #0F172A; /* Inversion mapping */
    --border-dark-style: 1px solid rgba(15, 23, 42, 0.12);
}
body.light-theme .section-dark {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}
body.light-theme .section-light,
body.light-theme #booking-section {
    background-color: #E2E8F0 !important;
    color: #0F172A !important;
}
body.light-theme .quote-wrapper,
body.light-theme .quote-control,
body.light-theme .calc-wrapper,
body.light-theme .b2b-body,
body.light-theme .client-dashboard-box,
body.light-theme .booking-grid-box {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}
body.light-theme .quote-control {
    background-color: #F1F5F9 !important;
}
body.light-theme .hero-heading,
body.light-theme .hero-sub,
body.light-theme .hero-bullet {
    color: #FFFFFF !important; /* Remain white over hero slider */
}

/* ==========================================
   2. PROGRESSIVE PRELOADER STYLE
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #080F18;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.preloader-logo {
    width: auto;
    height: 64px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 14px 24px;
    animation: pulseLogo 1.5s infinite ease-in-out;
}
.preloader-bar {
    width: 140px;
    height: 4px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.preloader-progress {
    width: 0;
    height: 100%;
    background-color: var(--royal-blue);
    border-radius: 4px;
    animation: progressFill 2.5s infinite linear;
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}
@keyframes progressFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ==========================================
   3. BASE RESETS & STRUCTURE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Offset anchored sections so the fixed header doesn't cover their tops */
html {
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: var(--transition-smooth);
}

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

.section-dark {
    background-color: var(--bg-navy);
    color: var(--white);
    padding: 100px 0;
    transition: var(--transition-smooth);
}

.section-light {
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding: 100px 0;
    transition: var(--transition-smooth);
}

.section-white {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 100px 0;
    transition: var(--transition-smooth);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--royal-blue);
    display: block;
    margin-bottom: 12px;
}

.section-tag-light {
    color: var(--accent-sky);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 1.05rem;
}

.section-desc-light {
    color: rgba(255, 255, 255, 0.7);
}

/* Standard Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-blue), var(--sea-blue));
    color: #FFFFFF !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

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

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

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

/* Scroll Reveal Effect Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   3. NAVIGATION MODULE (INTEGRATING OFFICIAL LOGO)
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-dark-style);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

body.light-theme header {
    background-color: rgba(255, 255, 255, 0.95);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img-wrapper {
    display: block;
    height: 52px;
    transition: var(--transition-smooth);
}

.logo-img-wrapper img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

header.scrolled .logo-img-wrapper {
    height: 44px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--royal-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--royal-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    cursor: pointer;
    z-index: 1010;
}

.burger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Burger active transform */
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

/* Language Switcher */
.nav-control-utilities {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch-box {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.lang-btn {
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.lang-btn.active, .lang-btn:hover {
    color: var(--royal-blue);
}

/* ==========================================
   5. HERO MODULE (ROYAL BLUE, SEA BLUE, & WHITE STYLING)
   ========================================== */
#hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Dynamic End-to-End Slider container */
.hero-slider-backing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide-item.active {
    opacity: 1;
    z-index: 2;
}

/* Subtle overlay — glass panel on text block now handles legibility */
.hero-slider-backing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(8, 16, 28, 0.22) 0%, rgba(2, 132, 199, 0.06) 60%, transparent 100%);
    z-index: 3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10; 
}

/* Slider Direct Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
}

.hero-slider-arrow:hover {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider-arrow.prev { left: 40px; }
.hero-slider-arrow.next { right: 40px; }

.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero-dot.active {
    background-color: var(--accent-sky);
    width: 30px;
    border-radius: 5px;
}

/* Reduced size of the text on the image slider slightly for standard elegance */
.hero-heading {
    font-size: 2.75rem; 
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #FFFFFF; 
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-heading span {
    background: linear-gradient(135deg, var(--accent-sky), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1rem; 
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    max-width: 580px;
}

/* ── Glassmorphism text panel ── */
.hero-text-block {
    background: rgba(8, 16, 28, 0.56);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 52px;
}

.hero-bullets-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-left: 3px solid var(--accent-sky);
    border-radius: 8px;
    padding: 10px 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hide the large checkmark SVG — pill shape replaces it */
.hero-bullets-box .bullet-icon {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Telemetry System Strip */
#telemetry-bar {
    background-color: var(--bg-deep);
    border-bottom: var(--border-style);
    padding: 14px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}
.telemetry-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.telemetry-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.telemetry-dot-ping {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    display: block;
    animation: ping 1.5s infinite;
}
@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   6. ABOUT US MODULE
   ========================================== */
#about {
    background-color: var(--white);
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text-panel h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

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

.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background-color: var(--bg-light-input);
    border-radius: 12px;
    padding: 36px;
    border: var(--border-dark-style);
    transition: var(--transition-smooth);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
    border-color: rgba(37, 99, 235, 0.1);
}

.mv-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mv-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.mv-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Value icon badge */
.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--royal-blue);
}

.value-card {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 32px 28px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

/* Coloured top accent bar per card */
.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}
.value-card:nth-child(1)::before { background: linear-gradient(90deg, #2563EB, #0EA5E9); }
.value-card:nth-child(2)::before { background: linear-gradient(90deg, #0EA5E9, #10B981); }
.value-card:nth-child(3)::before { background: linear-gradient(90deg, #8B5CF6, #2563EB); }
.value-card:nth-child(4)::before { background: linear-gradient(90deg, #10B981, #0EA5E9); }

.value-card:hover {
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.10);
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.15);
}

.value-num {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ==========================================
   7. OUR SERVICES & MOMO SIMULATOR
   ========================================== */
#services {
    background-color: var(--light-gray);
}

.services-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.services-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.services-nav-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    border: var(--border-dark-style);
    transition: var(--transition-smooth);
}

.services-nav-item:hover, .services-nav-item.active {
    background-color: var(--bg-navy);
    color: var(--white);
    border-color: var(--bg-navy);
}

.services-nav-item svg {
    color: var(--royal-blue);
    transition: var(--transition-smooth);
}

.services-nav-item:hover svg, .services-nav-item.active svg {
    color: var(--accent-sky);
    transform: translateX(4px);
}

.service-view-panel {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px;
    border: var(--border-dark-style);
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
}

.service-view-header h3 {
    font-size: 1.75rem;
    font-weight: 850;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-view-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.service-subfeatures-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--royal-blue);
    margin-bottom: 16px;
    display: block;
}

.service-subfeatures-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.service-feature-pill {
    background-color: var(--light-gray);
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-feature-pill span {
    width: 8px;
    height: 8px;
    background-color: var(--royal-blue);
    border-radius: 50%;
}

/* Momo Sandbox Styles */
.momo-sandbox-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 24px;
    border: var(--border-dark-style);
    margin-bottom: 40px;
    align-items: center;
}

.momo-sandbox-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.momo-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.momo-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--text-dark);
}

.momo-operator-btn {
    border: 1px solid rgba(0,0,0,0.15);
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.momo-operator-btn.active, .momo-operator-btn:hover {
    background-color: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
}

.momo-phone-frame {
    background-color: #222;
    border-radius: 20px;
    padding: 14px 8px;
    height: 180px;
    display: flex;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.momo-screen {
    width: 100%;
    height: 100%;
    background-color: #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
}

.momo-screen-default {
    text-align: center;
    color: #888;
    font-size: 0.75rem;
}

.momo-prompt {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background-color: #fbfbfb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 5;
    color: #333;
    display: none;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.momo-prompt.show {
    display: block;
    transform: translateY(0);
}

.momo-prompt-title {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #eab308;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.momo-prompt-desc {
    font-size: 0.72rem;
    line-height: 1.3;
}

.momo-prompt-btn {
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.momo-prompt-btn.decline {
    background-color: #eee;
    color: #555;
}

/* ==========================================
   9. WHY CHOOSE US
   ========================================== */
#why-us {
    background-color: var(--bg-navy);
    color: var(--white);
}

#why-us .section-title {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--bg-card);
    border: var(--border-style);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition-bounce);
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-sky);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.why-icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: rgba(37, 99, 235, 0.15);
    color: var(--accent-sky);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.why-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================
   10. INTERACTIVE DIGITAL DIAGNOSTIC WIZARD
   ========================================== */
#diagnostic {
    background-color: var(--light-gray);
}

.diag-wrapper {
    background-color: var(--white);
    border-radius: 16px;
    border: var(--border-dark-style);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    min-height: 320px;
}

.diag-step {
    display: none;
}

.diag-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.diag-question {
    font-size: 1.35rem;
    font-weight: 750;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.diag-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diag-opt-btn {
    width: 100%;
    background-color: var(--light-gray);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.diag-opt-btn:hover {
    background-color: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   11. PORTFOLIO SHOWCASE & B2B CASE STUDIES
   ========================================== */
#portfolio {
    background-color: var(--white);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-muted);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.portfolio-filter-btn.active, .portfolio-filter-btn:hover {
    background-color: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
}

.portfolio-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.portfolio-b2b-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: var(--border-dark-style);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-bounce);
}

.portfolio-b2b-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.b2b-header-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.b2b-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--royal-blue);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b2b-body {
    padding: 30px;
}

.b2b-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.3;
}

.b2b-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.b2b-metric-box {
    background-color: var(--bg-light-input);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: var(--border-dark-style);
}

.b2b-metric-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--royal-blue);
}

.b2b-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.b2b-narrative {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2b-compare-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.compare-item h5 {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.compare-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.b2b-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.b2b-tech-stack span {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--royal-blue);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.b2b-testimonial {
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 18px;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
}

.b2b-testimonial cite {
    display: block;
    font-weight: 700;
    font-style: normal;
    margin-top: 8px;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.showcase-banner {
    background-color: rgba(37, 99, 235, 0.04);
    border: 2px dashed rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.showcase-banner h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.showcase-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   12. CLIENT TESTIMONIALS MODULE
   ========================================== */
#testimonials {
    background-color: var(--white);
}
.testimonials-grid-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.test-card {
    background-color: var(--bg-light-input);
    border-radius: 12px;
    padding: 40px;
    border: var(--border-dark-style);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.test-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.test-user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.test-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--royal-blue);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.test-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.test-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================
   13. ONLINE ESTIMATE GENERATOR STYLE
   ========================================== */
.calc-grid-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    background-color: var(--bg-light-input);
    border-radius: 16px;
    border: var(--border-dark-style);
    padding: 48px;
}
.calc-questions {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.calc-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calc-field-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}
.calc-select-control {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-dark);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}
.calc-select-control:focus {
    border-color: var(--royal-blue);
}
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 5px;
    outline: none;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--royal-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(37,99,235,0.4);
    transition: var(--transition-smooth);
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.calc-features-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.calc-check-card {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.calc-check-card input {
    display: none;
}
.calc-check-box-visual {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.calc-check-box-visual::after {
    content: '✓';
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 900;
    display: none;
}
.calc-check-card input:checked + .calc-check-box-visual {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}
.calc-check-card input:checked + .calc-check-box-visual::after {
    display: block;
}
.calc-check-card:hover {
    border-color: var(--royal-blue);
}
.calc-scorecard {
    background-color: var(--bg-navy);
    border-radius: 12px;
    padding: 40px;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: var(--border-style);
}
.calc-scorecard h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.calc-scorecard p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.calc-pricing-box {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--royal-blue);
    margin: 30px 0;
}

/* ==========================================
   14. INTERACTIVE BOOKING CALENDAR SYSTEM
   ========================================== */
.booking-grid-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: var(--border-dark-style);
    padding: 48px;
}
.calendar-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.calendar-month-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}
.calendar-nav-arrow {
    background-color: var(--bg-light-input);
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.calendar-nav-arrow:hover {
    background-color: var(--royal-blue);
    color: #FFFFFF;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}
.calendar-day-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-bottom: 8px;
}
.calendar-day-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.calendar-day-cell:hover:not(.empty) {
    background-color: var(--bg-light-input);
}
.calendar-day-cell.active {
    background-color: var(--royal-blue) !important;
    color: #FFFFFF !important;
    font-weight: 700;
}
.calendar-day-cell.empty {
    cursor: default;
}
.booking-options-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.booking-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.booking-field-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}
.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.slot-btn {
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--bg-light-input);
    color: var(--text-dark);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.slot-btn.active, .slot-btn:hover {
    background-color: var(--royal-blue);
    color: #FFFFFF;
    border-color: var(--royal-blue);
}

/* ==========================================
   15. SIMULATED CLIENT OPERATIONS PORTAL
   ========================================== */
.client-dashboard-box {
    display: grid;
    grid-template-columns: 0.8fr 2.2fr;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: var(--border-dark-style);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}
.dash-meta-panel {
    background-color: var(--bg-light-input);
    padding: 30px;
    border-right: var(--border-dark-style);
}
.dash-user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}
.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--royal-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.dash-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dash-nav-item {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.dash-nav-item.active, .dash-nav-item:hover {
    background-color: var(--white);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.dash-content-pane {
    padding: 40px;
}
.timeline-track-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    margin-top: 30px;
}
.timeline-track-wrapper::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 12.5%;
    width: 75%;
    height: 3px;
    background-color: rgba(255,255,255,0.05);
    z-index: 1;
}
body.light-theme .timeline-track-wrapper::before {
    background-color: rgba(0,0,0,0.05);
}
.timeline-step {
    text-align: center;
    z-index: 5;
    position: relative;
}
.timeline-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-light-input);
    border: 3px solid var(--white);
    margin: 0 auto 10px auto;
    transition: var(--transition-smooth);
}
.timeline-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.timeline-step.done .timeline-step-dot {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}
.timeline-step.done .timeline-step-label {
    color: var(--text-dark);
}
.timeline-step.active .timeline-step-dot {
    background-color: var(--royal-blue);
    box-shadow: 0 0 10px var(--royal-blue);
}
.timeline-step.active .timeline-step-label {
    color: var(--royal-blue);
    font-weight: 700;
}

/* Chat Console inside Dashboard mockup */
.dash-chat-console {
    background-color: var(--bg-light-input);
    border-radius: 8px;
    padding: 20px;
    border: var(--border-dark-style);
}
.dash-chat-history {
    height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 8px;
}
.dash-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    max-width: 80%;
    line-height: 1.4;
}
.dash-bubble.partner {
    background-color: var(--bg-light-input);
    color: var(--text-dark);
    align-self: flex-start;
}
body.light-theme .dash-bubble.partner {
    background-color: #E2E8F0;
}
.dash-bubble.self {
    background-color: var(--royal-blue);
    color: #FFFFFF;
    align-self: flex-end;
}
.dash-chat-input-bar {
    display: flex;
    padding: 12px 16px;
    border-top: var(--border-dark-style);
    background-color: var(--bg-light-input);
    gap: 8px;
}
.dash-chat-input-bar input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* Invoices lists Inside Dashboard */
.dash-invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light-input);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 12px;
    border: var(--border-dark-style);
}
.dash-invoice-row strong {
    font-size: 0.85rem;
    color: var(--text-dark);
}


/* ==========================================
   ORDER CENTER — INVOICE & RECEIPT GENERATOR
   ========================================== */
.oc-generator {
    background-color: var(--bg-light-input);
    border: var(--border-dark-style);
    border-radius: 12px;
    padding: 26px;
}
.oc-row {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}
.oc-row-2 { grid-template-columns: 1fr 1fr; }
.oc-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.oc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.oc-field label,
.oc-block-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.oc-block-label {
    display: block;
    margin: 6px 0 10px;
}
.oc-field input,
.oc-field select,
.oc-item-row input {
    background-color: var(--bg-card);
    border: var(--border-dark-style);
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
    width: 100%;
}
.oc-field input:focus,
.oc-field select:focus,
.oc-item-row input:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.oc-field input[readonly] {
    color: var(--text-muted);
    cursor: default;
}
.oc-doctype {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.oc-type-btn {
    border: var(--border-dark-style);
    background-color: var(--bg-card);
    color: var(--text-muted);
    padding: 11px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.oc-type-btn.active {
    background: linear-gradient(135deg, var(--royal-blue), var(--sea-blue));
    color: #FFFFFF;
    border-color: transparent;
}
.oc-items-head {
    display: grid;
    grid-template-columns: 3fr 0.8fr 1.3fr 1.3fr 36px;
    gap: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 2px 8px;
}
.oc-item-row {
    display: grid;
    grid-template-columns: 3fr 0.8fr 1.3fr 1.3fr 36px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.oc-item-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 11px 4px;
    text-align: right;
}
.oc-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: var(--border-dark-style);
    background-color: var(--bg-card);
    color: var(--error);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.oc-item-remove:hover {
    background-color: var(--error);
    color: #FFFFFF;
    border-color: transparent;
}
.oc-add-item {
    background: none;
    border: 1px dashed rgba(37, 99, 235, 0.5);
    color: var(--royal-blue);
    padding: 9px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin: 6px 0 22px;
    transition: var(--transition-smooth);
}
.oc-add-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
}
.oc-controls { margin-top: 4px; }
.oc-summary {
    border-top: var(--border-dark-style);
    padding-top: 16px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    margin-left: auto;
}
.oc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.oc-summary-row strong { color: var(--text-dark); }
.oc-summary-row.oc-grand {
    border-top: var(--border-dark-style);
    padding-top: 10px;
    margin-top: 2px;
    font-size: 1rem;
}
.oc-summary-row.oc-grand span { color: var(--text-dark); font-weight: 700; }
.oc-summary-row.oc-grand strong { color: var(--royal-blue); font-size: 1.15rem; }
.oc-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .oc-row-2, .oc-row-3 { grid-template-columns: 1fr; }
    .oc-items-head { display: none; }
    .oc-item-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
        background-color: var(--bg-card);
        border-radius: 8px;
        border: var(--border-dark-style);
    }
    .oc-item-row input:first-child { grid-column: 1 / -1; }
    .oc-item-amount { text-align: left; }
    .oc-summary { max-width: 100%; }
    .oc-actions { flex-direction: column; }
}

/* Payment Gateway Methods select */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.pay-method-btn {
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.pay-method-btn.active, .pay-method-btn:hover {
    background-color: var(--royal-blue);
    color: #FFFFFF;
    border-color: var(--royal-blue);
}

/* ==========================================
   16. LIVE AI CHATBOT ASSISTANT
   ========================================== */
#ai-chat-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9996;
}
#ai-chat-trigger {
    width: auto;
    height: 52px;
    padding: 0 20px 0 16px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--royal-blue), var(--sea-blue));
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.35);
    cursor: pointer;
    border: none;
    transition: var(--transition-bounce);
}
#ai-chat-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
}
#ai-chat-window {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 320px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: var(--border-dark-style);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transform-origin: bottom left;
    transition: var(--transition-bounce);
}
#ai-chat-window.active {
    display: flex;
    transform: scale(1);
}
.ai-chat-header {
    background-color: var(--bg-navy);
    padding: 16px 20px;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-style);
}
.ai-chat-body {
    height: 240px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-chat-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 85%;
}
.ai-chat-bubble.ai {
    background-color: var(--bg-light-input);
    color: #FFFFFF; /* Fixed contrast bug */
}
body.light-theme .ai-chat-bubble.ai {
    background-color: #E2E8F0;
    color: #0F172A;
}
.ai-chat-bubble.user {
    background-color: var(--royal-blue);
    color: #FFFFFF;
    align-self: flex-end;
}
.ai-chat-suggested {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px 16px;
}
.ai-suggest-btn {
    border: 1px solid rgba(255,255,255,0.08);
    background-color: var(--bg-light-input);
    color: var(--text-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
body.light-theme .ai-suggest-btn {
    border-color: rgba(0,0,0,0.05);
}
.ai-suggest-btn:hover {
    background-color: var(--royal-blue);
    color: #FFFFFF;
}
.ai-chat-input-bar {
    display: flex;
    padding: 12px 16px;
    border-top: var(--border-dark-style);
    background-color: var(--bg-light-input);
    gap: 8px;
}
.ai-chat-input-bar input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* ==========================================
   17. PRICING GRID MODULE
   ========================================== */
#pricing {
    background-color: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    border: var(--border-dark-style);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition-bounce);
}

.pricing-card.premium {
    border-color: var(--royal-blue);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.06);
}

.pricing-card.premium::after {
    content: 'Recommended';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--royal-blue);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.price-label {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.price-label span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features-list {
    list-style: none;
    margin-bottom: 32px;
    border-top: var(--border-dark-style);
    padding-top: 20px;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pricing-feature-item svg {
    color: var(--royal-blue);
    flex-shrink: 0;
}

/* ==========================================
   18. BLOG MODULE (WITH PREVIEW LIGHTBOX)
   ========================================== */
#blog {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 36px;
    border: var(--border-dark-style);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.blog-card:hover {
    background-color: var(--white);
    border-color: var(--royal-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

.blog-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--royal-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.blog-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Reading lightbox overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 48px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-bounce);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-content-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   19. REQUEST A QUOTE & CLIENT DROPZONE
   ========================================== */
#quote {
    background-color: var(--bg-navy);
    color: var(--white);
}

#quote .section-title {
    color: var(--white);
}

.quote-wrapper {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: var(--border-style);
    padding: 60px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    max-width: 900px;
    margin: 0 auto;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.quote-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-group.full-width {
    grid-column: span 2;
}

.quote-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.quote-control {
    background-color: #1b2e46;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.quote-control:focus {
    border-color: var(--accent-sky);
    outline: none;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.quote-control option {
    background-color: var(--bg-card);
    color: var(--white);
}

textarea.quote-control {
    min-height: 120px;
    resize: vertical;
}

/* Specification Dropzone styling */
#file-dropzone {
    background-color: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
#file-dropzone.dragover {
    border-color: var(--accent-sky);
    background-color: rgba(37,99,235,0.05);
}
#file-dropzone svg {
    color: var(--text-muted);
}
#dropzone-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ==========================================
   20. CONTACT US MODULE
   ========================================== */
#contact {
    background-color: var(--white);
    padding: 140px 0 100px;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-details-panel h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-details-panel p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-frame {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-item h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-card-item p, .contact-card-item a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.contact-card-item a:hover {
    color: var(--royal-blue);
}

.hours-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 40px;
    border: var(--border-dark-style);
}

.hours-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.open {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.closed {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.hours-list {
    list-style: none;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row.inactive {
    color: var(--text-muted);
}

/* ==========================================
   21. TOAST ENGINE SYSTEM
   ========================================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: var(--bg-card);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-left: 4px solid var(--accent-sky);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 320px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* ==========================================
   22. FLOATING WHATSAPP PILL
   ========================================== */
#whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    z-index: 9995;
    transition: var(--transition-bounce);
}

#whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
}

.wa-ping-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #25D366;
    animation: waPing 2s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes waPing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================
   23. BACK TO TOP BUTTON COMPONENT
   ========================================== */
#back-to-top {
    position: fixed;
    bottom: 105px; /* Safely floating above the WhatsApp widget */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--royal-blue);
    color: #FFFFFF !important;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 9994;
    transition: var(--transition-bounce);
}

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

#back-to-top:hover {
    background-color: var(--sea-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.35);
}

/* ==========================================
   24. FOOTER MODULE
   ========================================== */
footer {
    background-color: var(--bg-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px 0;
    border-top: var(--border-style);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

/* Footer logo: same image as the header, rendered white for the dark footer */
.footer-logo {
    display: block;
    height: 48px;
    margin-bottom: 16px;
}
.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-top: 15px;
    max-width: 320px;
}

/* Styled social media links matrix inside footer branded container */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-smooth);
}
.footer-socials a:hover {
    background-color: var(--royal-blue);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-links h5 {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--accent-sky);
}

.footer-bottom {
    border-top: var(--border-style);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: #FFFFFF;
}

/* ==========================================
   22. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 991px) {
    .hero-grid, .about-split, .services-wrapper, .contact-split {
        grid-template-columns: 1fr;
    }

    .hero-text-block {
        text-align: center;
    }

    .hero-bullets-box {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .slider-wrapper {
        margin: 0 auto;
    }

    .about-mv-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .momo-sandbox-box, .calc-grid-wrapper, .testimonials-grid-block, .booking-grid-box, .client-dashboard-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition-smooth);
        z-index: 1005;
    }

    .nav-menu.active { right: 0; }

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

    .hero-text-block {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .hero-bullets-box { grid-template-columns: 1fr; }

    .quote-form-grid { grid-template-columns: 1fr; }
    .quote-group.full-width { grid-column: span 1; }

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

    /* Values: 2-col on tablet */
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Services */
    .services-nav-list { gap: 8px; }
    .service-view-panel { padding: 24px; }

    /* Portfolio */
    .portfolio-grid-expanded { grid-template-columns: 1fr; }
    .b2b-metrics-grid { grid-template-columns: repeat(2, 1fr); }

    /* Calculator */
    .calc-grid-wrapper { grid-template-columns: 1fr; }
    .calc-checklist { grid-template-columns: 1fr; }

    /* Booking */
    .booking-grid-box {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    /* Dashboard: stack nav sidebar above content */
    .client-dashboard-box { grid-template-columns: 1fr; }
    .dash-meta-panel { border-right: none; border-bottom: var(--border-dark-style); padding: 20px 24px; }
    .dash-nav-menu { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .dash-nav-item { font-size: 0.8rem; padding: 8px 14px; }
    .dash-content-pane { padding: 24px; overflow-x: auto; }
    .timeline-track-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }
    .timeline-track-wrapper::before { display: none; }

    /* Testimonials */
    .testimonials-grid-block { grid-template-columns: 1fr; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-split { grid-template-columns: 1fr; }
    .hours-card { padding: 24px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ── Phones (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
    .hero-heading { font-size: 1.75rem; letter-spacing: -1px; }
    .hero-sub { font-size: 0.9rem; }
    .hero-text-block { padding: 22px 18px; }
    .hero-bullets-box { gap: 8px; }
    .hero-bullet { font-size: 0.78rem; padding: 8px 12px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; text-align: center; }

    .section-title { font-size: 1.5rem; }
    .section-tag { font-size: 0.7rem; }

    /* Values: single col on phones */
    .values-grid { grid-template-columns: 1fr; }
    .value-card { padding: 24px 20px; }

    /* About MV cards */
    .about-mv-grid { grid-template-columns: 1fr; }
    .mv-card { padding: 24px; }

    /* Services */
    .services-wrapper { grid-template-columns: 1fr; }

    /* Portfolio */
    .b2b-metrics-grid { grid-template-columns: 1fr; }
    .portfolio-case-study { padding: 20px; }

    /* Booking */
    .booking-slots-grid { grid-template-columns: 1fr 1fr; }
    .calendar-day-cell { height: 36px; font-size: 0.75rem; }

    /* Dashboard */
    .dash-content-pane { padding: 16px; }
    .timeline-track-wrapper { grid-template-columns: 1fr 1fr; }

    /* Testimonials */
    .test-card { padding: 20px; }

    /* Pricing */
    .pricing-card { padding: 24px; }

    /* Blog */
    .blog-card { padding: 20px; }

    /* Contact */
    .contact-card-item { flex-direction: column; gap: 12px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-socials { gap: 10px; }

    /* Misc */
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .section { padding: 60px 0; }
    .container { padding: 0 16px; }
}

/* ==========================================
   DARK-CARD TEXT CONTRAST FIX
   Components sitting on dark navy card backgrounds
   (--bg-card / --bg-light-input) inside light/white
   sections were inheriting dark text and rendering
   invisible. Redefine text tokens to light inside
   those cards (this also catches inline var()-based
   styles), then restore dark text on the few nested
   white surfaces (dropdowns, feature cards, active nav).
   ========================================== */
.booking-grid-box,
.client-dashboard-box,
.test-card,
.calc-grid-wrapper,
.b2b-metric-box,
.mv-card,
#ai-chat-window {
    --text-dark: #F1F5F9;
    --text-muted: #94A3B8;
    color: #F1F5F9;
}
/* Restore dark text on nested light/white surfaces */
.calc-select-control,
.calc-check-card,
#dash-chat-input,
.client-dashboard-box .dash-nav-item.active,
.client-dashboard-box .dash-nav-item:hover {
    --text-dark: #0F172A;
    --text-muted: #64748B;
    color: #0F172A;
}

/* Hidden admin gateway dot in footer */
.admin-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    margin-left: 7px;
    vertical-align: middle;
    cursor: default;
    transition: background 0.3s ease;
}
.admin-dot:hover {
    background: rgba(37, 99, 235, 0.6);
    cursor: pointer;
}

/* ============================================================
   ONLINE QUOTE GENERATOR — colorful tiered + feature pricing
   ============================================================ */
#calculator {
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF4FF 100%);
}
.qg-currency-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}
.qg-currency-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.qg-currency-toggle {
    display: inline-flex;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 5px;
    gap: 3px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.08);
}
.qg-cur-btn {
    border: none; background: transparent;
    padding: 9px 18px; border-radius: 9px;
    font-weight: 700; font-size: 0.88rem;
    color: var(--text-muted); cursor: pointer;
    transition: all 0.2s ease; font-family: inherit;
}
.qg-cur-btn.active {
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.qg-fx-note { font-size: 0.75rem; color: var(--text-muted); width: 100%; text-align: center; }

.qg-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.qg-loading {
    grid-column: 1 / -1; text-align: center; padding: 60px;
    color: var(--text-muted); font-style: italic;
}
.qg-service-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 30px 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.qg-service-card:hover {
    box-shadow: 0 18px 44px rgba(37,99,235,0.13);
    transform: translateY(-4px);
}
.qg-accent-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
}
.qg-service-head h3 {
    font-size: 1.25rem; font-weight: 800;
    color: var(--text-dark); margin-bottom: 5px; margin-top: 8px;
}
.qg-service-head p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.qg-tiers { display: flex; flex-direction: column; gap: 12px; }
.qg-tier {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 13px;
    background: #FAFBFF;
    transition: all 0.2s ease;
}
.qg-tier:hover {
    border-color: var(--royal-blue);
    background: rgba(37,99,235,0.04);
    transform: translateX(3px);
}
.qg-tier-info { min-width: 0; }
.qg-tier-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.qg-tier-blurb { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }
.qg-tier-right { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.qg-tier-price {
    font-weight: 800; font-size: 1.1rem;
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; text-align: right;
}
.qg-tier-price small { font-size: 0.66rem; -webkit-text-fill-color: var(--text-muted); font-weight: 600; }
.qg-was { font-size: 0.78rem; font-weight: 600; text-decoration: line-through; -webkit-text-fill-color: #94A3B8; color: #94A3B8; margin-right: 4px; }
.qg-sale-badge { display: inline-block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; background: #EF4444; color: #fff; padding: 3px 9px; border-radius: 20px; vertical-align: middle; margin-left: 6px; -webkit-text-fill-color: #fff; }
#qg-promo-banner { background: linear-gradient(135deg, #EF4444, #F59E0B); color: #fff; text-align: center; padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; margin-bottom: 24px; box-shadow: 0 6px 20px rgba(239,68,68,0.25); animation: promoPulse 2.5s ease-in-out infinite; }
@keyframes promoPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.01)} }
.qg-tier-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    color: #fff; border: none;
    padding: 9px 18px; border-radius: 9px;
    font-weight: 700; font-size: 0.78rem; cursor: pointer;
    transition: all 0.2s ease; font-family: inherit;
    white-space: nowrap; text-decoration: none;
}
.qg-tier-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.qg-tier-btn.order {
    background: #fff; color: var(--royal-blue);
    border: 1.5px solid var(--royal-blue);
}
.qg-tier-btn.order:hover { background: var(--royal-blue); color: #fff; }

/* Feature-based card (LMS) */
.qg-feature-card { border: 1.5px solid rgba(37,99,235,0.18); }
.qg-feature-body {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    margin-bottom: 20px;
}
.qg-feature-base {
    background: linear-gradient(160deg, #EEF4FF, #F8FAFF);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 14px;
    padding: 22px;
}
.qg-feat-base-label {
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--royal-blue); margin-bottom: 8px;
}
.qg-feat-base-blurb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.qg-feat-base-price {
    font-weight: 800; font-size: 1.6rem;
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.qg-feat-base-price small { font-size: 0.62rem; -webkit-text-fill-color: var(--text-muted); display:block; }
.qg-feat-list-label { font-size: 0.78rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.qg-feat {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.07); border-radius: 11px;
    cursor: pointer; transition: all 0.18s ease;
}
.qg-feat:hover { border-color: var(--royal-blue); background: rgba(37,99,235,0.03); }
.qg-feat.checked { border-color: var(--royal-blue); background: rgba(37,99,235,0.06); }
.qg-feat input { width: 18px; height: 18px; accent-color: var(--royal-blue); cursor: pointer; flex-shrink: 0; }
.qg-feat-name { flex: 1; font-size: 0.86rem; font-weight: 600; color: var(--text-dark); }
.qg-feat-price { font-size: 0.83rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.qg-feature-total {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0D1B2A, #152438);
    border-radius: 14px; flex-wrap: wrap;
}
.qg-total-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #94A3B8; margin-bottom: 4px; }
.qg-total-amount { font-size: 1.7rem; font-weight: 800; color: #fff; }
.qg-total-amount small { font-size: 0.6rem; color: #94A3B8; display: block; }
.qg-feature-total .qg-tier-btn { padding: 12px 22px; font-size: 0.85rem; }

.qg-disclaimer { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 28px; font-style: italic; }

@media (max-width: 768px) {
    .qg-services-grid { grid-template-columns: 1fr; }
    .qg-feature-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .qg-tier { flex-direction: column; align-items: stretch; }
    .qg-tier-right { flex-direction: row; align-items: center; justify-content: space-between; }
    .qg-feature-total { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Client Login button on dashboard preview */
.client-login-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    font-size: 0.9rem;
}

/* ============================================================
   ORDER MODAL (homepage order flow)
   ============================================================ */
.order-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(8,16,28,0.6);
    backdrop-filter: blur(5px);
    z-index: 9500;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.order-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: orderPop 0.25s ease;
}
@keyframes orderPop { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.order-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 26px; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.order-modal-head h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); }
.order-modal-x {
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: var(--text-muted); cursor: pointer; padding: 0 4px;
}
.order-modal-x:hover { color: var(--text-dark); }
.order-modal-body { padding: 24px 26px; }
.order-summary {
    background: linear-gradient(135deg, #EEF4FF, #F8FAFF);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.order-summary-svc { font-weight: 800; font-size: 1rem; color: var(--text-dark); }
.order-summary-tier { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.order-summary-price {
    font-size: 1.5rem; font-weight: 800; margin-top: 10px;
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.order-coupon-row { display: flex; gap: 8px; margin-top: 14px; }
.order-coupon-row input { flex: 1; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9rem; text-transform: uppercase; }
.order-coupon-row button { padding: 10px 18px; background: #0F172A; color: #fff; border-radius: 8px; font-weight: 700; font-size: 0.85rem; }
.order-coupon-row button:hover { background: #1e293b; }
#order-coupon-msg { margin-top: 8px; font-size: 0.82rem; min-height: 18px; }
.coupon-good { color: #059669; font-weight: 600; }
.coupon-bad { color: #DC2626; font-weight: 600; }
.coupon-checking { color: #64748b; }
.order-field { margin-bottom: 14px; }
.order-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.order-field input, .order-field textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid rgba(0,0,0,0.12); border-radius: 10px;
    font-size: 0.9rem; font-family: inherit; color: var(--text-dark);
    background: #FAFBFF;
}
.order-field input:focus, .order-field textarea:focus { border-color: var(--royal-blue); outline: none; }
.order-field textarea { min-height: 70px; resize: vertical; }
.order-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-success-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #0EA5E9);
    color: #fff; font-size: 2rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
#order-success-step { text-align: center; }
#order-success-step h4 { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
#order-success-step p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
#order-pay-area .btn { width: 100%; }
.order-pay-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff; padding: 14px; border-radius: 11px;
    font-weight: 800; font-size: 0.95rem; text-decoration: none;
    transition: all 0.2s ease;
}
.order-pay-btn:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(16,185,129,0.35); }
@media (max-width: 480px) {
    .order-field-row { grid-template-columns: 1fr; }
}

/* Management Systems — type dropdown */
.qg-multi-select {
    margin-bottom: 20px;
}
.qg-multi-select label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.qg-multi-select select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(37,99,235,0.25);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dark);
    background: #FAFBFF;
    cursor: pointer;
    transition: all 0.2s ease;
}
.qg-multi-select select:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.qg-multi-card .qg-accent-bar { height: 6px; }

/* Branded modal header — prominent logo */
.order-modal-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 34px 26px 26px;
    background: linear-gradient(135deg, #EEF4FF, #F8FAFF);
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(37,99,235,0.08);
}
.order-brand-logo {
    height: 56px;
    object-fit: contain;
}
.order-brand-slogan {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--royal-blue);
    letter-spacing: 0.3px;
    text-align: center;
}
.order-modal-brand .order-modal-x {
    position: absolute;
    top: 14px;
    right: 18px;
}
.order-modal .order-modal-head {
    padding-top: 20px;
    padding-bottom: 4px;
    text-align: center;
}

/* ── Instant Quote Estimator ── */
.est-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; align-items: start; }
.est-controls { display: flex; flex-direction: column; gap: 20px; }
.est-step { }
.est-label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--text-dark, #0F172A); margin-bottom: 10px; }
.est-select { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 0.95rem; background: #fff; color: #0F172A; }
.est-options { display: flex; gap: 8px; }
.est-opt { flex: 1; padding: 11px 8px; border: 1.5px solid #d1d5db; border-radius: 10px; background: #fff; color: #475569; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.15s; }
.est-opt:hover { border-color: #2563EB; }
.est-opt.active { background: #2563EB; color: #fff; border-color: #2563EB; }
.est-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #334155; cursor: pointer; }
.est-check input { width: 16px; height: 16px; accent-color: #2563EB; cursor: pointer; }
.est-result { background: linear-gradient(135deg, #0F172A, #1E293B); border-radius: 18px; padding: 30px 26px; text-align: center; color: #fff; position: sticky; top: 100px; }
.est-result-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: #94A3B8; font-weight: 700; }
.est-range { font-size: 2rem; font-weight: 800; margin: 12px 0; background: linear-gradient(135deg, #60A5FA, #34D399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.est-note { font-size: 0.8rem; color: #94A3B8; line-height: 1.5; margin-bottom: 20px; }
.est-cta { width: 100%; }
.est-trust { font-size: 0.72rem; color: #64748B; margin-top: 14px; }
@media (max-width: 768px) {
  .est-wrap { grid-template-columns: 1fr; }
  .est-result { position: static; }
  .est-addons { grid-template-columns: 1fr; }
}

/* Footer location label (non-link) */
.footer-loc { color: inherit; opacity: 0.85; }

/* ── Find Us / Map ── */
.map-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; max-width: 1000px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(15,23,42,0.12); background: #fff; }
.map-frame { min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; display: block; }
.map-info { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #0F172A, #1E293B); color: #fff; }
.map-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.map-line { color: #CBD5E1; font-size: 0.92rem; margin-bottom: 12px; line-height: 1.5; }
.map-line strong { color: #fff; }
.map-info a { color: #60A5FA; text-decoration: none; }
.map-info a:hover { text-decoration: underline; }
.map-directions { margin-top: 16px; text-align: center; text-decoration: none !important; color: #fff !important; }
@media (max-width: 768px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }
}

/* ── Quote Generator (comprehensive) additions ── */
.est-tiers { flex-direction: column; gap: 8px; }
.est-tiers .est-opt { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.est-tier-price { font-weight: 800; color: #2563EB; }
.est-tiers .est-opt.active .est-tier-price { color: #fff; }
.est-basebox { padding: 12px 14px; background: #f1f5f9; border-radius: 10px; font-size: 0.9rem; color: #334155; }
.est-feat-price { margin-left: auto; color: #2563EB; font-weight: 700; font-size: 0.82rem; }
.est-check { justify-content: flex-start; }
.est-breakdown { margin: 14px 0; text-align: left; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 12px 14px; }
.est-bd-row { font-size: 0.8rem; color: #CBD5E1; padding: 3px 0; display: flex; justify-content: space-between; }
.est-bd-rush { color: #FCD34D; font-style: italic; }
#est-suboptions { margin-top: 4px; }

/* ── Quote Generator: system highlights (fills the left panel space) ── */
.qg-sys-highlights { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(37,99,235,0.15); }
.qg-sys-highlights-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #2563EB; margin-bottom: 12px; }
.qg-sys-highlights ul { list-style: none; padding: 0; margin: 0; }
.qg-sys-highlights li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 0.88rem; color: #475569; line-height: 1.45; }
.qg-sys-highlights li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: #2563EB; color: #fff; border-radius: 50%; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── Atech Assistant — cute branded redesign ── */
#ai-chat-trigger { position: relative; }
.ai-trigger-label {
    color: #fff; font-size: 0.9rem; font-weight: 700;
    white-space: nowrap; letter-spacing: 0.2px;
}
#ai-chat-trigger::after {
    content: ""; position: absolute; top: -3px; right: -3px;
    width: 12px; height: 12px; background: #25D366; border: 2px solid #fff;
    border-radius: 50%;
}
#ai-chat-window { width: 350px; border-radius: 18px; box-shadow: 0 20px 60px rgba(15,23,42,0.28); }
.ai-chat-header {
    background: linear-gradient(135deg, var(--royal-blue, #1D4ED8), var(--sea-blue, #2563EB));
    padding: 16px 18px; border-bottom: none;
}
.ai-header-id { display: flex; align-items: center; gap: 12px; }
.ai-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.2); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.15rem; border: 2px solid rgba(255,255,255,0.35);
}
.ai-header-text { display: flex; flex-direction: column; line-height: 1.2; }
.ai-header-text strong { font-size: 0.98rem; color: #fff; }
.ai-status { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; color: rgba(255,255,255,0.85); margin-top: 2px; }
.ai-status-dot { width: 7px; height: 7px; background: #25D366; border-radius: 50%; animation: aiPulse 2s infinite; }
@keyframes aiPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
#ai-chat-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; opacity: 0.85; }
#ai-chat-close:hover { opacity: 1; }
.ai-chat-body { height: 300px; background: #F8FAFC; }
body:not(.light-theme) .ai-chat-body { background: var(--bg-card, #1E293B); }
.ai-chat-bubble { font-size: 0.85rem; padding: 11px 15px; border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.ai-chat-bubble.ai { border-bottom-left-radius: 4px; }
.ai-chat-bubble.user { border-bottom-right-radius: 4px; }
.ai-send-btn {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--royal-blue, #1D4ED8), var(--sea-blue, #2563EB));
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: transform 0.2s ease;
}
.ai-send-btn:hover { transform: scale(1.08); }
.ai-chat-footer { text-align: center; font-size: 0.66rem; color: var(--text-muted, #94A3B8); padding: 8px; border-top: 1px solid rgba(148,163,184,0.15); }
.ai-chat-typing { display: inline-flex; gap: 4px; padding: 12px 15px; }
.ai-chat-typing span { width: 7px; height: 7px; background: #94A3B8; border-radius: 50%; animation: aiTyping 1.2s infinite; }
.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTyping { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE-FIRST FIXES — images, floating buttons, chat widget
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. GLOBAL IMAGE SAFETY — never let any image overflow its container.
   This is the core fix for "images blasted wide" on phones. */
img {
    max-width: 100%;
    height: auto;
}

/* 2. FLOATING BUTTONS — keep them on-screen and reasonably sized on phones */
@media (max-width: 600px) {

    /* WhatsApp: smaller and safely inside the screen edge */
    #whatsapp-widget {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 16px;
    }
    #whatsapp-widget svg { width: 26px; height: 26px; }

    /* AI Assistant trigger: smaller, so its label doesn't dominate the screen */
    #ai-chat-container {
        bottom: 18px;
        left: 16px;
    }
    #ai-chat-trigger {
        height: 46px;
        padding: 0 14px 0 12px;
        gap: 7px;
        max-width: calc(100vw - 90px);   /* never wider than screen minus WhatsApp */
    }
    .ai-trigger-label {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #ai-chat-trigger svg { width: 18px; height: 18px; flex-shrink: 0; }

    /* AI chat WINDOW: fit the screen instead of a fixed 320px that can overflow */
    #ai-chat-window {
        width: calc(100vw - 32px);
        max-width: 360px;
        left: 0;
    }
}

/* 3. Extra-narrow phones (≤380px): hide the AI label text, keep just the icon
   bubble, so the two floating buttons never collide or run off-screen. */
@media (max-width: 380px) {
    .ai-trigger-label { display: none; }
    #ai-chat-trigger {
        width: 46px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    #ai-chat-trigger svg { width: 22px; height: 22px; }
}

/* 4. General overflow guard — 'clip' prevents sideways scroll WITHOUT creating
   a new scroll container (safe for scroll animations & IntersectionObserver) */
html { overflow-x: clip; }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE NAV / HAMBURGER — phones AND tablets get the drawer.
   (The full inline nav needs ~1150px+; anything narrower cramps and wraps.)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1150px) {
    /* Show the hamburger clearly */
    .burger {
        display: flex !important;
        margin-left: auto;
        margin-right: 8px;
        position: relative;
        z-index: 1200;
    }
    .burger span {
        background-color: #1D4ED8;   /* clear brand-blue bars, always visible */
        height: 3px;
    }

    /* Desktop inline nav becomes the slide-in drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 28px;
        gap: 26px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.18);
        transition: right 0.3s ease;
        z-index: 1150;
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }

    .nav-menu .nav-link {
        font-size: 1.05rem;
        color: #0f172a;
        width: 100%;
    }

    /* Make sure the header row lays out logo | burger cleanly */
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE SEGMENT CONTAINMENT — booking, quote form, and all section cards.
   Hard guarantees: nothing inside a card can exceed the screen width.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

    /* --- Hard clamp every major card/box to its container --- */
    .booking-grid-box, .quote-wrapper, .momo-sandbox-box, .calc-grid-wrapper,
    .testimonials-grid-block, .client-dashboard-box, .oc-summary,
    .portfolio-grid-expanded, .qg-feature-body {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* --- Grid blowout fix: children of grids may never force expansion --- */
    .booking-grid-box > *, .quote-form-grid > *, .calc-grid-wrapper > *,
    .booking-slots-grid > *, .calendar-grid > *, .qg-feature-body > * {
        min-width: 0 !important;
        max-width: 100%;
    }

    /* --- Form controls: always fluid, never wider than their card --- */
    .quote-control, .quote-group input, .quote-group select, .quote-group textarea,
    .booking-grid-box input, .booking-grid-box select,
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="date"], select, textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* --- Quote form card: phone-sized padding (was 60px) --- */
    .quote-wrapper { padding: 24px 18px; }

    /* --- Booking card: tighter, and calendar compact enough for 7 cols --- */
    .booking-grid-box { padding: 20px 14px; gap: 20px; }
    .calendar-grid { gap: 4px; }
    .calendar-day-cell { font-size: 0.78rem; border-radius: 6px; }
    .calendar-day-header { font-size: 0.62rem; }
    .booking-slots-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .slot-btn { padding: 10px 4px; font-size: 0.78rem; min-width: 0; }

    /* --- Buttons inside cards: fluid, never cut off --- */
    .booking-grid-box .btn, .quote-wrapper .btn,
    #confirm-booking-btn, .btn-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* --- Floating buttons must not cover the last content/footer --- */
    footer { padding-bottom: 110px !important; }

    /* --- Scroll-to-top: tuck it above the WhatsApp button, same column --- */
    #scroll-top-btn, .scroll-top, #back-to-top {
        bottom: 86px !important;
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* --- Final safety: long words/URLs can't force width --- */
    .booking-grid-box, .quote-wrapper, .section-desc, .mkt-card {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   SERVICE DETAILS REDESIGN — kill blank space, tight on all screens
   ═══════════════════════════════════════════════════════════════════════ */

/* Desktop + all sizes: the info panel hugs its content instead of
   stretching to match the (taller) features list — removes the blank gap */
.qg-feature-base { align-self: start; }

/* Highlights checklist: compact so it fills space usefully, not airily */
.qg-sys-highlights { margin-top: 16px; padding-top: 14px; }
.qg-sys-highlights li { margin-bottom: 7px; font-size: 0.84rem; }

@media (max-width: 768px) {
    /* Details stack tight: info panel, then features, no dead gaps */
    .qg-feature-body { gap: 14px; }
    .qg-feature-base { padding: 16px 14px; }
    .qg-feat-base-blurb { margin-bottom: 10px; }
    .qg-feat-base-price { font-size: 1.35rem; }

    .qg-sys-highlights { margin-top: 12px; padding-top: 12px; }
    .qg-sys-highlights li { font-size: 0.8rem; margin-bottom: 6px; padding-left: 24px; }

    /* Feature checkbox rows: compact and fully visible */
    .qg-feature-list { padding: 0; }
    .qg-feat { padding: 10px 12px; }
    .qg-feat-name { font-size: 0.84rem; }
    .qg-feat-price { font-size: 0.8rem; white-space: nowrap; }

    /* System dropdown + totals bar: full-width, comfortable to tap */
    .qg-sys-select, .qg-feature-body select { width: 100%; font-size: 0.9rem; }
    .qg-feature-total { flex-wrap: wrap; gap: 10px; }
    .qg-feature-total .qg-tier-btn { width: 100%; }

    /* Tiered services: tier rows stack cleanly */
    .qg-tier { flex-direction: column; align-items: stretch; gap: 8px; }
    .qg-tier-btn { width: 100%; }
}

/* ── Services section: mobile panel is compact, no forced blank height ── */
@media (max-width: 991px) {
    .service-view-panel {
        min-height: 0;
        padding: 24px 18px;
        gap: 16px;
    }
    .services-wrapper { gap: 20px; }
    .service-subfeatures-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   OUR SERVICES REDESIGN — compact 2-column list, no more blank void.
   All 15 services + the full detail panel are kept; only geometry changes.
   ═══════════════════════════════════════════════════════════════════════ */

/* The list becomes a tight 2-column grid, so its height roughly matches
   the detail panel beside it — eliminating the tall white void. */
.services-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.services-nav-item {
    padding: 13px 14px;
    font-size: 0.88rem;
    border-radius: 9px;
    line-height: 1.3;
    gap: 8px;
}
.services-nav-item svg { flex-shrink: 0; width: 14px; height: 14px; }

/* Detail panel: stays in view while browsing the list (desktop) */
@media (min-width: 992px) {
    .service-view-panel { position: sticky; top: 110px; }
}

/* Mobile: same 2-column compact grid (halves the scroll), chevrons hidden
   to give the names full width; panel follows with auto-scroll on tap. */
@media (max-width: 991px) {
    .services-nav-list { grid-template-columns: 1fr 1fr; gap: 8px; }
    .services-nav-item {
        padding: 11px 10px;
        font-size: 0.78rem;
        justify-content: flex-start;
        text-align: left;
    }
    .services-nav-item svg { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   OUR SERVICES — ACCORDION. Each service expands its details directly
   below itself. No side panel, no blank space, all content preserved.
   (These rules come last, overriding the earlier two-column layout.)
   ═══════════════════════════════════════════════════════════════════════ */
.services-wrapper { display: block; }
.service-view-panel { display: none !important; }

.services-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}
.services-nav-item {
    display: block;
    padding: 0;
    overflow: hidden;
}
/* the clickable header row (icon + name + chevron) */
.svc-acc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}
/* hover/open colouring applies to the HEAD only (body stays readable) */
.services-nav-item:hover, .services-nav-item.active {
    background-color: var(--white);
    color: var(--text-dark);
}
.svc-acc-head:hover, .services-nav-item.open .svc-acc-head {
    background-color: var(--bg-navy);
    color: var(--white);
}
.services-nav-item.open .svc-acc-head svg,
.svc-acc-head:hover svg { color: var(--white); transform: rotate(90deg); }
.svc-acc-head svg { display: inline-block; width: 14px; height: 14px; flex-shrink: 0; transition: var(--transition-smooth); }

/* the expanded details, directly below the header */
.svc-acc-body { padding: 0 20px; }
.services-nav-item.open .svc-acc-body { padding: 16px 20px 20px; }
.svc-acc-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}
.svc-acc-body .service-subfeatures-grid { margin-top: 10px; }
.svc-acc-cta { display: inline-block; margin-top: 16px; padding: 10px 22px; font-size: 0.9rem; }

@media (max-width: 768px) {
    .svc-acc-head { padding: 13px 14px; font-size: 0.9rem; }
    .services-nav-item.open .svc-acc-body { padding: 12px 14px 16px; }
    .svc-acc-body .service-subfeatures-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SLIDER — phone & tablet fixes: arrows out of the text, images good
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    /* Arrows: bottom corners, compact — never on top of the text again */
    .hero-slider-arrow {
        top: auto;
        transform: none;
        bottom: 14px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
        background-color: rgba(15, 23, 42, 0.45);
        border-color: rgba(255, 255, 255, 0.25);
    }
    .hero-slider-arrow:hover { transform: scale(1.05); }
    .hero-slider-arrow.prev { left: 16px; }
    .hero-slider-arrow.next { right: 16px; }

    /* Slide images: keep them covering, but with a consistent dark wash so
       the tall-narrow crop looks intentional and the text stays readable */
    .hero-slider-backing::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15,23,42,0.35), rgba(15,23,42,0.55));
        pointer-events: none;
    }
    .hero-slide-item { background-position: center top; }
}

/* ═══════════════════════════════════════════════════════════════════════
   OUR SERVICES — brand colour blend (royal blue → sea blue identity)
   ═══════════════════════════════════════════════════════════════════════ */
/* Closed heads: soft blue-tinted card with a royal-blue accent edge */
.services-nav-item {
    background: linear-gradient(160deg, #EEF4FF, #F8FAFF);
    border-left: 3px solid var(--royal-blue);
}
/* Open / hover head: the full Atech gradient (matches your buttons & chat) */
.svc-acc-head:hover,
.services-nav-item.open .svc-acc-head {
    background: linear-gradient(135deg, var(--royal-blue), var(--sea-blue));
    color: var(--white);
}
/* Open item's body: gentle blue-to-white wash under the details */
.services-nav-item.open {
    background: linear-gradient(180deg, #F4F8FF, #FFFFFF);
    border-left-color: var(--sea-blue);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.10);
}
.svc-acc-cta {
    background: linear-gradient(135deg, var(--royal-blue), var(--sea-blue));
    border: none;
}

/* ── Currency bar: wraps on phones so every currency (incl. ₵ GHS) is
   always visible and tappable — no more buttons cut off-screen ── */
@media (max-width: 768px) {
    .qg-currency-bar { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .qg-currency-toggle {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    .qg-cur-btn { padding: 7px 10px; font-size: 0.78rem; }
}
