/*
 * Aviation site additions, loaded after site.css.
 *
 * Kept in a sheet of their own so the shared Modern Land theme stays exactly
 * as it is. Everything here uses the same tokens (--accent, --ink, --dark,
 * --surface…), so the brand colours from Site Settings carry straight through,
 * and logical properties, so Arabic mirrors without a second stylesheet.
 */

/*
 * The hero slides up under the transparent header by --header-h, but the bar
 * renders a couple of pixels taller than that, which left a hairline of page
 * background along the top of the hero. Pulling a little further closes it.
 */
.hero {
    margin-top: calc(var(--header-h) * -1 - 8px);
    padding-top: calc(var(--header-h) + 8px);
}

/* The colour and strength of the layer over the hero are set in the dashboard
   and printed inline; the theme's fixed gradient makes way for them. */
.hero__scrim--custom {
    background-image: none;
}

/* ── Dropdown menus ──────────────────────────────────────────────────────── */

.nav-drop {
    position: relative;
}

.nav-drop__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-drop__trigger svg {
    transition: transform 0.2s;
}

.nav-drop__panel {
    position: absolute;
    top: 100%;
    inset-inline-start: -16px;
    min-width: 220px;
    padding: 10px;
    margin-top: 12px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px rgba(6, 24, 42, 0.12);
    display: grid;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 70;
}

/* A bridge over the gap, so moving the pointer down does not close it. */
.nav-drop__panel::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: -14px;
    height: 14px;
}

.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-drop:hover .nav-drop__trigger svg,
.nav-drop:focus-within .nav-drop__trigger svg {
    transform: rotate(180deg);
}

.header__nav .nav-drop__panel a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
}

.header__nav .nav-drop__panel a:hover,
.header__nav .nav-drop__panel a[aria-current='page'] {
    background: var(--surface);
    color: var(--accent);
}

/* ── Mobile and tablet drawer ────────────────────────────────────────────── */

/*
 * One list of equal rows. A link and a group heading look identical, so the
 * eye reads straight down; a group's pages open beneath it as an indented,
 * tinted block with a rule on the leading edge.
 */
.mobile-menu {
    width: min(360px, 86vw);
    padding: 18px 20px 20px;
    gap: 0;
}

.mobile-menu__head {
    margin-bottom: 10px;
    padding-bottom: 16px;
}

.mobile-menu__brand img {
    height: 36px;
}

.mobile-menu .mobile-menu__nav {
    gap: 0;
}

.mobile-menu .mobile-menu__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 12px;
    /* Square, so the hairline between rows stays a straight line. */
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* A hairline between rows, inset so it lines up with the text. */
.mobile-menu__nav > * + * {
    border-top: 1px solid var(--line);
}

.mobile-menu .mobile-menu__row:hover {
    background: rgba(11, 37, 69, 0.04);
}

.mobile-menu .mobile-menu__row[aria-current='page'],
.mobile-menu .mobile-menu__row.is-current {
    color: var(--accent);
}

.mobile-menu .mobile-menu__row[aria-current='page'] {
    background: rgba(11, 37, 69, 0.05);
}

.mobile-menu__group summary {
    list-style: none;
}

.mobile-menu__group summary::-webkit-details-marker {
    display: none;
}

.mobile-menu__chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.25s var(--ease);
}

.mobile-menu__group[open] .mobile-menu__chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.mobile-menu__sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 12px 12px;
    padding: 6px;
    padding-inline-start: 10px;
    border-inline-start: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--white);
}

[dir='rtl'] .mobile-menu__sub {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.mobile-menu .mobile-menu__sub a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
}

.mobile-menu .mobile-menu__sub a:hover {
    background: var(--surface);
    color: var(--ink);
}

.mobile-menu .mobile-menu__sub a[aria-current='page'] {
    background: var(--surface);
    color: var(--accent);
    font-weight: 600;
}

/* Contact button and phone, then the languages pinned to the foot. */
.mobile-menu__foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.mobile-menu .mobile-menu__cta {
    display: block;
    text-align: center;
    padding: 13px 16px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
}

.mobile-menu .mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.mobile-menu__phone svg {
    color: var(--accent);
}

.mobile-menu .mobile-menu__langs {
    margin-top: 12px;
}

.mobile-menu .mobile-menu__langs a {
    padding: 9px 16px;
}

/* Two logos over the homepage hero: light while transparent, normal once solid. */
.header--overlay .logo--dark,
.header--solid .logo--light {
    display: none;
}

/* ── Hero highlight ──────────────────────────────────────────────────────── */

.hero__highlight {
    display: block;
    color: #7fb6f0;
}

/* ── Inner page header: breadcrumb ───────────────────────────────────────── */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs [aria-current='page'] {
    color: var(--ink);
    font-weight: 600;
}

/* ── Intro tabs ──────────────────────────────────────────────────────────── */

.intro__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
}

.intro__head h2 {
    margin-top: 16px;
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    max-width: 620px;
}

.tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.tabs button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.tabs button[aria-selected='true'] {
    background: var(--ink);
    color: var(--white);
}

/* Without the script the tabs do nothing, so they are hidden and every panel
   shows in turn; the script adds .is-tabbed and takes over. */
.intro:not(.is-tabbed) .tabs {
    display: none;
}

.tab-panel {
    margin-top: 48px;
}

.intro.is-tabbed .tab-panel[hidden] {
    display: none;
}

.points {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .points {
        grid-template-columns: repeat(2, 1fr);
    }
}

.point {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.point h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.point p {
    margin: 0;
    color: var(--muted);
}

.point__num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .partners {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.partner img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

/* ── Quick-link tiles ────────────────────────────────────────────────────── */

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 48px;
}

@media (min-width: 1024px) {
    .tiles {
        /* Two across: the four tiles sit as an even 2 × 2 block. */
        grid-template-columns: repeat(2, 1fr);
    }
}

.tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-height: 180px;
    padding: 22px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

@media (min-width: 1024px) {
    .tile {
        min-height: 220px;
    }
}

/* Phones: one tile per row, landscape, so each picture reads at full width. */
@media (max-width: 639px) {
    .tiles {
        grid-template-columns: 1fr;
    }

    .tile {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.tile:hover img {
    transform: scale(1.06);
}

.tile__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}

.tile__title,
.tile__arrow {
    position: relative;
    font-weight: 700;
    font-size: 1.1rem;
}

.tile__arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s var(--ease);
}

.tile:hover .tile__arrow {
    transform: translateX(4px);
}

[dir='rtl'] .tile:hover .tile__arrow {
    transform: translateX(-4px);
}

/* ── About band ──────────────────────────────────────────────────────────── */

.about-band {
    background: var(--white);
    border-block: 1px solid var(--line);
}

.about-band__grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 1024px) {
    .about-band__grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 64px;
    }
}

.about-band h2 {
    margin-top: 16px;
    font-size: clamp(1.85rem, 3.5vw, 3rem);
}

.about-band__text {
    margin: 0 0 28px;
    font-size: 1.0625rem;
    color: var(--muted);
}

/* With a picture, the text sits under the heading beside it. */
.about-band__grid--image {
    align-items: center;
}

.about-band__grid--image .about-band__text {
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .about-band__grid--image {
        grid-template-columns: 1fr 1fr;
    }
}

.about-band__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ── Cards: shared "read more" line and the date badge ───────────────────── */

.card__more {
    display: inline-flex;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.post-card__media {
    position: relative;
}

.post-card__date {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: grid;
    place-items: center;
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--white);
    line-height: 1.1;
    text-align: center;
}

.post-card__date strong {
    font-size: 20px;
}

.post-card__date span {
    font-size: 12px;
}

/* ── Detail pages ────────────────────────────────────────────────────────── */

.detail__heading {
    margin: 32px 0 18px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.detail__image {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
}

.ticks {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-weight: 600;
}

.ticks li::before {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.ticks a:hover {
    color: var(--accent);
}

/* ── Inner page header with a background picture ─────────────────────────── */

.page-hero--image {
    position: relative;
    overflow: visible;
    border-bottom: 0;
    margin-bottom: 28px;
    padding-block: 96px 88px;
    text-align: center;
    color: var(--white);
    background: var(--dark);
}

@media (min-width: 1024px) {
    .page-hero--image {
        padding-block: 140px 120px;
    }
}

.page-hero__bg,
.page-hero__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero__bg {
    object-fit: cover;
}

.page-hero__scrim {
    background: linear-gradient(to bottom, rgba(6, 24, 42, 0.55), rgba(6, 24, 42, 0.8));
}

.page-hero--image .container {
    position: relative;
}

.page-hero--image h1 {
    margin-inline: auto;
    color: var(--white);
}

.page-hero--image .page-hero__text {
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.75);
}

/* The trail becomes a white pill sitting on the lower edge of the picture. */
.page-hero--image .crumbs {
    position: absolute;
    inset-inline: 0;
    bottom: -128px;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(6, 24, 42, 0.12);
    font-size: 13px;
}

@media (min-width: 1024px) {
    .page-hero--image .crumbs {
        bottom: -142px;
    }
}

/* ── About page: picture beside "About company" ──────────────────────────── */

.about-intro {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-intro--image {
        grid-template-columns: 1fr 1fr;
        gap: 72px;
    }
}

/* The picture sits on an offset block of the accent colour. */
.about-intro__media {
    position: relative;
    padding-block-end: 24px;
    padding-inline-end: 24px;
}

.about-intro__media::before {
    content: '';
    position: absolute;
    inset-block: 24px 0;
    inset-inline: 24px 0;
    border-radius: var(--radius);
    background: var(--accent);
}

.about-intro__media img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-intro__heading {
    margin: 14px 0 22px;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.2;
}

.about-intro__list {
    margin-bottom: 24px;
}

.about-intro__text {
    color: var(--muted);
}

.about-intro__profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

/* ── Full-width call band ────────────────────────────────────────────────── */

/* The accent colour keeps it apart from the dark footer directly beneath. */
.cta-band {
    background: var(--accent);
    color: var(--white);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    padding-block: 48px;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.cta-band p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.65);
}

/* ── Service page: the email / call band at the end ──────────────────────── */

.service-cta .eyebrow {
    margin-bottom: 14px;
}

.service-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

/* The shared .cta rule pushes every button down; here the row carries the gap. */
.cta.service-cta .service-cta__buttons .btn {
    margin-top: 0;
}

.service-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta.service-cta .service-cta__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 22px;
    font-size: 15px;
}

.service-cta__details a:hover {
    color: var(--white);
}

@media (max-width: 639px) {
    .service-cta__buttons .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ── Services listing ────────────────────────────────────────────────────── */

.service-rows {
    display: grid;
    gap: 32px;
}

.service-row {
    display: grid;
    gap: 28px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

@media (min-width: 900px) {
    .service-row {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: center;
        gap: 48px;
    }

    .service-row:nth-child(even) .service-row__media {
        order: 2;
    }
}

.service-row__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.service-row__body h2 {
    margin: 10px 0 14px;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.service-row__body p {
    margin: 0 0 24px;
    color: var(--muted);
}

/* ── Approvals ───────────────────────────────────────────────────────────── */

.approval {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

a.approval:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(6, 24, 42, 0.1);
}

.approval__media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--surface);
}

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

/* A scan or photo fills the card top-aligned, so the heading of the certificate shows. */
.approval__media--photo img {
    object-position: top;
}

/* A PDF: a document icon with its badge. */
.approval__doc {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 112px;
    border-radius: 14px;
    background: var(--white);
    color: var(--accent);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(6, 24, 42, 0.08);
}

.approval__badge {
    position: absolute;
    bottom: -10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.approval__body {
    padding: 24px;
}

.approval__body h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.approval__body p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* ── Training ────────────────────────────────────────────────────────────── */

.course-groups {
    display: grid;
    gap: 20px;
}

@media (min-width: 1024px) {
    .course-groups {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-group {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.course-group h2 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.course-group .chips li {
    background: var(--surface);
}

/* ── Documents ───────────────────────────────────────────────────────────── */

.downloads {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.download {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

a.download:hover {
    border-color: var(--accent);
}

.download__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.download__title {
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
}

.download__action {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.download--pending .download__icon {
    background: var(--line);
    color: var(--muted);
}

.download--pending .download__action {
    color: var(--muted);
}

/* ── Forms: required mark, selects, the upload box ───────────────────────── */

.req {
    color: #c0392b;
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

[dir='rtl'] .field select {
    background-position: 20px 50%, 15px 50%;
}

.dropzone {
    position: relative;
    display: grid;
    gap: 6px;
    place-items: center;
    padding: 28px 20px;
    text-align: center;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.dropzone:hover,
.dropzone.is-over,
.dropzone.has-file {
    border-color: var(--accent);
}

.dropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone__text {
    font-weight: 600;
}

.dropzone__hint {
    font-size: 13px;
    color: var(--muted);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.check input {
    margin-top: 6px;
    accent-color: var(--accent);
}

.check a {
    color: var(--accent);
    text-decoration: underline;
}

/* ── Gallery captions and footer slogan ──────────────────────────────────── */

.gallery__item {
    margin: 0;
}

.gallery__item button {
    width: 100%;
}

.gallery__item figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

.footer__slogan {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}
