/* =====================================================================
   JAVID SOFTWARE CENTER — MAIN STYLESHEET
   File: assets/css/style.css
   Public website styles
   ===================================================================== */

/* =====================================================================
   1. RESET & ROOT VARIABLES
   ===================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:       #0d6efd;
    --color-primary-dark:  #0a58ca;
    --color-primary-light: #e7f1ff;
    --color-accent:        #6610f2;
    --color-text:          #1a202c;
    --color-text-soft:     #4a5568;
    --color-muted:         #64748b;
    --color-border:        #e2e8f0;
    --color-bg:            #ffffff;
    --color-bg-soft:       #f8fafc;
    --color-bg-dark:       #0f172a;

    --color-success:       #16a34a;
    --color-success-bg:    #ecfdf5;
    --color-danger:        #dc2626;
    --color-danger-bg:     #fef2f2;
    --color-warning:       #f59e0b;
    --color-warning-bg:    #fffbeb;
    --color-info:          #0891b2;
    --color-info-bg:       #ecfeff;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: "Consolas", "Courier New", monospace;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow:    0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    --container-max: 1180px;
    --header-height: 70px;

    --transition: 0.2s ease;
    --transition-slow: 0.35s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-primary-dark); }

ul, ol { list-style: none; }

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

/* =====================================================================
   2. TYPOGRAPHY
   ===================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; color: var(--color-text-soft); }
p:last-child { margin-bottom: 0; }

strong { color: var(--color-text); font-weight: 700; }

small { font-size: 0.875rem; color: var(--color-muted); }

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    color: #d63384;
}

/* =====================================================================
   3. LAYOUT
   ===================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

main { flex: 1; min-height: 40vh; }

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.section-soft { background: var(--color-bg-soft); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 2.25rem;
    margin-bottom: 14px;
    color: var(--color-text);
}

.section-head p {
    font-size: 17px;
    color: var(--color-muted);
    margin: 0;
}

/* =====================================================================
   4. BUTTONS
   ===================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}

.btn:disabled, .btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-bg-soft);
    border-color: #cbd5e1;
    color: var(--color-text);
}

.btn-success {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}
.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =====================================================================
   5. HEADER / NAVBAR
   ===================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    flex-shrink: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text);
}

.brand-tag {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-text-soft);
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;   /* ← دا نوی */
}

.primary-nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.primary-nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   6. HERO SECTION
   ===================================================================== */

.hero {
    position: relative;
    padding: 96px 0 88px;
    background: linear-gradient(135deg, #f0f7ff 0%, #fafbff 50%, #f5f0ff 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(102, 16, 242, 0.10), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-soft);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    color: var(--color-text);
}

.hero h1 .highlight {
    background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 19px;
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat { text-align: center; }

.hero-stat .num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
}

.hero-stat .lbl {
    font-size: 13px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================================
   7. CARD GRID & CARDS
   ===================================================================== */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-media {
    aspect-ratio: 16 / 10;
    background: var(--color-bg-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media .placeholder {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.35;
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.35;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--color-primary); }

.card-text {
    font-size: 14.5px;
    color: var(--color-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 13.5px;
    color: var(--color-muted);
}

.card-footer {
    padding: 16px 22px;
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feature-card {
    padding: 32px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--color-muted);
    margin: 0;
}

/* =====================================================================
   8. BADGES
   ===================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-primary { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger); }
.badge-warning { background: var(--color-warning-bg); color: #b45309; }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info); }
.badge-muted   { background: #f1f5f9;                 color: var(--color-muted); }

/* =====================================================================
   9. ALERTS
   ===================================================================== */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    border-left: 4px solid;
    font-size: 14.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success { background: var(--color-success-bg); border-color: var(--color-success); color: #166534; }
.alert-danger  { background: var(--color-danger-bg);  border-color: var(--color-danger);  color: #991b1b; }
.alert-warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: #92400e; }
.alert-info    { background: var(--color-info-bg);    border-color: var(--color-info);    color: #155e75; }

.alert strong { color: inherit; }

/* =====================================================================
   10. FORMS
   ===================================================================== */

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-label .required {
    color: var(--color-danger);
    margin-left: 3px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder { color: #94a3b8; }

.form-control:hover { border-color: #cbd5e1; }

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

.form-hint {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 13px;
    color: var(--color-danger);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14.5px;
}

.form-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* =====================================================================
   11. TABLES
   ===================================================================== */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.table th,
.table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table th {
    background: var(--color-bg-soft);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-muted);
    white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfc; }

/* =====================================================================
   12. PAGINATION
   ===================================================================== */

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-soft);
    background: #fff;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =====================================================================
   13. EMPTY & LOADING STATES
   ===================================================================== */

.empty-state {
    text-align: center;
    padding: 72px 24px;
    background: var(--color-bg-soft);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.empty-state .icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-text-soft);
}

.empty-state p {
    color: var(--color-muted);
    max-width: 400px;
    margin: 0 auto;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(13, 110, 253, 0.25);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================================
   14. BREADCRUMBS
   ===================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

.breadcrumbs .sep { color: #cbd5e1; }

.breadcrumbs .current {
    color: var(--color-text);
    font-weight: 600;
}

/* =====================================================================
   15. PAGE HEADER
   ===================================================================== */

.page-header {
    padding: 56px 0 40px;
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.page-header p {
    font-size: 17px;
    color: var(--color-muted);
    max-width: 640px;
    margin: 0;
}

/* =====================================================================
   16. SEARCH BAR (page search)
   ===================================================================== */

.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
}

.search-bar button {
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    font-family: inherit;
    font-size: 15px;
}

.search-bar button:hover {
    background: var(--color-primary-dark);
}

/* =====================================================================
   17. FOOTER
   ===================================================================== */

.site-footer {
    margin-top: 80px;
    background: var(--color-bg-dark);
    color: #cbd5e1;
    padding: 60px 0 24px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.7;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
    color: #cbd5e1;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }

.footer-contact .label {
    color: #94a3b8;
    font-weight: 600;
    margin-right: 6px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: #fff; }

/* =====================================================================
   18. CTA SECTION
   ===================================================================== */

.cta-section {
    padding: 72px 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-xl);
    text-align: center;
    color: #fff;
    margin: 80px 0;
    box-shadow: var(--shadow-lg);
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 14px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    max-width: 580px;
    margin: 0 auto 32px;
}

.cta-section .btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.cta-section .btn-secondary:hover {
    background: #f1f5f9;
    color: var(--color-primary-dark);
}

.cta-section .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

/* =====================================================================
   19. UTILITY CLASSES
   ===================================================================== */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-muted); }
.text-primary{ color: var(--color-primary); }
.text-success{ color: var(--color-success); }
.text-danger { color: var(--color-danger); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.flex       { display: flex; }
.flex-wrap  { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.hidden { display: none !important; }

:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* =====================================================================
   20. FAQ ACCORDION
   ===================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--color-text);
    list-style: none;
    user-select: none;
    transition: background var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--color-bg-soft); }

.faq-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    transition: transform var(--transition);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 16px 20px 20px;
    color: var(--color-text-soft);
    line-height: 1.7;
    font-size: 15px;
    border-top: 1px solid var(--color-border);
}

/* =====================================================================
   21. LIVE SEARCH (jsc-*)
   ===================================================================== */

.jsc-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 260px;
}

.jsc-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    padding: 6px 14px 6px 12px;
    width: 200px;
    transition: width 0.2s ease, border-color 0.2s ease,
                background 0.2s ease, box-shadow 0.2s ease;
}

.jsc-search-wrap.is-focused .jsc-search-box {
    width: 260px;
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.jsc-search-icon {
    font-size: 13px;
    line-height: 1;
    color: #64748b;
    flex-shrink: 0;
    opacity: 0.8;
}

.jsc-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: #1a202c;
    min-width: 0;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

.jsc-search-input::placeholder { color: #94a3b8; }

.jsc-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16),
                0 2px 8px rgba(15, 23, 42, 0.06);
    padding: 6px 0;
    max-height: 440px;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.jsc-search-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.jsc-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #1a202c;
    border-left: 3px solid transparent;
    transition: background 0.12s ease, border-left-color 0.12s ease;
    cursor: pointer;
}

.jsc-result:hover,
.jsc-result.is-active {
    background: #f8fafc;
    border-left-color: #0d6efd;
    color: #1a202c;
    text-decoration: none;
}

.jsc-result-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 9px;
    font-size: 16px;
}

.jsc-result:hover .jsc-result-icon,
.jsc-result.is-active .jsc-result-icon {
    background: #e7f1ff;
}

.jsc-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jsc-result-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jsc-result-type {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    line-height: 1.2;
}

.jsc-result-type[data-type="service"]  { color: #0d6efd; }
.jsc-result-type[data-type="software"] { color: #0891b2; }
.jsc-result-type[data-type="product"]  { color: #16a34a; }
.jsc-result-type[data-type="faq"]      { color: #d97706; }

.jsc-search-state {
    padding: 28px 16px;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

.jsc-search-state-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.jsc-search-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: jsc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes jsc-spin {
    to { transform: rotate(360deg); }
}

.jsc-search-footer {
    display: block;
    text-align: center;
    padding: 11px 16px;
    background: #f8fafc;
    font-size: 12.5px;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 14px 14px;
    margin-top: 4px;
}

.jsc-search-footer:hover {
    background: #e7f1ff;
    color: #0a58ca;
    text-decoration: none;
}

.jsc-mobile-search-link { display: none; }

@media (max-width: 1100px) {
    .jsc-search-box { width: 170px; }
    .jsc-search-wrap.is-focused .jsc-search-box { width: 220px; }
    .jsc-search-input { font-size: 13px; }
}

@media (max-width: 950px) {
    .jsc-search-wrap { display: none !important; }
    .jsc-mobile-search-link { display: block !important; }
}

/* =====================================================================
   22. CONTACT PAGE — UNIFIED DESIGN
   ===================================================================== */

/* Grid — same height columns */
.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.4fr !important;
    gap: 24px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.contact-grid > aside,
.contact-grid > div {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: 100% !important;
}

/* Shared card */
.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

/* Card head */
.contact-card-head {
    padding: 22px 26px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.contact-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.contact-card-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Card body */
.contact-card-body {
    padding: 22px 26px 26px;
    flex: 1 !important;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Contact info list */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 26px 26px;
    flex: 1 !important;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.15s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.05);
}

.contact-info-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.contact-icon-location { background: #fef2f2; color: #dc2626; }
.contact-icon-phone    { background: #eff6ff; color: #2563eb; }
.contact-icon-whatsapp { background: #ecfdf5; color: #16a34a; }
.contact-icon-telegram { background: #eff6ff; color: #0284c7; }
.contact-icon-email    { background: #f5f3ff; color: #7c3aed; }
.contact-icon-hours    { background: #fff7ed; color: #ea580c; }

.contact-info-body {
    flex: 1;
    min-width: 0;
}

.contact-info-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 3px;
    display: block;
}

.contact-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.contact-info-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* Contact links */
.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.contact-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.contact-link-phone    { color: #2563eb; }
.contact-link-phone:hover { color: #1e40af; }

.contact-link-whatsapp { color: #16a34a; }
.contact-link-whatsapp:hover { color: #15803d; }

.contact-link-telegram { color: #0284c7; }
.contact-link-telegram:hover { color: #0369a1; }

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form .form-group {
    margin-bottom: 14px;
}

.contact-form .form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.contact-form .form-label .required {
    color: #dc2626;
    font-weight: 700;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.contact-form .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.contact-form .form-control:hover {
    border-color: #cbd5e1;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    background: #ffffff;
}

.contact-form textarea.form-control {
    min-height: 100px;
    max-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form .form-row {
    gap: 14px;
}

.contact-form .btn-block {
    width: 100%;
    margin-top: auto;
    padding: 11px 20px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 8px;
}

.contact-form .alert,
.contact-card-body .alert {
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 14px;
    border-radius: 8px;
}

/* =====================================================================
   23. FOOTER SOCIAL ICONS
   ===================================================================== */

.footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 18px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-social-facebook:hover  { background: #1877f2; }
.footer-social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social-youtube:hover   { background: #ff0000; }
.footer-social-twitter:hover   { background: #000000; }
.footer-social-linkedin:hover  { background: #0a66c2; }
.footer-social-whatsapp:hover  { background: #25d366; }

/* =====================================================================
   24. RESPONSIVE
   ===================================================================== */

@media (max-width: 1024px) {
    .header-actions .btn { display: none; }
    .primary-nav a { padding: 8px 10px; font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; order: 3; }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .primary-nav.is-open {
        max-height: 520px;
        overflow-y: auto;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .primary-nav a {
        display: block;
        padding: 14px 20px;
        border-radius: 0;
        font-size: 15px;
    }

    .header-inner { position: relative; flex-wrap: wrap; }
    .brand { order: 1; }
    .header-actions { display: none; }

    .section { padding: 56px 0; }
    .section-lg { padding: 72px 0; }

    .section-head h2 { font-size: 1.85rem; }
    .section-head p { font-size: 16px; }

    .hero { padding: 72px 0 64px; }
    .hero h1 { font-size: 2.25rem; }
    .hero p.lead { font-size: 17px; }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 48px;
        padding-top: 32px;
    }

    .hero-stat .num { font-size: 1.4rem; }
    .hero-stat .lbl { font-size: 11px; }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row { grid-template-columns: 1fr; }

    .cta-section { padding: 56px 20px; border-radius: var(--radius-lg); }
    .cta-section h2 { font-size: 1.65rem; }

    .page-header { padding: 40px 0 32px; }
    .page-header h1 { font-size: 2rem; }

    /* Contact — single column */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .contact-card-head { padding: 18px 22px 14px; }
    .contact-card-body { padding: 18px 22px 22px; }
    .contact-info-list { padding: 18px 22px 22px; }
    .contact-card-title { font-size: 1rem; }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .section { padding: 44px 0; }

    .section-head { margin-bottom: 36px; }
    .section-head h2 { font-size: 1.5rem; }
    .section-head p { font-size: 15px; }

    .brand-logo { width: 38px; height: 38px; font-size: 13px; }
    .brand-name { font-size: 14px; }
    .brand-tag { font-size: 10px; }

    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: 1.85rem; }
    .hero p.lead { font-size: 16px; }
    .hero-badge { font-size: 12px; padding: 5px 12px; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .card-body { padding: 18px; }
    .card-title { font-size: 1.05rem; }
    .card-text { font-size: 14px; }

    .feature-card { padding: 24px 20px; }
    .feature-icon { width: 48px; height: 48px; font-size: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }

    .btn { padding: 11px 20px; font-size: 14.5px; }
    .btn-lg { padding: 13px 24px; font-size: 15px; }

    .table th, .table td { padding: 10px 12px; font-size: 13.5px; }

    .page-header { padding: 32px 0 24px; }
    .page-header h1 { font-size: 1.65rem; }
    .page-header p { font-size: 15px; }

    .cta-section { padding: 40px 18px; margin: 48px 0; }
    .cta-section h2 { font-size: 1.4rem; }
    .cta-section p { font-size: 15px; }

    /* Contact mobile */
    .contact-card-head { padding: 16px 18px 12px; }
    .contact-card-body { padding: 16px 18px 20px; }
    .contact-info-list { padding: 16px 18px 20px; }
    .contact-info-icon { width: 36px; height: 36px; }
    .contact-info-icon svg { width: 16px; height: 16px; }
    .contact-info-value { font-size: 13.5px; }

    .footer-social-link { width: 38px; height: 38px; }
    .footer-social-link svg { width: 16px; height: 16px; }
}

/* Print */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .hero-actions,
    .cta-section {
        display: none;
    }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* =====================================================================
   MOBILE HEADER — FORCE Brand to LEFT (Final fix)
   ===================================================================== */

@media (max-width: 860px) {

    /* ۱. د هډر مینځپانګه: brand کیڼ، toggle ښي */
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        text-align: left !important;
    }

    /* ۲. د brand لینک: کیڼ اړخ، خپل عرض */
    .header-inner > .brand,
    .header-inner > a.brand {
        order: 1 !important;
        flex: 0 1 auto !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        justify-content: flex-start !important;
        text-align: left !important;
        max-width: calc(100% - 60px) !important;
    }

    /* ۳. د JSC لوګو: په خپل ځای، مینځ نه */
    .brand > .brand-logo {
        margin-left: 0 !important;
        margin-right: 0 !important;
        order: 1 !important;
    }

    /* ۴. د متن کنټینر: کیڼ اړخ ته متن */
    .brand > .brand-text {
        order: 2 !important;
        text-align: left !important;
        align-items: flex-start !important;
        margin-left: 0 !important;
    }

    .brand > .brand-name {
        text-align: left !important;
    }

    /* ۵. ☰ د مینو آیکون: ښي اړخ ته */
    .header-inner > .nav-toggle {
        order: 3 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex: 0 0 auto !important;
    }
}


/* =====================================================================
   MOBILE HEADER — ABSOLUTE POSITION FIX (Bulletproof)
   ===================================================================== */

@media (max-width: 860px) {

    /* ۱. هډر ته relative موقعیت ورکړه */
    .site-header .header-inner {
        position: relative !important;
        display: block !important;
        min-height: 60px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 20px !important;
        padding-right: 60px !important;
    }

    /* ۲. د برانډ لینک: مطلق کیڼ اړخ ته، عمودي مینځ */
    .site-header .header-inner > .brand {
        position: absolute !important;
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        max-width: calc(100% - 100px) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* ۳. د برانډ دننه: متن او لوګو کیڼ اړخ ته */
    .site-header .header-inner > .brand .brand-text {
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .site-header .header-inner > .brand .brand-name {
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ۴. ☰ مینو آیکون: مطلق ښي اړخ ته، عمودي مینځ */
    .site-header .header-inner > .nav-toggle {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    /* ۵. د pirmary-nav او header-actions پټول (لکه دمخه) */
    .site-header .header-inner > .header-actions {
        display: none !important;
    }
}


/* =====================================================================
   NAVBAR COMPACT — Make header slimmer
   ===================================================================== */

.header-inner {
    gap: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.brand {
    gap: 8px !important;
}

.brand-logo {
    width: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
}

.brand-name {
    font-size: 13.5px !important;
}

.brand-tag {
    font-size: 10px !important;
}

.primary-nav ul {
    gap: 0 !important;
}

.primary-nav a {
    padding: 6px 10px !important;
    font-size: 13.5px !important;
    border-radius: 6px !important;
}

.header-actions {
    gap: 6px !important;
}

.jsc-search-box {
    width: 150px !important;
    padding: 5px 12px !important;
}

.jsc-search-wrap.is-focused .jsc-search-box {
    width: 200px !important;
}

/* Responsive — tablets */
@media (max-width: 1200px) {
    .primary-nav a {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
    .jsc-search-box {
        width: 130px !important;
    }
}

@media (max-width: 1024px) {
    .jsc-search-box {
        width: 120px !important;
    }
    .primary-nav a {
        padding: 6px 7px !important;
        font-size: 12.5px !important;
    }
    .brand-name {
        font-size: 12.5px !important;
    }
}



/* =====================================================================
   NAVBAR FIX — Everything on one line, no wrapping
   ===================================================================== */

/* ─── Header container: fixed layout, no wrap ─── */
.site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

/* ─── Brand: keep on left, don't shrink ─── */
.site-header .brand {
    flex-shrink: 0 !important;
    gap: 8px !important;
    min-width: 0;
}

.site-header .brand-logo {
    width: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
    flex-shrink: 0;
}

.site-header .brand-text {
    min-width: 0;
}

.site-header .brand-name {
    font-size: 13.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.site-header .brand-tag {
    font-size: 9.5px !important;
    white-space: nowrap;
}

/* ─── Nav menu: one line, no wrap ─── */
.site-header .primary-nav {
    flex: 1 1 auto !important;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.site-header .primary-nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.site-header .primary-nav a {
    padding: 6px 9px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    display: inline-block;
}

/* ─── Header actions: right side, no shrink ─── */
.site-header .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
}

/* ─── Search box: compact ─── */
.site-header .jsc-search-box {
    width: 130px !important;
    padding: 5px 10px !important;
}

.site-header .jsc-search-wrap.is-focused .jsc-search-box {
    width: 180px !important;
}

.site-header .jsc-search-input {
    font-size: 12.5px !important;
}

/* ─── Buttons in header: compact ─── */
.site-header .header-actions .btn-sm {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
}

/* ─── Dark toggle: compact ─── */
.site-header .jsc-dark-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    flex-shrink: 0;
}

/* ─── On smaller desktops: hide labels ─── */
@media (max-width: 1280px) {
    .site-header .primary-nav a {
        padding: 6px 7px !important;
        font-size: 12.5px !important;
    }
    .site-header .jsc-search-box {
        width: 110px !important;
    }
}

@media (max-width: 1100px) {
    .site-header .primary-nav a {
        padding: 6px 6px !important;
        font-size: 12px !important;
    }
    .site-header .brand-name {
        font-size: 12px !important;
        max-width: 120px;
    }
    .site-header .brand-tag {
        display: none !important;
    }
    .site-header .jsc-search-box {
        width: 90px !important;
    }
}


/* =====================================================================
   CONTACT PAGE — Dark Mode Fix
   ===================================================================== */

/* ─── Contact cards ─── */
[data-theme="dark"] .contact-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .contact-card-head {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .contact-card-title {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-card-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .contact-card-body {
    background: #1e293b;
}

/* ─── Contact info items ─── */
[data-theme="dark"] .contact-info-list {
    background: #1e293b;
}

[data-theme="dark"] .contact-info-label {
    color: #64748b;
}

[data-theme="dark"] .contact-info-value {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-info-sub {
    color: #94a3b8;
}

/* ─── Contact info icons ─── */
[data-theme="dark"] .contact-icon-location { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .contact-icon-phone    { background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .contact-icon-whatsapp { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .contact-icon-telegram { background: #164e63; color: #67e8f9; }
[data-theme="dark"] .contact-icon-email    { background: #4c1d95; color: #c4b5fd; }
[data-theme="dark"] .contact-icon-hours    { background: #78350f; color: #fcd34d; }

/* ─── Contact links ─── */
[data-theme="dark"] .contact-link {
    color: #60a5fa;
}

[data-theme="dark"] .contact-link-phone    { color: #60a5fa; }
[data-theme="dark"] .contact-link-whatsapp { color: #34d399; }
[data-theme="dark"] .contact-link-telegram { color: #38bdf8; }

/* ─── Contact FORM labels ─── */
[data-theme="dark"] .contact-form .form-label {
    color: #e2e8f0;
}

/* ─── Contact FORM inputs ─── */
[data-theme="dark"] .contact-form .form-control {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .contact-form .form-control::placeholder {
    color: #64748b;
}

[data-theme="dark"] .contact-form .form-control:hover {
    border-color: #475569;
}

[data-theme="dark"] .contact-form .form-control:focus {
    background: #0f172a;
    border-color: #3b82f6;
    color: #f1f5f9;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ─── Contact form alerts ─── */
[data-theme="dark"] .contact-card-body .alert {
    color: #cbd5e1;
}

/* ─── Contact page header ─── */
[data-theme="dark"] .page-header h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .page-header p {
    color: #94a3b8;
}


/* =====================================================================
   MOBILE NAVIGATION — Fix drawer menu
   ===================================================================== */

@media (max-width: 860px) {
    /* ─── Parent needs relative position ─── */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-inner {
        position: relative;
    }

    /* ─── Menu: hidden by default ─── */
    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }

    /* ─── Menu: open state ─── */
    .primary-nav.is-open {
        max-height: 600px;
        overflow-y: auto;
        padding: 8px 0;
    }

    /* ─── Menu list ─── */
    .primary-nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
    }

    .primary-nav li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .primary-nav li:last-child {
        border-bottom: none;
    }

    .primary-nav a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
        border-radius: 0;
        text-align: left;
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .primary-nav a:hover {
        background: #f1f5f9;
    }

    .primary-nav a.active {
        background: #e7f1ff;
        color: #0d6efd;
        border-left: 3px solid #0d6efd;
        padding-left: 17px;
    }
}


/* =====================================================================
   MOBILE NAV — Must override all desktop rules
   ===================================================================== */

@media (max-width: 860px) {

    /* ─── Reset flex on nav ─── */
    .site-header .primary-nav,
    .primary-nav {
        flex: none !important;
        flex-basis: auto !important;
        display: block !important;
        justify-content: initial !important;

        position: absolute !important;
        top: calc(100% + 1px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;

        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;

        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s ease !important;
        z-index: 9999 !important;
    }

    .site-header .primary-nav.is-open,
    .primary-nav.is-open {
        max-height: 600px !important;
        overflow-y: auto !important;
    }

    /* ─── List ─── */
    .site-header .primary-nav ul,
    .primary-nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .site-header .primary-nav li,
    .primary-nav li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .site-header .primary-nav a,
    .primary-nav a {
        display: block !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        color: #1e293b !important;
        border-radius: 0 !important;
        text-align: left !important;
    }

    .site-header .primary-nav a:hover,
    .primary-nav a:hover {
        background: #f1f5f9 !important;
    }

    .site-header .primary-nav a.active,
    .primary-nav a.active {
        background: #e7f1ff !important;
        color: #0d6efd !important;
        border-left: 3px solid #0d6efd !important;
        padding-left: 17px !important;
    }

    /* ─── Show mobile-only items ─── */
    .mobile-account-link {
        display: block !important;
    }

    /* ─── Dark mode mobile ─── */
    [data-theme="dark"] .site-header .primary-nav,
    [data-theme="dark"] .primary-nav {
        background: #1e293b !important;
        border-top-color: #334155 !important;
        border-bottom-color: #334155 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    }

    [data-theme="dark"] .site-header .primary-nav li,
    [data-theme="dark"] .primary-nav li {
        border-bottom-color: #334155 !important;
    }

    [data-theme="dark"] .site-header .primary-nav a,
    [data-theme="dark"] .primary-nav a {
        color: #e2e8f0 !important;
    }

    [data-theme="dark"] .site-header .primary-nav a:hover,
    [data-theme="dark"] .primary-nav a:hover {
        background: #334155 !important;
        color: #f1f5f9 !important;
    }

    [data-theme="dark"] .site-header .primary-nav a.active,
    [data-theme="dark"] .primary-nav a.active {
        background: #1e3a8a !important;
        color: #93c5fd !important;
        border-left-color: #60a5fa !important;
    }
}



/* =====================================================================
   BOOST SERVICES — AJAX filter UI (Phase 30)
   ===================================================================== */

.jsc-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    position: sticky;
    top: 60px;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

[data-theme="dark"] .jsc-filter-bar {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.jsc-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jsc-filter-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-right: 6px;
}

.jsc-plat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    font-family: inherit;
}

.jsc-plat-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.jsc-plat-btn.is-active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

[data-theme="dark"] .jsc-plat-btn {
    background: #1e293b;
    color: #cbd5e1;
}
[data-theme="dark"] .jsc-plat-btn:hover {
    background: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .jsc-plat-btn.is-active {
    background: #0d6efd;
    color: #fff;
}

.jsc-cat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

[data-theme="dark"] .jsc-cat-row {
    border-top-color: #1e293b;
}

.jsc-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.jsc-cat-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.jsc-cat-btn.is-active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.jsc-cat-count {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 100px;
    background: rgba(0,0,0,0.08);
    opacity: 0.7;
}

.jsc-cat-btn.is-active .jsc-cat-count {
    background: rgba(255,255,255,0.25);
    opacity: 1;
}

[data-theme="dark"] .jsc-cat-btn {
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .jsc-cat-btn:hover {
    border-color: #3b82f6;
    color: #60a5fa;
}
[data-theme="dark"] .jsc-cat-btn.is-active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.jsc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}

[data-theme="dark"] .jsc-price-row {
    border-top-color: #1e293b;
}

.jsc-price-btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.jsc-price-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.jsc-price-btn.is-active {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

[data-theme="dark"] .jsc-price-btn {
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .jsc-price-btn:hover {
    border-color: #10b981;
    color: #34d399;
}
[data-theme="dark"] .jsc-price-btn.is-active {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.jsc-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
}

.jsc-results-count strong {
    color: #0f172a;
    font-weight: 800;
}

[data-theme="dark"] .jsc-results-count strong {
    color: #f1f5f9;
}

.jsc-loading {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.jsc-loading .spinner-lg {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@media (max-width: 640px) {
    .jsc-filter-bar {
        position: static;
    }
    .jsc-filter-label {
        width: 100%;
        margin-bottom: 4px;
    }
}