﻿/*
Theme Name: Corporate Bilingual
Theme URI: https://example.com/
Author: Corporate Website
Author URI: https://example.com/
Description: Arabic/English corporate WordPress theme with ACF + Polylang support.
Version: 1.0.0
Text Domain: corporate-bilingual
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #0056b3;
    --primary-light: #e6f0ff;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    --secondary-color: #2c3e50;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-accent: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 12px;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    direction: ltr;
    text-align: left;
}

body.rtl,
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

body.ltr,
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,86,179,0.2);
}

.btn-primary:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
}

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

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

/* Navbar */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* RTL navbar alignment (logo on the right for Arabic) */
html[dir="rtl"] nav {
    direction: rtl;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-links,
header nav ul.menu,
header nav .menu-primary-container > ul,
header nav .menu > ul,
header nav > ul {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-links li,
header nav ul.menu > li,
header nav .menu-primary-container > ul > li,
header nav .menu > ul > li,
header nav > ul > li {
    display: inline-flex;
    align-items: center;
}

.nav-links > li + li,
header nav ul.menu > li + li,
header nav .menu-primary-container > ul > li + li,
header nav .menu > ul > li + li,
header nav > ul > li + li {
    margin-inline-start: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-ancestor > a {
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    line-height: 1;
    transition: var(--transition);
}

.lang-link.is-active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0,86,179,0.2);
}

html[dir="rtl"] nav,
body.rtl nav {
    /* flex-direction: row-reverse; */
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
}

.footer-site-logo {
    height: 46px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #bdc3c7;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-inline-start: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* About Brief */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about-text span {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.check-list li {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li i {
    color: var(--primary-color);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* Excellence */
.excellence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.excel-item {
    text-align: center;
}

.excel-icon {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 20px;
    line-height: 1;
}

.excel-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: var(--primary-color);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-links ul li i {
    margin-inline-end: 10px;
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* VVM Section */
.vvm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vvm-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.vvm-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Goals */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--bg-accent);
    border-radius: var(--radius);
}

.goal-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Service Detail Rows */
.service-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.service-item-row.reverse {
    direction: ltr;
}

.service-item-row.reverse .service-info {
    direction: rtl;
}

html[dir="ltr"] .service-item-row.reverse,
body.ltr .service-item-row.reverse {
    direction: rtl;
}

html[dir="ltr"] .service-item-row.reverse .service-info,
body.ltr .service-item-row.reverse .service-info {
    direction: ltr;
}

.service-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 20px;
}

.service-features {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-accent);
    border-radius: var(--radius);
}

.service-features h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.service-features ul li {
    margin-bottom: 10px;
    position: relative;
    padding-inline-start: 20px;
}

.service-features ul li::before {
    content: '•';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

.team-member {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow-md);
}

.member-image img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.member-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    color: var(--text-muted);
    font-size: 1.12rem;
}

.member-social a:hover {
    color: var(--primary-color);
}

/* Interactivity Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .service-item-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-item-row.reverse {
        direction: rtl;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        justify-content: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        inset-inline-start: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
}

/* Partners Page */
.partners-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.partner-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.partner-logo-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partner-logo-bg span {
    font-weight: 600;
    color: var(--text-muted);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 80px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-card {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: right;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    text-align: right;
}

html[dir="ltr"] .contact-form .form-group,
body.ltr .contact-form .form-group {
    text-align: left;
}

html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form textarea,
body.ltr .contact-form input,
body.ltr .contact-form textarea {
    text-align: left;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Legal Pages */
.legal-page {
    padding-bottom: 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.last-updated {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2,
.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
    padding-bottom: 5px;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-inline-start: 20px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific hover effects for "wow" factor */
.service-card:hover, 
.vvm-card:hover, 
.team-member:hover, 
.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.excel-item:hover .excel-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: rotate(360deg);
}

.excel-icon {
    transition: var(--transition);
}

/* Header link animation */
.nav-links li a {
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after,
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after,
.nav-links li.current-menu-ancestor > a::after {
    width: 100%;
}

/* Smooth Image Hover */
.about-image img, 
.service-visual img {
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-image:hover img, 
.service-visual:hover img {
    transform: scale(1.05);
}
