/* Custom Global & Layout Settings for TOP BALCONY CLEANERS LLC */
:root {
    /* الألوان الافتراضية للوضع النهاري (Light Mode) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: rgba(15, 76, 129, 0.08);
    --light: #f8fafc;
    --card-bg: #f8fafc;
    --footer-bg: #0f172a;
    --header-bg: #ffffff;
    --input-bg: #f8fafc;
    --input-focus-bg: #ffffff;
    --faq-answer-bg: #fafbfc;
    --connect-card-bg: #ffffff;
    --hours-box-bg: #ffffff;
    --insurance-bg: #f0fdf4;
    --insurance-border: #10b981;
    --preloader-bg: #ffffff;

    /* الألوان الثابتة للبراند (لا تتغير) */
    --primary: #0F4C81; /* كحلي */
    --secondary: #148f96; /* تيل */
    --accent: #FF9F1C; /* أورانج ناري تفاعلي */
    --dark: #0f172a; /* كحلي غامق */
    --white: #ffffff;
    --gray: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* الألوان عند تفعيل الوضع الليلي (Dark Mode) */
body.dark-mode {
    --bg-primary: #090d1a;       /* خلفية ليلية داكنة جداً */
    --bg-secondary: #101726;     /* خلفية ثانوية ليلية */
    --text-primary: #f8fafc;     /* نصوص فاتحة جداً */
    --text-secondary: #94a3b8;   /* نصوص توضيحية باهتة */
    --border: rgba(255, 255, 255, 0.07);
    --light: #101726;
    --card-bg: #101726;
    --footer-bg: #050811;
    --header-bg: rgba(9, 13, 26, 0.95);
    --input-bg: #1e293b;
    --input-focus-bg: #101726;
    --faq-answer-bg: #0c1220;
    --connect-card-bg: #101726;
    --hours-box-bg: #101726;
    --insurance-bg: rgba(16, 185, 129, 0.05);
    --insurance-border: rgba(16, 185, 129, 0.4);
    --preloader-bg: #090d1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 80px 0;
}

/* Header & Sticky Menu المتطابق مع التصميم */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* الشعار المميز بالهيدر */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-logo:hover .logo-image {
    transform: rotate(12deg) scale(1.08);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo .top-word {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.logo .brand-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-top: 2px;
    transition: var(--transition);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    margin-left: 24px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--secondary);
}

/* زر الحجز الأزرق الكحلي في الهيدر */
nav a.btn {
    background-color: #174b80;
    color: var(--white) !important;
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(23, 75, 128, 0.25);
    transition: var(--transition);
}

nav a.btn:hover {
    background-color: #0f345a;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* زر تبديل الثيم */
.theme-toggle-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    font-size: 17px;
    cursor: pointer;
    margin-left: 20px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--secondary);
}

.theme-toggle-btn .icon-light {
    display: none;
}

body.dark-mode .theme-toggle-btn .icon-dark {
    display: none;
}

body.dark-mode .theme-toggle-btn .icon-light {
    display: block;
    color: #f59e0b;
}

/* Page Title for Sub-pages */
.page-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 80px 0;
}

.page-title h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: auto;
    color: var(--white) !important;
}

/* Button UI */
.btn-large {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(255, 159, 28, 0.3);
    border: none;
}

.btn-large:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--primary);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Hero Section المتطابق مع المنظر النهاري لنيويورك
   ========================================================================== */
.hero {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(0, 0, 0, 0.15) 100%), 
                url('../images/hero-balcony-view.jpg') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 90px 0 160px 0;
    color: var(--white);
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: 60px;
    font-weight: 850;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 20px;
    color: #f8fafc !important;
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero .btn-hero-action {
    display: inline-block;
    background-color: #174b80;
    color: #ffffff;
    padding: 15px 34px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(23, 75, 128, 0.4);
    transition: var(--transition);
}

.hero .btn-hero-action:hover {
    background-color: #0f345a;
    transform: translateY(-3px);
}

/* تداخل القسم السفلي مع صورة الهيرو */
.intro-section-overlap {
    position: relative;
    margin-top: -90px;
    z-index: 10;
    background: var(--bg-primary);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
}

/* Features Bar */
.features-bar {
    background: var(--primary);
    color: var(--white);
    padding: 24px 0;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}

.feat-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feat-item i {
    color: var(--accent);
    font-size: 20px;
}

/* Section Common Titles */
.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.text-center {
    text-align: center;
}

/* Introduction Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2, .services-highlight h2, .gallery-section h2 {
    font-size: 38px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
}

.intro-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.link-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
}

.intro-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

/* services highlighted card */
.services-highlight {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    padding: 45px 30px;
    border-radius: 12px;
    text-align: left;
    transition: var(--transition), background-color 0.3s ease;
    border-top: 5px solid var(--primary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.card-icon {
    width: 65px;
    height: 65px;
    background: rgba(20, 143, 150, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
}

/* Call To Action Accent Banner */
.cta-banner {
    background: linear-gradient(rgba(15,76,129,0.9), rgba(15,76,129,0.95)), 
                url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1000&q=80') center center/cover;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: auto;
    padding: 0;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 35px;
    color: var(--white) !important;
}

.accent-btn {
    box-shadow: 0 8px 24px rgba(255, 159, 28, 0.4);
}

/* Services Deep-dive subpage row style */
.service-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-detail-row.reverse .service-detail-img {
    order: -1;
}

.service-detail-text h2 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-detail-text p {
    color: var(--text-secondary);
}

.service-detail-text ul {
    margin-top: 20px;
    list-style: none;
}

.service-detail-text ul li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail-text ul li i {
    color: var(--secondary);
}

.service-detail-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

/* Gallery Section page grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.project-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 5px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.img-comp {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.img-comp img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.badge-gallery {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 5px;
}

.badge-gallery.before { background: #e11d48; }
.badge-gallery.after { background: #10b981; }

.fake-video-box {
    margin-top: 30px;
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fake-video-box p {
    color: var(--white) !important;
}

.video-play-icon {
    font-size: 60px;
    color: var(--accent);
    cursor: pointer;
}

/* Blog Page layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border-bottom: 3px solid var(--secondary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.blog-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.blog-text {
    padding: 30px;
}

.blog-text .date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.blog-text h3 {
    color: var(--primary);
    font-size: 20px;
    margin: 10px 0;
}

.blog-text p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
}

/* Form and Secure Reservation page */
.form-container-box {
    max-width: 750px;
    margin: auto;
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 76, 129, 0.08);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-header {
    margin-bottom: 40px;
}

.form-header p {
    color: var(--text-secondary);
}

.sec-badge {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.form-header h2 {
    font-size: 30px;
    color: var(--primary);
    margin-top: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-container-box label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-container-box input, 
.form-container-box select, 
.form-container-box textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
    transition: var(--transition);
}

.form-container-box input::placeholder, 
.form-container-box textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-container-box input:focus, 
.form-container-box select:focus, 
.form-container-box textarea:focus {
    border-color: var(--secondary);
    background: var(--input-focus-bg);
    box-shadow: 0 0 0 4px rgba(20, 143, 150, 0.08);
}

.feedback-msg {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
}

.feedback-msg.success {
    background-color: #d1fae5;
    color: #065f46;
}

.feedback-msg.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.hidden { display: none; }

.btn-submit {
    width: 100%;
    background-color: var(--secondary);
    color: var(--white);
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary);
}

/* Contact information on Connect Page */
.connect-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.connect-info h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.connect-info p {
    color: var(--text-secondary);
}

.detail-cards {
    margin-top: 35px;
}

.card-detail {
    display: flex;
    gap: 20px;
    padding: 24px;
    background-color: var(--connect-card-bg);
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-detail p {
    color: var(--text-secondary);
}

.detail-icon {
    font-size: 26px;
    color: var(--primary);
}

.card-detail h4 {
    color: var(--primary);
}

.card-detail a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.hours-box {
    background-color: var(--hours-box-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hours-box h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.hours-box ul {
    list-style: none;
}

.hours-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-secondary);
}

.insurance-stamp {
    background-color: var(--insurance-bg);
    border: 1.5px dashed var(--insurance-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin: 30px 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.stamp-icon {
    font-size: 24px;
    color: #10b981;
}

.insurance-stamp h4 { color: #065f46; }
.insurance-stamp p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* Footer UI */
footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0 0;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-info {
    max-width: 400px;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Small Device Settings */
@media (max-width: 991px) {
    .intro-grid, .service-detail-row, .connect-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-detail-row.reverse .service-detail-img {
        order: unset;
    }
}

@media (max-width: 768px) {
    .container { padding: 40px 0; }
    .hero h1 { font-size: 38px; }
    .header-container { position: relative; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        display: none;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    nav.active { display: flex; }
    nav a { margin: 10px 0; font-size: 16px; }
    .menu-toggle { display: block; }
    
    .theme-toggle-btn {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }

    .comparison-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   تنسيقات وتأثيرات الشعار الثابت والمتحرك (Logo & Preloader Style)
   ========================================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--preloader-bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-logo img {
    width: 100px;
    height: auto;
    animation: pulseLogo 1.8s infinite ease-in-out;
}

.loader-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 3px solid transparent;
    border-top-color: var(--secondary);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    animation: spinRing 1.5s linear infinite;
}

/* تقليص حجم الشعار والهيدر عند التمرير للأسفل */
header.sticky-scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header.sticky-scrolled .logo-img-wrapper {
    width: 46px;
    height: 46px;
}

header.sticky-scrolled .logo .top-word {
    font-size: 21px;
}

header.sticky-scrolled .logo .brand-name {
    font-size: 9px;
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   تنسيقات سلايدر "قبل وبعد" التفاعلي (Before/After Slider Style)
   ========================================================================== */
.before-after-container {
    max-width: 900px;
    margin: 40px auto 80px auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 76, 129, 0.18);
    border: 4px solid var(--white);
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 500px;
    user-select: none;
    cursor: ew-resize;
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.img-before-wrapper img {
    width: 900px;
    max-width: none;
}

.ba-slider .badge-gallery {
    position: absolute;
    top: 20px;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 4;
}

.ba-slider .badge-gallery.before {
    left: 20px;
    background: #e11d48;
}

.ba-slider .badge-gallery.after {
    right: 20px;
    background: #10b981;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    z-index: 3;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 16px;
    border: 3px solid var(--white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ba-slider:hover .handle-button {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 768px) {
    .ba-slider {
        height: 320px;
    }
}

/* ==========================================================================
   تنسيقات الحاسبة التفاعلية (Cost Estimator Style)
   ========================================================================== */
.estimator-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.estimator-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(15, 76, 129, 0.08);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.estimator-header h2 {
    font-size: 28px;
    color: var(--primary);
    margin-top: 10px;
    font-weight: 850;
}

.estimator-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 25px;
}

.est-badge {
    background: rgba(20, 143, 150, 0.08);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.est-group {
    margin-bottom: 25px;
}

.est-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.est-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.est-btn {
    background: var(--input-bg);
    border: 2px solid transparent;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.est-btn strong {
    font-size: 16px;
    color: var(--primary);
}

.est-btn span {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.est-btn:hover {
    border-color: rgba(20, 143, 150, 0.3);
}

.est-btn.active {
    background: rgba(20, 143, 150, 0.06);
    border-color: var(--secondary);
}

.est-btn.active strong {
    color: var(--secondary);
}

.addons-list {
    background: var(--input-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.addon-item:last-child {
    margin-bottom: 0;
}

.addon-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.price-display-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(20, 143, 150, 0.15);
    margin-top: 30px;
}

.price-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.price-range {
    font-size: 34px;
    font-weight: 850;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-note {
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .estimator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .est-options {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   تنسيقات الأسئلة الشائعة التفاعلية (FAQ Accordion Style)
   ========================================================================== */
.faq-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.02);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
    background-color: rgba(20, 143, 150, 0.02);
}

.faq-question .icon-toggle {
    font-size: 16px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(20, 143, 150, 0.06);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border);
    background-color: rgba(20, 143, 150, 0.02);
    color: var(--secondary);
}

.faq-item.active .icon-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--faq-answer-bg);
    transition: max-height 0.3s ease-out, background-color 0.3s ease;
}

.faq-answer p {
    padding: 20px 28px 24px 28px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   تنسيقات تقويم الحجز الحي (Live Calendar Booking Style)
   ========================================================================== */
.live-booking-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.calendar-container {
    max-width: 950px;
    margin: 40px auto;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(15, 76, 129, 0.08);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.calendar-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cal-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.cal-feat i {
    color: var(--secondary);
    font-size: 18px;
}

.cal-feat span {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .calendar-container {
        margin: 20px auto;
    }
    
    .calendly-inline-widget {
        height: 700px !important;
    }
    
    .calendar-features {
        gap: 20px;
    }
}

/* ==========================================================================
   تنسيقات مشغل الفيديو التفاعلي (Live Video Player Style)
   ========================================================================== */
.video-wrapper {
    max-width: 850px;
    margin: 40px auto 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 76, 129, 0.2);
    border: 4px solid var(--white);
    background-color: var(--dark);
    aspect-ratio: 16 / 9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 45, 75, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.video-overlay-btn i {
    font-size: 70px;
    color: var(--accent);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-overlay-btn span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.video-wrapper:hover .video-overlay-btn {
    background: rgba(15, 45, 75, 0.35);
}

.video-wrapper:hover .video-overlay-btn i {
    transform: scale(1.12);
    color: var(--white);
}

.video-overlay-btn.video-playing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .video-wrapper {
        margin: 25px auto 0 auto;
    }
    .video-overlay-btn i {
        font-size: 50px;
    }
    .video-overlay-btn span {
        font-size: 15px;
    }
}

/* ==========================================================================
   تنسيقات أيقونات السوشيال ميديا التفاعلية وزر الواتساب العائم
   ========================================================================== */
.dynamic-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

/* تنسيق خاص إذا كانت الأيقونات داخل صفحة اتصل بنا (خلفية فاتحة أو متغيرة) */
.connect-info .social-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--primary);
}

body.dark-mode .connect-info .social-btn {
    color: var(--text-primary);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ألوان الهوية الأصلية لكل منصة عند تمرير الماوس */
.social-whatsapp:hover  { background-color: #25D366 !important; }
.social-telegram:hover  { background-color: #0088cc !important; }
.social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.social-snapchat:hover  { background-color: #FFFC00 !important; color: #000000 !important; }
.social-facebook:hover  { background-color: #1877F2 !important; }
.social-twitter_x:hover { background-color: #000000 !important; border-color: #333 !important; }
.social-linkedin:hover  { background-color: #0A66C2 !important; }
.social-youtube:hover   { background-color: #FF0000 !important; }

/* زر الواتساب العائم في أسفل الشاشة */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
}

.floating-whatsapp i {
    font-size: 24px;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

@media (max-width: 576px) {
    .floating-whatsapp span {
        display: none; /* في الموبايل نكتفي بالأيقونة الدائرية لعدم أخذ مساحة */
    }
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
}
/* ==========================================================================
   تنسيقات نافذة قراءة المقالات المنبثقة (Blog Article Modal Style)
   ========================================================================== */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 26, 0.78);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.article-modal-overlay.hidden {
    display: none;
}

.article-modal-box {
    background: var(--bg-primary);
    color: var(--text-primary);
    max-width: 800px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 45px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

.article-full-content h2 {
    font-size: 28px;
    color: var(--primary);
    margin: 12px 0 8px 0;
    line-height: 1.3;
}

.article-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.article-full-content h4 {
    font-size: 19px;
    color: var(--secondary);
    margin: 25px 0 10px 0;
}

.article-full-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-full-content ul {
    list-style: none;
    margin: 15px 0 20px 0;
    background: var(--bg-secondary);
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.article-full-content ul li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-full-content ul li:last-child {
    margin-bottom: 0;
}

.article-full-content ul li i {
    color: var(--secondary);
    margin-top: 5px;
}

.modal-cta-footer {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-cta-footer h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 4px;
}

.modal-cta-footer p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .article-modal-box {
        padding: 25px 20px;
    }
    .article-full-content h2 {
        font-size: 22px;
    }
}
/* ==========================================================================
   تحسينات التجاوب الذكي للموبايل والآيباد والتابلت + واجهة Calendly الذكية
   ========================================================================== */
.calendly-fallback-ui {
    padding: 40px;
    background: var(--bg-secondary);
}

.cal-ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.cal-brand-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cal-brand-badge img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.cal-brand-badge h4 {
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 3px;
}

.cal-brand-badge span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.ny-tz-badge {
    background: rgba(20, 143, 150, 0.1);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.cal-ui-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: start;
}

.cal-step-box label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.cal-touch-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px; /* حجم 16px يمنع آيفون وآيباد من عمل Zoom مزعج عند اللمس */
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.slot-btn {
    padding: 14px 10px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.slot-btn.active, .slot-btn:hover {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(20, 143, 150, 0.25);
}

.cal-ui-actions {
    margin-top: 35px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

/* تحسينات خاصة لأجهزة الآيباد والتابلت (768px إلى 1024px) والموبايل */
@media (max-width: 1024px) {
    .container {
        width: 92%;
        padding: 55px 0;
    }
    .hero {
        min-height: 70vh;
        padding: 70px 0 110px 0;
    }
    .hero h1 {
        font-size: 46px;
    }
    /* ضمان سلاسة سحب سلايدر قبل وبعد بالإصبع دون تحريك شاشة الموبايل */
    .ba-slider {
        touch-action: pan-y;
    }
}

@media (max-width: 768px) {
    .cal-ui-grid {
        grid-template-columns: 1fr;
    }
    .calendly-fallback-ui {
        padding: 25px 18px;
    }
    /* منع تقريب الشاشة التلقائي على سفاري iOS عند لمس الحقول */
    input, select, textarea {
        font-size: 16px !important;
    }
    .form-container-box, .estimator-card {
        padding: 28px 20px;
    }
}
/* ضبط اتجاه وتنسيق حقول التاريخ لتبدو احترافية ومنضبطة على كل الهواتف */
input[type="date"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
}

/* تنسيق شكل النص المساعد داخل حقل التاريخ على الأجهزة المختلفة */
input[type="date"]::-webkit-datetime-edit {
    display: flex;
    justify-content: space-between;
}