/* ---------------------------------------------------------------------------
   lang.css  -  bilingual additions (language switcher + Arabic RTL)

   Loaded after site.css so these rules win without touching the
   original stylesheet.
   --------------------------------------------------------------------------- */

/* --- the language switcher in the header ------------------------------- */
/* the logo and the switcher travel together on the brand side */
.header__right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-shrink: 0;
}

/* the logo must keep its size next to the switcher */
.header__right .header__logo {
    flex-shrink: 0;
    width: 6.2587rem;
}

html[dir="rtl"] .header__right {
    flex-direction: row-reverse;
}

.header__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.4rem;
    height: 3.2rem;
    padding: 0 1.4rem;
    border: 1px solid rgba(32, 60, 92, 0.28);
    border-radius: 1.6rem;
    font-family: Manrope, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #203c5c;
    background: rgba(255, 255, 255, 0.55);
    transition: .25s ease;
    white-space: nowrap;
}

.header__lang:hover {
    background: #0B2A45;
    border-color: #0B2A45;
    color: #fff;
}

/* Arabic script needs a little more room and a different line height */
.header__lang[hreflang="ar"] {
    font-size: 1.45rem;
    font-weight: 800;
    padding: 0 1.6rem;
}

/* --- the switcher inside the full screen menu -------------------------- */
.menu__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9rem;
    height: 3.6rem;
    padding: 0 1.6rem;
    margin-bottom: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1.8rem;
    font-family: Manrope, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    transition: .25s ease;
}

.menu__lang:hover {
    background: #fff;
    color: #0B2A45;
}

/* ---------------------------------------------------------------------------
   Arabic / RTL
   The whole layout mirrors: the brand colour blocks stay as they are,
   only the flow of the text and the icons changes.
   --------------------------------------------------------------------------- */
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .header .container {
    flex-direction: row-reverse;
}

/* the burger button and the logo swap sides */
html[dir="rtl"] .header__menu-button {
    transform: scaleX(-1);
}

html[dir="rtl"] .header__logo {
    transform: scaleX(-1);
}

/* centred blocks stay centred */
html[dir="rtl"] .page-banner-inner,
html[dir="rtl"] .hero-section__text,
html[dir="rtl"] .benefits-section__item,
html[dir="rtl"] .why-section__item,
html[dir="rtl"] .sea-section__item,
html[dir="rtl"] .sea-section__subitem,
html[dir="rtl"] .faq-section__accordion,
html[dir="rtl"] .form-card,
html[dir="rtl"] .contact-side {
    text-align: right;
}

/* right aligned blocks become left aligned */
html[dir="rtl"] .hero-section__subtitle {
    text-align: left;
}

/* the arrow that points at the next block */
html[dir="rtl"] .hero-section__button svg,
html[dir="rtl"] .btn-ic svg,
html[dir="rtl"] .services-d__item-button svg,
html[dir="rtl"] .services-swiper__item-button svg,
html[dir="rtl"] .faq-section__button svg {
    transform: scaleX(-1);
}

/* the info cards sit next to their icon on the other side */
html[dir="rtl"] .info-card {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .info-card h3,
html[dir="rtl"] .info-card p,
html[dir="rtl"] .info-card a {
    text-align: right;
}

/* form fields align to the right as well */
html[dir="rtl"] .field label,
html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea,
html[dir="rtl"] .field select {
    text-align: right;
}

/* the enquiry button and its arrow */
html[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* the breadcrumbs read from the other side */
html[dir="rtl"] .crumbs {
    direction: rtl;
}

/* the swiper keeps its own direction so the slides still move the
   way the visitor expects */
html[dir="rtl"] .services-swiper {
    direction: rtl;
}

/* the map card */
html[dir="rtl"] .map-copy {
    text-align: right;
}

/* long Arabic words need a little more room */
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    line-height: 1.75;
    word-wrap: break-word;
}

/* the decorative latin word marks (Anton) look wrong in Arabic, so the
   arabic headings get a normal arabic stack */
html[dir="rtl"] .hero-section__title,
html[dir="rtl"] .services-d__title,
html[dir="rtl"] .services-d__item-title,
html[dir="rtl"] .benefits-section__item-title,
html[dir="rtl"] .why-section__item-title,
html[dir="rtl"] .sea-section__item-title,
html[dir="rtl"] .sea-section__subitem-title,
html[dir="rtl"] .faq-section__title,
html[dir="rtl"] .page-banner-title,
html[dir="rtl"] .footer__title,
html[dir="rtl"] .sea-section__title {
    font-family: "Noto Kufi Arabic", "Cairo", Tahoma, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.6;
}

/* The giant "Seafreight" word-mark (45rem Anton) is one short latin word.
   Its Arabic translation "الشحن البحري" is longer and Anton has no Arabic
   glyphs, so at 45rem it wraps to two lines and stretches the whole
   sea-section (pushing the ship down).  Drop it to a size that stays on
   one line so the section keeps the same height as the English page. */
html[dir="rtl"] .sea-section__title {
    font-size: 26rem;
    line-height: 1.2;
}

/* ---------------------------------------------------------------------------
   The hero navigation shows the full menu (about / benefits / brokers /
   services / logistics / faq).  On a wide screen all six items sit next
   to each other; on a small screen they fold away into the menu
   button, which already carries the same list.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .hero-section__nav {
        width: 100%;
        max-width: 96rem;
        margin-left: auto;
        margin-right: 0;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 4.2rem;
        margin-bottom: auto;
    }

    .hero-section__nav li {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-section__nav a {
        font-size: 2.1rem;
        letter-spacing: -.05rem;
    }
}

@media (max-width: 1199px) {
    .hero-section__nav {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   "why choose us?" - the reference design spread the three words over
   two lines (WHY ... CHOOSE / US?).  On a wide screen the whole phrase
   fits on a single line, which is what the client asked for.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .why-section__title {
        white-space: nowrap;
    }

    /* the split text wraps the heading in .line divs - undo the
       two line layout of the reference design */
    .why-section .line:nth-child(1) .why-section__title-row,
    .why-section .line:nth-child(2) .why-section__title-row {
        display: inline-flex;
        justify-content: flex-start;
        align-items: baseline;
        gap: 1.6rem;
    }

    .why-section .line {
        display: inline;
    }

    .why-section .line-inner {
        display: inline;
    }

    .why-section .line:not(:last-child) {
        margin-bottom: 0;
    }
}

/* ---------------------------------------------------------------------------
   The products block is a two column grid: the text sits in a flexible
   column, the picture column is 46rem wide while the picture itself is
   67.6rem and is pulled 12rem into the text column with a left margin.
   In RTL the columns swap, so the picture has to be pulled the other way.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    html[dir="rtl"] .services-d__images {
        margin-left: 0;
        margin-right: 12rem;
    }
}

/* ---------------------------------------------------------------------------
   The "why choose us?" block has two counters side by side.  In the
   reference design the first one sits on the right of the page and the
   second one on the left, each of them pushed towards the middle.
   The margins are physical ones, so they have to be mirrored for RTL -
   otherwise the caption and the laurel wreath drift apart.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    html[dir="rtl"] .why-section__item:nth-child(1) .why-section__item-title {
        margin-left: 0;
        margin-right: auto;
    }

    html[dir="rtl"] .why-section__item:nth-child(1) .why-section__item-icon {
        margin: 0 auto 10rem 0;
    }

    html[dir="rtl"] .why-section__item:nth-child(1) .why-section__item-text {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }

    html[dir="rtl"] .why-section__item:nth-child(2) .why-section__item-title {
        margin-right: 0;
        margin-left: auto;
    }

    html[dir="rtl"] .why-section__item:nth-child(2) .why-section__item-icon {
        margin: auto 0 10rem auto;
    }

    html[dir="rtl"] .why-section__item:nth-child(2) .why-section__item-text {
        margin-right: 0;
        margin-left: auto;
        text-align: right;
    }

    /* the caption sits above the wreath, so the whole block is
       centred on the wreath */
    html[dir="rtl"] .why-section__item-title {
        text-align: center;
    }
}

/* ---------------------------------------------------------------------------
   "why choose us?" - the reference design let the counters overlap the
   giant heading on purpose.  The client wants the heading to sit above
   them instead, so the counters start a little lower.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .why-section__title {
        margin-bottom: 6rem;
    }

    .why-section__list {
        margin-top: -4rem;
    }
}

/* ---------------------------------------------------------------------------
   The 11 MB background movie is retired.  A single in-flow image now
   fills the band at the movie's native 1920:816 ratio, so .video-wrap
   always has a real height on both desktop and mobile.

   Before, the wide-screen rule hid the poster while the <video> was
   absolutely positioned, leaving the wrapper empty (height 0).  That
   shifted every ScrollTrigger offset below it: the hero copy rode up
   and the ship artwork slid over the FAQ text.  Keep the existing
   overflow:hidden so the :after gradient in site.css behaves exactly
   as it did before - only the collapsed height is being fixed here.
   --------------------------------------------------------------------------- */
.video-wrap {
    position: relative;
    overflow: hidden;
}

.video-band-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* ---------------------------------------------------------------------------
   The crane (kran.png) carries width/height attributes on the <img>, so
   its height is pinned to 1126px while the container's width scales with
   the viewport.  On a laptop the rem-based top of the hanging container
   (hero-section__container) then rides up past the crane's hook, so the
   two no longer meet.  Let the crane scale like the reference site (which
   has no width/height attributes) so hook and spreader stay aligned at
   every viewport width.
   --------------------------------------------------------------------------- */
.hero-section__img {
    height: auto;
}

/* Same HTML width/height-attribute pin as the crane: ship.png carries
   width="480" height="2056", so its height stays 2056px no matter how the
   CSS width shrinks.  Let it scale down with width so the ship can be made
   shorter than the full sea-section height. */
.sea-section__img {
    height: auto;
}

