/**
 * Responsive CSS â€” nizam10x Theme
 * Pixel-perfect responsive from 320px to 4K
 * NO horizontal scroll, NO overflow, NO layout breaks
 * ===================================================
 * @package Software_Services_Theme
 */

/* ===========================
   1. ROOT OVERFLOW PREVENTION
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body.drawer-open,
body.modal-open {
    overflow: hidden;
}

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* ===========================
   2. CONTAINER SYSTEM
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.container-sm  { max-width: 860px; }
.container-xs  { max-width: 640px; }

/* ===========================
   3. TOP BAR
   =========================== */
.top-bar {
    background: #1e1b4b;
    color: #eef2ff;
    font-size: 0.75rem;
    padding: 6px 0;
    width: 100%;
    overflow: hidden;
}

.top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-info-item a { color: #a0aec0; text-decoration: none; }
.top-info-item a:hover { color: #fff; }

/* ===========================
   4. HEADER
   =========================== */
.site-header {
    background: #0d1526;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(13, 21, 38, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
}

/* Brand / Logo */
.site-title-link {
    text-decoration: none;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-n   { color: #fff; }
.brand-10x { color: #6366f1; }

/* Desktop Nav */
.primary-navigation { flex: 1; }

.nav-menu, .primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.nav-menu > li > a,
.primary-menu > li > a {
    display: block;
    padding: 8px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.primary-menu > li > a:hover,
.nav-menu > li > a:focus,
.primary-menu > li > a:focus {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

/* Dropdown / sub-menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #151e35;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    z-index: 999;
    list-style: none;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 9px 18px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.sub-menu li a:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* The original six-pixel gap made dropdown links impossible to reach: a pointer
   leaving "Systems" closed the panel before it could enter the first item. */
.sub-menu { top:100%; margin-top:0; }
.sub-menu li a { color:#e2e8f0; }

/* High-contrast shared header, with a visitor-selectable palette. */
body.nzx-theme-light .site-header { background:rgba(255,255,255,.97); border-bottom-color:rgba(15,23,42,.13); }
body.nzx-theme-light .site-header.scrolled { background:rgba(255,255,255,.98); box-shadow:0 4px 24px rgba(15,23,42,.1); }
body.nzx-theme-light .brand-n { color:#14213b; }
body.nzx-theme-light .nav-menu > li > a, body.nzx-theme-light .primary-menu > li > a { color:#34445e; font-weight:600; }
body.nzx-theme-light .nav-menu > li > a:hover, body.nzx-theme-light .primary-menu > li > a:hover, body.nzx-theme-light .nav-menu > li > a:focus, body.nzx-theme-light .primary-menu > li > a:focus { color:#3730a3; background:#eef2ff; }
body.nzx-theme-light .sub-menu { background:#fff; border-color:rgba(15,23,42,.14); box-shadow:0 16px 32px rgba(15,23,42,.18); }
body.nzx-theme-light .sub-menu li a { color:#34445e; }
body.nzx-theme-light .sub-menu li a:hover { color:#3730a3; background:#eef2ff; }
body.nzx-theme-violet .site-header { background:#2e1065; border-bottom-color:rgba(255,255,255,.16); }
body.nzx-theme-violet .site-header.scrolled { background:rgba(46,16,101,.97); }

/* Shared design tokens ensure the picker affects normal pages, not only catalog pages. */
body.nzx-theme-light { --color-light-bg:#f8fafc; --color-light-surface:#fff; --color-light-card:#fff; --color-text-main:#0f172a; --color-text-body:#334155; --color-text-muted:#64748b; }
body.nzx-theme-violet { --color-primary:#7c3aed; --color-primary-hover:#6d28d9; --color-secondary:#a855f7; --color-secondary-hover:#9333ea; --color-primary-light:rgba(124,58,237,.11); --color-light-bg:#faf7ff; --color-light-surface:#fff; --color-light-card:#fff; --color-light-border:#e9ddff; --color-text-main:#26124e; --color-text-body:#4d3b72; --color-text-muted:#74628f; }
body.nzx-theme-night { --color-primary:#818cf8; --color-primary-hover:#a5b4fc; --color-secondary:#a78bfa; --color-secondary-hover:#c4b5fd; --color-primary-light:rgba(129,140,248,.16); --color-light-bg:#0b1220; --color-light-surface:#111b2e; --color-light-card:#15213a; --color-light-border:rgba(255,255,255,.13); --color-text-main:#f8fafc; --color-text-body:#d5deec; --color-text-muted:#a9b7cc; background:#0b1220; color:#d5deec; }
body.nzx-theme-night .site-header { background:#0d1526; } body.nzx-theme-night .site-header.scrolled { background:rgba(13,21,38,.98); }

.theme-switcher { position:relative; }
.theme-toggle { display:inline-flex; align-items:center; gap:.38rem; min-height:38px; padding:.45rem .68rem; border:1px solid currentColor; border-radius:8px; background:transparent; color:#cbd5e1; font:600 .8125rem var(--font-heading,inherit); cursor:pointer; }
.theme-toggle:hover, .theme-toggle:focus-visible { color:#fff; background:rgba(255,255,255,.1); outline:none; }
.theme-menu { position:absolute; top:calc(100% + 8px); right:0; width:178px; padding:.55rem; border:1px solid rgba(255,255,255,.16); border-radius:12px; background:#151e35; box-shadow:0 16px 36px rgba(0,0,0,.3); z-index:1200; }
.theme-menu[hidden] { display:none; }
.theme-menu-title { color:#94a3b8; padding:.35rem .55rem .45rem; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.theme-menu button { display:flex; align-items:center; gap:.6rem; width:100%; padding:.55rem; border:0; border-radius:7px; background:transparent; color:#f8fafc; font:600 .85rem var(--font-primary,inherit); text-align:left; cursor:pointer; }
.theme-menu button:hover, .theme-menu button.is-selected { background:rgba(255,255,255,.1); }
.theme-swatch { width:16px; height:16px; border:1px solid rgba(255,255,255,.3); border-radius:50%; flex:0 0 16px; }
.theme-swatch-light { background:linear-gradient(135deg,#fff 50%,#6366f1 50%); }.theme-swatch-violet { background:linear-gradient(135deg,#ede9fe 50%,#6d28d9 50%); }.theme-swatch-night { background:linear-gradient(135deg,#0d1526 50%,#818cf8 50%); }
body.nzx-theme-light .theme-toggle { color:#34445e; border-color:#cbd5e1; } body.nzx-theme-light .theme-toggle:hover, body.nzx-theme-light .theme-toggle:focus-visible { color:#3730a3; background:#eef2ff; }
body.nzx-theme-light .theme-menu { background:#fff; border-color:#d8e0ea; box-shadow:0 16px 36px rgba(15,23,42,.16); } body.nzx-theme-light .theme-menu-title { color:#64748b; } body.nzx-theme-light .theme-menu button { color:#26364e; } body.nzx-theme-light .theme-menu button:hover, body.nzx-theme-light .theme-menu button.is-selected { background:#eef2ff; color:#3730a3; }
@media(max-width:600px){ .theme-toggle-label { display:none; } .theme-toggle { padding:.45rem .58rem; } }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-header { white-space: nowrap; }

.btn-header span { display: inline; }

/* Hamburger toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===========================
   5. MOBILE DRAWER â€” FIXED
   =========================== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.is-active {
    display: block;
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 100vw);
    background: #0d1526;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mobile-brand {
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.mobile-menu-list li a,
.mobile-submenu-toggle {
    display: block;
    padding: 12px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-list li a:hover,
.mobile-submenu-toggle:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.mobile-submenu {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0 0 0 14px;
}

.mobile-submenu li a {
    font-size: 0.88rem;
    color: #94a3b8;
    padding: 9px 14px;
}

.mobile-submenu li a:hover { color: #fff; }

.mobile-drawer-cta {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.btn-block { display: block; width: 100%; text-align: center; }

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.mobile-contact-info a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
}

.mobile-contact-info a:hover { color: #fff; }

/* ===========================
   6. PAGE HERO
   =========================== */
.page-hero-section {
    background: linear-gradient(135deg, #0d1526 0%, #141e38 60%, #0f1e34 100%);
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-section h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    color: #fff;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.page-hero-desc {
    color: #94a3b8;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================
   7. SECTIONS
   =========================== */
.section {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-light { background: #f8fafc; }
.section-dark  { background: #0d1526; }

/* ===========================
   8. CARDS & GRIDS
   =========================== */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* System cards */
.system-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.system-card:hover {
    box-shadow: 0 12px 40px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

.system-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sys-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }

.sys-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
}

.sys-title:hover { color: #6366f1; }

.sys-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.sys-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sys-features li {
    font-size: 0.82rem;
    color: #475569;
}

.sys-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.sys-price span { font-size: 0.75rem; color: #94a3b8; display: block; }
.sys-price strong { font-size: 1.1rem; color: #6366f1; font-weight: 800; }

.sys-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===========================
   9. FILTER PILLS
   =========================== */
.filter-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.filter-pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* ===========================
   10. SYSTEM GROUP HEADERS
   =========================== */
.system-group {
    margin-bottom: 3rem;
}

.group-heading {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-heading span { font-size: 1.6rem; }

/* ===========================
   11. CONTACT PAGE GRID
   =========================== */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.section-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 0;
}

.info-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-link {
    display: block;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
}

.contact-link:hover { color: #6366f1; }

.whatsapp-link { color: #25d366 !important; font-weight: 600; }

.divider-sm { border: none; border-top: 1px solid #f1f5f9; margin: 1rem 0; }

.steps-list-sm {
    padding-left: 1.25rem;
    margin: 0;
}

.steps-list-sm li { font-size: 0.875rem; color: #475569; margin-bottom: 6px; line-height: 1.5; }

.trust-bar-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.trust-item-mini {
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 0.5rem;
}

.trust-num { display: block; font-size: 1.4rem; font-weight: 900; color: #6366f1; }
.trust-lbl { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }

/* ===========================
   12. FORMS
   =========================== */
.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-feedback.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-feedback.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.form-privacy { font-size: 0.78rem; color: #94a3b8; text-align: center; margin-top: 8px; }

/* ===========================
   13. BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border-color: #6366f1;
}

.btn-outline:hover { background: #6366f1; color: #fff; }

/* ===========================
   14. BREADCRUMBS
   =========================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.breadcrumbs a { color: #64748b; text-decoration: none; }
.breadcrumbs a:hover { color: #6366f1; }
.breadcrumbs .sep { color: #94a3b8; }

/* ===========================
   15. EYEBROW LABEL
   =========================== */
.eyebrow-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 100px;
    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

/* ===========================
   16. SECTION HEADINGS
   =========================== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-title  { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 0.75rem; line-height: 1.2; }
.section-subtitle { font-size: clamp(0.9rem, 2vw, 1.05rem); color: #64748b; line-height: 1.7; margin: 0; }

/* ===========================
   17. FOOTER
   =========================== */
.site-footer {
    background: #0a0e1a;
    color: #64748b;
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    width: 100%;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .site-title-link { font-size: 1.5rem; }

.footer-section h4 {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #a5b4fc; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

/* ===========================
   18. HERO SECTION (HOMEPAGE)
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #060d1f 0%, #0d1526 50%, #111827 100%);
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
    overflow: hidden;
    position: relative;
}

.hero-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text-col .hero-title {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 0.75rem 0 1.25rem;
    letter-spacing: -0.02em;
}

.hero-text-col .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ===========================
   19. SHOWCASE / MOCKUP WINDOWS
   =========================== */
.dashboard-mockup {
    background: #151e35;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-dot.red    { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green  { background: #22c55e; }

.mockup-body {
    padding: clamp(0.75rem, 2vw, 1.25rem);
    overflow: hidden;
}

/* ===========================
   20. SOLUTIONS SHOWCASE (HOME)
   =========================== */
.solutions-tabs-section {
    overflow: hidden;
    width: 100%;
}

.solutions-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
}

.solutions-tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.4);
    color: #a5b4fc;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.tab-text-col .tab-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
}

.tab-text-col .tab-desc {
    color: #94a3b8;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.tab-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tab-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.83rem;
    color: #cbd5e1;
}

.tab-feature-icon { color: #6366f1; font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }

/* ===========================
   21. STATS / TRUST BAR
   =========================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item { padding: 1rem; }
.stat-number { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #6366f1; display: block; }
.stat-label  { font-size: 0.83rem; color: #94a3b8; margin-top: 4px; display: block; }

/* ===========================
   22. PROCESS / STEPS
   =========================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-step { text-align: center; padding: 1.5rem 1rem; }
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; }
.step-desc  { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* ===========================
   23. TESTIMONIALS
   =========================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}

.test-stars  { color: #f59e0b; font-size: 1rem; margin-bottom: 0.75rem; }
.test-body   { font-size: 0.9rem; color: #475569; line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.test-name   { font-size: 0.875rem; font-weight: 700; color: #1e293b; }
.test-role   { font-size: 0.78rem; color: #94a3b8; }

/* ===========================
   24. CTA SECTION
   =========================== */
.cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    padding: clamp(3rem, 7vw, 5rem) 0;
    text-align: center;
    overflow: hidden;
}

.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; font-weight: 800; margin-bottom: 0.75rem; }
.cta-section p  { color: rgba(255,255,255,0.8); font-size: clamp(0.9rem, 2vw, 1.05rem); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: #4f46e5; border-color: #fff; }
.btn-white:hover { background: #f8fafc; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===========================
   25. BOOKING MODAL
   =========================== */
.booking-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.booking-modal-overlay.is-active {
    display: flex;
}

.booking-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   26. SOLUTION BUILDER PRICING
   =========================== */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(99,102,241,0.12); }
.pricing-card.featured { border-color: #6366f1; }

.pricing-card .price-tag {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #6366f1;
}

.pricing-card .price-period { font-size: 0.85rem; color: #94a3b8; }
.pricing-card .price-name { font-size: 1.1rem; font-weight: 800; color: #1e293b; margin-bottom: 0.5rem; }
.pricing-card .price-desc { font-size: 0.85rem; color: #64748b; margin-bottom: 1.5rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.price-features li { font-size: 0.85rem; color: #475569; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: 'âœ“'; color: #22c55e; font-weight: 700; flex-shrink: 0; }

/* ===========================
   27. BLOG PAGE
   =========================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.blog-card-thumb { aspect-ratio: 16/9; background: #f1f5f9; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card-cat { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #6366f1; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.4; }
.blog-card-title a { text-decoration: none; color: inherit; }
.blog-card-title a:hover { color: #6366f1; }
.blog-card-excerpt { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin: 0; }
.blog-card-meta { font-size: 0.78rem; color: #94a3b8; margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; }

/* ===========================
   28. PORTFOLIO GRID
   =========================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #1a2744;
    cursor: pointer;
}

.portfolio-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card-bg { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card-title { color: #fff; font-size: 1rem; font-weight: 700; }
.portfolio-card-tag   { color: #a5b4fc; font-size: 0.78rem; margin-top: 4px; }

/* ===========================
   29. UTILITY HELPERS
   =========================== */
.text-center { text-align: center; }
.text-muted  { color: #64748b; font-size: 0.9rem; }
.mb-0 { margin-bottom: 0; }
.mt-auto { margin-top: auto; }
.visually-hidden,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ===========================
   30. BREADCRUMBS HELPER
   =========================== */
.breadcrumbs-wrap { margin-bottom: 0.75rem; }

/* ================================================
   RESPONSIVE BREAKPOINTS
   Tablet: max-width 1024px
   Mobile-L: max-width 768px
   Mobile-S: max-width 480px
   ================================================ */

/* --- Tablet 1024px --- */
@media (max-width: 1024px) {
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-content-wrap { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-actions { justify-content: center; }
    .hero-visual-col { justify-content: center; }
    .dashboard-mockup { max-width: 380px; }
    .tab-content-grid { grid-template-columns: 1fr; }
    .tab-features-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-page-grid { grid-template-columns: 1fr; }
    .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar-mini { grid-template-columns: repeat(3, 1fr); }
    /* Hide desktop nav; show hamburger */
    .primary-navigation { display: none; }
    .mobile-nav-toggle  { display: flex; }
    .btn-header span    { display: none; }
    .btn-header         { padding: 8px 12px; }
    .top-info-phone     { display: none; }
}

/* --- Mobile-L 768px --- */
@media (max-width: 768px) {
    .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .booking-form .form-row { grid-template-columns: 1fr; }
    .hero-text-col .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .dashboard-mockup { max-width: 100%; }
    .tab-features-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .pricing-cards-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar-mini { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .filter-pills-bar { gap: 6px; }
    .system-group { margin-bottom: 2rem; }
    .sys-card-footer { flex-direction: column; align-items: flex-start; }
    .top-bar-right { display: none; }
    .header-container { height: 56px; }
}

/* --- Mobile-S 480px --- */
@media (max-width: 480px) {
    .cards-grid-4 { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .trust-bar-mini { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .tab-btn { font-size: 0.8rem; padding: 8px 13px; }
    .dashboard-mockup { display: none; }
    .btn-header { display: none; }
    .mobile-drawer { width: 100vw; border-left: none; }
    .section-card { padding: 1.25rem; }
    .pricing-card { padding: 1.25rem; }
    .sys-actions { width: 100%; }
    .sys-actions .btn { flex: 1; text-align: center; }
    .filter-pills-bar { gap: 4px; }
    .filter-pill { font-size: 0.78rem; padding: 6px 10px; }
    .group-heading { font-size: 1.1rem; }
    .top-bar { display: none; }
    .booking-modal-box { border-radius: 14px 14px 0 0; max-height: 85vh; }
    .booking-modal-overlay { align-items: flex-end; padding: 0; }
}

/* --- Very small screens 360px --- */
@media (max-width: 360px) {
    .container { padding: 0 0.75rem; }
    .header-container { padding: 0 0.75rem; }
    .site-title-link { font-size: 1.15rem; }
    .section-title { font-size: 1.4rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-number { font-size: 1.6rem; }
}

/* --- Large Screens 1400px+ --- */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================
   31. ACCESSIBILITY & FOCUS
   =========================== */
:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
}

/* Smooth transitions for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================================
   NIZAM10X — MEGA MENU & NAVIGATION RE-ENGINEERING (PRODUCTION READY)
   ========================================================================== */

/* Primary navigation bar styling */
.site-header {
    background: #0d1526 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

body.nzx-theme-light .site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-navigation .nav-menu {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.5rem !important;
}

.primary-navigation .nav-menu > li {
    position: relative;
    list-style: none;
}

.primary-navigation .nav-menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.6rem 1.1rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.primary-navigation .nav-menu > li > a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.nzx-theme-light .primary-navigation .nav-menu > li > a {
    color: #334155 !important;
}

body.nzx-theme-light .primary-navigation .nav-menu > li > a:hover {
    color: #4f46e5 !important;
    background: #eef2ff !important;
}

/* Caret indicator */
.nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.menu-item-systems:hover .nav-caret {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown Container */
.menu-item-systems {
    position: relative !important;
}

/* Invisible pointer bridge between Systems link and Mega Menu */
.menu-item-systems::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    pointer-events: auto;
}

.mega-menu {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 50% !important;
    transform: translateX(-35%) translateY(10px) !important;
    width: 780px !important;
    max-width: 90vw !important;
    background: #0d1526 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.15) !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

.menu-item-systems:hover .mega-menu,
.menu-item-systems:focus-within .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-35%) translateY(0) !important;
}

/* Mega Menu Grid Columns */
.mega-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 1.25rem !important;
    padding: 1.75rem 2rem 1.5rem !important;
    background: #0d1526 !important;
}

.mega-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 1rem;
}

.mega-col:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-label {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.09em !important;
    color: #818cf8 !important;
    margin-bottom: 0.6rem !important;
    display: block !important;
}

.mega-col a {
    display: block !important;
    padding: 0.4rem 0.6rem !important;
    margin: 0 -0.6rem !important;
    border-radius: 6px !important;
    color: #cbd5e1 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    white-space: normal !important;
}

.mega-col a:hover {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.15) !important;
    padding-left: 0.85rem !important;
}

/* Mega Menu Footer */
.mega-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 2rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    font-size: 0.8125rem !important;
    color: #94a3b8 !important;
}

.mega-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    color: #818cf8 !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    text-decoration: none !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 6px !important;
    background: rgba(99, 102, 241, 0.12) !important;
    transition: all 0.2s ease !important;
}

.mega-all:hover {
    color: #ffffff !important;
    background: #6366f1 !important;
}

/* Light Theme Mega Menu */
body.nzx-theme-light .mega-menu {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.18), 0 0 25px rgba(99, 102, 241, 0.08) !important;
}

body.nzx-theme-light .mega-grid {
    background: #ffffff !important;
}

body.nzx-theme-light .mega-col {
    border-right-color: #f1f5f9 !important;
}

body.nzx-theme-light .mega-label {
    color: #4f46e5 !important;
}

body.nzx-theme-light .mega-col a {
    color: #475569 !important;
}

body.nzx-theme-light .mega-col a:hover {
    color: #4f46e5 !important;
    background: #eef2ff !important;
}

body.nzx-theme-light .mega-foot {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
    color: #64748b !important;
}

body.nzx-theme-light .mega-all {
    color: #4f46e5 !important;
    background: #eef2ff !important;
}

body.nzx-theme-light .mega-all:hover {
    color: #ffffff !important;
    background: #4f46e5 !important;
}

/* Hide mega menu on tablet / mobile (mobile drawer used instead) */
@media (max-width: 1024px) {
    .primary-navigation {
        display: none !important;
    }
    .mega-menu {
        display: none !important;
    }
    .mobile-nav-toggle {
        display: flex !important;
    }
}


/* ==========================================================================
   WIDE LAYOUT FOR SINGLE SOFTWARE/SERVICES (~80% SCREEN WIDTH)
   ========================================================================== */

.service-wide-container {
    width: 100% !important;
    max-width: 86vw !important; /* leaves ~7% margins on each side = ~14% total space */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(1rem, 2vw, 2.5rem) !important;
    padding-right: clamp(1rem, 2vw, 2.5rem) !important;
}

@media (min-width: 1920px) {
    .service-wide-container {
        max-width: 1680px !important;
    }
}

.service-details-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: clamp(2rem, 3.5vw, 4rem) !important;
    align-items: start !important;
}

.service-content-col {
    min-width: 0 !important;
}

.service-article-body {
    background: #ffffff !important;
    border: 1px solid var(--color-light-border) !important;
    border-radius: var(--radius-xl) !important;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

body.nzx-theme-night .service-article-body,
body.nzx-theme-ocean .service-article-body {
    background: #0d1526 !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    color: #d5deec !important;
}

body.nzx-theme-night .service-article-body h2,
body.nzx-theme-night .service-article-body h3,
body.nzx-theme-night .service-article-body h4,
body.nzx-theme-ocean .service-article-body h2,
body.nzx-theme-ocean .service-article-body h3,
body.nzx-theme-ocean .service-article-body h4 {
    color: #f1f5f9 !important;
}

.service-article-body h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem) !important;
    margin-bottom: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

.service-section-title {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important;
    margin-top: 2.75rem !important;
    margin-bottom: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--color-light-border) !important;
}

body.nzx-theme-night .service-section-title,
body.nzx-theme-ocean .service-section-title {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.service-entry-content {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: var(--color-text-body) !important;
}

body.nzx-theme-night .service-entry-content,
body.nzx-theme-ocean .service-entry-content {
    color: #cbd5e1 !important;
}

.service-entry-content p {
    margin-bottom: 1.25rem !important;
}

.service-entry-content img {
    border-radius: var(--radius-lg) !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    width: 100% !important;
    height: auto !important;
}

/* Feature grid in wide layout */
.service-features-list-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
}

.feature-spec-item {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.25rem !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
}

.feature-spec-item:hover {
    transform: translateY(-2px) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08) !important;
}

body.nzx-theme-night .feature-spec-item,
body.nzx-theme-ocean .feature-spec-item {
    background: #151e35 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.spec-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: rgba(34, 197, 94, 0.15) !important;
    color: #16a34a !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
}

/* Gallery in wide layout */
.service-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
}

.service-gallery-card {
    display: block !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f1f5f9 !important;
    transition: all 0.25s ease !important;
}

.service-gallery-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: #6366f1 !important;
}

.service-gallery-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Sticky inquiry sidebar card */
.service-inquiry-sticky-card {
    position: sticky !important;
    top: 95px !important;
    background: #ffffff !important;
    border: 1px solid var(--color-light-border) !important;
    border-radius: var(--radius-xl) !important;
    padding: 2.25rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07) !important;
}

body.nzx-theme-night .service-inquiry-sticky-card,
body.nzx-theme-ocean .service-inquiry-sticky-card {
    background: #0d1526 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

body.nzx-theme-night .service-inquiry-sticky-card h3,
body.nzx-theme-ocean .service-inquiry-sticky-card h3 {
    color: #ffffff !important;
}

/* Single Service Banner Wide */
.service-hero-banner {
    background: linear-gradient(135deg, #060d1f 0%, #0d1526 50%, #111827 100%) !important;
    padding: clamp(3rem, 6vw, 5rem) 0 !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.service-header-grid {
    display: grid !important;
    grid-template-columns: 1.25fr 1fr !important;
    gap: clamp(2rem, 4vw, 4rem) !important;
    align-items: center !important;
}

.service-single-title {
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.2 !important;
}

/* Responsive adjustments for Single Service */
@media (max-width: 1024px) {
    .service-wide-container {
        max-width: 95vw !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .service-details-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .service-header-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .service-inquiry-sticky-card {
        position: static !important;
    }
}

@media (max-width: 640px) {
    .service-wide-container {
        max-width: 100vw !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .service-article-body {
        padding: 1.5rem !important;
    }
    .service-features-list-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   SYSTEMS CATALOG GRID (3 COLUMNS ALWAYS ON DESKTOP) & HERO CENTERING
   ========================================================================== */

.nzx-catalog .cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
}

@media (max-width: 1120px) {
    .nzx-catalog .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 680px) {
    .nzx-catalog .cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Center Catalog Hero text & numbers */
.nzx-catalog .page-hero {
    text-align: center !important;
}

.nzx-catalog .page-hero .container {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.nzx-catalog .breadcrumb {
    justify-content: center !important;
}

.nzx-catalog .hero-stats {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.nzx-catalog .page-hero-desc {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Hide category group headers on catalog page */
.nzx-catalog .group-title {
    display: none !important;
}

/* Clean background for light theme catalog */
body.nzx-theme-light .nzx-catalog .catalog-section {
    background: #f8fafc !important;
}

body.nzx-theme-light .nzx-catalog .page-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 60%, #ffffff 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.nzx-theme-light .nzx-catalog .page-hero h1 {
    color: #0f172a !important;
}

body.nzx-theme-light .nzx-catalog .filter-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

/* ==========================================================================
   GLOBAL THEME COHESION (ELIMINATE VIOLENT PURPLE & COLOR INCONSISTENCIES)
   ========================================================================== */

/* Brand Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    border: none !important;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

/* Global Footer consistent dark */
.site-footer {
    background: #060d1f !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-footer h4 {
    color: #f1f5f9 !important;
}

.footer-links a {
    color: #94a3b8 !important;
}

.footer-links a:hover {
    color: #a5b4fc !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #64748b !important;
}


/* ==========================================================================
   DIRECT 1-CLICK THEME SWITCHER (SUN / MOON)
   ========================================================================== */
.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Light mode theme toggle */
body.nzx-theme-light .theme-toggle {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

body.nzx-theme-light .theme-toggle:hover {
    background: #e2e8f0 !important;
    color: #4f46e5 !important;
}

/* Icon visibility: Moon in light mode, Sun in dark mode */
.theme-toggle .theme-icon-sun {
    display: none !important;
}

.theme-toggle .theme-icon-moon {
    display: block !important;
}

body.nzx-theme-dark .theme-toggle .theme-icon-sun,
body.nzx-theme-night .theme-toggle .theme-icon-sun {
    display: block !important;
    color: #f59e0b !important;
}

body.nzx-theme-dark .theme-toggle .theme-icon-moon,
body.nzx-theme-night .theme-toggle .theme-icon-moon {
    display: none !important;
}

/* Hide theme dropdown menu completely */
.theme-menu {
    display: none !important;
}

/* ==========================================================================
   CATALOG PLACEHOLDER MEDIA BANNER (UNIFIED CARD HEIGHTS)
   ========================================================================== */
.nzx-catalog .sys-card-media-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 16 / 9 !important;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2) 0%, #0d1526 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-decoration: none !important;
}

body.nzx-theme-light .nzx-catalog .sys-card-media-placeholder {
    background: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.sys-card-placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.sys-card-placeholder-box .placeholder-emoji {
    font-size: 2.25rem;
    line-height: 1;
}

.sys-card-placeholder-box .placeholder-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    padding: 3px 12px;
    border-radius: 99px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

body.nzx-theme-light .sys-card-placeholder-box .placeholder-tag {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   LIGHT MODE BUTTON VISIBILITY (FIX WHITE-ON-WHITE TEXT IN CTA)
   ========================================================================== */
body.nzx-theme-light .btn-glass,
body.nzx-theme-light .cta-section .btn-glass {
    background: #ffffff !important;
    border: 2px solid #6366f1 !important;
    color: #4f46e5 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15) !important;
}

body.nzx-theme-light .btn-glass:hover,
body.nzx-theme-light .cta-section .btn-glass:hover {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}
