/* CSS Reset & Variables */
:root {
    --primary: #0A2540;
    --secondary: #D4AF37;
    --accent: #E2E8F0;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --font-ar: 'Tajawal', 'Cairo', sans-serif;
    --font-en: 'Inter', 'Poppins', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

body.lang-en {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

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: 1536px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Typography ──────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.font-bold {
    font-weight: 700;
}

.text-gold {
    color: var(--secondary);
}

.text-ltr {
    direction: ltr;
    text-align: left;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 10px;
    display: block;
}

/* Gold underline – RTL default (to the right) */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* LTR: underline to the left */
body.lang-en .section-title::after {
    right: auto;
    left: 0;
}

/* Centred underline (both languages) */
.text-center .section-title::after,
body.lang-en .text-center .section-title::after {
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* White underline for dark backgrounds */
.section-title.title-white {
    color: var(--white);
}

.section-title.title-white::after {
    background-color: var(--secondary);
}

/* Remove underline for specific centred section titles */
.services .section-title::after,
.contact .section-title::after {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-light {
    color: var(--text-light);
}

.mb-4 {
    margin-bottom: 0.75rem;
}

.mt-4 {
    margin-top: 0.75rem;
}

.mt-5 {
    margin-top: 1.5rem;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #B8962E;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ── Header & Nav ────────────────────────────── */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    /* Noticeably larger padding */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap */
}

.logo img {
    height: 60px;
    /* Noticeably larger logo */
}

.logo-text {
    font-size: 1.65rem;
    /* Larger logo text */
    font-weight: 800;
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 36px;
    /* Increased gap between links */
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 1.15rem;
    /* Larger nav links */
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

body.lang-en .nav-link::after {
    right: auto;
    left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle-btn {
    background: transparent;
    border: 1.5px solid var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-toggle-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* ── Hero ────────────────────────────────────── */
.hero {
    height: 100vh;
    min-height: 680px;
    background: url('assets/hero_bg.jpg') no-repeat center center / cover;
    background-color: var(--primary);
    background-blend-mode: overlay;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 37, 64, .93) 0%, rgba(10, 37, 64, .50) 100%);
    z-index: 1;
}

body.lang-en .hero-bg-overlay {
    background: linear-gradient(270deg, rgba(10, 37, 64, .93) 0%, rgba(10, 37, 64, .50) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 780px;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 680px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────── */
.section {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary);
}

/* ── 2-col Grid ──────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* ── About ───────────────────────────────────── */
.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.about-features {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-features i {
    color: var(--secondary);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

/* ── Services ────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

body.lang-en .service-card::before {
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.service-card>.service-content>p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.service-features {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.service-features li i {
    color: var(--secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ── Why Us ──────────────────────────────────── */
.why-us-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--text-dark);
}

/* ── Contact ─────────────────────────────────── */
.contact {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1324 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle glowing orb in background */
.contact::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10, 37, 64, 0) 70%);
    pointer-events: none;
}

.contact .section-title {
    color: var(--white);
}

.contact-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    /* Makes all items the same height */
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.contact-card {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    height: auto;
    /* Allow it to be as tall as the row */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Subtle gold line on top of card */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-card h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-card p,
.contact-card a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-card p strong {
    color: var(--secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.contact-card a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ── Footer ──────────────────────────────────── */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.footer {
    background-color: var(--bg-dark);
    color: #94A3B8;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    font-size: 0.92rem;
    line-height: 2;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .about-image {
        order: -1;
    }

    .why-us-image {
        order: -1;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, .15);
        z-index: 1001;
        transition: right 0.4s ease;
        padding-top: 80px;
    }

    body.lang-en .nav {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 20px rgba(0, 0, 0, .15);
        transition: left 0.4s ease;
    }

    .nav.active {
        right: 0;
    }

    body.lang-en .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 28px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .mobile-menu-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(10, 37, 64, .5);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    /* Keep hero content centered and legible on mobile */
    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section {
        padding: 50px 0;
    }

    /* Wrap cards vertically on mobile */
    .contact-info-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        min-width: 100%;
    }

    .about-image img,
    .why-us-image img {
        height: 250px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 110%;
        /* Increase base font size slightly on very large monitors */
    }

    .hero-title {
        font-size: 4.8rem;
    }

    .hero-desc {
        font-size: 1.35rem;
        max-width: 850px;
    }
}