/* ==========================================================================
   الهادي للخدمات البحثية - Al-Hadi Research Services
   Premium Design System (Light & Dark Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f9fc;
    --border-color: #dfe6ee;
    --border-light: rgba(0, 0, 0, 0.05);

    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --primary: #1a5fb4;
    --primary-hover: #144a8a;
    --primary-light: rgba(26, 95, 180, 0.08);
    --primary-glow: rgba(26, 95, 180, 0.25);

    --accent: #0e8a5f;
    --accent-hover: #0a6b49;
    --accent-light: rgba(14, 138, 95, 0.08);

    --gold: #c27803;
    --gold-light: rgba(194, 120, 3, 0.1);
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1fad54;

    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
    --glass-blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-card-hover: #242d3d;
    --border-color: #2d3748;
    --border-light: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f6fc;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;

    --primary: #58a6ff;
    --primary-hover: #1a5fb4;
    --primary-light: rgba(88, 166, 255, 0.1);
    --primary-glow: rgba(88, 166, 255, 0.2);

    --accent: #3fb950;
    --accent-hover: #2ea043;
    --accent-light: rgba(63, 185, 80, 0.1);

    --gold: #e3b341;
    --gold-light: rgba(227, 179, 65, 0.1);
    --header-bg: rgba(13, 17, 23, 0.92);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(145deg, #0d1b3e 0%, #1a365d 30%, #0d2847 60%, #0a1628 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 95, 180, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 40px rgba(88, 166, 255, 0.3), 0 0 80px rgba(88, 166, 255, 0.1);
    animation: logo-float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.loading-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    max-width: 600px;
    padding: 0 30px;
    line-height: 2;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fade-up 1s ease 0.5s forwards;
}

.loading-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fade-up 1s ease 0.3s forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 35px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.loading-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #3fb950);
    border-radius: 3px;
    animation: loading-progress 2.5s ease forwards;
}

@keyframes loading-progress {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 70%; }
    90% { width: 92%; }
    100% { width: 100%; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.logo-area:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.logo-icon:hover {
    box-shadow: var(--shadow-md);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
}

nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

nav a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
}

/* ==========================================================================
   Hero / Intro Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 70px 0 50px 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    letter-spacing: -0.2px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle-ar {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-subtitle-en {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    margin-bottom: 32px;
    direction: ltr;
    text-align: center;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1a5fb4, #144a8a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 95, 180, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 95, 180, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #1fad54);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-outline::after { display: none; }

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Services Grid & Cards
   ========================================================================== */
.section {
    padding: 70px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 95, 180, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-num {
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--border-color);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    opacity: 0.6;
}

.service-card:hover .service-num {
    color: var(--primary);
    opacity: 0.25;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transition);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.service-title-ar {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.service-title-en {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    margin-bottom: 12px;
    direction: ltr;
    text-align: right;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-action-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

/* ==========================================================================
   Quick Contact & Phone Bar
   ========================================================================== */
.contact-numbers-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 35px 0;
    margin: 30px 0;
}

.contact-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.phone-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.phone-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.phone-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.icon-phone {
    background: rgba(26, 95, 180, 0.1);
    color: #1a5fb4;
}

.phone-details {
    flex-grow: 1;
}

.phone-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 500;
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 700;
    direction: ltr;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.phone-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 4px;
}

.badge-wa {
    background: rgba(37, 211, 102, 0.1);
    color: #1fad54;
}

.badge-call {
    background: rgba(26, 95, 180, 0.1);
    color: #1a5fb4;
}

/* ==========================================================================
   Forms & Contact Page
   ========================================================================== */
.form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 35px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-wa 2.5s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
    color: #fff;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Order Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modal-in 0.35s ease-out;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.93) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.modal-service-name {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 22px;
    font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 45px 0 28px 0;
    margin-top: 60px;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.checkout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--bg-primary);
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.checkout-header {
    text-align: center;
    margin-bottom: 28px;
}

.checkout-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px auto;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

.checkout-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.checkout-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.checkout-service-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 12px;
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.checkout-back {
    color: var(--text-muted);
    text-align: center;
    padding: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.checkout-back:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 16px 20px;
        display: none;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    nav a {
        text-align: center;
        padding: 12px;
        border-radius: var(--radius-sm);
    }

    .hero {
        padding: 45px 0 35px 0;
    }

    .hero h2 {
        font-size: 1.65rem;
    }

    .hero-subtitle-ar {
        font-size: 1rem;
    }

    .floating-whatsapp {
        bottom: 18px;
        left: 18px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .theme-toggle span:last-child {
        display: none;
    }

    .theme-toggle {
        padding: 8px 10px;
    }

    .brand-text h1 {
        font-size: 1.08rem;
    }

    .brand-text span {
        font-size: 0.68rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-cards-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .form-container {
        padding: 22px;
        border-radius: var(--radius-lg);
    }

    .modal-box {
        padding: 22px;
        border-radius: var(--radius-lg);
        max-width: 95vw;
    }

    .section {
        padding: 45px 0;
    }

    .contact-numbers-section {
        padding: 25px 0;
        margin: 20px 0;
    }

    .phone-card {
        padding: 14px 16px;
    }

    .service-card {
        padding: 22px 20px;
    }

    .btn {
        padding: 11px 22px;
        font-size: 0.92rem;
    }

    .checkout-card {
        padding: 28px 22px;
    }

    .loading-title {
        font-size: 1.4rem;
    }

    .loading-text {
        font-size: 0.95rem;
    }

    .loading-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero-subtitle-ar {
        font-size: 0.93rem;
    }

    .hero-subtitle-en {
        font-size: 0.85rem;
    }

    .nav-wrapper {
        padding: 10px 0;
    }

    .brand-text h1 {
        font-size: 0.95rem;
    }

    .brand-text span {
        font-size: 0.62rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .service-title-ar {
        font-size: 1.08rem;
    }

    .service-desc {
        font-size: 0.88rem;
    }

    .phone-number {
        font-size: 1rem;
    }

    .phone-label {
        font-size: 0.78rem;
    }

    footer {
        padding: 30px 0 18px 0;
        margin-top: 35px;
    }

    .loading-title {
        font-size: 1.2rem;
    }

    .loading-text {
        font-size: 0.88rem;
        padding: 0 20px;
    }

    .loading-logo {
        width: 70px;
        height: 70px;
    }
}