/*
Theme Name: KAI Consulting
Theme URI: https://kaiconsulting.co
Author: KAI Development Team
Author URI: https://kaiconsulting.co
Description: Bilingual (EN/AR) WordPress theme for KAI Strategic Advisory Firm. Fully customizable through WordPress Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kai-theme
Domain Path: /languages
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* ===== CSS Variables ===== */
:root {
    --deep-teal: #235C6F;
    --teal: #37919F;
    --teal-light: #4BA3B0;
    --cyan: #5BC0BE;
    --cyan-light: #8DD8D7;
    --cream: #faf9f7;
    --cream-dark: #f0eeea;
    --charcoal: #1c1c1c;
    --gray: #6b7280;
    --white: #ffffff;
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

/* RTL Arabic Font Override */
body.rtl,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4,
body.rtl p, body.rtl a, body.rtl span, body.rtl li, body.rtl input, body.rtl textarea, body.rtl button {
    font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 {
    font-family: 'Noto Sans Arabic', 'DM Serif Display', serif;
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.header.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 55px; width: auto; transition: all 0.3s ease; }
.header.scrolled .logo img { height: 48px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
    color: var(--deep-teal);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover, .nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--teal); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after { width: 100%; }

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--deep-teal);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.nav-cta:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 92, 111, 0.3);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(35, 92, 111, 0.05);
    border: 1px solid rgba(35, 92, 111, 0.15);
    border-radius: 6px;
    color: var(--deep-teal);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.lang-switch:hover {
    background: rgba(35, 92, 111, 0.1);
    border-color: var(--teal);
}
.lang-switch svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.menu-toggle {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--deep-teal);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    background: var(--deep-teal);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-image { position: absolute; inset: 0; z-index: 1; }
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1) brightness(0.35);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35, 92, 111, 0.92) 0%, rgba(55, 145, 159, 0.85) 50%, rgba(35, 92, 111, 0.9) 100%);
    z-index: 2;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(35, 92, 111, 0.6) 100%);
    z-index: 3;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 4;
}
.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 192, 190, 0.25) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(30, 125, 122, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: orbFloat 15s ease-in-out infinite reverse;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5% 5rem;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text { max-width: 620px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem 0.5rem 0.75rem;
    background: rgba(91, 192, 190, 0.1);
    border: 1px solid rgba(91, 192, 190, 0.25);
    border-radius: 50px;
    margin-bottom: 1.75rem;
    animation: fadeUp 0.8s ease forwards;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
}
.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}
.hero-title span { display: block; }
.hero-title .highlight { color: var(--cyan); font-style: italic; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-description {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--cyan); color: var(--deep-teal); }
.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(91, 192, 190, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(91, 192, 190, 0.1);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

/* RTL arrow flip */
body.rtl .btn:hover svg { transform: translateX(-4px) scaleX(-1); }
body.rtl .btn svg { transform: scaleX(-1); }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-stat h4 {
    font-size: 2.25rem;
    color: var(--cyan);
    margin-bottom: 0.25rem;
}
.hero-stat p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}
.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.08); }
.hero-card-1 { width: 260px; top: 5%; left: 0; animation: cardFloat 6s ease-in-out infinite; }
.hero-card-2 { width: 240px; top: 40%; right: 0; animation: cardFloat 6s ease-in-out 1s infinite; }
.hero-card-3 { width: 250px; bottom: 5%; left: 10%; animation: cardFloat 6s ease-in-out 2s infinite; }
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--cyan), var(--teal-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
}
.hero-card-icon svg { width: 22px; height: 22px; stroke: var(--white); stroke-width: 2; fill: none; }
.hero-card h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.375rem; }
.hero-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ===== Section Base ===== */
.section { padding: 5rem 5%; }
.section-lg { padding: 6rem 5%; }
.container { max-width: 1300px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.875rem;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--cyan); }
body.rtl .section-tag::before { order: 2; }
.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    color: var(--deep-teal);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.section-title.light { color: var(--white); }
.section-subtitle { font-size: 1.0625rem; color: var(--gray); max-width: 580px; }
.section-subtitle.light { color: rgba(255,255,255,0.7); }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== About Section ===== */
.about { background: var(--cream); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-content p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1rem;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
.about-feature {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(55, 145, 159, 0.08);
    transition: all 0.3s ease;
}
.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(55, 145, 159, 0.1);
}
.about-feature h4 { font-size: 1.75rem; color: var(--teal); margin-bottom: 0.25rem; }
.about-feature p { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.about-image { position: relative; }
.about-image-main {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(30%) contrast(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}
.about-image-accent {
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.15;
}
body.rtl .about-image-accent { left: auto; right: -25px; }
.about-image-badge {
    position: absolute;
    bottom: 25px;
    right: -15px;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
body.rtl .about-image-badge { right: auto; left: -15px; }
.about-image-badge-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-image-badge-icon svg { width: 22px; height: 22px; stroke: var(--white); stroke-width: 2; fill: none; }
.about-image-badge-text h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--deep-teal); }
.about-image-badge-text p { font-size: 0.75rem; color: var(--gray); margin: 0; }

/* ===== Mission Vision Section ===== */
.mission-vision {
    background: var(--deep-teal);
    position: relative;
    overflow: hidden;
}
.mv-bg-image { position: absolute; inset: 0; z-index: 1; }
.mv-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.15);
}
.mv-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35, 92, 111, 0.95) 0%, rgba(55, 145, 159, 0.9) 100%);
    z-index: 2;
}
.mv-content { position: relative; z-index: 3; }
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.mv-card {
    padding: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.mv-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-5px); }
.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}
body.rtl .mv-card::before { background: linear-gradient(270deg, var(--cyan), transparent); }
.mv-icon {
    width: 56px;
    height: 56px;
    background: rgba(91, 192, 190, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.mv-icon svg { width: 26px; height: 26px; stroke: var(--cyan); stroke-width: 1.5; fill: none; }
.mv-card h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 0.875rem; }
.mv-card p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ===== Philosophy Section ===== */
.philosophy { background: var(--white); }
.philosophy-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.philosophy-content h3 { font-size: 1.375rem; color: var(--deep-teal); margin-bottom: 0.875rem; margin-top: 1.75rem; }
.philosophy-content h3:first-of-type { margin-top: 0; }
.philosophy-content p { font-size: 1rem; color: var(--gray); line-height: 1.9; }
.philosophy-quote {
    margin-top: 1.75rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, var(--deep-teal), var(--teal));
    border-radius: 14px;
    position: relative;
}
.philosophy-quote::before {
    content: '"';
    font-family: 'DM Serif Display', serif;
    font-size: 4.5rem;
    color: rgba(255,255,255,0.1);
    position: absolute;
    top: -5px;
    left: 1.25rem;
    line-height: 1;
}
body.rtl .philosophy-quote::before { left: auto; right: 1.25rem; content: '"'; }
.philosophy-quote p { color: var(--white); font-size: 1.0625rem; font-style: italic; position: relative; z-index: 1; }
.philosophy-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.philosophy-img { border-radius: 12px; overflow: hidden; height: 180px; }
.philosophy-img:first-child { grid-row: span 2; height: 100%; }
.philosophy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
    transition: all 0.5s ease;
}
.philosophy-img:hover img { filter: grayscale(20%) contrast(1.05); transform: scale(1.05); }

/* ===== Values Section ===== */
.values { background: var(--cream); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.value-card {
    background: var(--white);
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--deep-teal), var(--teal));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.value-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(55, 145, 159, 0.15); }
.value-card:hover::before { opacity: 1; }
.value-card:hover .value-icon { background: rgba(255,255,255,0.2); }
.value-card:hover .value-icon svg { stroke: var(--white); }
.value-card:hover h4, .value-card:hover .value-desc { color: var(--white); }
.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(91, 192, 190, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.value-icon svg { width: 26px; height: 26px; stroke: var(--teal); stroke-width: 1.5; fill: none; transition: stroke 0.3s ease; }
.value-card h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--deep-teal); position: relative; z-index: 1; transition: color 0.3s ease; margin-bottom: 0.75rem; }
.value-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.6; position: relative; z-index: 1; transition: color 0.3s ease; }

/* ===== Approach Section ===== */
.approach { background: var(--white); }
.approach-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.approach-timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--teal-light), var(--teal), var(--deep-teal));
    border-radius: 3px;
}
body.rtl .approach-timeline::before {
    background: linear-gradient(270deg, var(--cyan), var(--teal-light), var(--teal), var(--deep-teal));
}
.approach-step { text-align: center; padding: 0 1.25rem; position: relative; }
.approach-number {
    width: 90px;
    height: 90px;
    background: var(--white);
    border: 3px solid var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}
.approach-step:hover .approach-number {
    border-color: var(--cyan);
    background: var(--deep-teal);
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(91, 192, 190, 0.25);
}
.approach-number span { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--teal); transition: color 0.3s ease; }
.approach-step:hover .approach-number span { color: var(--cyan); }
.approach-step h4 { font-size: 1.25rem; color: var(--deep-teal); margin-bottom: 0.625rem; }
.approach-step p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ===== Expertise Section ===== */
.expertise {
    background: var(--deep-teal);
    position: relative;
    overflow: hidden;
}
.expertise-bg { position: absolute; inset: 0; z-index: 1; }
.expertise-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.1);
}
.expertise-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35, 92, 111, 0.97) 0%, rgba(55, 145, 159, 0.93) 100%);
    z-index: 2;
}
.expertise-content { position: relative; z-index: 3; }
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.expertise-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.rtl .expertise-card::before { left: auto; right: 0; }
.expertise-card:hover { background: rgba(255,255,255,0.06); transform: translateX(8px); }
body.rtl .expertise-card:hover { transform: translateX(-8px); }
.expertise-card:hover::before { opacity: 1; }
.expertise-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.expertise-icon {
    width: 48px;
    height: 48px;
    background: rgba(91, 192, 190, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.expertise-icon svg { width: 24px; height: 24px; stroke: var(--cyan); stroke-width: 1.5; fill: none; }
.expertise-card h4 { font-size: 1.125rem; color: var(--white); }
.expertise-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.expertise-list li { font-size: 0.9rem; color: rgba(255,255,255,0.7); padding-left: 1.25rem; position: relative; }
body.rtl .expertise-list li { padding-left: 0; padding-right: 1.25rem; }
.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
}
body.rtl .expertise-list li::before { left: auto; right: 0; }

/* ===== How We Partner Section ===== */
.how-partner { background: var(--cream); }
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.partner-image { position: relative; }
.partner-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 18px;
    filter: grayscale(30%) contrast(1.05);
}
.partner-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(35, 92, 111, 0.85), rgba(55, 145, 159, 0.8));
    border-radius: 18px;
}
.partner-image-overlay p {
    color: var(--white);
    font-size: 1.25rem;
    font-style: italic;
    text-align: center;
    max-width: 400px;
    line-height: 1.7;
}
.partner-content p { font-size: 1rem; color: var(--gray); line-height: 1.9; margin-bottom: 1.75rem; }
.partner-features { display: flex; flex-direction: column; gap: 0.625rem; }
.partner-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--cyan);
    transition: all 0.3s ease;
}
body.rtl .partner-feature { border-left: none; border-right: 4px solid var(--cyan); }
.partner-feature:hover { transform: translateX(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
body.rtl .partner-feature:hover { transform: translateX(-8px); }
.partner-feature svg { width: 20px; height: 20px; stroke: var(--cyan); stroke-width: 2.5; fill: none; flex-shrink: 0; margin-top: 2px; }
.partner-feature-text h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--deep-teal); margin-bottom: 0.25rem; }
.partner-feature-text p { font-size: 0.85rem; color: var(--gray); margin: 0; line-height: 1.5; }
.partner-note { margin-top: 1.5rem; padding: 1rem; background: rgba(91, 192, 190, 0.1); border-radius: 10px; font-size: 0.95rem; color: var(--teal); font-style: italic; }

/* ===== Associates Section ===== */
.associates { background: var(--white); }
.associates-intro { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; font-size: 1rem; color: var(--gray); line-height: 1.9; }
.associates-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.associate-logo {
    height: 100px !important;
    width: auto !important;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: all 0.3s ease;
}
.associate-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* ===== Contact Section ===== */
.contact {
    background: var(--deep-teal);
    position: relative;
    overflow: hidden;
}
.contact-bg { position: absolute; inset: 0; z-index: 1; }
.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.12);
}
.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35, 92, 111, 0.95) 0%, rgba(55, 145, 159, 0.9) 100%);
    z-index: 2;
}
.contact-container { text-align: center; position: relative; z-index: 3; }
.contact-info { display: flex; justify-content: center; gap: 4rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; text-align: left; }
body.rtl .contact-item { text-align: right; }
.contact-icon {
    width: 52px;
    height: 52px;
    background: rgba(91, 192, 190, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--cyan); stroke-width: 1.5; fill: none; }
.contact-text span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.25rem; }
.contact-text a, .contact-text p { color: var(--white); font-size: 0.95rem; text-decoration: none; margin: 0; line-height: 1.5; transition: color 0.3s ease; }
.contact-text a:hover { color: var(--cyan); }

/* ===== Footer ===== */
.footer { background: var(--charcoal); padding: 4rem 5% 1.5rem; }
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 1.25rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.625rem; }
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--cyan); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }
.footer-col h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover { color: var(--cyan); transform: translateX(5px); }
body.rtl .footer-links a:hover { transform: translateX(-5px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.875rem; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--cyan); stroke-width: 1.5; fill: none; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item p, .footer-contact-item a { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin: 0; text-decoration: none; line-height: 1.5; transition: color 0.3s ease; }
.footer-contact-item a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.8rem; text-decoration: none; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(35px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== Performance: Content Visibility ===== */
.about,
.mission-vision,
.philosophy,
.values,
.approach,
.expertise,
.how-partner,
.associates,
.contact {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* ===== Performance: Will-change hints ===== */
.header { will-change: padding, box-shadow; }
.hero-orb { will-change: transform; }
.hero-card { will-change: transform; }
.mobile-menu { will-change: left, right; }
.mobile-overlay { will-change: opacity, visibility; }

/* ===== Performance: Reduce motion for accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-orb { animation: none; }
    .hero-card { animation: none; }
    .hero-badge-dot { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .approach-timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .approach-timeline::before { display: none; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    .nav-links, .nav-cta, .lang-switch { display: none; }
    .menu-toggle { display: flex; }
    .hero-content, .about-grid, .mv-grid, .philosophy-grid, .partner-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { display: none; }
    .expertise-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info { flex-direction: column; gap: 1.5rem; align-items: center; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .associates-grid { gap: 1.5rem; }
    .associate-logo { height: 80px !important; }
}
@media (max-width: 768px) {
    .section { padding: 3.5rem 5%; }
    .approach-timeline, .values-grid { grid-template-columns: 1fr; }
    .philosophy-visual { grid-template-columns: 1fr; }
    .philosophy-img:first-child { grid-row: auto; height: 180px; }
    .about-features { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1.25rem; }
    .associates-grid { flex-direction: column; }
    .associate-logo { height: 70px !important; }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--deep-teal);
    z-index: 1001;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
body.rtl .mobile-menu { right: auto; left: -100%; transition: left 0.4s ease; }
.mobile-menu.active { right: 0; }
body.rtl .mobile-menu.active { left: 0; right: auto; }
.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-menu-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.mobile-menu-links a:hover { color: var(--cyan); }
.mobile-lang {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-lang a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.rtl .mobile-menu-close { right: auto; left: 1.5rem; }
.mobile-menu-close svg { width: 20px; height: 20px; stroke: var(--white); stroke-width: 2; }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ===== WordPress Admin Bar Fix ===== */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .header { top: 46px; }
}
