/* ============================================
   VARIABLES & RESET
============================================ */
:root {
    --blue: #1B4FC4;
    --blue-dark: #1440a8;
    --blue-light: #f0f5ff;
    --blue-medium: #dbeafe;
    --red: #C41E3A;
    --red-dark: #a8182f;
    --red-light: #fff1f4;
    --navy: #0D1B2E;
    --navy-light: #162540;
    --gray: #6b7280;
    --gray-light: #f9fafb;
    --border: #e5e7eb;
    --text: #111827;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 36px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[lang="ar"] * { font-family: 'Noto Sans Arabic', sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   NAVIGATION
============================================ */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-wrap { display: flex; align-items: baseline; direction: ltr; }
.logo-4us { color: var(--blue); font-size: 26px; font-weight: 900; letter-spacing: -0.5px; direction: ltr; unicode-bidi: embed; }
.logo-it  { color: var(--red);  font-size: 26px; font-weight: 900; letter-spacing: -0.5px; direction: ltr; unicode-bidi: embed; }
.logo-sub { color: #9ca3af; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-left: 10px; white-space: nowrap; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0.125rem; }
.nav-links a { color: #374151; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }
.btn-nav { background: var(--blue) !important; color: #fff !important; padding: 9px 20px !important; border-radius: 8px !important; font-weight: 700 !important; }
.btn-nav:hover { background: var(--blue-dark) !important; color: #fff !important; }

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; flex-shrink: 0; }
.lang-btn { padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--gray); border: 1px solid var(--border); letter-spacing: 0.5px; transition: all 0.2s; }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    border-radius: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ============================================
   MAIN WRAPPER
============================================ */
.main-wrap { padding-top: 72px; }

/* ============================================
   PAGE HEADER  (inner pages — matches home hero light style)
============================================ */
.page-header {
    background: var(--blue-light);
    padding: 5.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(27,79,196,0.07) 0%, transparent 65%);
    border-radius: 50%;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 6%;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(196,30,58,0.05) 0%, transparent 65%);
    border-radius: 50%;
}
.page-header-stripe {
    position: absolute;
    top: 0; right: 0;
    width: 35%; height: 100%;
    background: #fff;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.page-header-badge-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.page-header-badge span { color: var(--gray); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.page-header h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.page-header-sub { color: var(--gray); font-size: 1rem; line-height: 1.7; max-width: 520px; }
.page-header-line { display: flex; align-items: center; gap: 6px; margin-top: 1.75rem; }
.page-header-line-blue { width: 40px; height: 3px; background: var(--blue); border-radius: 2px; }
.page-header-line-red  { width: 14px; height: 3px; background: var(--red); border-radius: 2px; }

/* ============================================
   HERO SECTION
============================================ */
.hero {
    background: var(--blue-light);
    position: relative;
    overflow: hidden;
    padding: 7rem 0 0;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(27,79,196,0.07) 0%, transparent 65%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(196,30,58,0.05) 0%, transparent 65%);
    border-radius: 50%;
}
.hero-stripe {
    position: absolute;
    top: 0; right: 0;
    width: 42%; height: 100%;
    background: #fff;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 5.5rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-content { /* left column */ }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 18px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-badge-text { color: var(--gray); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.07;
    margin-bottom: 1.5rem;
    color: var(--navy);
    letter-spacing: -1.5px;
}
.hero p { color: var(--gray); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.75rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ============================================
   HERO VISUAL  (right column)
============================================ */
.hero-visual {
    position: relative;
    height: 400px;
}

/* Main Azure dashboard card */
.hv-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 40px rgba(27,79,196,0.13), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(27,79,196,0.08);
    animation: hv-float 6s ease-in-out infinite;
}
.hv-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }
.hv-card-icon {
    width: 52px; height: 52px;
    background: var(--blue-light);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.hv-card-name { font-size: 1rem; font-weight: 800; color: var(--navy); }
.hv-card-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #10b981; font-weight: 600; margin-top: 3px; }
.hv-status-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; animation: blink 2s ease-in-out infinite; }

.hv-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.hv-metric { text-align: center; padding: 0 0.5rem; border-right: 1px solid var(--border); }
.hv-metric:last-child { border-right: none; }
.hv-metric-val { font-size: 1.5rem; font-weight: 900; color: var(--blue); letter-spacing: -0.5px; }
.hv-metric-lbl { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Floating chips */
.hv-chip {
    position: absolute;
    background: #fff;
    border-radius: 100px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.hv-chip-1 { bottom: 80px; left: -8px; animation: hv-float 4.5s ease-in-out infinite 1.2s; }
.hv-chip-2 { bottom: 140px; right: -8px; animation: hv-float 5.5s ease-in-out infinite 0.4s; }

/* Tech tags bar */
.hv-tags {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--navy);
    border-radius: 14px;
    padding: 0.875rem 1.25rem;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.hv-tags-label {
    color: rgba(255,255,255,0.4);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hv-tags-divider {
    width: 1px; height: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.hv-tag {
    background: rgba(27,79,196,0.25);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(27,79,196,0.3);
    white-space: nowrap;
}

@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(27,79,196,0.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,79,196,0.4); }

.btn-secondary {
    background: #fff;
    color: var(--red);
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

.btn-white {
    background: #fff;
    color: var(--blue);
    padding: 15px 42px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }

/* ============================================
   STATS BAR
============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat { padding: 2.25rem 2rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 2.75rem; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.stat-num.blue { color: var(--blue); }
.stat-num.red  { color: var(--red); }
.stat-num.dark { color: var(--navy); }
.stat-num-text { font-size: 1.75rem; letter-spacing: -0.5px; }
.stat-label { color: #9ca3af; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; font-weight: 500; }

/* ============================================
   GENERIC SECTION
============================================ */
.section     { padding: 6rem 0; }
.section-alt { background: var(--gray-light); }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.eyebrow-line-blue { width: 32px; height: 3px; background: var(--blue); border-radius: 2px; }
.eyebrow-line-red  { width: 12px; height: 3px; background: var(--red); border-radius: 2px; }
.eyebrow-text { color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

.section-title    { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; color: var(--navy); margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-subtitle { color: var(--gray); font-size: 1rem; line-height: 1.75; max-width: 560px; margin-bottom: 3.5rem; }

/* ============================================
   SERVICE CARDS  (home preview)
============================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.service-card {
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid;
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card.blue-card { background: var(--blue-light); border-color: #d4e2fa; }
.service-card.red-card  { background: var(--red-light);  border-color: #fad4dd; }

.service-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.service-icon.blue-icon { background: var(--blue-medium); }
.service-icon.red-icon  { background: #fecdd3; }

.service-card h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 0.6rem; }
.service-card p  { font-size: 13.5px; color: var(--gray); line-height: 1.75; }

/* ============================================
   SERVICE DETAIL CARDS  (services page)
============================================ */
.services-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.service-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-detail-card:nth-child(even) { border-top-color: var(--red); }
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-detail-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; }
.service-detail-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.75rem; }
.service-detail-card > p { color: var(--gray); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.75rem; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: #374151; }
.service-list-check {
    width: 22px; height: 22px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.service-detail-card:nth-child(even) .service-list-check { background: var(--red-light); color: var(--red); }

/* ============================================
   CTA SECTION
============================================ */
.cta {
    background: var(--blue);
    padding: 6.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -90px; right: -90px;
    width: 340px; height: 340px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta::after {
    content: '';
    position: absolute;
    bottom: -70px; left: -70px;
    width: 260px; height: 260px;
    background: rgba(196,30,58,0.18);
    border-radius: 50%;
}
.cta-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; padding: 0 2rem; }
.cta h2 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.5px; }
.cta h2 span { color: #fbbf24; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; font-size: 1rem; }

/* ============================================
   ABOUT PAGE
============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.about-text h2 { font-size: 1.85rem; font-weight: 900; color: var(--navy); margin-bottom: 1.5rem; letter-spacing: -0.5px; }
.about-text > p { color: var(--gray); line-height: 1.9; font-size: 1rem; margin-bottom: 2rem; }

.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stat-card { background: #f9fafb; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.about-stat-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.about-stat-num.blue { color: var(--blue); }
.about-stat-num.red  { color: var(--red); }
.about-stat-num.navy { color: var(--navy); }
.about-stat-label { color: var(--gray); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; font-weight: 500; }

.about-certifications { background: var(--navy); border-radius: var(--radius-lg); padding: 2.5rem; }
.about-certifications h3 { color: #93c5fd; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; }
.cert-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cert-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.cert-check {
    width: 24px; height: 24px;
    background: rgba(27,79,196,0.2);
    border: 1px solid rgba(27,79,196,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #93c5fd; font-size: 12px;
    flex-shrink: 0;
}
.about-location { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.about-location-label { color: rgba(255,255,255,0.4); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; font-weight: 600; }
.about-location p { color: #fff; font-size: 0.9rem; margin-top: 6px; }

/* ============================================
   CONTACT PAGE
============================================ */
.contact-section { background: var(--gray-light); padding: 6rem 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    box-shadow: var(--shadow-sm);
}
.contact-form-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 2rem; }

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #166534;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: #374151; }
.form-input,
.form-textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,196,0.1); }
.form-textarea { resize: none; height: 145px; }
.btn-submit {
    background: var(--blue);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.contact-info-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-icon { width: 42px; height: 42px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-label { font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-value { font-size: 14px; color: var(--text); font-weight: 600; margin-top: 2px; }

.availability-card { background: var(--navy); border-radius: var(--radius-lg); padding: 2rem; }
.availability-card h3 { color: #93c5fd; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.availability-card p  { color: rgba(255,255,255,0.6); line-height: 1.8; font-size: 0.9rem; }

/* ============================================
   FOOTER
============================================ */
.footer { background: var(--navy); padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { display: flex; align-items: baseline; direction: ltr; margin-bottom: 0.75rem; }
.footer-logo .f4us { color: #93c5fd; font-weight: 900; font-size: 22px; }
.footer-logo .fit  { color: #fca5a5; font-weight: 900; font-size: 22px; }
.footer-desc { color: rgba(255,255,255,0.38); font-size: 13px; line-height: 1.65; max-width: 260px; }

.footer-links h4 { color: rgba(255,255,255,0.5); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul a { color: rgba(255,255,255,0.45); font-size: 13px; transition: color 0.2s; }
.footer-links ul a:hover { color: #93c5fd; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.75rem;
}
.footer-copy  { color: rgba(255,255,255,0.28); font-size: 12px; }
.footer-email { color: #93c5fd; font-size: 12px; transition: opacity 0.2s; }
.footer-email:hover { opacity: 0.75; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-inner   { grid-template-columns: 1fr; gap: 0; }
    .hero-visual  { display: none; }
    .hero-stripe  { display: none; }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px; left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    .nav-links.open a { padding: 10px 14px; border-radius: 8px; width: 100%; }
    .nav-toggle { display: flex; }

    /* Hero */
    .hero { padding: 5rem 0 0; }
    .hero-inner { padding-bottom: 3.5rem; }

    /* Stats */
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: none; }

    /* Grids */
    .services-grid        { grid-template-columns: 1fr; }
    .services-detail-grid { grid-template-columns: 1fr; }
    .about-stats-grid     { grid-template-columns: 1fr 1fr; }

    .footer-top    { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.25rem; }
    [dir="rtl"] .hero h1 { white-space: normal; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary { width: 100%; justify-content: center; }
    .page-header { padding: 4rem 0 3rem; }
    .section     { padding: 4rem 0; }
    .contact-form-card { padding: 1.75rem; }
    .about-stats-grid  { grid-template-columns: 1fr; }
}

/* ============================================
   RTL SUPPORT
============================================ */
[dir="rtl"] .hero-stripe { right: auto; left: 0; clip-path: polygon(0 0, 82% 0, 100% 100%, 0% 100%); }
[dir="rtl"] .hero-inner  { direction: rtl; }
[dir="rtl"] .hv-chip-1   { left: auto; right: -8px; }
[dir="rtl"] .hv-chip-2   { right: auto; left: -8px; }
[dir="rtl"] .hv-tags      { flex-direction: row-reverse; }
[dir="rtl"] .logo-sub    { margin-left: 0; margin-right: 10px; }

[dir="rtl"] .stat { border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .stat:last-child { border-left: none; }

[dir="rtl"] .section-eyebrow   { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .page-header-line  { flex-direction: row-reverse; }
[dir="rtl"] .page-header-badge { flex-direction: row-reverse; }
[dir="rtl"] .page-header-stripe { right: auto; left: 0; clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%); }

/* Arabic hero title: force single line, remove letter-spacing (breaks cursive script) */
[dir="rtl"] .hero h1 {
    letter-spacing: 0;
    white-space: nowrap;
    text-align: right;
    direction: rtl;
}
[dir="rtl"] .hero p  { text-align: right; }
[dir="rtl"] .hero-btns { justify-content: flex-start; }
[dir="rtl"] .hero-badge { flex-direction: row-reverse; }

[dir="rtl"] .service-list li   { flex-direction: row-reverse; }
[dir="rtl"] .cert-list li      { flex-direction: row-reverse; }
[dir="rtl"] .contact-info-item { flex-direction: row-reverse; }

[dir="rtl"] .footer-links ul { text-align: right; }
[dir="rtl"] .footer-bottom   { flex-direction: row-reverse; }
[dir="rtl"] .footer-desc     { text-align: right; }

@media (max-width: 768px) {
    [dir="rtl"] .stat { border-left: none; border-bottom: 1px solid var(--border); }
    [dir="rtl"] .stat:last-child { border-bottom: none; }
    [dir="rtl"] .nav-links.open { align-items: flex-end; }
}
