/* CSS/site.css – VS Tech Solutions Design System */

/* ===== متغيرات الألوان ===== */
:root {
    --gold:        #C9A84C;
    --gold-light:  #E8C96B;
    --gold-dark:   #A07820;
    --navy:        #0D1B2E;
    --navy-mid:    #152336;
    --navy-light:  #1E3350;
    --white:       #FFFFFF;
    --gray-mid:    #A0A0A0;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
}

/* ===== الأساسيات ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Cairo', Tahoma, sans-serif;
    background: var(--navy);
    color: var(--white);
    direction: rtl;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.7;
}

p { font-size: 0.95rem; }

/* ===== NAVBAR — Floating pill ===== */
.vs-navbar {
    background: transparent !important;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.vs-navbar > .container {
    background: rgba(13,27,46,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.vs-navbar.scrolled { padding: 0.5rem 0; }

.vs-navbar.scrolled > .container {
    background: rgba(13,27,46,0.96);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900;
    color: var(--navy); font-family: serif;
    letter-spacing: -1.5px;
    box-shadow: 0 4px 14px rgba(201,168,76,0.3);
    flex-shrink: 0;
}

.logo-name {
    font-size: 14px; font-weight: 700;
    color: var(--gold-light); letter-spacing: 0.8px; line-height: 1.1;
}

.logo-sub {
    font-size: 8px; color: var(--gray-mid);
    letter-spacing: 2.5px; text-transform: uppercase;
}

.vs-navbar .nav-link {
    color: rgba(255,255,255,0.72) !important;
    font-weight: 600; font-size: 13.5px;
    padding: 6px 4px !important;
    transition: color 0.2s;
    position: relative;
}

.vs-navbar .nav-link::after {
    content: '';
    position: absolute; bottom: -4px; right: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.vs-navbar .nav-link:hover { color: var(--gold-light) !important; }
.vs-navbar .nav-link:hover::after { width: 100%; }

/* ===== الأزرار ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--navy) !important;
    font-weight: 700; border: none;
    padding: 9px 22px; border-radius: var(--radius-pill);
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(201,168,76,0.28);
    white-space: nowrap;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.42);
    color: var(--navy) !important;
}

.btn-gold.btn-lg {
    padding: 11px 28px;
    font-size: 15px;
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-light);
    border: 1.5px solid rgba(201,168,76,0.4);
    padding: 9px 22px; border-radius: var(--radius-pill);
    font-weight: 700; font-size: 14px;
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold-light);
}

/* ===== بطاقات الخدمات ===== */
.service-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle at top left,
        rgba(201,168,76,0.14), transparent 70%);
    transition: all 0.35s;
}

.service-card:hover {
    border-color: rgba(201,168,76,0.35);
    background: rgba(201,168,76,0.04);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

.service-card:hover::before {
    width: 130px; height: 130px;
}

.service-icon {
    width: 50px; height: 50px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 1rem;
    color: var(--gold-light);
}

.service-card h5 {
    color: var(--white); font-weight: 700;
    font-size: 1.05rem; margin-bottom: 0.6rem;
}

.service-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem; line-height: 1.75;
    margin-bottom: 0;
}

/* ===== Hero ===== */
.hero-section {
    min-height: 88vh;
    display: flex; align-items: center;
    padding: 6rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 15% 40%, rgba(201,168,76,0.08) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 85% 70%, rgba(201,168,76,0.05) 0%, transparent 70%),
        linear-gradient(180deg, var(--navy) 0%, #0A1520 100%);
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(201,168,76,0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 25%, transparent 75%);
    opacity: 0.35;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.28);
    border-radius: var(--radius-pill); padding: 5px 14px;
    font-size: 12px; color: var(--gold-light);
    font-weight: 600; margin-bottom: 1.25rem;
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-section h1 {
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--white);
    letter-spacing: -0.5px;
}

.hero-section .lead,
.hero-section p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.62);
    max-width: 560px;
}

.text-gold { color: var(--gold-light); }

.stat-box {
    border-right: 1px solid rgba(201,168,76,0.18);
    padding-right: 1.25rem;
    margin-right: 1.25rem;
}

.stat-box:first-child { border-right: none; padding-right: 0; margin-right: 0; }

.stat-num {
    font-size: 1.6rem; font-weight: 800;
    color: var(--gold-light); line-height: 1;
}
.stat-lbl {
    font-size: 11px; color: rgba(255,255,255,0.5);
    margin-top: 4px; letter-spacing: 0.3px;
}

/* ===== Section labels ===== */
.section-label {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 3.5px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.6rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    font-weight: 800; color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* ===== Section padding utility ===== */
section { padding: 4rem 0; }
section.hero-section { padding: 6rem 0 3.5rem; }

/* ===== Contact form ===== */
.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.vs-form-control {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(201,168,76,0.18) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--white) !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    direction: rtl;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
}

.vs-form-control:focus {
    border-color: rgba(201,168,76,0.55) !important;
    background: rgba(201,168,76,0.04) !important;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1) !important;
    color: var(--white) !important;
    outline: none;
}

.vs-form-control::placeholder { color: rgba(255,255,255,0.28) !important; }
.vs-form-control option { background: var(--navy-light); color: var(--white); }

.form-label {
    font-size: 12.5px; font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
}

/* ===== Contact info (kept for other potential pages) ===== */
.contact-info-item {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.08);
}

.contact-ico {
    width: 38px; height: 38px; min-width: 38px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 14px;
}

/* ===== Footer ===== */
.vs-footer {
    background: #070F1A;
    border-top: 1px solid rgba(201,168,76,0.1);
}

.footer-heading {
    font-size: 12px; font-weight: 700;
    color: var(--gold-light); letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 13.5px; transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }
.text-muted-light { color: rgba(255,255,255,0.45); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 1.25rem; padding-top: 1.25rem;
}

.footer-bottom p { font-size: 13px; }

.social-btn {
    width: 34px; height: 34px;
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(201,168,76,0.08);
    transform: translateY(-2px);
}

/* ===== Process steps ===== */
.process-line {
    border-right: 2px solid rgba(201,168,76,0.22);
    margin-right: 23px;
}

.step-num {
    width: 48px; height: 48px; min-width: 48px;
    background: var(--navy);
    border: 2px solid rgba(201,168,76,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800; color: var(--gold-light);
}

/* ===== Sections backgrounds ===== */
.bg-navy       { background: var(--navy); }
.bg-navy-mid   { background: var(--navy-mid); }
.bg-navy-light { background: var(--navy-light); }

/* ===== Alerts ===== */
.vs-alert {
    padding: 12px 18px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 13.5px;
    margin-bottom: 1rem;
    display: none;
}

.vs-alert.success {
    background: rgba(40,200,100,0.1);
    border: 1px solid rgba(40,200,100,0.3);
    color: #6fcf97;
}

.vs-alert.error {
    background: rgba(235,87,87,0.1);
    border: 1px solid rgba(235,87,87,0.3);
    color: #eb5757;
}

/* ===== Validation ===== */
.vs-validator {
    color: #e8704a !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    margin-top: 4px;
}

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Admin Dashboard ===== */
.admin-sidebar {
    background: var(--navy-mid);
    border-left: 1px solid rgba(201,168,76,0.15);
    min-height: 100vh; padding: 1.75rem 1.25rem;
}

.admin-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.6);
    text-decoration: none; font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 4px; transition: all 0.2s;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(201,168,76,0.1);
    color: var(--gold-light);
}

.admin-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-md); padding: 1.25rem;
}

.admin-table th {
    color: var(--gold); font-size: 11.5px;
    letter-spacing: 1px; text-transform: uppercase;
    border-bottom: 1px solid rgba(201,168,76,0.2) !important;
    background: rgba(201,168,76,0.05);
}

.admin-table td {
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-size: 13.5px; vertical-align: middle;
}

.badge-unread {
    background: rgba(201,168,76,0.15);
    color: var(--gold-light);
    border-radius: 6px; padding: 3px 9px;
    font-size: 10.5px; font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .vs-navbar > .container {
        border-radius: var(--radius-lg);
        padding: 0.75rem 1rem;
    }
    .vs-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(201,168,76,0.12);
    }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
        text-align: center;
    }
    .hero-section .lead,
    .hero-section p { margin-left: auto; margin-right: auto; }
    .stat-box { border-right: none; padding-right: 0; margin-right: 0; margin-bottom: 0.75rem; }
    .contact-card { padding: 1.25rem; }
    section { padding: 3rem 0; }
}
