@font-face { font-family: 'Hanimation Arabic'; src: url('../fonts/ArbFONTS-Hanimation_Arabic_Light.otf') format('opentype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Hanimation Arabic'; src: url('../fonts/ArbFONTS-Hanimation_Arabic_Regular.otf') format('opentype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Hanimation Arabic'; src: url('../fonts/ArbFONTS-Hanimation_Arabic_Medium.otf') format('opentype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Hanimation Arabic'; src: url('../fonts/ArbFONTS-Hanimation_Arabic_SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Hanimation Arabic'; src: url('../fonts/ArbFONTS-Hanimation_Arabic_Bold.otf') format('opentype'); font-weight: 700; font-style: normal; }

:root {
    --whatsapp: #25D366;
    --whatsapp-hover: #1EBE5D;
    --whatsapp-dark: #128C7E;
    --whatsapp-gradient: linear-gradient(135deg, #25D366, #128C7E);
    --orange-primary: #F5A623;
    --orange-hover: #FF8C00;
    --orange-dark: #D97706;
    --orange-gradient: linear-gradient(135deg, #F5A623, #FF8C00);
    --gold-primary: var(--orange-primary);
    --gold-gradient: var(--orange-gradient);
    --copper: #8B5E3C;
    --copper-dark: #6F4E37;
    --copper-light: #A97142;
    --bg-main: #F9F6F1;
    --bg-alt: #F3EEE7;
    --bg-dark: #120e0a;
    --white: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #555555;
    --text-placeholder: #999999;
    --border-color: #F3EEE7;
    --font-main: 'Cairo', sans-serif;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --hero-box-width: 350px;
    --hero-title-size: 65px;
    --hero-gap: 40px;
}

* { box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-main); background-color: var(--bg-main); line-height: 1.6; overflow-x: hidden; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 16px; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--orange-gradient); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); }
.btn-primary-dark { background: var(--bg-dark); color: var(--orange-primary); border: 1px solid var(--orange-primary); }
.btn-whatsapp { background-color: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); transform: translateY(-2px); }
.btn-whatsapp-large { background-color: var(--whatsapp); color: #0A3B1E; padding: 18px 48px; border-radius: 10px; font-size: 18px; display: inline-flex; flex-direction: column; line-height: 1.2; width: 100%; max-width: 400px; text-align: center; }
.btn-whatsapp-large .btn-subtext { font-size: 12px; font-weight: 400; }
.btn-whatsapp-large i { font-size: 24px; margin-bottom: 5px; }
.btn-block { width: 100%; }

.header { background-color: var(--white); padding: 25px 0; box-shadow: var(--shadow-sm); position: relative; z-index: 100; transition: box-shadow 0.3s; }
.header.header-sticky { position: sticky; top: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.header-content { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo-img { height: 50px; }
.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 25px; }
.main-nav a { font-weight: 700; font-size: 16px; color: var(--text-main); }
.main-nav a:hover, .main-nav a.active { color: var(--gold-primary); border-bottom: 2px solid var(--gold-primary); padding-bottom: 5px; }
.header-contact { display: flex; align-items: center; gap: 15px; }
.phone-wrapper { display: flex; flex-direction: column; align-items: flex-start; }
.phone-label { font-size: 13px; color: var(--text-muted); }
.phone-number { font-weight: 800; font-size: 18px; color: var(--text-main); }
.phone-icon { width: 45px; height: 45px; background: var(--orange-gradient); color: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
@media (max-width: 768px) {
    .header-brand-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; background: var(--whatsapp-gradient); color: #0A3B1E; padding: 12px 20px; border-radius: 30px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md); z-index: 999; font-weight: 700; line-height: 1.2; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.floating-whatsapp.show, .ai-float-btn.show { opacity: 1; visibility: visible; }
.ai-float-btn { opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.floating-whatsapp i { font-size: 30px; }
.floating-whatsapp span { font-size: 14px; }

/* ===== HERO - DARK CINEMATIC SPLIT LAYOUT ===== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0d0b09;
    display: flex;
    align-items: stretch;
}
.hero-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 47% auto;
    z-index: 1;
    opacity: 0.85;
    filter: brightness(0.7) saturate(0.8);
    /* Fade out the left edge smoothly with mask */
    -webkit-mask-image: linear-gradient(
        to left,
        black 0%,
        black 30%,
        rgba(0,0,0,0.8) 45%,
        rgba(0,0,0,0.3) 60%,
        transparent 80%
    );
    mask-image: linear-gradient(
        to left,
        black 0%,
        black 30%,
        rgba(0,0,0,0.8) 45%,
        rgba(0,0,0,0.3) 60%,
        transparent 80%
    );
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* gradient: transparent on right (image visible), dark on left (text area) */
    background: linear-gradient(
        to right,
        rgba(8, 5, 2, 0.98) 0%,
        rgba(10, 7, 3, 0.92) 30%,
        rgba(12, 8, 3, 0.55) 55%,
        rgba(8, 5, 2, 0.2) 75%,
        transparent 100%
    );
    z-index: 2;
}
.custom-shape-divider-bottom { display: none !important; }

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 3;
    padding: 100px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    zoom: 0.8;
}

/* Right side: content area */
.hero-content {
    flex: 1;
    max-width: 580px;
    text-align: right;
    padding-right: 0;
    animation: fadeInRight 0.8s ease forwards;
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-right: 3px solid #D89B1D;
    padding-right: 10px;
}
.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 24px 0;
    color: #1A1A1A;
}
.hero-title .highlight, .hero-title .gold-text {
    color: #D89B1D;
    text-shadow: 0 0 30px rgba(216,155,29,0.4);
}
@keyframes hero-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
@keyframes hero-pulse-gold {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
.hero-pulse { animation: hero-pulse 1.8s ease-in-out infinite; }
.hero-pulse-gold { animation: hero-pulse-gold 1.8s ease-in-out infinite; }
.hero-features {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.6);
    line-height: 2;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
    width: 100%;
    max-width: 360px;
}
.hero-actions .btn { width: 100%; margin: 0; }
/* Desktop versions of mobile-style buttons */
.desktop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    cursor: pointer;
    color: #fff !important;
}
.desktop-btn:active { transform: scale(0.97); }
.desktop-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.desktop-btn i { font-size: 20px; }

/* Shared action button style (mobile-first, full-width) */
.btn-action-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}
.btn-action-mobile:active { transform: scale(0.97); }

/* Button colors available globally (not just inside mobile media query) */
.mobile-btn-gold { background: #7A4A2E; color: #fff !important; }
.mobile-btn-gold:hover { background: #8B5E3C; }

.mobile-btn-green { background: #20B859; color: #fff !important; }
.mobile-btn-green:hover { background: #1DAA4F; }
.free-consult-text {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    text-align: right;
    max-width: 420px;
    margin: 0;
}

/* Left side: glassmorphism form */
.hero-form-wrapper {
    flex: 0 0 360px;
    animation: fadeInLeft 0.8s ease 0.2s both;
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.consultation-form {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(216,155,29,0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 28px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.consultation-form h2,
.consultation-form h3 {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    margin-top: 0;
    color: #fff;
}
.consultation-form > p {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 18px;
}
.form-group { margin-bottom: 12px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-group select option {
    background: #1a1208;
    color: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #D89B1D;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(216,155,29,0.15);
}
.privacy-note { text-align: center; font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 10px; }
.privacy-note i { color: #D89B1D; }

.stats-section { position: relative; background-image: url('../images/stats_gold_bg_1784752509042.jpg'); background-image: -webkit-image-set(url('../images/stats_gold_bg_1784752509042.webp') 1x); background-image: image-set(url('../images/stats_gold_bg_1784752509042.webp') 1x); background-repeat: no-repeat; background-position: center; background-size: cover; padding: 30px 0; color: var(--white); margin-top: -10px; }
.stats-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(30, 20, 10, 0.2) 0%, rgba(30, 20, 10, 0.85) 30%, rgba(30, 20, 10, 0.85) 70%, rgba(30, 20, 10, 0.2) 100%); z-index: 1; }
.stats-container { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.stat-box { display: flex; align-items: center; gap: 15px; flex: 1; position: relative; }
.stat-box:not(:last-child)::after { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 40px; width: 1px; background-color: rgba(255,255,255,0.3); }
.stat-icon { font-size: 35px; }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-text { font-size: 14px; font-weight: 600; }

.services-section { padding: 30px 0; background-color: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--text-main); display: inline-block; position: relative; }
.section-header h2::before, .section-header h2::after { content: ''; position: absolute; top: 50%; width: 40px; height: 2px; background-color: var(--gold-primary); }
.section-header h2::before { right: -55px; }
.section-header h2::after { left: -55px; }
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 16px; }
.services-slider-container { display: flex; align-items: center; gap: 20px; }
.services-grid { display: flex; gap: 20px; overflow-x: auto; padding: 20px 5px; scrollbar-width: none; }
.services-grid::-webkit-scrollbar { display: none; }
.service-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px 20px; text-align: center; min-width: 200px; transition: var(--transition); cursor: pointer; }
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-primary); transform: translateY(-5px); }
.service-icon { font-size: 40px; color: #D89B1D; margin-bottom: 20px; width:80px;height:80px;border-radius:50%;background:#1A1A1A;display:inline-flex;align-items:center;justify-content:center; }
.service-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.service-link { color: #906608; font-size: 14px; font-weight: 700; }
.service-link i { margin-right: 5px; font-size: 12px; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-primary); color: var(--white); border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 16px; flex-shrink: 0; }

.why-us-section { background-color: var(--bg-alt); padding: 80px 0; }
.why-us-container { display: flex; align-items: center; gap: 50px; }
.why-us-content { flex: 1; }
.why-us-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.why-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }
.reasons-list { margin-bottom: 40px; }
.reasons-list li { display: flex; align-items: center; gap: 15px; font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.reasons-list li i { color: var(--gold-primary); font-size: 20px; }
.why-us-image-wrapper { flex: 1; position: relative; height: 500px; background-image: url('../images/lawyer_portrait_1784752652149.jpg'); background-image: -webkit-image-set(url('../images/lawyer_portrait_1784752652149.webp') 1x); background-image: image-set(url('../images/lawyer_portrait_1784752652149.webp') 1x); background-repeat: no-repeat; background-position: center; background-size: cover; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lawyer-card { position: absolute; bottom: 30px; right: 30px; background: rgba(0,0,0,0.8); color: var(--white); padding: 20px; border-radius: 8px; border-right: 4px solid var(--gold-primary); backdrop-filter: blur(5px); }
.lawyer-card h3 { font-size: 22px; color: var(--gold-primary); line-height: 1.2; margin-bottom: 5px; }
.lawyer-card p { font-size: 14px; margin-bottom: 10px; }
.exp-badge { background: var(--orange-gradient); padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; }

.testimonials-section { padding: 80px 0; background: var(--white); }
.testimonials-slider { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.testimonials-grid { display: flex; gap: 20px; overflow-x: auto; padding: 20px 5px; scrollbar-width: none; }
.testimonials-grid::-webkit-scrollbar { display: none; }
.testimonial-card { background: var(--bg-alt); border-radius: 12px; padding: 30px; min-width: 300px; flex: 1; text-align: center; border: 1px solid var(--border-color); }
.quote-icon { font-size: 30px; color: var(--gold-primary); margin-bottom: 15px; opacity: 0.5; }
.testimonial-text { font-size: 15px; font-weight: 700; line-height: 1.6; margin-bottom: 20px; min-height: 70px; }
.stars { color: var(--gold-primary); margin-bottom: 15px; }
.client-name { font-weight: 800; font-size: 16px; margin:0; }
.client-title { font-size: 13px; color: var(--text-muted); }

.footer-cta { position: relative; background-color: #120e0a; }
.cta-banner { position: relative; padding: 50px 0; overflow: hidden; }
.cta-banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../images/legal_gavel_bg_1784752318346.jpg'); background-image: -webkit-image-set(url('../images/legal_gavel_bg_1784752318346.webp') 1x); background-image: image-set(url('../images/legal_gavel_bg_1784752318346.webp') 1x); background-repeat: no-repeat; background-position: right center; background-size: cover; opacity: 0.3; z-index: 1; }
.cta-content { position: relative; z-index: 2; color: var(--white); }
.cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 5px; }
.cta-content p { font-size: 16px; color: #dddddd; margin-bottom: 30px; }
.cta-actions { display: flex; justify-content: center; align-items: stretch; gap: 20px; flex-wrap: wrap; }
.btn-cta { display: inline-flex; align-items: center; justify-content: space-between; padding: 12px 25px; border-radius: 8px; gap: 15px; transition: var(--transition); min-width: 220px; }
.btn-cta-dark { background: rgba(30, 20, 10, 0.6); border: 1px solid rgba(245, 166, 35, 0.4); color: var(--white); }
.btn-cta-dark:hover { border-color: var(--orange-primary); background: rgba(30, 20, 10, 0.8); }
.btn-cta-green { background: var(--whatsapp-gradient); color: #0A3B1E; border: 1px solid var(--whatsapp); }
.btn-cta-green:hover { background: var(--whatsapp-hover); }
.btn-text { display: flex; flex-direction: column; }
.text-right { text-align: right; }
.btn-label { font-size: 12px; color: #cccccc; font-weight: 600; line-height: 1.2; }
.btn-number { font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.2; }
.btn-label-bold { font-size: 14px; font-weight: 700; line-height: 1.3; }
.btn-icon { font-size: 26px; color: var(--white); }
.btn-cta-dark .btn-icon { color: var(--gold-primary); }

.footer-features { background-color: var(--white); padding: 25px 0; border-top: 1px solid var(--border-color); }
.features-container { display: flex; justify-content: space-between; align-items: center; }
.f-feature { display: flex; align-items: center; gap: 12px; }
.f-icon { font-size: 30px; color: var(--gold-primary); }
.f-text h4 { font-size: 14px; font-weight: 800; color: var(--text-main); margin: 0 0 3px 0; }
.f-text p { font-size: 11px; color: var(--text-muted); font-weight: 600; margin: 0; }
.f-divider { width: 1px; height: 35px; background-color: var(--border-color); }

.mobile-menu-toggle { display: none; font-size: 26px; color: var(--orange-primary); cursor: pointer; }

.main-nav li { position: relative; }
.dropdown-menu { position: absolute; top: 100%; right: 0; background-color: var(--white); box-shadow: var(--shadow-md); border-radius: 8px; padding: 10px 0; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 1000; border: 1px solid var(--border-color); text-align: right; }
.main-nav li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 15px; font-weight: 600; color: var(--text-main); border: none !important; }
.dropdown-menu a:hover { background-color: var(--bg-alt); color: var(--orange-primary) !important; }

.admin-bar { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--bg-dark); color: var(--gold-primary); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 9999; box-shadow: var(--shadow-md); font-weight: 700; }
.admin-bar-btns { display: flex; gap: 10px; }
.admin-bar-btn { padding: 6px 12px; border-radius: 4px; font-size: 14px; cursor: pointer; border: none; transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.admin-bar-btn-edit { background: var(--gold-primary); color: var(--white); }
.admin-bar-btn-save { background: var(--whatsapp); color: var(--white); }
.admin-bar-btn-cancel { background: #e74c3c; color: var(--white); }
.inline-input, .inline-textarea { width: 100%; background: rgba(255, 255, 255, 0.9); border: 2px dashed var(--gold-primary); color: var(--text-main); padding: 5px 10px; border-radius: 4px; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; outline: none; transition: var(--transition); }
.inline-input:focus, .inline-textarea:focus { background: #fff; border-style: solid; box-shadow: 0 0 5px rgba(245, 166, 35, 0.5); }
body.admin-mode .header { position: sticky; top: 50px; }

.spinner { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.spinner i { font-size: 48px; color: var(--gold-primary); animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.ql-editor { min-height: 200px; }

@media (max-width: 992px) {
    .hero-container { flex-direction: column; align-items: center; text-align: center; gap: 40px; padding: 100px 20px 60px; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-subtitle { text-align: center; }
    .hero-title { font-size: 42px; }
    .features-row { flex-wrap: wrap; justify-content: center; }
    .hero-actions { justify-content: center; }
    .free-consult-text { text-align: center; margin: 0 auto; }
    .hero-form-wrapper { flex: none; width: 100%; max-width: 420px; }
    .stats-container { flex-wrap: wrap; gap: 30px; }
    .stat-box { min-width: 40%; }
    .stat-box::after { display: none; }
    .why-us-container { flex-direction: column; }
    .why-us-image-wrapper { width: 100%; }
}

@media (max-width: 768px) {
    .header-content { position: relative; }
    .header-contact { display: none; }
    .mobile-menu-toggle { display: block; }
    .main-nav { display: none; }
    .hero-container { display: flex; flex-direction: column; }
    .hero { padding: 0; position: relative; min-height: 100vh; overflow: hidden; background: #111; }
    .hero-container { max-width: 100%; padding: 0; }
    .feature-item { min-width: 45%; }
    .stat-box { min-width: 100%; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
    .stat-box:last-child { border-bottom: none; padding-bottom: 0; }
    .section-header h2 { font-size: 28px; }
    .section-header h2::before, .section-header h2::after { display: none; }
    .why-us-content h2 { font-size: 28px; }
    .reasons-list li { font-size: 15px; }
    .why-us-image-wrapper { height: auto; display: flex; flex-direction: column; background: none; box-shadow: none; }
    .why-us-image-wrapper::before { content: ''; display: block; height: 300px; background: url('../images/lawyer_portrait_1784752652149.jpg') center/cover no-repeat; border-radius: 12px; margin-bottom: 20px; }
    .lawyer-card { position: relative; right: auto; bottom: auto; left: auto; padding: 20px; text-align: center; border-right: none; border-bottom: 4px solid var(--orange-primary); width: 100%; }
    .lawyer-card h3 { font-size: 18px; }
    .cta-actions { flex-direction: column; }
    .btn-cta { width: 100%; justify-content: center; text-align: center; }
    .features-container { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; flex-direction: unset; }
    .f-feature { flex-direction: column; text-align: center; gap: 2px; }
    .f-feature .f-icon { font-size: 18px; }
    .f-feature h4 { font-size: 11px; white-space: nowrap; }
    .f-feature p { font-size: 9px; white-space: nowrap; }
    .f-text.text-right { text-align: center; }
    .f-divider { display: none; }
    .floating-whatsapp { bottom: 15px; right: 15px; padding: 10px 15px; }
    .floating-whatsapp span { display: none; }
    .floating-whatsapp i { margin: 0; }
    .ai-float-btn, #ai-navigator-btn { display: none !important; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; background: transparent; padding-right: 20px; transform: none; border: none; min-width: auto; }
}

/* ===== MOBILE RESPONSIVE ENHANCEMENTS ===== */

/* Blog: article cards min-width 280px instead of 320px */
@media (max-width: 680px) {
    [style*="grid-template-columns:repeat(auto-fill,minmax(320px,1fr))"] {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
}
@media (max-width: 400px) {
    [style*="grid-template-columns:repeat(auto-fill,minmax(320px,1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* Service page: reduce card horizontal padding on mobile */
@media (max-width: 640px) {
    [style*="padding:32px 64px"][style*="background:white;border-radius:24px"] {
        padding: 24px 20px !important;
    }
    /* CTA section on service page */
    [style*="padding:40px 64px"][style*="text-align:center"][style*="background:#111"] {
        padding: 32px 20px !important;
    }
    /* Hero page title */
    h1[style*="font-size:3rem"] { font-size: 2rem !important; }
}

/* Slider: 2-column grid on mobile, no slider */
@media (max-width: 768px) {
    .services-slider-container { padding: 0 !important; }
    .slider-btn { display: none !important; }
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .services-grid .service-card {
        min-width: 0 !important;
        max-width: 100% !important;
        flex-shrink: unset !important;
        padding: 20px 14px;
    }
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50% !important;
        justify-self: center;
    }
}

/* Stats: smaller min-width on mobile */
@media (max-width: 600px) {
    .stat-box[style*="min-width:200px"] { min-width: 140px !important; }
}

/* Admin: mobile responsive */
@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; height: auto; }
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 52px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: relative;
    }
    .sidebar.open { max-height: 100vh; }
    .mobile-logout { display: block; }
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        background: #111;
        color: white;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 16px;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
    }
    .sidebar-toggle i { font-size: 20px; }
    .sidebar-header { padding: 12px 20px; }
    .sidebar-nav { padding: 8px; }
    .sidebar-footer { display: none; }
    .main-area { overflow: visible; }
    .top-bar { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
    .top-bar h2 { font-size: 1rem; margin-bottom: 4px; }
    .top-bar .btn-save { width: 100%; justify-content: center; }
    .content-area { padding: 16px; }
    .card { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
    .stat-card { padding: 16px !important; }
    .stat-card .num { font-size: 1.75rem !important; }
    /* Hide visual stats cards on tiny screens */
    .stat-card[style*="background:#eff6ff"] { max-width: 100%; }
}

@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr !important; }
    .sidebar-toggle { font-size: 14px; }
}

/* Admin sidebar toggle button (hidden by default, shown on mobile via media query) */
.sidebar-toggle { display: none; }
.mobile-logout { display: none; }

@keyframes marquee-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===== FOOTER FEATURES MARQUEE ===== */
.ff-marquee {
    background: #fff;
    padding: 0;
    border-top: 1px solid #EDE8E0;
    border-bottom: 1px solid #EDE8E0;
    overflow: hidden;
}
.ff-marquee-track {
    overflow: hidden;
}
.ff-marquee-inner {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
    gap: 24px;
    width: max-content;
    flex-direction: row;
}
.ffm-card {
    width: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.ffm-card i { font-size: 22px; color: #D89B1D; }
.ffm-card h4 { font-size: 14px; font-weight: 800; color: #1A1A1A; margin: 0; white-space: nowrap; }
.ffm-card p { font-size: 11px; color: #888; margin: 0; white-space: nowrap; font-weight: 700; }
@media (max-width: 768px) {
    .ff-marquee { padding: 12px 0; }
    .ff-marquee-inner { animation-duration: 20s; gap: 12px; }
    .ffm-card i { font-size: 18px; }
    .ffm-card h4 { font-size: 12px; }
    .ffm-card p { font-size: 10px; }
}
/* For RTL content if needed, but we'll use double content trick for smooth loop */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 17, 17, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}
.mobile-nav-overlay .mobile-nav-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #F5A623;
    font-size: 28px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.mobile-nav-overlay .mobile-nav-close:hover {
    background: rgba(245, 166, 35, 0.1);
}
.mobile-nav-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 320px;
}
.mobile-nav-overlay ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-overlay ul li:last-child {
    border-bottom: none;
}
.mobile-nav-overlay .mobile-nav-link {
    display: block;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 700;
    color: #E0D8D0;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.mobile-nav-overlay .mobile-nav-link:hover {
    color: #F5A623;
    background: rgba(245, 166, 35, 0.05);
}

/* ===== MOBILE BRAND TEXT ===== */
.mobile-brand-text { display: none; }
@media (max-width: 768px) {
    .mobile-brand-text { display: flex; flex-direction: column; }
    .mobile-brand-text span:first-child { font-size: 18px !important; white-space: nowrap; }
    .mobile-brand-text span:last-child { font-size: 16px !important; white-space: nowrap; }
}

/* ===== MOBILE HEADER (≤768px) ===== */
@media (max-width: 768px) {
    .header {
        padding: 0 !important;
        height: 72px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        background: #fff;
    }
    .header-content {
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    .header .flex-shrink-0 a {
        width: 48px !important;
        height: 48px !important;
        background: #D89B1D !important;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(216,155,29,0.35);
    }
    .header .flex-shrink-0 a i { font-size: 22px !important; }
    .header .menu-btn i { color: #D89B1D !important; font-size: 26px; }
    .header .menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    .header img[alt="حورس"] { height: clamp(36px, 8vw, 65px) !important; width: auto !important; }
    .header .container { padding: 0 8px; }
    .mobile-menu-toggle { display: flex; align-items: center; }
    .header [style*="position:absolute;left:50%;top:50%"] {
        position: static !important;
        transform: none !important;
        flex: 1;
        display: flex;
        justify-content: center;
        gap: clamp(3px, 0.8vw, 8px);
        min-width: 0;
    }
    .header [style*="position:absolute;left:50%;top:50%"] a {
        gap: clamp(4px, 1vw, 10px) !important;
    }
    .mobile-brand-text span:first-child { font-size: clamp(13px, 3.5vw, 18px) !important; }
    .mobile-brand-text span:last-child { font-size: clamp(10px, 3vw, 14px) !important; }
    .header .flex-shrink-0 a { width: clamp(38px, 10vw, 48px) !important; height: clamp(38px, 10vw, 48px) !important; }
    .header .flex-shrink-0 a i { font-size: clamp(16px, 5vw, 22px) !important; }
    .header .menu-btn { width: clamp(34px, 9vw, 48px); height: clamp(34px, 9vw, 48px); }
    .header .menu-btn i { font-size: clamp(18px, 5.5vw, 26px) !important; }
}

/* ===== MOBILE HERO (≤768px) ===== */
.mobile-hero {
    display: flex;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    align-items: center;
    justify-content: center;
}
.hero-content, .hero-form-wrapper, .custom-shape-divider-bottom { display: none; }
.hero::before { display: none; }
.hero-container { max-width: 100%; padding: 0; }
.hero { padding: 0; position: relative; min-height: 100vh; overflow: hidden; background: #111; }
.hero-bg-image { display: none !important; }
.mobile-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/hero_bg_mobile.jpg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}
@media (min-width: 1025px) {
    .mobile-hero { display: none; }
    .mobile-hero-bg {
        background-image: url('../images/desktop_bg.png') !important;
        background-position: center center;
    }
    .hero-content, .hero-form-wrapper, .custom-shape-divider-bottom { display: flex; }
    .hero::before { display: none; }
    .hero-bg-image {
        display: block !important;
        background-image: url('../images/desktop_bg.png');
        background-size: cover;
        background-position: center center;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 1;
        filter: none;
    }
    .hero-container {
        max-width: 1200px;
        padding: 100px 20px 80px;
        zoom: 0.8;
    }
    .hero {
        padding: 0;
        min-height: 100vh;
        background: #111;
    }
}
.mobile-hero-overlay {
    display: none;
}
.mobile-hero-content {
    position: relative;
    z-index: 3;
    padding: 70px 9px 6px 143px;
    text-align: right;
    width: 100%;
    max-width: 420px;
    margin-bottom: 150px;
    zoom: 0.8;
}
.mobile-hero-tagline {
    display: block;
    font-size: 14px !important;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 500 !important;
    margin-bottom: 28px !important;
    letter-spacing: 0.5px;
}
.mobile-hero-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    color: #fff !important;
    margin: 0 0 24px 0 !important;
}
.mobile-hero-title .gold-text {
    color: #D89B1D;
    text-shadow: 0 0 20px rgba(216,155,29,0.3);
}
.mobile-hero-sub {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.5 !important;
    margin: 0 0 32px 0 !important;
}
.mobile-hero-sub-extra {
    font-size: 27px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 32px 0 !important;
}
.mobile-hero-warning {
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    margin: 0 0 28px 0 !important;
    max-width: 100%;
}
.mobile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}
.mobile-hero-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}
.mobile-hero-actions a:active {
    transform: scale(0.97);
}
    .why-us-content .btn-action-mobile {
        height: 56px;
    }
    .mobile-hero-actions a i {
        font-size: 20px;
    }
    .mobile-btn-gold {
        background: #7A4A2E;
        color: #fff !important;
    }
    .mobile-btn-green {
        background: #20B859;
        color: #fff !important;
    }
    .mobile-btn-call {
        background: #B8860B;
        color: #fff !important;
    }
    .mobile-form-wrapper {
        display: flex;
        justify-content: center;
        padding: 48px 24px;
        background: #F9F6F1;
    }
    .mobile-form-wrapper .consultation-form {
        max-width: 400px;
        width: 100%;
        padding: 28px;
    }
    .mobile-form-wrapper .consultation-form h3 {
        font-size: 22px;
        font-weight: 800;
    }
}

/* Hidden by default on desktop */
.mobile-form-wrapper {
    display: none;
}

/* ===== NEWS TICKER ===== */
.news-ticker {
    display: flex;
    align-items: center;
    background: #D89B1D;
    overflow: hidden;
    position: relative;
    z-index: 5;
    height: 54px;
}
.news-ticker-label {
    flex-shrink: 0;
    background: #5C3A1E;
    color: #F5A623;
    font-weight: 900;
    font-size: 13px;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 2;
}
.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.news-ticker-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    animation: ticker-scroll 3s linear infinite;
    height: 100%;
}
.news-ticker-item {
    color: #333;
    font-size: 14px;
    font-weight: 900;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}
.news-ticker-item::before {
    content: '•';
    color: #D89B1D;
    margin-left: 10px;
    font-size: 18px;
}
@keyframes ticker-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
@media (max-width: 768px) {
    .news-ticker { height: 54px; }
    .news-ticker-label { font-size: 11px; padding: 0 12px; }
    .news-ticker-item { font-size: 12px; }
    .news-ticker-inner { animation-duration: 2s; }
}

/* Floating share button */
.floating-share {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D89B1D, #b8860b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(216,155,29,0.35);
    transition: opacity 0.4s, visibility 0.4s, transform 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    visibility: hidden;
}
.floating-share.show {
    opacity: 1;
    visibility: visible;
}
.floating-share:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(216,155,29,0.5);
}
@media (max-width: 768px) {
    .floating-share {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Shared hero animation */
@keyframes blogZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Header safe-area for fixed header */
@supports (padding-top: env(safe-area-inset-top)) {
    .header { padding-top: env(safe-area-inset-top); }
}

/* Smooth scroll with header offset */
html { scroll-padding-top: 120px; }
