/* ─── CSS Variables ─── */
:root {
    --lightGold: #c5b0973d;
    --brown: #786254;
    --deepGray: #909194;
    --dark: #0f172a;
    --white: #ffffff;
    --gray: #f8fafc;
    --text: #1e293b;
    --sub: #64748b;
    --green: #22c55e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 40px;
    transition: background 0.4s, box-shadow 0.4s;
}

.navbar.solid {
    background: var(--gray);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.navbar.solid .nav-links a {
    color: var(--text);
}

.navbar.solid .nav-links a:hover {
    color: var(--brown);
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    width: 180px;
    padding: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--brown);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--brown);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.99);
    padding: 20px 30px;
    gap: 0;
}

.nav-links.open a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Mobile Drawer ─── */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--dark);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.nav-drawer.open {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-logo {
    width: 130px;
    filter: brightness(0) invert(1);
}

.drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Drawer Links */
.drawer-links {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.drawer-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.drawer-links li a i {
    color: var(--brown);
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.drawer-links li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-right-color: var(--brown);
}

/* Drawer Footer */
.drawer-footer {
    padding: 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-footer .f-social {
    display: flex;
    gap: 10px;
}

/* Backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(2px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Fix hamburger display */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }

    /* hide desktop links completely */

    /* Make navbar logo bigger on mobile */
    .logo img {
        width: 130px;
        padding: 10px 0;
    }

    .nav-inner {
        height: 70px;
        padding: 0 4px;
    }
}


/* ─── Hero ─── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide Base */
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide Background */
.hero-slide .hero-img {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 8s ease;
}

.hero-slide.active .hero-img {
    transform: scale(1.03);
}

/* Overlay - Qalansia Slide */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(2, 4, 10, 0.9) 0%,
            rgba(2, 4, 10, 0.55) 50%,
            rgba(2, 4, 10, 0.85) 100%);
    z-index: 1;
}

/* Overlay - Outbox Slide */
.ob-overlay {
    background: linear-gradient(135deg,
            rgba(180, 50, 35, 0.88) 0%,
            rgba(140, 30, 20, 0.75) 60%,
            rgba(100, 20, 10, 0.65) 100%);
}

/* Slide Content */
.hero-slide .hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    max-width: 850px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.t1 {
    display: block;
    color: var(--white);
    animation: fadeUp 0.9s ease 0.2s both;
}

.t2 {
    display: block;
    background: linear-gradient(135deg, var(--brown) 0%, var(--deepGray) 50%, var(--brown) 100%);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.9s ease 0.4s both, shimmer 3s linear 1.5s infinite;
}

.t3 {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 8px;
    animation: fadeUp 0.9s ease 0.6s both;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--white);
    line-height: 2;
    margin-bottom: 36px;
    font-weight: 300;
    animation: fadeUp 0.9s ease 0.8s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.9s ease 1s both;
}

/* Outbox Slide Content */
.ob-content {
    text-align: right !important;
    padding: 0 60px 0 100px !important;
    max-width: 100% !important;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-headline .line {
    display: block;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    color: white;
    line-height: 1.25;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-slide.active .hero-headline .line:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-slide.active .hero-headline .line:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

/* Outbox Brand Badge */
.hero-logo-badge {
    position: absolute;
    top: 100px;
    right: 60px;
    z-index: 6;
    text-align: right;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
}

.hero-slide.active .hero-logo-badge {
    opacity: 1;
    transform: translateY(0);
}

.badge-label,
.badge-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 300;
    margin: 2px 0;
}

.badge-name {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Outbox Vertical Text */
.hero-vertical-text {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 60px;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.hero-vertical-text span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active .hero-vertical-text span:nth-child(1) {
    opacity: 1;
    transition-delay: 0.8s;
}

.hero-slide.active .hero-vertical-text span:nth-child(2) {
    opacity: 1;
    transition-delay: 1.1s;
}

/* Outbox Button */
.ob-btn {
    background: #e8614a !important;
}

/* Cursor Glow */
.cursor-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease, top 0.12s ease;
    opacity: 0;
}

/* Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: white;
    border-color: white;
    width: 28px;
    border-radius: 5px;
}

/* Slider Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(6px);
}

.hero-arrow:hover {
    background: var(--brown);
    border-color: var(--brown);
}

.hero-arrow-prev {
    right: 24px;
}

.hero-arrow-next {
    left: 24px;
}

/* Scroll Down Button */
.scroll-down {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    animation: bounceY 2s ease-in-out infinite;
    transition: background 0.3s, border-color 0.3s;
}

.scroll-down:hover {
    background: var(--brown);
    border-color: var(--brown);
    color: white;
}

/* ─── Buttons ─── */
.btn-main {
    display: inline-flex;
    align-items: center;
    height: 56px;
    gap: 10px;
    background: var(--brown);
    color: white;
    padding: 16px 36px;
    border-radius: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-main:hover {
    transform: translateY(-4px);
    color: white;
    border-color: var(--white);
}

.btn-main.full {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 56px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 36px;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-4px);
    color: white;
}

/* ─── Section Shared ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.sec-head {
    text-align: center;
    margin-bottom: 60px;
}

.sec-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
}

.sec-head p {
    color: var(--sub);
    font-size: 1.05rem;
}

.sec-head.light h2 {
    color: var(--text);
}

.sec-head.light p {
    color: var(--sub);
}

.tag {
    display: inline-block;
    background: var(--brown);
    color: var(--white);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

/* ─── Partners ─── */
.partners {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.partners-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 60px;
    align-items: center;
}

.partners-cards {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    direction: ltr;
}

.p-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.col-1 {
    margin-top: 0;
}

.col-2 {
    margin-top: 50px;
}

.col-3 {
    margin-top: 20px;
}

.p-logo {
    background: #f0f2f5;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.1), -6px -6px 14px rgba(255, 255, 255, 0.85);
}

.p-logo:hover {
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08), -2px -2px 6px rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

.p-logo img {
    max-width: 110px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.45);
    transition: all 0.4s ease;
}

.p-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

/* ─── Services ─── */
.services {
    padding: 110px 40px;
    background: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.srv-card {
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(30px);
}

.srv-card.show {
    opacity: 1;
    transform: translateY(0);
}

.srv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.12);
    border-bottom-color: var(--lightGold);
}

.srv-icon {
    width: 65px;
    height: 65px;
    background: var(--lightGold);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--brown);
    margin-bottom: 22px;
    transition: all 0.4s;
}

.srv-card:hover .srv-icon {
    background: var(--brown);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.srv-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.srv-card p {
    color: var(--sub);
    line-height: 1.8;
    font-size: 0.92rem;
}

/* ─── Stats ─── */
.stats {
    background: white;
    padding: 80px 40px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    border-left: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.stat-card:last-child {
    border-left: none;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card i {
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: 16px;
    display: block;
    opacity: 0.85;
}

.stat-card .num {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--text);
    display: inline;
    line-height: 1;
}

.stat-card .plus {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brown);
    display: inline;
}

.stat-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 10px;
    font-weight: 600;
}

/* ─── Projects ─── */
.projects {
    padding: 110px 40px;
    background: var(--gray);
}

.proj-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 18px;
}

.proj-card {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.proj-card.show {
    opacity: 1;
    transform: scale(1);
}

.proj-card.large {
    grid-row: span 2;
}

.proj-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.proj-card:hover img {
    transform: scale(1.08);
}

.proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 20, 50, 0.92) 0%, rgba(10, 20, 50, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s;
}

.proj-card:hover .proj-overlay {
    opacity: 1;
}

.proj-tag {
    display: inline-block;
    background: var(--brown);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    width: fit-content;
}

.proj-overlay h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.proj-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}


/* ─── Contact ─── */
.contact {
    padding: 110px 40px;
    background: white;
}

.contact-form {
    background: var(--gray);
    padding: 45px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--brown);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-alert {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-alert.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}


/* ─── Commercial Register Mini Badge ─── */
.footer-cr-mini {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    max-width: 100%;
}

.footer-cr-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 4px;
    border: 1px solid #edf2f7;
}

.footer-cr-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-cr-label {
    font-size: 0.72rem;
    color: var(--sub);
    font-weight: 700;
    line-height: 1.2;
}

.footer-cr-number {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
}

/* ─── Footer ─── */
.footer {
    background: var(--gray);
    border-top: 1px solid #e2e8f0;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 50px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 50px;
    border-bottom: 1px solid #e2e8f0;
}

.footer-col h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 30px;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
}

.f-logo-img {
    width: 140px;
    margin-bottom: 20px;
    display: block;
}

.f-desc {
    color: var(--sub);
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--sub);
    font-size: 0.92rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul a::before {
    font-size: 0.75rem;
    color: var(--brown);
    opacity: 0;
    transition: all 0.3s;
}

html[dir="rtl"] .footer-col ul a::before {
    content: '←';
    transform: translateX(5px);
}

html[dir="ltr"] .footer-col ul a::before {
    content: '→';
    transform: translateX(-5px);
}

html[dir="rtl"] .footer-col ul a:hover {
    color: var(--text);
    transform: translateX(-5px);
}

html[dir="ltr"] .footer-col ul a:hover {
    color: var(--text);
    transform: translateX(5px);
}

.footer-col ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.f-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.f-contact a {
    color: var(--sub);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.f-contact a i {
    color: var(--brown);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.f-contact a:hover {
    color: var(--text);
}

.f-social {
    display: flex;
    gap: 10px;
}

.f-social a {
    width: 38px;
    height: 38px;
    background: var(--brown);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.f-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--sub);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--brown);
}

/* ─── Responsive Footer ─── */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 50px 24px 40px;
    }

    .footer-bottom {
        padding: 20px 24px;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-links {
        gap: 16px;
        flex-wrap: wrap;
    }

    .footer-cr-mini {
        width: 100%;
    }
}


/* ─── Keyframes ─── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes bounceY {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ─── Responsive - 1024px ─── */
@media (max-width: 1024px) {
    .partners-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partners-cards {
        justify-content: center;
    }

    .p-col {
        flex: 0 0 calc(33% - 10px);
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .proj-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 240px);
    }

    .proj-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Responsive - 768px ─── */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .ob-content {
        text-align: right !important;
        padding: 0 24px 0 80px !important;
    }

    .hero-logo-badge {
        top: 60px;
        right: 24px;
    }

    .badge-name {
        font-size: 1.5rem;
    }

    .hero-vertical-text {
        width: 44px;
    }

    .hero-headline .line {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .hero-arrow {
        display: none;
    }

    .services {
        padding: 80px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-card {
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .projects {
        padding: 80px 20px;
    }

    .proj-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .proj-card,
    .proj-card.large {
        grid-column: span 1;
        height: 250px;
    }

    .outbox-section {
        padding: 30px 20px;
    }

    .ob-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        gap: 12px;
    }

    .ob-cell {
        padding: 40px 30px;
    }

    .ob-dark {
        padding: 20px 10px;
    }

    .ob-brand,
    .ob-slogan {
        min-height: 220px;
    }

    .contact {
        padding: 80px 20px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Responsive - 600px ─── */
@media (max-width: 600px) {
    .partners-cards {
        gap: 10px;
    }

    .p-logo {
        padding: 20px 14px;
        min-height: 80px;
    }

    .p-logo img {
        max-width: 80px;
        max-height: 36px;
    }

    .col-2 {
        margin-top: 30px;
    }

    .col-3 {
        margin-top: 12px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        padding: 40px 20px 30px;
        gap: 35px;
    }

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

/* ─── Responsive - 480px ─── */
@media (max-width: 480px) {
    .stats .container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-left: none;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn-main,
    .hero-btns .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}









/* ─── Outbox Section ─── */
.outbox-section {
    background: var(--ob-dark, #1c1c2e);
    padding: 60px 40px;
}

.ob-highlight {
    color: var(--ob-primary, #e8614a);
    font-weight: 800;
    margin-left: 6px;
}

.ob-banner-highlight {
    color: white;
    font-weight: 800;
    margin-left: 6px;
}

.ob-mini-tag {
    display: inline-flex;
    width: fit-content;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 999px;
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 54px;
    padding: 0 28px;
    margin-top: 16px;
    background: var(--ob-primary, #e8614a);
    color: white;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    border: none;
    transition: 0.25s ease;
}

.ob-btn:hover {
    transform: translateY(-2px);
    color: white;
}

/* Grid */
.ob-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 880px;
}

.ob-cell {
    border-radius: 80px;
    padding: 60px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ob-dark {
    background: transparent;
    border-radius: 0;
    padding: 40px 20px;
}

.ob-orange {
    background: var(--ob-primary, #e8614a);
}

.ob-text-ar p,
.ob-text-ar2 p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 2.1;
    text-align: right;
    margin-bottom: 22px;
}

.ob-text-ar p:last-child,
.ob-text-ar2 p:last-child {
    margin-bottom: 0;
}

.ob-brand {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
}

.ob-brand h2 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 200;
    color: white;
    line-height: 1;
    letter-spacing: 1px;
}

.ob-brand span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 400;
}

.ob-slogan {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ob-slogan h3 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 200;
    color: white;
    line-height: 1.4;
}

/* Split */
.ob-split {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.ob-split-text {
    color: white;
    text-align: right;
}

.ob-split-text h2 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    margin-bottom: 10px;
    font-weight: 900;
    color: white;
    line-height: 1.08;
}

.ob-split-text h3 {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 500;
    line-height: 1.7;
}

.ob-split-text p {
    color: rgba(255, 255, 255, 0.76);
    line-height: 2;
    margin-bottom: 15px;
    font-size: 1rem;
}

.ob-split-image {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.ob-split-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.ob-split-placeholder {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ob-primary, #e8614a) 0%, var(--ob-dark, #1c1c2e) 100%);
    color: white;
}

/* Banner */
.ob-banner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
}

.ob-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ob-banner-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ob-primary, #e8614a) 0%, var(--ob-dark, #1c1c2e) 100%);
}

.ob-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 24, 0.45);
}

.ob-banner-content {
    position: relative;
    z-index: 2;
    height: 500px;
    max-width: 700px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    color: white;
}

.ob-banner-content h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.04;
    margin-bottom: 10px;
    font-weight: 900;
    color: white;
}

.ob-banner-content h3 {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    line-height: 1.7;
    margin-bottom: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.ob-banner-content p {
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .ob-split {
        grid-template-columns: 1fr;
    }

    .ob-split-image {
        max-width: 100%;
    }

    .ob-banner,
    .ob-banner-content {
        min-height: 420px;
        height: 420px;
    }

    .ob-banner-content {
        padding: 40px 28px;
    }
}

@media (max-width: 768px) {
    .outbox-section {
        padding: 30px 20px;
    }

    .ob-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        gap: 12px;
    }

    .ob-cell {
        padding: 40px 30px;
    }

    .ob-dark {
        padding: 20px 10px;
    }

    .ob-brand,
    .ob-slogan {
        min-height: 220px;
    }

    .ob-split-image img {
        height: 300px;
    }

    .ob-banner,
    .ob-banner-content {
        min-height: 380px;
        height: 380px;
    }

    .ob-banner-content {
        padding: 28px 20px;
    }

    .ob-btn {
        width: 100%;
        min-width: 0;
    }
}



/* ─── Language Switcher ─── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 18px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.lang-chip {
    min-width: 46px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
    transition: all 0.25s ease;
}

.lang-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.lang-chip.active {
    background: var(--brown);
    color: #fff;
    box-shadow: 0 10px 24px rgba(107, 72, 47, 0.26);
}

/* ─── When Navbar Becomes Solid ─── */
#navbar.solid .lang-switcher {
    background: #f8f5f1;
    border: 1px solid #e7ddd2;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

#navbar.solid .lang-chip {
    color: var(--text);
}

#navbar.solid .lang-chip:hover {
    background: rgba(107, 72, 47, 0.08);
    color: var(--brown);
}

#navbar.solid .lang-chip.active {
    background: var(--brown);
    color: #fff;
    box-shadow: 0 10px 24px rgba(107, 72, 47, 0.18);
}

/* ─── Drawer Language Switcher ─── */
.drawer-lang-switcher {
    display: flex;
    gap: 10px;
    padding: 18px 22px 0;
}

.drawer-lang-switcher .lang-chip {
    flex: 1;
    min-width: auto;
    height: 44px;
    background: #f8f5f1;
    color: var(--text);
    opacity: 1;
    border: 1px solid #e7ddd2;
}

.drawer-lang-switcher .lang-chip.active {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
    box-shadow: 0 10px 24px rgba(107, 72, 47, 0.18);
}


/* ─── Navbar Responsive Layout ─── */
.nav-inner {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

html[dir="ltr"] .lang-switcher {
    margin-left: 18px;
    margin-right: 0;
}

@media (max-width: 991px) {
    .lang-switcher {
        display: none;
    }
}

@media (min-width: 992px) {
    .drawer-lang-switcher {
        display: none;
    }
}


/* ─── Legal Pages ─── */
.legal-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 60px 20px;
}

.legal-container {
    max-width: 980px;
    margin: 0 auto;
}

.legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.legal-back:hover {
    color: var(--brown);
    border-color: var(--brown);
}

.legal-lang-switch {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.legal-lang-switch a {
    min-width: 46px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    transition: all 0.25s ease;
}

.legal-lang-switch a.active {
    background: linear-gradient(135deg, #e8614a, #ff8a65);
    color: #fff;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.legal-card h1 {
    margin: 0 0 24px;
    font-size: 2rem;
    color: var(--text);
}

.legal-content {
    color: var(--sub);
    line-height: 2;
    font-size: 1rem;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 14px;
}

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

.legal-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .legal-card h1 {
        font-size: 1.6rem;
    }
}