/*
Theme Name: Precast Multi Activities (بريكاست للأنشطة المتعددة)
Theme URI: https://www.precast-sd.com
Author: Precast Digital Team
Author URI: https://www.precast-sd.com
Description: قالب ووردبريس رسمي متكامل لشركة بريكاست للأنشطة المتعددة المحدودة (PRECAST FOR MULTI ACTIVITIES CO. LTD) - مصمم خصيصاً لقطاعات الهندسة والخرسانة مسبقة الصنع، التجارة العامة، الخدمات اللوجستية، والاستثمار العقاري. يدعم اللغة العربية (RTL) ومجهز بأنواع محتوى مخصصة للمشاريع والخدمات والبيانات القانونية.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: precast-theme
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, corporate, construction, arabic
*/

:root {
    --navy-950: #070d19;
    --navy-900: #0b1325;
    --navy-800: #111d35;
    --navy-700: #1a2b4c;
    --gold-600: #b38628;
    --gold-500: #c99e3a;
    --gold-400: #dfb655;
    --gold-300: #efd082;
    --gold-glow: rgba(201, 158, 58, 0.18);
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #f1f5f9;
    --border-light: #e2e8f0;
    --border-gold: rgba(201, 158, 58, 0.35);
    --success: #10b981;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 16px rgba(11, 19, 37, 0.05);
    --shadow-md: 0 12px 32px rgba(11, 19, 37, 0.09);
    --shadow-lg: 0 20px 50px rgba(7, 13, 25, 0.18);
    --shadow-gold: 0 10px 30px rgba(201, 158, 58, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.75;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.en-label {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 158, 58, 0.2);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i,
.top-bar-item svg {
    color: var(--gold-400);
}

.top-bar-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-pill {
    background: rgba(201, 158, 58, 0.14);
    border: 1px solid rgba(201, 158, 58, 0.35);
    color: var(--gold-300);
    padding: 2px 12px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 19, 37, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 158, 58, 0.22);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo img {
    height: 62px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.brand-subtitle {
    color: var(--gold-400);
    font-size: 0.74rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.94rem;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-400);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    color: var(--navy-950);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(201, 158, 58, 0.4);
    filter: brightness(1.05);
}

.btn-outline-gold {
    background: rgba(201, 158, 58, 0.08);
    color: var(--gold-300);
    border: 1.5px solid var(--gold-500);
}

.btn-outline-gold:hover {
    background: var(--gold-500);
    color: var(--navy-950);
    transform: translateY(-2px);
}

/* Language Switcher Button */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid var(--border-gold);
    color: var(--gold-300);
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', 'Cairo', sans-serif;
    white-space: nowrap;
}

.lang-switcher:hover {
    background: var(--gold-500);
    color: var(--navy-950);
    border-color: var(--gold-400);
    transform: translateY(-2px);
}

.lang-switcher .lang-globe {
    font-size: 1rem;
    line-height: 1;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ==========================================
   HERO SECTION (PAGE 1 & 2 INSPIRED)
   ========================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(201, 158, 58, 0.14) 0%, transparent 45%),
                radial-gradient(circle at 15% 80%, rgba(30, 58, 138, 0.25) 0%, transparent 50%),
                linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
    color: #ffffff;
    padding: 90px 0 110px;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-500);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(201, 158, 58, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(201, 158, 58, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 158, 58, 0.12);
    border: 1px solid var(--border-gold);
    padding: 8px 18px;
    border-radius: 99px;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 10px var(--gold-400);
}

.hero-badge span {
    color: var(--gold-300);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 22px;
    color: #ffffff;
}

.hero-title .gold-highlight {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(241, 245, 249, 0.85);
    margin-bottom: 34px;
    max-width: 650px;
    line-height: 1.85;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--gold-400);
    font-family: 'Montserrat', 'Cairo', sans-serif;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
}

/* Hero Visual Showcase */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-frame {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 43, 76, 0.8), rgba(11, 19, 37, 0.95));
    border: 2px solid var(--border-gold);
    border-radius: 28px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(201, 158, 58, 0.12);
    width: 100%;
    max-width: 460px;
}

.hero-card-logo {
    width: 190px;
    height: auto;
    margin: 0 auto 24px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
}

.hero-divider-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.hero-divider-diamond {
    width: 10px;
    height: 10px;
    background: var(--gold-400);
    transform: rotate(45deg);
}

.hero-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--gold-300);
    margin-bottom: 6px;
}

.hero-card-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.hero-verified-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 158, 58, 0.25);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: right;
}

.verified-meta {
    font-size: 0.8rem;
}

.verified-meta span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.74rem;
}

.verified-meta strong {
    color: var(--gold-300);
    font-family: 'Montserrat', 'Cairo', sans-serif;
}

/* ==========================================
   4 PILLARS RIBBON (PAGE 2 BOTTOM BAR)
   ========================================== */
.pillars-ribbon {
    margin-top: -46px;
    position: relative;
    z-index: 10;
}

.pillars-box {
    background: var(--navy-900);
    border: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-item:last-child {
    border-left: none;
    padding-left: 0;
}

.pillar-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-500);
    background: rgba(201, 158, 58, 0.1);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.35rem;
}

.pillar-text h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.pillar-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section {
    padding: 96px 0;
}

.section-dark {
    background: var(--navy-900);
    color: #ffffff;
}

.section-alt {
    background: #f1f5f9;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-600);
    background: rgba(201, 158, 58, 0.12);
    border: 1px solid rgba(201, 158, 58, 0.3);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.section-dark .section-tag {
    color: var(--gold-300);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 16px;
    position: relative;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    margin: 0 auto 18px;
    border-radius: 99px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================
   ABOUT & PHILOSOPHY SECTION (PAGES 2 & 3)
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 56px;
    align-items: center;
}

.about-arch-wrapper {
    position: relative;
}

.about-arch-frame {
    border: 3px solid var(--gold-500);
    border-radius: 220px 220px 24px 24px;
    overflow: hidden;
    position: relative;
    background: var(--navy-900);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/4.8;
}

.about-arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}

.about-arch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 37, 0.92) 0%, rgba(11, 19, 37, 0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: #ffffff;
}

.about-arch-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--navy-900);
    border: 2px solid var(--gold-500);
    color: var(--gold-400);
    padding: 12px 18px;
    border-radius: 16px;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-arch-badge strong {
    display: block;
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
}

.about-content .lead-tag {
    color: var(--gold-600);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

.about-content h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    color: var(--navy-900);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.04rem;
    margin-bottom: 18px;
    line-height: 1.85;
}

/* Vision, Mission, Core Values Cards (Page 3) */
.philosophy-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.philosophy-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-right: 5px solid var(--gold-500);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow-md);
}

.philosophy-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.philosophy-card.mission .philosophy-icon {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-950);
}

.philosophy-body h3 {
    font-size: 1.2rem;
    color: var(--navy-900);
    font-weight: 800;
    margin-bottom: 6px;
}

.philosophy-body p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--gold-500);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.value-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.value-card-header span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(201, 158, 58, 0.15);
    color: var(--gold-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.value-card h4 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--navy-900);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* ==========================================
   SERVICES SECTION (PAGE 5)
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(201, 158, 58, 0.25);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-lg), 0 12px 30px rgba(201, 158, 58, 0.15);
}

.service-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img-wrap img {
    transform: scale(1.07);
}

.service-num-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-950);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.service-body {
    padding: 30px 28px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title {
    color: #ffffff;
    font-size: 1.32rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-title span {
    color: var(--gold-400);
}

.service-desc {
    color: rgba(241, 245, 249, 0.8);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* ==========================================
   PROJECTS / PORTFOLIO SECTION (PAGES 6 & 7)
   ========================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.filter-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 99px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--navy-900);
    color: var(--gold-400);
    border-color: var(--gold-500);
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 28px;
}

.project-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-500);
}

.project-card-top {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    padding: 24px 24px 20px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-badge {
    background: var(--navy-900);
    color: var(--gold-400);
    border: 1px solid var(--gold-500);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.project-category-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-600);
    background: rgba(201, 158, 58, 0.12);
    padding: 4px 12px;
    border-radius: 99px;
}

.project-icon-banner {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
}

.project-icon-banner svg {
    width: 68px;
    height: 68px;
}

.project-body {
    padding: 26px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 16px;
    line-height: 1.45;
}

.project-meta-list {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.project-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 6px;
}

.project-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-meta-label {
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.project-meta-val {
    color: var(--navy-900);
    font-weight: 600;
    text-align: left;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.93rem;
    border-right: 3px solid var(--gold-500);
    padding-right: 12px;
    margin-top: auto;
}

/* ==========================================
   LEGAL & FINANCIAL COMPLIANCE (PAGES 4 & 8)
   ========================================== */
.legal-compliance-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.legal-table-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(201, 158, 58, 0.4);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.legal-table-header {
    background: var(--navy-900);
    color: #ffffff;
    padding: 20px 28px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    font-weight: 800;
    font-size: 1rem;
    border-bottom: 3px solid var(--gold-500);
}

.legal-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: var(--transition);
}

.legal-row:last-child {
    border-bottom: none;
}

.legal-row:hover {
    background: rgba(201, 158, 58, 0.04);
}

.legal-field {
    font-weight: 800;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.legal-field span.icon {
    color: var(--gold-600);
    font-size: 1.1rem;
}

.legal-value {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-value.mono {
    font-family: 'Montserrat', monospace;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: 0.5px;
}

/* Financial Compliance Card (Page 8) */
.compliance-panel {
    background: var(--navy-900);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 2px solid var(--border-gold);
    box-shadow: var(--shadow-lg);
}

.compliance-panel h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--gold-400);
    margin-bottom: 14px;
}

.compliance-panel p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.compliance-quote {
    background: rgba(255, 255, 255, 0.05);
    border-right: 4px solid var(--gold-400);
    padding: 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 28px;
    position: relative;
}

.compliance-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.compliance-badge-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 158, 58, 0.3);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    transition: var(--transition);
}

.compliance-badge-card:hover {
    background: rgba(201, 158, 58, 0.14);
    transform: translateY(-3px);
}

.compliance-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201, 158, 58, 0.18);
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 800;
}

.compliance-badge-card h5 {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================
   CONTACT SECTION (PAGE 9)
   ========================================== */
.contact-section {
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 32px 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 158, 58, 0.25);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--gold-400);
    background: rgba(201, 158, 58, 0.08);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-400);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-text span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-info-text strong {
    font-size: 1.05rem;
    color: #ffffff;
}

.contact-circles {
    display: flex;
    gap: 20px;
    margin-top: 28px;
}

.contact-circle-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--gold-400);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form-card {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--gold-500);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.contact-form-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-500);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(201, 158, 58, 0.12);
}

.form-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 0.92rem;
    display: none;
}

.form-alert.success {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid #10b981;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 28px;
    border-top: 2px solid rgba(201, 158, 58, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--gold-400);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

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

.footer-links a:hover {
    color: var(--gold-400);
    padding-right: 6px;
}

.footer-bottom {
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
}

.footer-slogan {
    color: var(--gold-300);
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE DESIGN (ALL SCREENS: 4K, DESKTOPS, LAPTOPS, TABLETS, PHONES, ULTRA-SMALL)
   ========================================== */

/* Ultra-Wide / 2K / 4K Screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }

    .hero-title {
        font-size: 3.6rem;
    }
}

/* Medium Laptops & Small Desktops (<= 1240px) */
@media (max-width: 1240px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        gap: 14px;
    }

    .brand-logo img {
        height: 54px;
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-subtitle {
        font-size: 0.68rem;
    }

    .main-nav ul {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.88rem;
    }

    .header-actions .btn-gold {
        padding: 10px 16px;
        font-size: 0.86rem;
    }

    .lang-switcher {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

/* Tablets Landscape & Compact Laptops (<= 1100px) - Switch to Drawer Menu */
@media (max-width: 1100px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(7, 13, 25, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 20px 24px 28px;
        border-bottom: 2px solid var(--gold-500);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

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

    .main-nav a {
        display: block;
        padding: 12px 8px;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .hero-grid,
    .about-grid,
    .legal-compliance-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .about-arch-wrapper {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .pillars-box {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
        gap: 20px;
    }

    .pillar-item:nth-child(2) {
        border-left: none;
        padding-left: 0;
    }

    html[dir="ltr"] .pillar-item:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Tablets Portrait & Large Phones (<= 768px) */
@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

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

    .top-bar {
        font-size: 0.78rem;
        padding: 8px 0;
    }

    .top-bar-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .top-bar-items {
        justify-content: center;
        gap: 12px;
    }

    .top-bar-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-inner {
        height: 74px;
        gap: 10px;
    }

    .brand-logo {
        gap: 10px;
        min-width: 0;
    }

    .brand-logo img {
        height: 46px;
    }

    .brand-title {
        font-size: 0.94rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.5px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn-gold {
        display: none; /* Keep CTA accessible inside Hero & Contact to avoid crowding mobile header */
    }

    .hero-section {
        padding: 56px 0 84px;
    }

    .hero-badge {
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .hero-badge span {
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6vw, 2.3rem);
    }

    .hero-description {
        font-size: 0.98rem;
        margin-bottom: 26px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-top: 24px;
        text-align: center;
    }

    .pillars-ribbon {
        margin-top: -32px;
    }

    .pillars-box,
    .values-grid,
    .services-grid,
    .projects-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .pillar-item,
    html[dir="ltr"] .pillar-item {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 16px;
    }

    .pillar-item:last-child,
    html[dir="ltr"] .pillar-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .service-img-wrap {
        height: 210px;
    }

    .service-body {
        padding: 24px 20px;
    }

    .portfolio-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 11px 16px;
        font-size: 0.88rem;
    }

    .legal-table-header {
        display: none; /* Hide 2-column table header on mobile; stack rows cleanly */
    }

    .legal-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 20px;
    }

    .compliance-panel {
        padding: 26px 20px;
    }

    .contact-form-card {
        padding: 28px 20px;
    }

    .contact-circles {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Smartphones & Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .top-bar-item span:last-child {
        font-size: 0.74rem;
    }

    .legal-pill {
        font-size: 0.72rem;
        padding: 2px 10px;
    }

    .header-inner {
        height: 68px;
    }

    .brand-logo img {
        height: 40px;
    }

    .brand-title {
        font-size: 0.84rem;
        white-space: normal;
        line-height: 1.2;
    }

    .brand-subtitle {
        display: none; /* Hide English subtitle in tiny phone header so logo + Arabic title + buttons fit comfortably */
    }

    .lang-switcher {
        padding: 7px 10px;
        font-size: 0.76rem;
        gap: 5px;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-card-frame {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .hero-card-logo {
        width: 135px;
        margin-bottom: 16px;
    }

    .hero-card-title {
        font-size: 1.15rem;
    }

    .hero-verified-box {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-arch-frame {
        border-radius: 140px 140px 18px 18px;
        aspect-ratio: 4/4.5;
    }

    .about-arch-overlay {
        padding: 20px 16px;
    }

    .about-arch-overlay h3 {
        font-size: 1.08rem !important;
    }

    .about-arch-badge {
        top: 14px;
        left: 14px;
        padding: 8px 12px;
    }

    html[dir="ltr"] .about-arch-badge {
        left: auto;
        right: 14px;
    }

    .about-arch-badge strong {
        font-size: 1.15rem;
    }

    .philosophy-card {
        flex-direction: column;
        padding: 20px 18px;
        gap: 14px;
    }

    .project-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 18px;
    }

    .project-body {
        padding: 20px 18px;
    }

    .project-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .project-meta-val,
    html[dir="ltr"] .project-meta-val {
        text-align: inherit;
    }

    .compliance-badges-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-item {
        padding: 16px;
        gap: 14px;
    }

    .contact-info-text strong {
        font-size: 0.92rem;
        word-break: break-word;
    }

    .contact-circle-img {
        width: 105px;
        height: 105px;
    }
}

/* Ultra-Small Devices (<= 360px, e.g., Galaxy Fold / iPhone SE) */
@media (max-width: 360px) {
    .brand-title {
        font-size: 0.76rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.45rem;
    }
}

/* ==========================================
   ENGLISH / LTR BILINGUAL SUPPORT
   ========================================== */
html[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
    font-family: 'Montserrat', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[dir="ltr"] .main-nav a::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .hero-verified-box {
    text-align: left;
}

html[dir="ltr"] .pillar-item {
    padding-left: 0;
    padding-right: 16px;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="ltr"] .pillar-item:last-child {
    border-right: none;
    padding-right: 0;
}

html[dir="ltr"] .about-arch-badge {
    left: auto;
    right: 24px;
}

html[dir="ltr"] .philosophy-card {
    border-right: 1px solid var(--border-light);
    border-left: 5px solid var(--gold-500);
}

html[dir="ltr"] .philosophy-card:hover {
    transform: translateX(6px);
}

html[dir="ltr"] .service-num-badge {
    left: auto;
    right: 18px;
}

html[dir="ltr"] .project-meta-val {
    text-align: right;
}

html[dir="ltr"] .project-desc {
    border-right: none;
    padding-right: 0;
    border-left: 3px solid var(--gold-500);
    padding-left: 12px;
}

html[dir="ltr"] .compliance-quote {
    border-right: none;
    border-left: 4px solid var(--gold-400);
}

html[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 6px;
}

/* Project Custom Image inside Banner */
.project-icon-banner {
    position: relative;
    overflow: hidden;
}

.project-icon-banner img.project-custom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card.has-custom-img .project-icon-banner {
    height: 195px;
}



