/* ─── Variables ─────────────────────────────────────────── */
:root {
    --navy:       #1C2B4A;
    --navy-dark:  #111C32;
    --navy-light: #263659;
    --gold:       #B8974E;
    --gold-light: #D4AF6E;
    --gold-pale:  #F5EDD8;
    --white:      #FFFFFF;
    --off-white:  #F8F7F4;
    --gray:       #6B7280;
    --gray-light: #E5E7EB;
    --text:       #1a1a2e;

    --font-serif:   'Playfair Display', Georgia, serif;
    --font-sans:    'Inter', system-ui, sans-serif;
    --font-arabic:  'Tajawal', sans-serif;

    --radius: 4px;
    --shadow: 0 4px 24px rgba(28,43,74,.10);
    --transition: .25s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); line-height: 1.7; background: var(--white); }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Utility ────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 6rem 0; }

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__header--light { color: var(--white); }

.section__eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}

.section__eyebrow--gold { color: var(--gold-light); }

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

.section__title--light { color: var(--white); }
.section__title em     { font-style: italic; color: var(--gold); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 2rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn--outline {
    border: 1.5px solid var(--navy);
    color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--ghost {
    border: 1.5px solid rgba(255,255,255,.5);
    color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

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

/* ─── Header ─────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(28,43,74,.12);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header__logo img { height: 44px; }

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__list a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--white);
    transition: color var(--transition);
    position: relative;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav__list a:hover { color: var(--gold-light); }
.nav__list a:hover::after { width: 100%; }

.header.scrolled .nav__list a { color: var(--navy); }
.header.scrolled .btn--outline { border-color: var(--navy); color: var(--navy); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.header.scrolled .nav__toggle span { background: var(--navy); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/hero-bg.avif');
    background-size: cover;
    background-position: center;
    background-color: var(--navy-dark);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17,28,50,.75) 0%,
        rgba(17,28,50,.65) 60%,
        rgba(17,28,50,.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 0 2rem;
}

.hero__eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-hint span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── About ──────────────────────────────────────────────── */
.about { background: var(--white); }

.about__grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4rem;
    align-items: start;
}

.about__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding-top: .5rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

.label-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.about__text {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about__stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-light);
}

.stat__num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat__label {
    display: block;
    font-size: .78rem;
    color: var(--gray);
    margin-top: .4rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ─── Services ───────────────────────────────────────────── */
.services { background: var(--off-white); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.25rem 2rem;
    border-radius: 6px;
    border-bottom: 3px solid transparent;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.service-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28,43,74,.15);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .75rem;
}

.service-card p {
    font-size: .9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ─── Why Us ─────────────────────────────────────────────── */
.why-us {
    background: var(--navy);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar {
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    transition: border-color var(--transition), background var(--transition);
}

.pillar:hover {
    border-color: var(--gold);
    background: rgba(184,151,78,.06);
}

.pillar__num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    opacity: .4;
    line-height: 1;
    margin-bottom: 1rem;
}

.pillar h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: .75rem;
}

.pillar p {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    line-height: 1.75;
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta { background: var(--gold-pale); padding: 4rem 0; }

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta__text h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: .5rem;
}

.cta__text p {
    font-size: .95rem;
    color: var(--gray);
}

/* ─── Contact ────────────────────────────────────────────── */
.contact { background: var(--white); }

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact__desc {
    color: var(--gray);
    margin: 1rem 0 2rem;
    line-height: 1.8;
}

.contact__details { display: flex; flex-direction: column; gap: .875rem; }

.contact__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: var(--navy);
}

.contact__item svg { color: var(--gold); flex-shrink: 0; }

.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form__group { display: flex; flex-direction: column; gap: .4rem; }

.form__group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form__group input,
.form__group textarea {
    padding: .85rem 1rem;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius);
    font: inherit;
    font-size: .9rem;
    color: var(--text);
    background: var(--off-white);
    transition: border-color var(--transition), background var(--transition);
    resize: none;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: #aaa; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy-dark); }

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 2rem;
}

.footer__brand img  { height: 40px; margin-bottom: .75rem; }
.footer__brand p    { font-size: .75rem; color: rgba(255,255,255,.45); letter-spacing: .1em; }

.footer__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__links a {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-light); }

.footer__bottom {
    padding: 1.25rem 0;
    text-align: center;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .pillars        { grid-template-columns: 1fr; gap: 1.25rem; }
    .about__grid    { grid-template-columns: 1fr; gap: 1.5rem; }
    .about__label   { flex-direction: row; align-items: center; }
    .contact__grid  { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }

    .nav__list, .nav .btn--outline { display: none; }
    .nav__list.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 72px 0 0 0;
        background: var(--navy-dark);
        padding: 2rem;
        gap: 1.5rem;
        z-index: 999;
    }
    .nav__list.open a { color: var(--white); font-size: 1.1rem; }
    .nav__toggle { display: flex; }

    .services__grid { grid-template-columns: 1fr; }
    .about__stats   { flex-direction: column; gap: 1.5rem; }
    .cta__inner     { flex-direction: column; text-align: center; }
    .form__row      { grid-template-columns: 1fr; }
    .footer__inner  { flex-direction: column; text-align: center; }
    .footer__links  { justify-content: center; }
}

/* ─── Arabic / RTL ───────────────────────────────────────── */
[lang="ar"] {
    font-family: var(--font-arabic);
}

[lang="ar"] .section__title,
[lang="ar"] .hero__title,
[lang="ar"] .service-card h3,
[lang="ar"] .pillar h3,
[lang="ar"] .cta__text h2,
[lang="ar"] .footer__brand p {
    font-family: var(--font-arabic);
    font-weight: 700;
}

/* Language switcher */
.lang-switch {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: .35rem .85rem;
    border-radius: 3px;
    transition: all var(--transition);
    letter-spacing: .03em;
}
.lang-switch:hover {
    background: var(--gold);
    color: var(--white);
}
.header.scrolled .lang-switch {
    color: var(--gold);
}

/* RTL layout fixes */
[dir="rtl"] .about__label { align-items: flex-end; }
[dir="rtl"] .label-line   { align-self: flex-end; }

[dir="rtl"] .nav__list a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact__item { flex-direction: row-reverse; }
[dir="rtl"] .contact__details { align-items: flex-end; }

[dir="rtl"] .service-card__icon { margin-right: 0; }

[dir="rtl"] .footer__brand { text-align: right; }

[dir="rtl"] .hero__scroll-hint { left: auto; right: 50%; transform: translateX(50%); }
