/* ==========================================================================
   FIRST CLASS CONTRACTING — THEME SYSTEM (LIGHT & DARK MODES)
   High-end, eye-friendly, luxury architectural aesthetics.
   ========================================================================== */

/* ── 1. THEME VARIABLES ── */
:root,
html[data-theme="light"] {
    --fc-theme-mode: light;
    --fc-bg-base: #f8fafc;
    --fc-bg-surface: #ffffff;
    --fc-bg-surface-elevated: #ffffff;
    --fc-bg-subtle: #f1f5f9;
    --fc-bg-accent-soft: rgba(23, 157, 56, 0.06);
    --fc-border-subtle: #e2e8f0;
    --fc-border-medium: rgba(23, 157, 56, 0.16);
    --fc-border-accent: #179D38;
    --fc-text-primary: #0f172a;
    --fc-text-secondary: #475569;
    --fc-text-muted: #64748b;
    --fc-text-brand: #179D38;
    --fc-card-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
    --fc-card-shadow-hover: 0 20px 48px rgba(15, 23, 42, 0.1);
    --fc-topbar-bg: #f8fafc;
    --fc-topbar-border: #e2e8f0;
    --fc-topbar-text: #475569;
    --fc-header-scrolled-bg: rgba(255, 255, 255, 0.96);
    --fc-header-scrolled-border: rgba(0, 0, 0, 0.08);
    --fc-footer-bg: #f8fafc;
    --fc-footer-border: #e2e8f0;
    --fc-footer-text: #475569;
    --fc-modal-bg: #ffffff;
    --fc-modal-overlay: rgba(15, 23, 42, 0.7);
    --fc-input-bg: #ffffff;
    --fc-input-border: #cbd5e1;
    --fc-input-text: #0f172a;
}

html[data-theme="dark"] {
    --fc-theme-mode: dark;
    --fc-bg-base: #090e15;
    --fc-bg-surface: #101924;
    --fc-bg-surface-elevated: #152232;
    --fc-bg-subtle: #0d1520;
    --fc-bg-accent-soft: rgba(34, 197, 94, 0.12);
    --fc-border-subtle: rgba(255, 255, 255, 0.08);
    --fc-border-medium: rgba(34, 197, 94, 0.28);
    --fc-border-accent: #22c55e;
    --fc-text-primary: #f8fafc;
    --fc-text-secondary: #cbd5e1;
    --fc-text-muted: #94a3b8;
    --fc-text-brand: #22c55e;
    --fc-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --fc-card-shadow-hover: 0 22px 50px rgba(0, 0, 0, 0.6);
    --fc-topbar-bg: #070c12;
    --fc-topbar-border: rgba(255, 255, 255, 0.08);
    --fc-topbar-text: #cbd5e1;
    --fc-header-scrolled-bg: rgba(10, 16, 24, 0.96);
    --fc-header-scrolled-border: rgba(255, 255, 255, 0.08);
    --fc-footer-bg: #060a0f;
    --fc-footer-border: rgba(255, 255, 255, 0.08);
    --fc-footer-text: #94a3b8;
    --fc-modal-bg: #111a26;
    --fc-modal-overlay: rgba(0, 0, 0, 0.88);
    --fc-input-bg: #0d1520;
    --fc-input-border: rgba(255, 255, 255, 0.12);
    --fc-input-text: #f8fafc;
}

/* ── 2. SMOOTH TRANSITION DURING THEME SWITCH ── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease !important;
}

/* ── 3. LUXURY THEME TOGGLE SWITCH BUTTON ── */
.theme-toggle-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.96);
}

.theme-toggle-track {
    width: 62px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Scrolled Header or Light Subpage Header button track adjustment */
.site-header.scrolled .theme-toggle-track,
body:not(.page-home) .site-header .theme-toggle-track {
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .site-header.scrolled .theme-toggle-track,
html[data-theme="dark"] body:not(.page-home) .site-header .theme-toggle-track,
html[data-theme="dark"] .theme-toggle-track {
    background: #152232 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.theme-icon-sun,
.theme-icon-moon {
    font-size: 0.82rem;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.theme-icon-sun {
    color: #f59e0b;
}

.theme-icon-moon {
    color: #94a3b8;
}

/* Sliding Knob / Thumb */
.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    right: 4px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    z-index: 2;
}

/* Active states based on [data-theme] */
html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(-30px);
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

html[data-theme="dark"] .theme-icon-sun {
    color: #64748b;
    opacity: 0.5;
}

html[data-theme="dark"] .theme-icon-moon {
    color: #fecb66;
    opacity: 1;
    text-shadow: 0 0 8px rgba(254, 203, 102, 0.6);
}

html[data-theme="light"] .theme-icon-sun {
    color: #f59e0b;
    opacity: 1;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

html[data-theme="light"] .theme-icon-moon {
    color: #94a3b8;
    opacity: 0.45;
}

/* ── 4. MOBILE DRAWER THEME SWITCH ── */
.mobile-theme-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    margin: 8px 12px 14px;
    background: rgba(23, 157, 56, 0.08);
    border: 1px solid rgba(23, 157, 56, 0.18);
    border-radius: 16px;
    gap: 12px;
}

html[data-theme="dark"] .mobile-theme-switch-row {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

.mobile-theme-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

html[data-theme="dark"] .mobile-theme-label {
    color: #f8fafc;
}

.theme-mode-text-badge {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(23, 157, 56, 0.15);
    color: #179D38;
}

html[data-theme="dark"] .theme-mode-text-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* ── 5. DARK MODE CORE OVERRIDES ── */
html[data-theme="dark"] body {
    background-color: var(--fc-bg-base) !important;
    color: var(--fc-text-secondary) !important;
}

html[data-theme="dark"] .section,
html[data-theme="dark"] main,
html[data-theme="dark"] .site-content,
html[data-theme="dark"] .page-main {
    background-color: var(--fc-bg-base) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .depth-hero-title,
html[data-theme="dark"] .home-heading h2 {
    color: var(--fc-text-primary) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .team-subtitle {
    color: var(--fc-text-secondary) !important;
}

/* Brand Accent Colors */
html[data-theme="dark"] .brand-green-accent {
    color: #22c55e !important;
}

/* Header & Nav in Dark Mode */
html[data-theme="dark"] .site-header.scrolled {
    background: rgba(10, 16, 24, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-brand-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-brand-subtitle {
    color: #22c55e !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-main-nav a,
html[data-theme="dark"] .site-header.scrolled .nav-dropdown-trigger {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-main-nav a:hover,
html[data-theme="dark"] .site-header.scrolled .depth-main-nav a.active,
html[data-theme="dark"] .site-header.scrolled .depth-nav-dropdown:hover .nav-dropdown-trigger,
html[data-theme="dark"] .site-header.scrolled .depth-nav-dropdown.open .nav-dropdown-trigger,
html[data-theme="dark"] .site-header.scrolled .nav-dropdown-trigger.active {
    color: #22c55e !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-nav-dropdown:hover .nav-dropdown-arrow,
html[data-theme="dark"] .site-header.scrolled .depth-nav-dropdown.open .nav-dropdown-arrow {
    color: #22c55e !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-main-nav a.active::after,
html[data-theme="dark"] .site-header.scrolled .nav-dropdown-trigger.active::after,
html[data-theme="dark"] .site-header.scrolled .depth-nav-dropdown:hover .nav-dropdown-trigger::after,
html[data-theme="dark"] .site-header.scrolled .depth-nav-dropdown.open .nav-dropdown-trigger::after {
    background: #22c55e !important;
}

html[data-theme="dark"] .site-header.scrolled .depth-lang-btn,
html[data-theme="dark"] .site-header.scrolled .depth-search-btn {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-header.scrolled .menu-toggle {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .site-header.scrolled .menu-toggle span {
    background: #ffffff !important;
}

/* Subpages Header & Topbar in Dark Mode */
html[data-theme="dark"] body:not(.page-home) .site-header {
    background: rgba(10, 16, 24, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-brand-title {
    color: #ffffff !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-brand-subtitle {
    color: #22c55e !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-main-nav a,
html[data-theme="dark"] body:not(.page-home) .site-header .nav-dropdown-trigger {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-main-nav a:hover,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-main-nav a.active,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-nav-dropdown:hover .nav-dropdown-trigger,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-nav-dropdown.open .nav-dropdown-trigger,
html[data-theme="dark"] body:not(.page-home) .site-header .nav-dropdown-trigger.active {
    color: #22c55e !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-nav-dropdown:hover .nav-dropdown-arrow,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-nav-dropdown.open .nav-dropdown-arrow {
    color: #22c55e !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-main-nav a.active::after,
html[data-theme="dark"] body:not(.page-home) .site-header .nav-dropdown-trigger.active::after,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-nav-dropdown:hover .nav-dropdown-trigger::after,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-nav-dropdown.open .nav-dropdown-trigger::after {
    background: #22c55e !important;
}

/* ── Dark Mode: Dropdown Menu (المزيد) ── */
html[data-theme="dark"] .depth-dropdown-menu {
    background: #111a26 !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65), 0 4px 16px rgba(34, 197, 94, 0.15) !important;
}

html[data-theme="dark"] .depth-dropdown-item {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dropdown-item-icon {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #22c55e !important;
}

html[data-theme="dark"] .dropdown-item-text strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dropdown-item-text small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .dropdown-item-chevron {
    color: #64748b !important;
}

html[data-theme="dark"] .depth-dropdown-item:hover {
    background: rgba(34, 197, 94, 0.12) !important;
}

html[data-theme="dark"] .depth-dropdown-item:hover .dropdown-item-icon {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4) !important;
}

html[data-theme="dark"] .depth-dropdown-item:hover .dropdown-item-text strong {
    color: #22c55e !important;
}

html[data-theme="dark"] .depth-dropdown-item:hover .dropdown-item-chevron {
    color: #22c55e !important;
}

html[data-theme="dark"] .depth-dropdown-item.active {
    background: rgba(34, 197, 94, 0.16) !important;
}

html[data-theme="dark"] .depth-dropdown-item.active .dropdown-item-icon {
    background: #22c55e !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .depth-dropdown-item.active .dropdown-item-text strong {
    color: #22c55e !important;
}

html[data-theme="dark"] body:not(.page-home) .site-header .depth-lang-btn,
html[data-theme="dark"] body:not(.page-home) .site-header .depth-search-btn {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body:not(.page-home) .depth-topbar {
    background: #070c12 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body:not(.page-home) .depth-topbar-social a,
html[data-theme="dark"] body:not(.page-home) .depth-topbar-info a {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body:not(.page-home) .depth-topbar-social a:hover,
html[data-theme="dark"] body:not(.page-home) .depth-topbar-info a:hover {
    color: #22c55e !important;
}

/* ── 6. SECTIONS IN DARK MODE ── */

/* Pillars (أهدافنا، رؤيتنا، قيمنا) */
html[data-theme="dark"] .depth-pillars-section {
    background: #090e15 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .depth-pillar-card {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 4px solid #179D38 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .depth-pillar-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .depth-pillar-desc {
    color: #94a3b8 !important;
}

/* General Manager Showcase Section on Homepage */
html[data-theme="dark"] .home-gm-showcase {
    background: #0b121b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .home-gm-card {
    background: #111a26 !important;
    border: 1px solid rgba(23, 157, 56, 0.28) !important;
    border-top: 5px solid #22c55e !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .home-gm-badge-floating {
    background: rgba(13, 22, 33, 0.95) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .home-gm-badge-floating strong {
    color: #ffffff !important;
}

html[data-theme="dark"] .home-gm-badge-floating span {
    color: #22c55e !important;
}

html[data-theme="dark"] .home-gm-quote-box {
    background: rgba(34, 197, 94, 0.08) !important;
    border-right: 4px solid #22c55e !important;
}

html[data-theme="dark"] .home-gm-quote-box blockquote {
    color: #f8fafc !important;
}

html[data-theme="dark"] .home-gm-quote-box cite {
    color: #22c55e !important;
}

html[data-theme="dark"] .home-gm-text {
    color: #94a3b8 !important;
}

/* Execution Journey Stages */
html[data-theme="dark"] .build-story {
    background: #090e15 !important;
}

html[data-theme="dark"] .journey-timeline-node {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .journey-timeline-node.active {
    background: #179D38 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(23, 157, 56, 0.4) !important;
}

html[data-theme="dark"] .journey-stage-card {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .stage-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .stage-desc {
    color: #94a3b8 !important;
}

/* Field Video Showcase */
html[data-theme="dark"] .field-video-showcase-section {
    background: #0c141d !important;
}

html[data-theme="dark"] .field-video-card {
    background: #111a26 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 4px solid #22c55e !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .field-video-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .field-video-lead {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .video-chip {
    background: #162231 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .btn-field-visit {
    background: #162231 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

/* Stats Section */
html[data-theme="dark"] .home-stats {
    background: #090e15 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .home-stats article strong,
html[data-theme="dark"] .stat-card strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .home-stats article span,
html[data-theme="dark"] .stat-card span {
    color: #94a3b8 !important;
}

/* Projects Section */
html[data-theme="dark"] .home-projects {
    background: #0a1119 !important;
}

html[data-theme="dark"] .home-project-card,
html[data-theme="dark"] .project-card-v2 {
    background: #111a26 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .project-card-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .project-card-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .project-pill-meta {
    background: #162231 !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Services Section */
html[data-theme="dark"] .home-services {
    background: #090e15 !important;
}

html[data-theme="dark"] .home-service-card {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .home-service-card .service-icon-box {
    background: linear-gradient(135deg, #179D38 0%, #0d4620 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .home-service-card .service-icon-box img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .home-service-card .service-arrow-btn {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}

html[data-theme="dark"] .home-service-card:hover .service-arrow-btn {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .service-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .service-desc {
    color: #94a3b8 !important;
}

/* Certificates Section */
html[data-theme="dark"] .home-certificates {
    background: #0c141d !important;
}

html[data-theme="dark"] .cert-filter-pill {
    background: #141f2d !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .cert-filter-pill.active {
    background: #179D38 !important;
    color: #ffffff !important;
    border-color: #179D38 !important;
}

html[data-theme="dark"] .home-certificate-card {
    background: #111a26 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 5px solid #179D38 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .certificate-logo-v2 {
    background: #162231 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .cert-card-issuer {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .cert-meta-val {
    color: #e2e8f0 !important;
}

/* Why Us & Events */
html[data-theme="dark"] .home-why,
html[data-theme="dark"] .home-events {
    background: #090e15 !important;
}

html[data-theme="dark"] .home-why-card,
html[data-theme="dark"] .why-card,
html[data-theme="dark"] .home-event-card,
html[data-theme="dark"] .event-card-luxury {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .home-why-card h3,
html[data-theme="dark"] .event-card-title,
html[data-theme="dark"] .event-title-luxury a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .home-why-card p,
html[data-theme="dark"] .event-card-desc,
html[data-theme="dark"] .event-desc-luxury {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .home-why-card .why-card-num {
    color: rgba(34, 197, 94, 0.35) !important;
}

/* Team Section */
html[data-theme="dark"] .home-team {
    background: #0c141d !important;
}

html[data-theme="dark"] .home-team-card-v2 {
    background: #111a26 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .team-card-leader {
    background: #111a26 !important;
    border: 2px solid #22c55e !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .team-leader-crown-badge {
    background: linear-gradient(135deg, #166534 0%, #052e16 100%) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

html[data-theme="dark"] .leader-pin-indicator {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.15) !important;
}

html[data-theme="dark"] .team-carousel-controls {
    background: #111a26 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .team-nav-btn {
    background: #162231 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .team-nav-btn:hover {
    background: #22c55e !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .team-nav-pill {
    color: #22c55e !important;
}

html[data-theme="dark"] .team-content-box {
    background: #111a26 !important;
}

html[data-theme="dark"] .team-member-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .team-member-role {
    color: #22c55e !important;
}

html[data-theme="dark"] .team-meta-credential {
    color: #94a3b8 !important;
}

/* Guide Section & Accordion in Dark Mode */
html[data-theme="dark"] .home-guide {
    background: #060b10 !important;
    background: radial-gradient(circle at 88% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 12% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                #060b10 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .guide-intro {
    background: #093717 !important;
    background: linear-gradient(150deg, #062810 0%, #0a401a 45%, #10662a 85%, #179d38 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    border-top: 3px solid #179d38 !important;
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
}

html[data-theme="dark"] .guide-accordion {
    background: #0d1520 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item button {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item button strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item button span {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #4ade80 !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item button i {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item button i::before,
html[data-theme="dark"] .guide-accordion .accordion-item button i::after {
    background: #4ade80 !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item.open {
    background: linear-gradient(270deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.02) 100%) !important;
    border-right-color: #22c55e !important;
}

html[dir="ltr"] html[data-theme="dark"] .guide-accordion .accordion-item.open {
    border-left-color: #22c55e !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item.open button span {
    background: #22c55e !important;
    color: #06150c !important;
    border-color: #22c55e !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item.open button strong {
    color: #ffffff !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item.open button i {
    background: #22c55e !important;
}

html[data-theme="dark"] .guide-accordion .accordion-item.open button i::before,
html[data-theme="dark"] .guide-accordion .accordion-item.open button i::after {
    background: #06150c !important;
}

html[data-theme="dark"] .guide-accordion .guide-points li {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .guide-accordion .guide-points li::before {
    background: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25) !important;
}

/* Company Location Section (موقع الشركة على الخريطة) */
html[data-theme="dark"] .home-location-section {
    background: #08101a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .company-map-title {
    color: #22c55e !important;
}

html[data-theme="dark"] .company-map-wrapper {
    background: #0d1520 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .company-info-card-luxury {
    background: #101924 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .company-info-icon {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
}

html[data-theme="dark"] .company-info-content .info-label {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .company-info-content .info-sub {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .company-info-content .info-time {
    color: #22c55e !important;
}

html[data-theme="dark"] .company-info-content .info-phone-link {
    color: #22c55e !important;
}

html[data-theme="dark"] .company-info-content .info-person {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-location-directions {
    background: transparent !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
}

html[data-theme="dark"] .btn-location-directions:hover {
    background: rgba(34, 197, 94, 0.12) !important;
}

/* ── 7. DEDICATED GENERAL MANAGER PAGE (`general-manager.php`) ── */
html[data-theme="dark"] .gm-hero-section {
    background: #090e15 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .gm-profile-card {
    background: #101924 !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .gm-profile-name {
    color: #ffffff !important;
}

html[data-theme="dark"] .gm-profile-role {
    color: #22c55e !important;
}

html[data-theme="dark"] .gm-cred-item {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .gm-signature-quote-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(16, 25, 36, 0.95) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    border-right: 5px solid #22c55e !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .gm-quote-text {
    color: #f8fafc !important;
}

html[data-theme="dark"] .gm-quote-author strong {
    color: #22c55e !important;
}

html[data-theme="dark"] .gm-quote-author span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .gm-section-h2 {
    color: #ffffff !important;
}

html[data-theme="dark"] .gm-body-text p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .gm-pillar-box {
    background: #152232 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 3px solid #22c55e !important;
}

html[data-theme="dark"] .gm-pillar-box:hover {
    background: #18283b !important;
}

html[data-theme="dark"] .gm-pillar-box h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .gm-pillar-box p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .gm-signature-wrap {
    border-top: 1px solid rgba(34, 197, 94, 0.25) !important;
}

html[data-theme="dark"] .gm-sig-name {
    color: #22c55e !important;
}

html[data-theme="dark"] .gm-sig-title {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .gm-leadership-bar {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .gm-stat-item strong {
    color: #ffffff !important;
}

html[data-theme="dark"] .gm-stat-item span {
    color: #94a3b8 !important;
}

/* ── 8. MODALS IN DARK MODE ── */
html[data-theme="dark"] .cert-modal-box,
html[data-theme="dark"] .team-modal-box-v2 {
    background: #111a26 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .cert-modal-header,
html[data-theme="dark"] .cert-modal-footer {
    background: #0d1520 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .cert-modal-body {
    background: #111a26 !important;
}

html[data-theme="dark"] #modalCertTitle,
html[data-theme="dark"] #homeModalTeamName {
    color: #f8fafc !important;
}

html[data-theme="dark"] #homeModalTeamBio {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .depth-search-box {
    background: #111a26 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .depth-search-header {
    background: #0d1520 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .depth-search-input {
    background: #090e15 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .depth-search-tag {
    background: #162231 !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── 9. MOBILE DRAWER IN DARK MODE ── */
html[data-theme="dark"] .main-nav {
    background: #0c141d !important;
}

html[data-theme="dark"] .mobile-nav-header {
    background: #090f18 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .mobile-nav-header span {
    color: #ffffff !important;
}

html[data-theme="dark"] .mobile-nav-links a {
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── 10. FOOTER IN DARK MODE (Extracted Brand Green from Logo) ── */
html[data-theme="dark"] .site-footer {
    background: #093717 !important;
    background: linear-gradient(150deg, #062810 0%, #0a401a 45%, #10662a 85%, #179d38 100%) !important;
    border-top: 3px solid #179d38 !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .closing-cta {
    background: #062810 !important;
    border-top: 1px solid rgba(23, 157, 56, 0.35) !important;
}

html[data-theme="dark"] .footer-contact-card,
html[data-theme="dark"] .footer-location-box {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .footer-contact-card:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

html[data-theme="dark"] .footer-brand-title strong {
    color: #ffffff !important;
}

html[data-theme="dark"] .footer-brand-title span {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .footer-contact-info strong,
html[data-theme="dark"] .footer-contact-info a {
    color: #ffffff !important;
}

html[data-theme="dark"] .footer-location-text {
    color: #ffffff !important;
}

html[data-theme="dark"] .footer-nav-list a {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .footer-nav-list a:hover {
    background: #ffffff !important;
    color: #179d38 !important;
}

html[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

/* ── 11. SUBPAGES GENERAL (About, Services, Projects, Certificates, Gallery, Contact, Blog) ── */
html[data-theme="dark"] .page-hero-v2,
html[data-theme="dark"] .about-hero-v2,
html[data-theme="dark"] .contact-hero-v2,
html[data-theme="dark"] .services-hero-v2,
html[data-theme="dark"] .projects-hero-v2,
html[data-theme="dark"] .page-hero-cover {
    background: #090e15 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .faq-item-v2,
html[data-theme="dark"] .gallery-item-v2,
html[data-theme="dark"] .content-card {
    background: #101924 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: #0d1520 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}

/* Dark Mode: Events & Exhibitions Section (معارض وفعاليات وفيديو اللقاء) */
html[data-theme="dark"] .event-card-luxury {
    background: #101924 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .event-card-header-bar {
    background: linear-gradient(135deg, #15522e 0%, #0a2918 100%) !important;
    border-bottom: 2px solid rgba(246, 199, 93, 0.35) !important;
}

html[data-theme="dark"] .event-card-header-bar.event-header-video {
    background: linear-gradient(135deg, #0e3d22 0%, #061e12 100%) !important;
}

html[data-theme="dark"] .event-title-luxury,
html[data-theme="dark"] .event-title-luxury a {
    color: #eaf8f0 !important;
}

html[data-theme="dark"] .event-title-luxury a:hover {
    color: #22c55e !important;
}

html[data-theme="dark"] .event-desc-luxury {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .event-footer-luxury {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .event-arrow-circle {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
}

html[data-theme="dark"] .event-link-text {
    color: #22c55e !important;
}

/* Dark Mode: Villa Architecture Showcase (عمارة ترتقي بأسلوب الحياة) */
html[data-theme="dark"] .villa-showcase {
    background: #0b131e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .villa-copy h2 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .villa-copy p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .villa-card span {
    background: #159b3e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

