/* ==========================================================================
   Al-Fahad Company — public website theme
   Brand palette taken from the corporate profile: deep navy, sand gold,
   graphite. Layered on top of Bootstrap 5 (LTR and RTL builds).
   ========================================================================== */

:root {
    --af-navy: #12395e;
    --af-navy-700: #0d2c4a;
    --af-navy-900: #081d31;
    --af-gold: #c9a063;
    --af-gold-300: #e3c393;
    --af-gold-700: #a8834a;
    --af-graphite: #2a2d34;
    --af-ink: #14181f;
    --af-body: #4a5361;
    --af-muted: #7c8595;
    --af-line: #e4e8ee;
    --af-surface: #ffffff;
    --af-surface-alt: #f5f7fa;
    --af-surface-deep: #eef2f7;

    --af-radius: 4px;
    --af-radius-lg: 10px;
    --af-shadow-sm: 0 1px 2px rgba(8, 29, 49, .06), 0 2px 8px rgba(8, 29, 49, .05);
    --af-shadow: 0 4px 12px rgba(8, 29, 49, .08), 0 12px 32px rgba(8, 29, 49, .07);
    --af-shadow-lg: 0 16px 48px rgba(8, 29, 49, .16);

    --af-font: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --af-font-ar: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    --af-header-h: 86px;

    --bs-primary: #12395e;
    --bs-primary-rgb: 18, 57, 94;
}

/* ------------------------------------------------------------------ Base */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--af-header-h) + 16px); }

body {
    font-family: var(--af-font);
    color: var(--af-body);
    background: var(--af-surface);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body[dir="rtl"] { font-family: var(--af-font-ar); line-height: 1.9; }

h1, h2, h3, h4, h5, h6, .af-display {
    font-family: var(--af-font);
    color: var(--af-ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3,
body[dir="rtl"] h4, body[dir="rtl"] h5, body[dir="rtl"] h6,
body[dir="rtl"] .af-display {
    font-family: var(--af-font-ar);
    letter-spacing: 0;
    line-height: 1.4;
}

a { color: var(--af-navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--af-gold-700); }

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

.af-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.af-section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.af-section--alt { background: var(--af-surface-alt); }
.af-section--deep { background: var(--af-navy-900); color: rgba(255, 255, 255, .78); }
.af-section--deep h1, .af-section--deep h2, .af-section--deep h3 { color: #fff; }

.af-container { width: min(1240px, 100% - 2rem); margin-inline: auto; }

/* --------------------------------------------------------- Section titles */

.af-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--af-gold-700);
    margin-bottom: .85rem;
}

body[dir="rtl"] .af-eyebrow { letter-spacing: 0; }

.af-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--af-gold);
    display: inline-block;
}

.af-section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
}

.af-section-lead {
    font-size: 1.05rem;
    color: var(--af-muted);
    max-width: 62ch;
}

.af-heading-center { text-align: center; }
.af-heading-center .af-section-lead { margin-inline: auto; }
.af-heading-center .af-eyebrow::before { display: none; }

.af-section--deep .af-section-lead { color: rgba(255, 255, 255, .68); }
.af-section--deep .af-eyebrow { color: var(--af-gold-300); }

/* --------------------------------------------------------------- Buttons */

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.75rem;
    border-radius: var(--af-radius);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.af-btn:hover { transform: translateY(-2px); }
.af-btn i { font-size: 1.05em; }

.af-btn--primary { background: var(--af-navy); color: #fff; box-shadow: var(--af-shadow-sm); }
.af-btn--primary:hover { background: var(--af-navy-700); color: #fff; box-shadow: var(--af-shadow); }

.af-btn--gold { background: var(--af-gold); color: var(--af-navy-900); }
.af-btn--gold:hover { background: var(--af-gold-300); color: var(--af-navy-900); }

.af-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.af-btn--ghost:hover { background: #fff; color: var(--af-navy); border-color: #fff; }

.af-btn--outline { border-color: var(--af-line); color: var(--af-navy); background: #fff; }
.af-btn--outline:hover { border-color: var(--af-navy); background: var(--af-navy); color: #fff; }

.af-btn--sm { padding: .6rem 1.15rem; font-size: .875rem; }

.af-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--af-navy);
}

.af-link-arrow i { transition: transform .2s ease; }
.af-link-arrow:hover i { transform: translateX(4px); }
body[dir="rtl"] .af-link-arrow:hover i { transform: translateX(-4px); }
body[dir="rtl"] .af-link-arrow .bi-arrow-right::before { content: "\f12f"; }

/* ---------------------------------------------------------------- Header */

.af-topbar {
    background: var(--af-navy-900);
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    padding: .5rem 0;
}

.af-topbar a { color: rgba(255, 255, 255, .72); }
.af-topbar a:hover { color: var(--af-gold-300); }

.af-topbar__list { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.af-topbar__item { display: inline-flex; align-items: center; gap: .4rem; }

.af-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--af-line);
    transition: box-shadow .25s ease;
}

.af-header.is-stuck { box-shadow: var(--af-shadow); }

.af-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--af-header-h);
}

.af-logo { display: inline-flex; align-items: center; gap: .75rem; }
.af-logo img { height: 54px; width: auto; }
.af-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.af-logo__name { font-weight: 800; font-size: 1.12rem; color: var(--af-navy); letter-spacing: .02em; }
.af-logo__tag { font-size: .72rem; color: var(--af-muted); letter-spacing: .08em; text-transform: uppercase; }
body[dir="rtl"] .af-logo__tag { letter-spacing: 0; text-transform: none; }

/* Primary navigation */
.af-nav { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.af-nav__item { position: relative; }

.af-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .85rem;
    font-weight: 600;
    font-size: .93rem;
    color: var(--af-graphite);
    border-radius: var(--af-radius);
    white-space: nowrap;
}

.af-nav__link:hover,
.af-nav__item.is-active > .af-nav__link { color: var(--af-navy); background: var(--af-surface-alt); }

.af-nav__item.is-active > .af-nav__link { position: relative; }
.af-nav__item.is-active > .af-nav__link::after {
    content: "";
    position: absolute;
    inset-inline: .85rem;
    bottom: .15rem;
    height: 2px;
    background: var(--af-gold);
}

.af-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 235px;
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    box-shadow: var(--af-shadow);
    padding: .5rem;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 20;
}

.af-nav__item:hover > .af-dropdown,
.af-nav__item:focus-within > .af-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.af-dropdown__link {
    display: block;
    padding: .55rem .8rem;
    border-radius: var(--af-radius);
    font-size: .9rem;
    color: var(--af-body);
}

.af-dropdown__link:hover { background: var(--af-surface-alt); color: var(--af-navy); }

.af-header__actions { display: flex; align-items: center; gap: .5rem; }

.af-icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--af-radius);
    border: 1px solid var(--af-line);
    background: #fff;
    color: var(--af-graphite);
    transition: all .2s ease;
}

.af-icon-btn:hover { border-color: var(--af-navy); color: var(--af-navy); }

.af-lang {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .85rem;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    font-weight: 700;
    font-size: .85rem;
    color: var(--af-navy);
}

.af-lang:hover { background: var(--af-navy); color: #fff; border-color: var(--af-navy); }

.af-burger { display: none; }

/* Off-canvas mobile navigation */
.af-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1080;
    visibility: hidden;
    pointer-events: none;
}

.af-mobile-nav.is-open { visibility: visible; pointer-events: auto; }

.af-mobile-nav__backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 29, 49, .55);
    opacity: 0; transition: opacity .25s ease;
}

.af-mobile-nav.is-open .af-mobile-nav__backdrop { opacity: 1; }

.af-mobile-nav__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(360px, 88vw);
    background: #fff;
    box-shadow: var(--af-shadow-lg);
    padding: 1.25rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
}

body[dir="rtl"] .af-mobile-nav__panel { transform: translateX(-100%); }
.af-mobile-nav.is-open .af-mobile-nav__panel { transform: translateX(0); }

.af-mobile-nav__list { list-style: none; margin: 1rem 0 0; padding: 0; }
.af-mobile-nav__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--af-line);
    font-weight: 600;
    color: var(--af-graphite);
}
.af-mobile-nav__link:hover { color: var(--af-navy); }
.af-mobile-nav__sub { list-style: none; padding-inline-start: 1rem; margin: 0; }
.af-mobile-nav__sub .af-mobile-nav__link { font-weight: 500; font-size: .92rem; color: var(--af-muted); }

/* Search overlay */
.af-search-overlay {
    position: fixed; inset: 0; z-index: 1090;
    background: rgba(8, 29, 49, .96);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
.af-search-overlay.is-open { opacity: 1; visibility: visible; }
.af-search-overlay form { width: min(680px, 90vw); }
.af-search-overlay input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 2rem);
    padding: .75rem .25rem;
}
.af-search-overlay input::placeholder { color: rgba(255, 255, 255, .45); }
.af-search-overlay input:focus { outline: none; border-color: var(--af-gold); }

/* ------------------------------------------------------------------ Hero */

.af-hero { position: relative; background: var(--af-navy-900); overflow: hidden; }

.af-hero__slide {
    position: relative;
    min-height: clamp(480px, 78vh, 760px);
    display: none;
    align-items: center;
}

.af-hero__slide.is-active { display: flex; }

.af-hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: af-kenburns 14s ease-out forwards;
}

@keyframes af-kenburns { to { transform: scale(1); } }

.af-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8, 29, 49, .93) 0%, rgba(8, 29, 49, .78) 45%, rgba(8, 29, 49, .35) 100%);
}

body[dir="rtl"] .af-hero__overlay {
    background: linear-gradient(260deg, rgba(8, 29, 49, .93) 0%, rgba(8, 29, 49, .78) 45%, rgba(8, 29, 49, .35) 100%);
}

.af-hero__content { position: relative; z-index: 2; color: #fff; max-width: 700px; padding-block: 4rem; }
.af-hero__content.is-center { margin-inline: auto; text-align: center; }
.af-hero__content.is-end { margin-inline-start: auto; text-align: end; }

.af-hero__subtitle {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--af-gold-300);
    border-inline-start: 3px solid var(--af-gold);
    padding-inline-start: .85rem;
    margin-bottom: 1.25rem;
}

body[dir="rtl"] .af-hero__subtitle { letter-spacing: 0; text-transform: none; }

.af-hero__title {
    color: #fff;
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.15rem;
}

body[dir="rtl"] .af-hero__title { line-height: 1.35; }

.af-hero__text { font-size: 1.08rem; color: rgba(255, 255, 255, .82); margin-bottom: 2rem; max-width: 58ch; }
.af-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.af-hero__content.is-center .af-hero__actions { justify-content: center; }

.af-hero__nav {
    position: absolute;
    inset-inline-end: 2.5rem;
    bottom: 2.5rem;
    z-index: 3;
    display: flex;
    gap: .5rem;
}

.af-hero__dot {
    width: 34px; height: 4px;
    border: 0; padding: 0;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: background .2s ease;
}

.af-hero__dot.is-active { background: var(--af-gold); }

.af-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    display: grid; place-items: center;
    transition: all .2s ease;
}

.af-hero__arrow:hover { background: var(--af-gold); border-color: var(--af-gold); color: var(--af-navy-900); }
.af-hero__arrow--prev { inset-inline-start: 1.25rem; }
.af-hero__arrow--next { inset-inline-end: 1.25rem; }

/* Interior page hero */
.af-page-hero {
    position: relative;
    background: var(--af-navy-900);
    color: #fff;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
}

.af-page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.af-page-hero__inner { position: relative; z-index: 2; }
.af-page-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .6rem; }
.af-page-hero__lead { color: rgba(255, 255, 255, .75); max-width: 65ch; margin: 0; }

.af-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .875rem; }
.af-breadcrumb a { color: rgba(255, 255, 255, .68); }
.af-breadcrumb a:hover { color: var(--af-gold-300); }
.af-breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; color: rgba(255, 255, 255, .35); }
.af-breadcrumb__current { color: var(--af-gold-300); }

/* ----------------------------------------------------------------- Cards */

.af-card {
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.af-card:hover { transform: translateY(-5px); box-shadow: var(--af-shadow); border-color: transparent; }

.af-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--af-surface-deep); }
.af-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.af-card:hover .af-card__media img { transform: scale(1.06); }

.af-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.af-card__title { font-size: 1.18rem; margin-bottom: .6rem; }
.af-card__title a { color: inherit; }
.af-card__title a:hover { color: var(--af-navy); }
.af-card__text { color: var(--af-muted); font-size: .94rem; margin-bottom: 1.1rem; flex: 1; }
.af-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.af-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 100px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--af-surface-deep);
    color: var(--af-navy);
}

body[dir="rtl"] .af-badge { letter-spacing: 0; text-transform: none; }

.af-badge--gold { background: rgba(201, 160, 99, .16); color: var(--af-gold-700); }
.af-badge--success { background: rgba(25, 135, 84, .12); color: #157347; }
.af-badge--primary { background: rgba(18, 57, 94, .1); color: var(--af-navy); }
.af-badge--info { background: rgba(13, 110, 253, .1); color: #0b5ed7; }
.af-badge--secondary { background: #eceff3; color: var(--af-body); }

.af-badge--float {
    position: absolute;
    top: .85rem;
    inset-inline-start: .85rem;
    background: rgba(8, 29, 49, .82);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Service card with icon */
.af-service {
    position: relative;
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.af-service::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--af-gold);
    transition: height .3s ease;
}

.af-service:hover { transform: translateY(-5px); box-shadow: var(--af-shadow); }
.af-service:hover::before { height: 100%; }

.af-service__icon {
    width: 58px; height: 58px;
    border-radius: var(--af-radius);
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--af-navy) 0%, var(--af-navy-700) 100%);
    color: var(--af-gold-300);
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.af-service__title { font-size: 1.2rem; margin-bottom: .65rem; }
.af-service__text { color: var(--af-muted); font-size: .94rem; flex: 1; margin-bottom: 1.1rem; }

/* Project card */
.af-project { position: relative; border-radius: var(--af-radius-lg); overflow: hidden; height: 100%; background: var(--af-navy-900); }
.af-project__media { aspect-ratio: 4 / 3; }
.af-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.af-project:hover .af-project__media img { transform: scale(1.08); opacity: .55; }

.af-project__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(8, 29, 49, .93) 0%, rgba(8, 29, 49, .55) 45%, rgba(8, 29, 49, 0) 100%);
}

.af-project__cat { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--af-gold-300); margin-bottom: .4rem; }
body[dir="rtl"] .af-project__cat { letter-spacing: 0; text-transform: none; }
.af-project__title { color: #fff; font-size: 1.15rem; margin-bottom: .35rem; }
.af-project__title a { color: #fff; }
.af-project__title a:hover { color: var(--af-gold-300); }
.af-project__meta { color: rgba(255, 255, 255, .7); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .85rem; }

/* Statistics */
.af-stat { text-align: center; padding: 1.5rem .5rem; }
.af-stat__icon { font-size: 2rem; color: var(--af-gold); margin-bottom: .65rem; display: block; }
.af-stat__value { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.af-stat__label { margin-top: .5rem; color: rgba(255, 255, 255, .68); font-size: .95rem; }
.af-section--alt .af-stat__value { color: var(--af-navy); }
.af-section--alt .af-stat__label { color: var(--af-muted); }

/* Feature list */
.af-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.af-features li { display: flex; gap: .75rem; align-items: flex-start; }
.af-features li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    color: var(--af-gold);
    font-size: 1.05rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Logo wall */
.af-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--af-line); border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); overflow: hidden; }
.af-logo-cell { background: #fff; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1.25rem; transition: background .2s ease; }
.af-logo-cell:hover { background: var(--af-surface-alt); }
.af-logo-cell img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.af-logo-cell:hover img { filter: grayscale(0); opacity: 1; }
.af-logo-cell__name { font-weight: 700; color: var(--af-navy); text-align: center; font-size: .92rem; }

/* Marquee carousel for client logos */
.af-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.af-marquee__track { display: flex; gap: 3rem; align-items: center; width: max-content; animation: af-marquee 34s linear infinite; }
.af-marquee:hover .af-marquee__track { animation-play-state: paused; }
.af-marquee img { height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: all .25s ease; }
.af-marquee img:hover { filter: grayscale(0); opacity: 1; }
@keyframes af-marquee { to { transform: translateX(-50%); } }
body[dir="rtl"] .af-marquee__track { animation-name: af-marquee-rtl; }
@keyframes af-marquee-rtl { to { transform: translateX(50%); } }

/* Timeline */
.af-timeline { position: relative; padding-inline-start: 2rem; }
.af-timeline::before { content: ""; position: absolute; inset-block: .5rem; inset-inline-start: 6px; width: 2px; background: var(--af-line); }
.af-timeline__item { position: relative; padding-bottom: 2rem; }
.af-timeline__item::before {
    content: ""; position: absolute;
    inset-inline-start: -2rem; top: .45rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--af-gold);
}
.af-timeline__year { font-weight: 800; color: var(--af-navy); font-size: 1.05rem; }

/* Testimonial */
.af-quote {
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.af-quote::before {
    content: "\201C";
    position: absolute;
    top: .25rem;
    inset-inline-end: 1.5rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--af-surface-deep);
    font-family: Georgia, serif;
}

.af-quote__text { position: relative; z-index: 1; font-size: 1rem; color: var(--af-body); flex: 1; margin-bottom: 1.5rem; }
.af-quote__author { display: flex; align-items: center; gap: .85rem; }
.af-quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--af-surface-deep); }
.af-quote__name { font-weight: 700; color: var(--af-ink); font-size: .96rem; }
.af-quote__role { font-size: .84rem; color: var(--af-muted); }
.af-rating { color: var(--af-gold); font-size: .85rem; margin-bottom: .65rem; }

/* Accordion (FAQ) */
.af-accordion__item { border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); margin-bottom: .75rem; overflow: hidden; background: #fff; }
.af-accordion__btn {
    width: 100%;
    text-align: start;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: none; border: 0;
    font-weight: 700; color: var(--af-ink); font-size: 1.02rem;
    cursor: pointer;
}
.af-accordion__btn i { transition: transform .25s ease; color: var(--af-gold-700); flex-shrink: 0; }
.af-accordion__item.is-open .af-accordion__btn i { transform: rotate(45deg); }
.af-accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.af-accordion__inner { padding: 0 1.35rem 1.35rem; color: var(--af-body); }

/* Tables inside rich content */
.af-prose { color: var(--af-body); font-size: 1.02rem; }
.af-prose h2 { font-size: 1.6rem; margin: 2rem 0 .85rem; }
.af-prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .7rem; }
.af-prose p { margin-bottom: 1.1rem; }
.af-prose ul, .af-prose ol { margin-bottom: 1.1rem; padding-inline-start: 1.35rem; }
.af-prose li { margin-bottom: .45rem; }
.af-prose img { border-radius: var(--af-radius-lg); margin: 1.25rem 0; }
.af-prose blockquote {
    border-inline-start: 3px solid var(--af-gold);
    padding-inline-start: 1.25rem;
    margin: 1.5rem 0;
    color: var(--af-ink);
    font-size: 1.1rem;
}
.af-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.af-prose th, .af-prose td { border: 1px solid var(--af-line); padding: .7rem .9rem; text-align: start; }
.af-prose th { background: var(--af-surface-alt); font-weight: 700; color: var(--af-ink); }
.af-prose-wrap { overflow-x: auto; }

/* Forms */
.af-field { margin-bottom: 1.1rem; }
.af-label { display: block; font-weight: 600; font-size: .9rem; color: var(--af-ink); margin-bottom: .4rem; }
.af-label .req { color: #c0392b; }
.af-input, .af-textarea, .af-select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    background: #fff;
    color: var(--af-ink);
    font-family: inherit;
    font-size: .96rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.af-input:focus, .af-textarea:focus, .af-select:focus {
    outline: none;
    border-color: var(--af-navy);
    box-shadow: 0 0 0 3px rgba(18, 57, 94, .1);
}
.af-textarea { min-height: 150px; resize: vertical; }
.af-error { color: #c0392b; font-size: .84rem; margin-top: .35rem; display: block; }
.af-input.is-invalid, .af-textarea.is-invalid, .af-select.is-invalid { border-color: #c0392b; }
.af-honeypot { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.af-alert { padding: 1rem 1.25rem; border-radius: var(--af-radius); margin-bottom: 1.5rem; display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.af-alert--success { background: rgba(25, 135, 84, .1); color: #146c43; border: 1px solid rgba(25, 135, 84, .25); }
.af-alert--error { background: rgba(192, 57, 43, .08); color: #a93226; border: 1px solid rgba(192, 57, 43, .22); }

/* Info tiles (contact) */
.af-info { display: flex; gap: 1rem; padding: 1.35rem; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); background: #fff; height: 100%; }
.af-info__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--af-radius); display: grid; place-items: center; background: var(--af-surface-deep); color: var(--af-navy); font-size: 1.25rem; }
.af-info__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--af-muted); margin-bottom: .25rem; }
body[dir="rtl"] .af-info__label { letter-spacing: 0; text-transform: none; }
.af-info__value { font-weight: 600; color: var(--af-ink); word-break: break-word; }
.af-info__value a { color: inherit; }

/* Phone list (contact card + footer): number followed by the role label */
.af-phone { display: inline-block; }
.af-phone__role {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    opacity: .7;
    line-height: 1.35;
}
.af-footer__contact .af-phone + br { line-height: 1.9; }

/* Filters */
.af-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.af-filter {
    padding: .55rem 1.15rem;
    border: 1px solid var(--af-line);
    border-radius: 100px;
    background: #fff;
    color: var(--af-body);
    font-size: .9rem;
    font-weight: 600;
    transition: all .2s ease;
}
.af-filter:hover { border-color: var(--af-navy); color: var(--af-navy); }
.af-filter.is-active { background: var(--af-navy); border-color: var(--af-navy); color: #fff; }

/* Empty state */
.af-empty { text-align: center; padding: 4rem 1rem; color: var(--af-muted); }
.af-empty i { font-size: 2.75rem; color: var(--af-line); display: block; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- Footer */

.af-footer { background: var(--af-navy-900); color: rgba(255, 255, 255, .66); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .94rem; }
.af-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1.25rem; position: relative; padding-bottom: .65rem; }
.af-footer h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; background: var(--af-gold); }
.af-footer a { color: rgba(255, 255, 255, .66); }
.af-footer a:hover { color: var(--af-gold-300); }
.af-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.af-footer__logo img { height: 74px; width: auto; margin-bottom: 1.15rem; }
.af-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.af-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.af-footer__contact i { color: var(--af-gold); margin-top: .25rem; }
.af-social { display: flex; gap: .5rem; margin-top: 1.35rem; }
.af-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--af-radius);
    color: rgba(255, 255, 255, .75);
    transition: all .2s ease;
}
.af-social a:hover { background: var(--af-gold); border-color: var(--af-gold); color: var(--af-navy-900); }
.af-footer__bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.35rem 0;
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center; justify-content: space-between;
    font-size: .86rem;
}

/* Floating actions */
.af-float { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 1040; display: grid; gap: .6rem; }
.af-float a, .af-float button {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 0;
    box-shadow: var(--af-shadow);
    font-size: 1.2rem;
    transition: transform .2s ease;
}
.af-float a:hover, .af-float button:hover { transform: translateY(-3px); }
.af-float__whatsapp { background: #25d366; color: #fff; }
.af-float__top { background: var(--af-navy); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s, transform .2s ease; }
.af-float__top.is-visible { opacity: 1; visibility: visible; }

/* Pagination */
.af-pagination { display: flex; justify-content: center; margin-top: 3rem; }
.af-pagination .pagination { gap: .35rem; }
.af-pagination .page-link { border-radius: var(--af-radius); border-color: var(--af-line); color: var(--af-navy); min-width: 42px; text-align: center; }
.af-pagination .page-item.active .page-link { background: var(--af-navy); border-color: var(--af-navy); }

/* Reveal-on-scroll */
.af-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.af-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .af-reveal, .af-card, .af-btn, .af-service { transition: none !important; }
    .af-reveal { opacity: 1; transform: none; }
    .af-hero__bg { animation: none; transform: none; }
    .af-marquee__track { animation: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 1199.98px) {
    .af-nav__link { padding: .55rem .6rem; font-size: .88rem; }
    .af-logo img { height: 46px; }
}

@media (max-width: 991.98px) {
    :root { --af-header-h: 72px; }
    .af-nav, .af-topbar { display: none; }
    .af-burger { display: inline-flex; }
    .af-hero__slide { min-height: 480px; }
    .af-hero__nav { inset-inline-end: 1.25rem; bottom: 1.25rem; }
    .af-hero__arrow { display: none; }
    .af-footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 575.98px) {
    .af-section { padding: 3rem 0; }
    .af-hero__content { padding-block: 3rem; }
    .af-btn { padding: .75rem 1.35rem; font-size: .9rem; }
    .af-card__body, .af-service { padding: 1.25rem; }
    .af-logo__tag { display: none; }
}

/* Print */
@media print {
    .af-header, .af-topbar, .af-footer, .af-float, .af-hero__nav { display: none !important; }
    body { color: #000; }
}

/* -------------------------------------------------------------- Lightbox */
.af-lightbox {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(8, 29, 49, .94);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
.af-lightbox.is-open { opacity: 1; visibility: visible; }
.af-lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow-lg); }
.af-lightbox__close, .af-lightbox__nav {
    position: absolute; border: 0;
    background: rgba(255, 255, 255, .1);
    color: #fff; cursor: pointer;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.5rem; line-height: 1;
    display: grid; place-items: center;
    transition: background .2s ease;
}
.af-lightbox__close:hover, .af-lightbox__nav:hover { background: var(--af-gold); color: var(--af-navy-900); }
.af-lightbox__close { top: 1.25rem; inset-inline-end: 1.25rem; }
.af-lightbox__nav { top: 50%; transform: translateY(-50%); }
.af-lightbox__nav--prev { inset-inline-start: 1.25rem; }
.af-lightbox__nav--next { inset-inline-end: 1.25rem; }

/* ------------------------------------------------------------ Video tiles */
.af-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    background: var(--af-navy-900);
    cursor: pointer;
}
.af-video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s ease, transform .5s ease; }
.af-video:hover img { opacity: .6; transform: scale(1.05); }
.af-video__play {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 3rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
    pointer-events: none;
}
.af-video.is-playing { cursor: default; }
.af-video.is-playing .af-video__play { display: none; }
.af-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------- Gallery masonry */
.af-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.af-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--af-surface-deep);
}
.af-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.af-photo:hover img { transform: scale(1.07); }
.af-photo__caption {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 1.5rem .9rem .8rem;
    background: linear-gradient(to top, rgba(8, 29, 49, .88), transparent);
    color: #fff; font-size: .86rem;
}

/* --------------------------------------------------------- Certificate card */
.af-cert {
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.af-cert:hover { box-shadow: var(--af-shadow); transform: translateY(-4px); }
.af-cert__media { aspect-ratio: 3 / 4; background: var(--af-surface-alt); display: grid; place-items: center; overflow: hidden; }
.af-cert__media img { width: 100%; height: 100%; object-fit: cover; }
.af-cert__media i { font-size: 3rem; color: var(--af-line); }
.af-cert__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .45rem; }

/* ------------------------------------------------------------- Team member */
.af-member { text-align: center; }
.af-member__photo {
    aspect-ratio: 1;
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    background: var(--af-surface-deep);
    margin-bottom: 1rem;
    position: relative;
}
.af-member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.af-member:hover .af-member__photo img { transform: scale(1.05); }
.af-member__photo i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--af-muted); }
.af-member__name { font-size: 1.05rem; margin-bottom: .2rem; }
.af-member__role { color: var(--af-gold-700); font-size: .9rem; font-weight: 600; }

/* --------------------------------------------------------- Download tile */
.af-download {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.af-download:hover { border-color: var(--af-navy); box-shadow: var(--af-shadow-sm); }
.af-download__icon { width: 46px; height: 46px; border-radius: var(--af-radius); background: var(--af-surface-deep); color: var(--af-navy); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.af-download__meta { color: var(--af-muted); font-size: .84rem; }

/* ------------------------------------------------------------ Search hit */
.af-hit { display: flex; gap: 1.15rem; padding: 1.25rem 0; border-bottom: 1px solid var(--af-line); }
.af-hit__thumb { width: 110px; aspect-ratio: 4 / 3; border-radius: var(--af-radius); object-fit: cover; flex-shrink: 0; background: var(--af-surface-deep); }
.af-hit__title { font-size: 1.08rem; margin-bottom: .3rem; }

@media (max-width: 575.98px) {
    .af-hit__thumb { display: none; }
    .af-photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
}
