/* ==========================================================================
   MASTER COLOR PALETTE - Change these root variables to re-theme the entire site
   ========================================================================== */
:root,
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;

    /* Primary & Accent Brand Colors (Hydraulic Amber/Gold + Deep Navy) */
    --brand-primary: #0f172a;
    --brand-primary-hover: #1e293b;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #d97706;
    --brand-accent-soft: rgba(245, 158, 11, 0.14);

    --whatsapp-color: #16a34a;
    --whatsapp-hover: #15803d;
    --call-color: #2563eb;
    --call-hover: #1d4ed8;

    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
    --bg-body: #0b1120;
    --bg-surface: #131c31;
    --bg-surface-alt: #1a253c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #23304d;

    --brand-primary: #f59e0b;
    --brand-primary-hover: #fbbf24;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #fbbf24;
    --brand-accent-soft: rgba(245, 158, 11, 0.16);

    --whatsapp-color: #22c55e;
    --whatsapp-hover: #16a34a;
    --call-color: #3b82f6;
    --call-hover: #2563eb;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}
html[dir="ltr"] body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
}

.text-muted-custom { color: var(--text-muted) !important; }
.text-accent { color: var(--brand-accent) !important; }
.bg-accent-soft { background-color: var(--brand-accent-soft) !important; }
.border-custom { border-color: var(--border-color) !important; }

/* ==========================================================================
   NAVBAR & FULL LOGO STYLING
   ========================================================================== */
.custom-navbar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 0;
}

.custom-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    max-width: calc(100% - 64px);
}

/* Full logo visible without cropping or distortion */
.brand-logo {
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-title {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.2;
}

.brand-sub {
    color: var(--brand-accent);
    font-size: 0.72rem;
    font-weight: 600;
}

.custom-toggler {
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.35rem 0.6rem;
    color: var(--text-main);
    background-color: var(--bg-surface-alt);
    line-height: 1;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.2rem var(--brand-accent-soft);
}

.custom-navbar .nav-link {
    color: var(--text-main);
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--brand-accent);
    background-color: var(--brand-accent-soft);
}

.btn-icon-toggle,
.btn-lang-switch {
    background-color: var(--bg-surface-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.45rem 0.75rem;
}

.btn-icon-toggle:hover,
.btn-lang-switch:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .nav-actions {
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary-custom {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #0f172a;
}
.btn-primary-custom:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: #0f172a;
}

.btn-whatsapp, .btn-whatsapp-nav {
    background-color: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    color: #ffffff;
}
.btn-whatsapp:hover, .btn-whatsapp-nav:hover {
    background-color: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
    color: #ffffff;
}

.btn-outline-accent {
    border: 1.5px solid var(--brand-accent);
    color: var(--text-main);
}
.btn-outline-accent:hover {
    background-color: var(--brand-accent);
    color: #0f172a;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at top right, var(--brand-accent-soft), transparent 60%);
}
.badge-pill-custom {
    background-color: var(--brand-accent-soft);
    color: var(--brand-accent);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}
.surface-card, .hero-image-card, .stats-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stat-number {
    font-size: 1.85rem;
    color: var(--brand-accent);
}
.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.section-tag {
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}
.city-chip {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--brand-accent-soft);
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.service-thumb {
    height: 190px;
    object-fit: cover;
    background-color: var(--bg-surface-alt);
}

.form-control-custom {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.7rem 0.95rem;
}
.form-control-custom:focus {
    background-color: var(--bg-surface);
    border-color: var(--brand-accent);
    color: var(--text-main);
    box-shadow: 0 0 0 0.2rem var(--brand-accent-soft);
}

/* ==========================================================================
   FOOTER & LEFT/RIGHT BOTTOM FLOATING ACTION BUTTONS (FABs)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-accent); }

.fab-btn {
    position: fixed;
    bottom: 20px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}
.fab-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
}
.fab-left { left: 18px; }
.fab-right { right: 18px; }
.fab-call { background-color: var(--call-color); }
.fab-whatsapp { background-color: var(--whatsapp-color); }

@media (max-width: 576px) {
    .fab-btn {
        padding: 13px 15px;
        bottom: 14px;
    }
    .fab-label { font-size: 0.85rem; }
}

/* Smooth AJAX Transition */
#app-content {
    transition: opacity 0.18s ease;
}
#app-content.loading {
    opacity: 0.45;
}

/* ==========================================================================
   FOOTER LOGO (100PX FULL VISIBLE)
   ========================================================================== */
.footer-logo {
    width: 100px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-brand-title {
    color: var(--text-main);
    line-height: 1.3;
}

/* ==========================================================================
   ABOUT SECTION (REFERENCE LAYOUT + THEME VARIABLES)
   ========================================================================== */
.about-media-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-main-img {
    height: 330px;
    object-fit: cover;
    display: block;
}

.about-exp-banner {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-hover));
    color: #0f172a;
}

.about-top-pill {
    background-color: var(--brand-accent);
    color: #0f172a;
    padding: 0.38rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.about-heading {
    color: var(--text-main);
    line-height: 1.3;
}

.about-subline {
    color: var(--brand-accent);
    font-size: 0.98rem;
}

.about-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.about-check-icon {
    color: var(--brand-accent);
    font-size: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ==========================================================================
   CEO SECTION (FIXED PARALLAX BACKGROUND + MODERN CARD)
   ========================================================================== */
.ceo-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.ceo-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.72), rgba(15, 23, 42, 0.52));
    pointer-events: none;
}

.ceo-portrait-card {
    max-width: 290px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.ceo-avatar-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    border: 3px solid var(--brand-accent);
    overflow: hidden;
    background-color: var(--bg-surface-alt);
}

.ceo-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ceo-card-name {
    color: var(--text-main);
}

.ceo-role-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-accent);
    background-color: var(--brand-accent-soft);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
}

.ceo-content-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.ceo-panel-title {
    color: var(--text-main);
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    line-height: 1.35;
}

.ceo-panel-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.98rem;
}

.ceo-quote-box {
    border-inline-start: 4px solid var(--brand-accent);
    background-color: var(--bg-surface-alt);
    color: var(--text-main);
    font-weight: 600;
    border-radius: 0.4rem;
}

@media (max-width: 991.98px) {
    .ceo-section {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   GLIMPSE SECTION ("أحدث من" / LATEST GLIMPSES)
   ========================================================================== */
.glimpse-heading {
    color: var(--text-main);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.glimpse-card {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glimpse-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.glimpse-media-box {
    padding: 0.75rem 0.75rem 0;
}

.glimpse-img {
    height: 210px;
    object-fit: cover;
    border-radius: 0.9rem;
    background-color: var(--bg-surface);
}

.glimpse-date-badge {
    position: absolute;
    bottom: -18px;
    inset-inline-end: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--brand-accent);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--bg-surface-alt);
}

.glimpse-day {
    font-size: 1rem;
}

.glimpse-month {
    font-size: 0.68rem;
    font-weight: 700;
}

.glimpse-body {
    padding-top: 1.5rem !important;
}

.glimpse-author {
    color: var(--text-muted);
}

.glimpse-mini-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-accent);
}

.glimpse-title {
    color: var(--text-main);
    line-height: 1.4;
}

.glimpse-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   REUSABLE PAGE BREADCRUMB WITH IMAGE SRC
   ========================================================================== */
.page-breadcrumb-section {
    min-height: 220px;
    display: flex;
    align-items: center;
    background-color: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.breadcrumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.82), rgba(15, 23, 42, 0.62));
    z-index: 1;
    pointer-events: none;
}

.page-breadcrumb-section .container {
    z-index: 2;
}

.breadcrumb-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.breadcrumb-subtitle {
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.98rem;
}

.custom-breadcrumb {
    background-color: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    flex-wrap: wrap;
}

.custom-breadcrumb .breadcrumb-item a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}