
/* Estimator Smooth Scrolling & Anchor Offset */
html {
    scroll-behavior: smooth;
}

#estimator, .calc-section {
    scroll-margin-top: 95px;
}

/* ==========================================================================
   Ahmed Hemdan & Partners - Premium Executive Design System
   Modern Corporate UX/UI Revamp 2026
   Palette: Royal Deep Navy, Warm Champagne Gold, Crisp Pearl, Slate Gray
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;900&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Color Tokens */
    --navy-void: #050c18;
    --navy-deep: #0a192f;
    --navy-primary: #0f2342;
    --navy-card: #152c50;
    --navy-light: #1f3b68;
    
    --gold-primary: #c5a880;
    --gold-light: #dfc7a5;
    --gold-dark: #9e7f55;
    --gold-subtle: rgba(197, 168, 128, 0.12);
    --gold-border: rgba(197, 168, 128, 0.3);
    --gold-gradient: linear-gradient(135deg, #dfc7a5 0%, #c5a880 50%, #9e7f55 100%);
    
    --slate-dark: #1e293b;
    --slate-body: #475569;
    --slate-light: #94a3b8;
    --slate-border: #e2e8f0;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card-glass: rgba(255, 255, 255, 0.85);
    
    --emerald-accent: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    
    /* Typography */
    --font-heading: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Elevations & Transitions */
    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 25, 47, 0.12);
    --shadow-gold: 0 8px 30px rgba(197, 168, 128, 0.25);
    --shadow-navy: 0 20px 50px rgba(5, 12, 24, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: var(--font-body);
    color: var(--slate-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy-deep);
    font-weight: 700;
    line-height: 1.35;
}

p {
    color: var(--slate-body);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.top-bar {
    background: var(--navy-void);
    color: var(--slate-light);
    font-size: 0.88rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-item i {
    color: var(--gold-primary);
}

.top-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: var(--emerald-accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--emerald-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Navigation Bar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 35, 66, 0.08);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    max-width: 1440px !important;
    width: 100%;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0 !important;
    min-width: max-content;
    white-space: nowrap !important;
    text-decoration: none;
}

.brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    white-space: nowrap !important;
}

.brand-name {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--navy-deep);
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap !important;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--gold-dark);
    font-weight: 600;
    white-space: nowrap !important;
}

/* Navigation Links */
.desktop-nav {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    justify-content: center;
    padding: 0 1rem;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.95rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--navy-deep);
    position: relative;
    padding: 0.35rem 0.2rem;
    white-space: nowrap !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-dark);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.45);
    color: #ffffff;
}

.btn-portal {
    background: #0f2342;
    color: #ffffff !important;
    border: 1px solid var(--gold-border);
    position: relative;
    overflow: hidden;
    white-space: nowrap !important;
}

[data-theme="dark"] .btn-portal {
    background: rgba(197, 168, 128, 0.15) !important;
    border-color: rgba(197, 168, 128, 0.5) !important;
    color: var(--gold-light) !important;
}

[data-theme="dark"] .btn-portal:hover {
    background: var(--gold-gradient) !important;
    color: #060d19 !important;
}

[data-theme="dark"] .btn-portal .portal-badge {
    background: var(--gold-primary) !important;
    color: #060d19 !important;
}

.btn-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.25), transparent);
    transition: 0.6s;
}

.btn-portal:hover::before {
    left: 100%;
}

.btn-portal:hover {
    background: var(--navy-primary);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-portal .portal-badge {
    background: var(--gold-primary);
    color: var(--navy-void);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-right: 0.2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy-deep);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 85% 15%, rgba(197, 168, 128, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 15% 85%, rgba(15, 35, 66, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge-certified {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid var(--gold-border);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero-badge-certified i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.hero-badge-certified span {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-deep);
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-title .highlight-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 1.18rem;
    color: var(--slate-body);
    margin-bottom: 2.2rem;
    line-height: 1.8;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-ctas .btn {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 35, 66, 0.1);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-deep);
    font-family: var(--font-en);
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.stat-item h3 span.plus {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.stat-item p {
    font-size: 0.88rem;
    color: var(--slate-body);
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Hero Right Interactive Card (Smart Estimator Teaser) */
.hero-card-showcase {
    position: relative;
}

.floating-glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 60px rgba(10, 25, 47, 0.15);
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 2;
}

.card-header-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.icon-box-gold {
    width: 52px;
    height: 52px;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 1.4rem;
}

.card-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-deep);
    background: #f1f5f9;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
}

.card-title {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.card-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-pill-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-deep);
}

.feature-pill i {
    color: var(--emerald-accent);
    font-size: 1.1rem;
}

.card-portal-bridge {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.bridge-text h4 {
    color: #ffffff;
    font-size: 0.98rem;
    margin-bottom: 0.15rem;
}

.bridge-text p {
    color: var(--gold-light);
    font-size: 0.82rem;
}

.bridge-action-arrow {
    width: 40px;
    height: 40px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    transition: var(--transition);
}

.card-portal-bridge:hover .bridge-action-arrow {
    transform: rotate(-45deg) scale(1.05);
}

/* Background Abstract Glow */
.hero-glow-sphere {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.25) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
}

/* ==========================================================================
   Trust & Accreditations Bar
   ========================================================================== */
.trust-bar {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid var(--slate-border);
}

.trust-title {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.trust-logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.85;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--slate-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
}

.trust-badge-item i {
    font-size: 1.4rem;
    color: var(--gold-dark);
}

/* ==========================================================================
   Services Section (Interactive Grid)
   ========================================================================== */
.section-pad {
    padding: 5.5rem 0;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.8rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--gold-dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.45rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    border: 1px solid var(--slate-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: var(--navy-deep);
    color: var(--gold-primary);
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features-list {
    list-style: none;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features-list li {
    font-size: 0.9rem;
    color: var(--slate-body);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-features-list li i {
    color: var(--gold-dark);
    font-size: 0.8rem;
}

.service-link {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.service-link i {
    transition: var(--transition);
    color: var(--gold-dark);
}

.service-card:hover .service-link i {
    transform: translateX(-4px);
}

/* ==========================================================================
   Company Estimator Calculator Section (High-Value Interactive Widget)
   ========================================================================== */
.calc-section {
    background: linear-gradient(135deg, var(--navy-void) 0%, var(--navy-deep) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.calc-section h2, .calc-section .section-title {
    color: #ffffff;
}

.calc-section .section-desc {
    color: var(--slate-light);
}

.estimator-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.estimator-options h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.company-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: right;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
}

.type-btn:hover, .type-btn.active {
    background: rgba(197, 168, 128, 0.15);
    border-color: var(--gold-primary);
}

.type-btn h5 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.type-btn p {
    color: var(--slate-light);
    font-size: 0.8rem;
}

.calculator-sliders {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--slate-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.slider-group label span.val {
    color: var(--gold-light);
    font-weight: 700;
    font-family: var(--font-en);
}

.custom-range {
    width: 100%;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

/* Result Box */
.estimator-result-card {
    background: var(--navy-card);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-badge {
    align-self: flex-start;
    background: rgba(197, 168, 128, 0.18);
    color: var(--gold-light);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.result-title {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.result-desc {
    color: var(--slate-light);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.result-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-box span.label {
    display: block;
    color: var(--slate-light);
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

.spec-box span.data {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
}

.spec-box span.data.highlight {
    color: var(--gold-light);
}

/* ==========================================================================
   Two Systems Synergy (The Separation & Bridge section)
   ========================================================================== */
.synergy-section {
    background: #ffffff;
}

.synergy-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.synergy-card {
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    transition: var(--transition);
}

.synergy-card.main-site {
    background: var(--bg-light);
    border: 2px solid var(--slate-border);
}

.synergy-card.cpa-platform {
    background: linear-gradient(135deg, var(--navy-void) 0%, var(--navy-deep) 100%);
    color: #ffffff;
    border: 2px solid var(--gold-border);
    box-shadow: var(--shadow-lg);
}

.synergy-card.cpa-platform h3, .synergy-card.cpa-platform p {
    color: #ffffff;
}

.synergy-card.cpa-platform p {
    color: var(--slate-light);
}

.synergy-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.synergy-card.main-site .synergy-icon {
    color: var(--navy-deep);
}

.synergy-card.cpa-platform .synergy-icon {
    color: var(--gold-primary);
}

.synergy-features {
    list-style: none;
    margin: 1.8rem 0 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.synergy-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.synergy-card.main-site .synergy-features li i {
    color: var(--gold-dark);
}

.synergy-card.cpa-platform .synergy-features li i {
    color: var(--gold-primary);
}

/* ==========================================================================
   Consultation Booking Section
   ========================================================================== */
.booking-section {
    background: var(--bg-light);
}

.booking-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.booking-info-pane {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
    color: #ffffff;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.booking-info-pane h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.booking-info-pane p {
    color: var(--slate-light);
    margin-bottom: 2rem;
}

.contact-direct-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.direct-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.direct-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.direct-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-light);
}

.direct-text strong {
    font-size: 1.05rem;
    color: #ffffff;
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
}

.map-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0.45rem 1rem;
    background: rgba(197, 168, 128, 0.18);
    border: 1px solid var(--gold-primary);
    border-radius: 20px;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.map-btn-link:hover {
    background: var(--gold-primary);
    color: var(--navy-void);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.35);
}

.map-embed-container {
    margin-top: 1.8rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.map-embed-container iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

.booking-form-pane {
    padding: 3.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-deep);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--navy-void);
    color: var(--slate-light);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    color: var(--slate-light);
    font-size: 0.95rem;
    margin: 1.2rem 0 1.5rem;
    line-height: 1.8;
}

.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links li a {
    color: var(--slate-light);
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links li a:hover {
    color: var(--gold-light);
    transform: translateX(-4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
}

.footer-bottom p {
    color: var(--slate-light);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-light);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold-primary);
    color: var(--navy-void);
    transform: translateY(-3px);
}

/* ==========================================================================
   Floating Action Bar (WhatsApp & Fast Booking)
   ========================================================================== */
.floating-actions-bar {
    position: fixed;
    bottom: 1.8rem;
    left: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 999;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    cursor: pointer;
}

.float-wa {
    background: #25d366;
}

.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.float-call {
    background: var(--navy-deep);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
}

.float-call:hover {
    transform: scale(1.1);
    background: var(--navy-primary);
}

/* ==========================================================================
   About The Office Section Grid
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==========================================================================
   Real Google Reviews Section
   ========================================================================== */
.reviews-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    position: relative;
}

.reviews-summary-bar {
    max-width: 860px;
    margin: 0 auto 3.5rem;
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.reviews-score-block {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.score-num {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: var(--navy-deep);
    line-height: 1;
}

.score-details .stars {
    color: #fbbc04;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    display: flex;
    gap: 0.25rem;
}

.score-details span {
    font-size: 0.92rem;
    color: var(--slate-body);
    font-weight: 600;
}

.reviews-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 50px;
    color: #1a73e8;
    font-weight: 700;
    font-size: 0.92rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-border);
}

.review-card::before {
    content: "“";
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(197, 168, 128, 0.2);
    pointer-events: none;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.reviewer-info {
    overflow: hidden;
}

.reviewer-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 0.2rem;
}

.reviewer-role {
    font-size: 0.84rem;
    color: var(--slate-body);
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.review-stars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.review-stars-row .stars {
    color: #fbbc04;
    font-size: 1rem;
    display: flex;
    gap: 0.2rem;
}

.google-review-tag {
    font-size: 0.82rem;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.google-review-tag i {
    color: #4285f4;
}

.review-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed var(--slate-border);
    font-size: 0.82rem;
    color: #64748b;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #16a34a;
    font-weight: 700;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .estimator-container {
        grid-template-columns: 1fr;
    }
    
    .synergy-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive navigation handled at 1199px */
@media (max-width: 768px) {
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .booking-box {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-section {
        padding: 4rem 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-card {
        padding: 1.6rem 1.3rem;
    }
    
    .review-body {
        font-size: 0.92rem;
        line-height: 1.75;
    }
    
    .reviews-summary-bar {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.2rem;
        margin-bottom: 2.2rem;
    }
    
    .reviews-score-block {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ==========================================================================
   Day & Night Mode (Theme Engine)
   ========================================================================== */
:root {
    --transition-theme: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] {
    --bg-light: #060d19;
    --bg-white: #0a192f;
    --bg-card-glass: rgba(15, 35, 66, 0.85);
    --slate-dark: #f8fafc;
    --slate-body: #94a3b8;
    --slate-border: rgba(197, 168, 128, 0.2);
    --navy-deep: #ffffff;
    --navy-void: #02060d;
    --navy-primary: #0b1a32;
    --navy-card: #0f2342;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Dark Mode Navigation & Header */
[data-theme="dark"] .main-header {
    background: rgba(6, 13, 25, 0.94) !important;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2) !important;
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(2, 6, 13, 0.98) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .brand-name {
    color: #ffffff !important;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--gold-light) !important;
}

/* Dark Mode Hero Section */
[data-theme="dark"] .hero-section {
    background: radial-gradient(circle at 85% 15%, rgba(197, 168, 128, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 15% 85%, rgba(15, 35, 66, 0.3) 0%, transparent 40%),
                linear-gradient(180deg, #050c18 0%, #0a192f 100%) !important;
}

[data-theme="dark"] .hero-title {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-desc {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hero-badge-certified {
    background: rgba(15, 35, 66, 0.75) !important;
    border-color: rgba(197, 168, 128, 0.3) !important;
}

[data-theme="dark"] .hero-badge-certified span {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .floating-glass-card {
    background: rgba(15, 35, 66, 0.85) !important;
    border: 1px solid rgba(197, 168, 128, 0.25) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .card-tag {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--gold-light) !important;
    border: 1px solid rgba(197, 168, 128, 0.2) !important;
}

[data-theme="dark"] .card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .card-subtitle {
    color: #94a3b8 !important;
}

[data-theme="dark"] .feature-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .stat-item h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .stat-item p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .section-pad:not(.hero-section):not(.booking-section):not(#estimator) {
    background: #060d19 !important;
}

[data-theme="dark"] .reviews-section {
    background: linear-gradient(180deg, #060d19 0%, #0a192f 100%) !important;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .reviews-summary-bar,
[data-theme="dark"] .synergy-card.main-site,
[data-theme="dark"] .estimator-result-card {
    background: #0d1e38 !important;
    border-color: rgba(197, 168, 128, 0.22) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .reviewer-name,
[data-theme="dark"] .score-num,
[data-theme="dark"] .synergy-card h3,
[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .review-body,
[data-theme="dark"] .synergy-card p,
[data-theme="dark"] .section-desc {
    color: #94a3b8 !important;
}

[data-theme="dark"] .service-icon-wrap {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--gold-light) !important;
}

[data-theme="dark"] #about {
    background: #07101e !important;
}

[data-theme="dark"] #about div[style*="background: #ffffff"] {
    background: #0f2342 !important;
    border-color: rgba(197, 168, 128, 0.2) !important;
}

[data-theme="dark"] #about h4 {
    color: #ffffff !important;
}

[data-theme="dark"] #about p {
    color: #cbd5e1 !important;
}

/* ==========================================================================
   Multi-Language (LTR Adaptations)
   ========================================================================== */
html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] body {
    font-family: var(--font-en), -apple-system, BlinkMacSystemFont, sans-serif;
}

html[dir="ltr"] h1, 
html[dir="ltr"] h2, 
html[dir="ltr"] h3, 
html[dir="ltr"] h4, 
html[dir="ltr"] h5 {
    font-family: var(--font-en), sans-serif;
}

html[dir="ltr"] .fa-chevron-left {
    transform: rotate(180deg);
}

html[dir="ltr"] .spec-box {
    border-right: none;
    border-left: 3px solid var(--gold-primary);
}

html[dir="ltr"] .review-card::before {
    left: auto;
    right: 1.5rem;
}

html[dir="ltr"] .hero-badge-certified i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* ==========================================================================
/* ==========================================================================
   Theme & Language Switcher UI Components (Light & Dark Mode Perfected)
   ========================================================================== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Enhanced Theme Toggle Pill */
.theme-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.45rem 0.95rem !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid var(--gold-border) !important;
    color: var(--gold-light) !important;
    font-family: var(--font-heading) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.theme-toggle-btn:hover {
    background: var(--gold-primary) !important;
    color: var(--navy-void) !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35) !important;
}

.theme-toggle-btn .theme-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

[data-theme="light"] .theme-toggle-btn {
    background: #ffffff !important;
    border-color: var(--gold-primary) !important;
    color: var(--navy-deep) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: var(--navy-deep) !important;
    color: #ffffff !important;
    border-color: var(--navy-deep) !important;
}

@media (max-width: 576px) {
    .theme-toggle-btn .theme-btn-label {
        display: none !important;
    }
    .theme-toggle-btn {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
}

.lang-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn-current {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1.5px solid var(--gold-primary);
    border-radius: 30px;
    padding: 0.45rem 0.95rem;
    color: #0f2342;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-btn-current .flag-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.lang-btn-current .lang-code {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f2342;
    font-family: var(--font-en), sans-serif;
}

.lang-btn-current:hover {
    background: rgba(197, 168, 128, 0.15);
    border-color: var(--gold-dark);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.lang-btn-current i {
    font-size: 0.72rem;
    color: var(--gold-dark);
    transition: transform 0.25s ease;
}

.lang-switcher-dropdown.open .lang-btn-current i {
    transform: rotate(180deg);
}

[data-theme="dark"] .lang-btn-current {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-border);
    color: #ffffff;
}

[data-theme="dark"] .lang-btn-current .lang-code {
    color: #ffffff;
}

[data-theme="dark"] .lang-btn-current i {
    color: var(--gold-light);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1.5px solid rgba(197, 168, 128, 0.45);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    padding: 0.45rem;
    min-width: 175px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1050;
}

html[dir="ltr"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

[data-theme="dark"] .lang-dropdown-menu {
    background: #0b1528;
    border-color: var(--gold-border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.lang-switcher-dropdown.open .lang-dropdown-menu {
    display: flex;
    animation: fadeInDropdown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--navy-deep);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: right;
    transition: var(--transition);
}

html[dir="ltr"] .lang-item {
    text-align: left;
}

[data-theme="dark"] .lang-item {
    color: #cbd5e1;
}

.lang-item:hover {
    background: rgba(197, 168, 128, 0.15);
    color: var(--gold-dark);
}

[data-theme="dark"] .lang-item:hover {
    color: var(--gold-light);
}

.lang-item.active {
    background: var(--gold-primary) !important;
    color: var(--navy-void) !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.35);
}

/* Floating Brand Badge over Google Map Embed */
.map-embed-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(197, 168, 128, 0.35);
    background: #0b1528;
}

.map-floating-brand-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    background: rgba(11, 21, 40, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

html[dir="ltr"] .map-floating-brand-badge {
    right: 12px;
    left: 12px;
}

.map-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.18);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.map-badge-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.map-badge-top-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-badge-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.08rem 0.45rem;
    border-radius: 10px;
}

.map-badge-sub {
    font-size: 0.8rem;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-badge-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gold-gradient);
    color: var(--navy-void);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.35);
}

.map-badge-action:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.5);
    color: var(--navy-void);
}

/* Security Elements */
.header-security-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 600;
}

.security-seal-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.8rem;
}

.hemdan-hp-trap {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ==========================================================================
   Tax & Accounting Blog Section
   ========================================================================== */
.blog-section {
    background: var(--bg-light);
    position: relative;
}

.blog-filters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.blog-filter-btn {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 30px;
    padding: 0.55rem 1.4rem;
    color: var(--slate-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-border);
}

.blog-card-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--navy-deep);
}

.blog-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-thumb {
    transform: scale(1.08);
}

.blog-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 25, 47, 0.88);
    backdrop-filter: blur(8px);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

html[dir="ltr"] .blog-category-badge {
    right: auto;
    left: 1rem;
}

.blog-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.82rem;
    color: var(--slate-light);
    margin-bottom: 0.8rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta-item i {
    color: var(--gold-dark);
}

.blog-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--navy-deep);
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--gold-dark);
}

.blog-card-summary {
    color: var(--slate-body);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-deep);
    font-weight: 600;
}

.blog-author i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.blog-read-btn {
    background: transparent;
    border: none;
    color: var(--navy-deep);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    transition: var(--transition);
}

.blog-read-btn:hover {
    color: var(--gold-dark);
    transform: translateX(-4px);
}

html[dir="ltr"] .blog-read-btn:hover {
    transform: translateX(4px);
}

/* Newsletter Subscription Box */
.newsletter-box {
    background: linear-gradient(135deg, var(--navy-deep) 0%, #0d2244 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-icon {
    font-size: 2.8rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.newsletter-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.newsletter-desc {
    color: #cbd5e1;
    font-size: 0.98rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.85rem 1.4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.15);
}

/* Article Reader Modal */
.article-modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(5, 12, 24, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.article-modal-backdrop.open {
    display: flex;
    animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.article-modal-content {
    background: #ffffff;
    border-radius: var(--radius-xl);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gold-border);
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 25, 47, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--navy-deep);
    transition: var(--transition);
    z-index: 10;
}

html[dir="ltr"] .modal-close-btn {
    left: auto;
    right: 1.2rem;
}

.modal-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.modal-body-content {
    padding: 2.5rem 2.2rem;
}

/* Dark Mode Overrides for Blog */
[data-theme="dark"] .blog-section {
    background: #060d19 !important;
}

[data-theme="dark"] .blog-filter-btn {
    background: #0d1e38;
    border-color: rgba(197, 168, 128, 0.2);
    color: #cbd5e1;
}

[data-theme="dark"] .blog-card {
    background: #0d1e38 !important;
    border-color: rgba(197, 168, 128, 0.22) !important;
}

[data-theme="dark"] .blog-card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .blog-card-summary {
    color: #94a3b8 !important;
}

[data-theme="dark"] .blog-author {
    color: var(--gold-light) !important;
}

[data-theme="dark"] .blog-read-btn {
    color: var(--gold-light) !important;
}

[data-theme="dark"] .article-modal-content {
    background: #0a192f !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 4rem 0;
    }
    .blog-filters-row {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .blog-filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        margin-bottom: 2.2rem;
    }
    .blog-card-thumb-wrap {
        height: 190px;
    }
    .blog-card-body {
        padding: 1.4rem 1.2rem;
    }
    .blog-card-title {
        font-size: 1.1rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Header Controls & Responsive Mobile Navigation Drawer
   ========================================================================== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0 !important;
}

.header-desktop-ctas {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0 !important;
}

.header-desktop-ctas .btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(15, 35, 66, 0.06);
    border: 1px solid var(--gold-border);
    color: var(--navy-deep);
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

[data-theme="dark"] .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.mobile-menu-toggle:hover {
    background: var(--gold-primary);
    color: var(--navy-void);
}

/* Mobile Drawer Backdrop & Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 12, 24, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    background: #0a192f;
    border-left: 1px solid var(--gold-border);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="ltr"] .mobile-nav-drawer {
    right: auto;
    left: -320px;
    border-left: none;
    border-right: 1px solid var(--gold-border);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.open {
    right: 0;
}

html[dir="ltr"] .mobile-nav-drawer.open {
    left: 0;
    right: auto;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.2rem;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-drawer-close:hover {
    background: #ef4444;
    color: #ffffff;
}

.mobile-drawer-quick-controls {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.mobile-ctrl-group .ctrl-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.mobile-lang-pill {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.mobile-lang-pill:hover,
.mobile-lang-pill.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--navy-void);
    font-weight: 700;
}

.mobile-theme-toggle-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--gold-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-theme-toggle-bar:hover {
    background: rgba(197, 168, 128, 0.2);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-item i {
    width: 18px;
    color: var(--gold-primary);
    text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(197, 168, 128, 0.18);
    color: #ffffff;
    font-weight: 700;
}

.mobile-drawer-bottom-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode adjustments for mobile drawer */
[data-theme="dark"] .mobile-nav-drawer {
    background: #060d19;
}

/* Media Query Adaptations for Mobile Navigation */
@media (max-width: 1240px) {
    .desktop-nav,
    .header-desktop-ctas {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .brand-tagline {
        display: none;
    }
    
    .brand-name {
        font-size: 1.05rem;
    }
    
    .brand-logo {
        height: 42px;
    }
    
    .lang-btn-current {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .header-controls {
        gap: 0.45rem;
    }
}

/* ==========================================================================
   Quotation Modal & Estimator Actions
   ========================================================================== */
.estimator-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

@media (max-width: 576px) {
    .company-type-selector {
        grid-template-columns: 1fr;
    }
}

.quote-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quote-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.quote-modal-content {
    background: #0a192f;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.2rem 2rem;
    color: #f1f5f9;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-modal-backdrop.open .quote-modal-content {
    transform: translateY(0) scale(1);
}

.quote-modal-close {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

html[dir="ltr"] .quote-modal-close {
    left: auto;
    right: 1.2rem;
}

.quote-modal-close:hover {
    background: var(--gold-primary);
    color: var(--navy-deep);
}

.quote-modal-header {
    text-align: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.quote-modal-header .quote-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.quote-modal-header h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.quote-modal-header p {
    font-size: 0.88rem;
    color: var(--gold-light);
    margin: 0;
}

.quote-summary-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

@media (max-width: 576px) {
    .quote-summary-box {
        grid-template-columns: 1fr;
    }
}

.quote-summary-item .q-label {
    display: block;
    font-size: 0.78rem;
    color: var(--slate-body);
    margin-bottom: 0.2rem;
}

.quote-summary-item .q-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.quote-summary-item .q-val.highlight {
    color: var(--gold-light);
}

.quote-form .form-group {
    margin-bottom: 1.1rem;
}

.quote-form label {
    display: block;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.quote-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.quote-form .form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

[data-theme="light"] .quote-modal-content {
    background: #ffffff;
    color: var(--slate-dark);
}

[data-theme="light"] .quote-modal-header h3 {
    color: var(--navy-deep);
}

[data-theme="light"] .quote-summary-box {
    background: var(--bg-light);
    border-color: var(--slate-border);
}

[data-theme="light"] .quote-summary-item .q-val {
    color: var(--navy-deep);
}

[data-theme="light"] .quote-form label {
    color: var(--navy-deep);
}

[data-theme="light"] .quote-form .form-control {
    background: #ffffff;
    border-color: var(--slate-border);
    color: var(--slate-dark);
}

[data-theme="light"] .quote-modal-close {
    background: rgba(0, 0, 0, 0.06);
    color: var(--slate-dark);
}


/* ==========================================================================
   Branch Selector & Location Cards (Main HQ & Obour City)
   ========================================================================== */
.branch-card-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    transition: var(--transition);
    margin-bottom: 0.8rem;
}

.branch-card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.branch-tag-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.branch-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: rgba(197, 168, 128, 0.18);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.branch-obour-badge {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
    color: #2ecc71;
}

.branch-map-tabs {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}

.branch-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.branch-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.branch-tab-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--navy-void);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.35);
}


/* ==========================================================================
   Upgraded Type-Btn & Interactive Estimator Icons
   ========================================================================== */
.company-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.type-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    text-align: right;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    outline: none;
}

.type-btn-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.type-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(197, 168, 128, 0.16);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.type-btn h5 {
    color: #ffffff;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.type-btn p {
    color: var(--slate-light);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.45;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(197, 168, 128, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.type-btn:hover .type-btn-icon {
    background: rgba(197, 168, 128, 0.3);
    color: #ffffff;
    transform: scale(1.08);
}

.type-btn.active {
    background: rgba(197, 168, 128, 0.18);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 1.5px var(--gold-primary), 0 8px 24px rgba(197, 168, 128, 0.28);
    transform: translateY(-2px);
}

.type-btn.active .type-btn-icon {
    background: var(--gold-primary);
    color: var(--navy-void);
    border-color: var(--gold-primary);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.5);
}

.type-btn.active h5 {
    color: var(--gold-light);
}

.reviewer-avatar {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* ==========================================================================
   Enhanced Estimator Design & Contrast (Official Executive Palette)
   ========================================================================== */
.calc-section {
    background: radial-gradient(circle at 80% 20%, rgba(15, 76, 117, 0.3) 0%, transparent 60%),
                linear-gradient(145deg, var(--navy-void, #061224) 0%, var(--navy-deep, #0b192c) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.estimator-container {
    background: rgba(11, 25, 44, 0.72) !important;
    border: 1px solid rgba(197, 168, 128, 0.28) !important;
    border-radius: var(--radius-xl, 16px) !important;
    padding: 2.8rem 2.4rem !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
}

.estimator-result-card {
    background: linear-gradient(150deg, #0d213f 0%, #071527 100%) !important;
    border: 1.5px solid rgba(197, 168, 128, 0.38) !important;
    border-radius: var(--radius-lg, 12px) !important;
    padding: 2.2rem 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.result-specs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
    margin: 1.6rem 0 !important;
    padding: 1.4rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.spec-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-sm, 8px) !important;
    padding: 0.95rem 1.1rem !important;
    transition: all 0.25s ease !important;
}

.spec-box:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(197, 168, 128, 0.45) !important;
}

.spec-box span.label {
    display: block !important;
    color: #cbd5e1 !important; /* High contrast crisp slate-300 */
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
}

.spec-box span.data {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    display: block !important;
}

.spec-box span.data.highlight {
    color: var(--gold-light, #ffd700) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}

.slider-group label {
    color: #e2e8f0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.slider-group label span.val {
    color: var(--gold-light, #ffd700) !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
}

.custom-range {
    width: 100% !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    accent-color: var(--gold-primary, #c5a059) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

.type-btn {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.type-btn:active {
    transform: scale(0.98) !important;
}

/* Mobile Responsiveness for Estimator */
@media (max-width: 991px) {
    .estimator-container {
        grid-template-columns: 1fr !important;
        gap: 2.2rem !important;
        padding: 2rem 1.6rem !important;
    }
}

@media (max-width: 640px) {
    .company-type-selector {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .result-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .estimator-container {
        padding: 1.5rem 1.1rem !important;
    }
    .type-btn {
        padding: 1rem 1.1rem !important;
    }
}
