/* ============================================
   CSS VARIABLES - Riyadh SEO
   Colors from DESIGN_CHOICES.md
   ============================================ */

:root {
    --primary-color: #0891B2;
    --primary-dark: #0E7490;
    --secondary-color: #D4A005;
    --secondary-dark: #B8860B;
    --accent-color: #065F73;
    --background-color: #FAFAFA;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --white: #ffffff;
    --border-color: #E5E7EB;
    --font-family-ar: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-en);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* RTL Support for Arabic */
html[lang="ar"] body,
html[dir="rtl"] body {
    font-family: var(--font-family-ar);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ============================================
   HEADER - CRITICAL SECTION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--white);
    box-shadow: var(--shadow);
    height: var(--header-height);
    overflow: visible;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    white-space: nowrap;
}

/* ============================================
   NAVIGATION - BASE STYLES
   ============================================ */

.main-nav {
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list > li > a:hover {
    color: var(--primary-color);
}

/* Active page link */
.nav-list > li > a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact CTA button */
.nav-cta {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: var(--border-radius);
    margin-left: 0.5rem;
}

html[dir="rtl"] .nav-cta {
    margin-left: 0;
    margin-right: 0.5rem;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1rem;
    transition: var(--transition);
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

.lang-switcher:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile language item - hidden on desktop */
.mobile-lang-item {
    display: none;
}

/* ============================================
   DROPDOWN - CRITICAL SECTION
   ============================================ */

.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.has-dropdown > .nav-link {
    padding-right: 0.25rem;
}

html[dir="rtl"] .has-dropdown > .nav-link {
    padding-right: 1rem;
    padding-left: 0.25rem;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-toggle svg {
    transition: transform 0.3s ease;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 10000;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.dropdown-menu a.active {
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.03);
}

/* ============================================
   DESKTOP DROPDOWN BEHAVIOR (min-width: 769px)
   ============================================ */

@media (min-width: 769px) {
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }

    .has-dropdown:hover > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .has-dropdown:hover > .dropdown-toggle {
        color: var(--primary-color);
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        display: block;
    }

    .has-dropdown.dropdown-open > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .nav-list > li {
        flex-shrink: 0;
    }
}

.has-dropdown.has-active-child > .nav-link {
    color: var(--primary-color);
}

/* ============================================
   MOBILE MENU TOGGLE (Hamburger)
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .lang-switcher.desktop-lang {
        display: none;
    }

    .mobile-lang-item {
        display: block !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-lang-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        color: var(--primary-color);
        font-weight: 600;
        background: var(--background-color);
        border-radius: var(--border-radius);
        transition: background 0.3s ease;
    }

    .mobile-lang-link:hover {
        background: var(--primary-color);
        color: white;
    }

    .mobile-lang-link svg {
        flex-shrink: 0;
    }

    .site-header {
        overflow: visible;
    }

    .header-container {
        overflow: visible;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    html[dir="rtl"] .main-nav {
        left: 0;
        right: 0;
        transform: translateX(100%);
    }

    .main-nav.mobile-open,
    html[dir="rtl"] .main-nav.mobile-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 1rem;
        margin: 0;
        overflow: visible;
    }

    .nav-list > li {
        border-bottom: 1px solid var(--border-color);
        overflow: visible;
    }

    .nav-list > li:last-child {
        border-bottom: none;
    }

    .nav-list > li > a {
        padding: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .has-dropdown {
        flex-wrap: wrap;
        overflow: visible;
    }

    .has-dropdown > .nav-link {
        flex: 1;
        padding-right: 0;
    }

    html[dir="rtl"] .has-dropdown > .nav-link {
        padding-left: 0;
    }

    .has-dropdown > .dropdown-toggle {
        min-width: 44px;
        min-height: 44px;
        border-left: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    html[dir="rtl"] .has-dropdown > .dropdown-toggle {
        border-left: none;
        border-right: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: var(--background-color);
        display: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        display: block;
        max-height: 500px;
        padding: 0.5rem 0;
        overflow: visible;
    }

    .has-dropdown.dropdown-open > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-cta {
        margin: 1rem 0 0 0 !important;
        text-align: center;
        justify-content: center;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   HERO SECTION - 3-Column Control Panel
   ============================================ */

.hero {
    background: var(--white);
    position: relative;
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 200px 1fr 180px;
    gap: 3rem;
    align-items: start;
}

/* LEFT COLUMN: Strategy Stack */
.hero-strategy {
    padding-top: 0.5rem;
}

.strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strategy-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.strategy-list li:last-child {
    border-bottom: none;
}

.strategy-num {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.7rem;
    min-width: 20px;
}

.strategy-text {
    flex: 1;
}

/* CENTER COLUMN: Core Message */
.hero-center {
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subline {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 0;
}

.hero-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 0;
    transition: background 0.3s ease;
}

.hero-cta .btn-primary:hover {
    background: var(--primary-color);
}

/* RIGHT COLUMN: Market Signals */
.hero-signals {
    padding-top: 0.5rem;
}

.signals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signals-list li {
    position: relative;
    padding: 0.85rem 0;
    padding-left: 1rem;
    font-size: 0.78rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.4;
}

html[dir="rtl"] .signals-list li {
    padding-left: 0;
    padding-right: 1rem;
}

.signals-list li:last-child {
    border-bottom: none;
}

.signals-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

html[dir="rtl"] .signals-list li::before {
    left: auto;
    right: 0;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 160px 1fr 140px;
        gap: 2rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .strategy-list li,
    .signals-list li {
        font-size: 0.75rem;
        padding: 0.55rem 0;
    }

    .signals-list li {
        padding-left: 0.875rem;
    }

    html[dir="rtl"] .signals-list li {
        padding-left: 0;
        padding-right: 0.875rem;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-strategy {
        order: 2;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .strategy-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1.5rem;
    }

    .strategy-list li {
        border-bottom: none;
        padding: 0.4rem 0;
        justify-content: center;
    }

    .hero-center {
        order: 1;
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-signals {
        order: 3;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .signals-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }

    .signals-list li {
        border-bottom: none;
        padding: 0.3rem 0 0.3rem 1rem;
    }

    html[dir="rtl"] .signals-list li {
        padding: 0.3rem 1rem 0.3rem 0;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background: var(--background-color);
}

/* ============================================
   SERVICES - SEO SYSTEM DESIGN
   ============================================ */

.services-section {
    padding: 6rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.services-section.bg-light {
    background: var(--background-color);
}

/* Section Header - Left Aligned */
.services-header {
    margin-bottom: 3rem;
    max-width: 500px;
}

.services-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 2-Column System Layout */
.services-system {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* LEFT: System Map */
.system-map {
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

html[dir="rtl"] .system-map {
    border-right: none;
    border-left: 1px solid var(--border-color);
    padding-right: 0;
    padding-left: 2rem;
}

.system-modules {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-module {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.system-module:last-child {
    border-bottom: none;
}

.system-module:hover {
    padding-left: 0.5rem;
}

html[dir="rtl"] .system-module:hover {
    padding-left: 0;
    padding-right: 0.5rem;
}

.system-module.active {
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary-color);
}

html[dir="rtl"] .system-module.active {
    padding-left: 0;
    padding-right: 0.75rem;
    border-left: none;
    border-right: 2px solid var(--primary-color);
}

.module-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 24px;
    padding-top: 2px;
}

.module-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
}

.system-module.active .module-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* RIGHT: Module View */
.module-view {
    min-height: 320px;
}

.module-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.module-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.module-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.module-points {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.module-points li {
    position: relative;
    padding: 0.6rem 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
}

html[dir="rtl"] .module-points li {
    padding-left: 0;
    padding-right: 1.25rem;
}

.module-points li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

html[dir="rtl"] .module-points li::before {
    left: auto;
    right: 0;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--text-color);
    transition: all 0.2s ease;
}

.module-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    gap: 0.75rem;
}

.module-link::after {
    content: '→';
}

html[dir="rtl"] .module-link::after {
    content: '←';
}

/* Bottom CTA */
.services-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-cta-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.services-cta .btn {
    background: var(--text-color);
    color: var(--white);
    border-radius: 0;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
}

.services-cta .btn:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .services-system {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .system-map {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    html[dir="rtl"] .system-map {
        border-left: none;
        padding-left: 0;
    }

    .system-modules {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 2rem;
    }

    .system-module {
        padding: 0.75rem 0;
        border-bottom: none;
    }

    .module-view {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .system-modules {
        grid-template-columns: 1fr;
    }

    .services-cta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Legacy service cards (for other pages) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card .btn {
    width: 100%;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--primary-color);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ============================================
   FAQ ACCORDION COMPONENT
   ============================================ */

.faq-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
    gap: 1rem;
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--background-color);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.faq-question:hover .faq-icon {
    background: var(--primary-color);
    color: white;
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0;
}

/* FAQ Two-Column Grid Layout */
.faq-accordion.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
}

/* FAQ Tabs Layout */
.faq-tabs-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.faq-tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.faq-tab:hover,
.faq-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.faq-tab-content {
    display: none;
}

.faq-tab-content.active {
    display: block;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-accordion.faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-tabs {
        gap: 0.25rem;
    }

    .faq-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--text-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--secondary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info svg {
    flex-shrink: 0;
    stroke: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-lang-switch {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-lang-switch:hover {
    color: var(--white);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   PAGE HEADERS (Internal Pages)
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.breadcrumbs {
    margin-top: 1.5rem;
}

.breadcrumbs a,
.breadcrumbs span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs span.separator {
    margin: 0 0.5rem;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-light);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ============================================
   FORM SUCCESS MESSAGE
   ============================================ */

.form-success-message {
    text-align: center;
    padding: 60px 20px;
}

.form-success-message svg {
    margin-bottom: 20px;
}

.form-success-message p {
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* Form error state */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* ============================================
   WHAT WE DO CAROUSEL SECTION
   ============================================ */

.what-we-do-section {
    padding: 4rem 0;
    overflow: hidden;
    background: var(--background-color);
}

.what-we-do-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.what-we-do-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.carousel-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 1rem 0;
    direction: ltr;
}

.carousel-row {
    display: flex;
    margin-bottom: 1rem;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll-left 150s linear infinite;
    width: max-content;
    will-change: transform;
}

.carousel-row.reverse .carousel-track {
    animation: scroll-right 170s linear infinite;
}

/* Pause on hover */
.carousel-row:hover .carousel-track {
    animation-play-state: paused;
}

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

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

.carousel-item {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Ensure clickability */
    position: relative;
    z-index: 1;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(8, 145, 178, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

html[dir="rtl"] .carousel-item {
    direction: rtl;
}

.carousel-item:hover,
.carousel-item:focus {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
    outline: none;
}

.carousel-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.carousel-item:active {
    transform: scale(0.98);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--text-light);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    z-index: 1;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[dir="rtl"] .popup-close {
    right: auto;
    left: 1rem;
}

.popup-close:hover {
    background: var(--primary-color);
}

.popup-content {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: 85vh;
    line-height: 1.8;
}

.popup-content h1,
.popup-content h2,
.popup-content h3 {
    margin-top: 0;
    color: var(--text-color);
}

.popup-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.popup-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 1rem;
    color: #444;
}

.popup-content ul,
.popup-content ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

html[dir="ltr"] .popup-content ul,
html[dir="ltr"] .popup-content ol {
    padding-right: 0;
    padding-left: 1.5rem;
}

.popup-content li {
    margin-bottom: 0.5rem;
}

.popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Responsive */
@media (max-width: 768px) {
    .what-we-do-section h2 {
        font-size: 2rem;
    }

    .carousel-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .popup-container {
        margin: 1rem;
        max-height: 90vh;
    }

    .popup-content {
        padding: 1.5rem;
        max-height: 85vh;
    }

    .popup-content h1 {
        font-size: 1.4rem;
    }
}
