/* =========================================
   TANZANIA ELSEWHERE
   HOMEPAGE HERO — MOBILE FIRST
========================================= */

.home-hero {
    --hero-image-height: clamp(370px, 104vw, 540px);
    --hero-overlap: 120px;

    position: relative;
    isolation: isolate;

    padding-bottom: 32px;
    background: var(--off-white);
}

/* =========================================
   HERO BACKGROUND SLIDESHOW
========================================= */

.hero-visual {
    position: absolute;
    inset: 0 0 auto;

    height: var(--hero-image-height);

    background: #354438;

    overflow: hidden;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    transition: opacity 1000ms ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

/* Individual photograph positioning */

.hero-slide-safari {
    object-position: 55% center;
}

.hero-slide-kilimanjaro {
    object-position: 65% center;
}

.hero-slide-zanzibar {
    object-position: center;
}

/* Text contrast overlay — no blur */

.hero-visual::after {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgb(0 0 0 / 42%) 0%,
        rgb(0 0 0 / 13%) 45%,
        transparent 75%
    );

    pointer-events: none;
}

/* Slideshow accessibility control */

.hero-playback {
    position: absolute;
    top: 12px;
    right: var(--gutter);

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    background: rgb(0 0 0 / 45%);
    color: var(--white);

    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 50%;

    z-index: 1;

    transition: background-color 180ms ease;
}

.hero-playback:hover {
    background: rgb(0 0 0 / 75%);
}

.hero-playback .icon {
    width: 17px;
    height: 17px;
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-layout {
    position: relative;
}

.hero-intro {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    min-height: calc(
        var(--hero-image-height) - var(--hero-overlap)
    );

    padding: 44px 0 24px;

    text-align: center;
}

.hero-intro h1 {
    margin: 0;

    font-size: clamp(27px, 7.3vw, 46px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.035em;

    color: var(--white);
    overflow-wrap: anywhere;
}

.hero-intro h1 span {
    display: block;
}

/* =========================================
   TRIP PLANNER CARD
========================================= */

.trip-planner {
    position: relative;

    width: 100%;
    max-width: 480px;

    margin-inline: auto;
    padding: clamp(20px, 5vw, 28px);

    background: var(--white);

    border: 1px solid rgb(0 0 0 / 4%);
    border-radius: 20px;

    box-shadow: 0 3px 12px rgb(0 0 0 / 6%);
}

.planner-heading {
    margin: 0 0 18px;

    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    line-height: 1.3;

    color: var(--black);
}

/* =========================================
   SAFARI AND KILIMANJARO SELECTOR
========================================= */

.planner-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 4px;
    padding: 5px;

    background: #ECE9E3;
    border-radius: 10px;
}

.planner-option {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    width: 100%;
    min-height: 52px;

    padding: 10px 8px;

    border: 1px solid transparent;
    border-radius: 7px;

    color: #74644F;
    background: transparent;

    font-size: 16px;
    font-weight: 650;
    line-height: 1.3;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.planner-option span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Selected trip */

.planner-option[aria-pressed="true"] {
    background: var(--white);
    color: var(--black);

    border-color: #E4E0D8;

    box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
}

.planner-option:hover {
    color: var(--black);
}

/* Activity icons */

.planner-option-icon {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    color: var(--white);
    border-radius: 50%;
}

.planner-option-icon svg {
    width: 16px;
    height: 16px;
}

.safari-icon {
    background: var(--orange);
}

.mountain-icon {
    background: #56836A;
}

/* =========================================
   TRAVEL DATE FIELD
========================================= */

.planner-date {
    position: relative;

    margin-top: 26px;
}

.planner-date-label {
    display: block;

    margin-bottom: 11px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;

    color: var(--charcoal);
}

.planner-month-trigger {
    display: flex;
    align-items: center;

    gap: 13px;

    width: 100%;
    min-height: 57px;

    padding: 13px 15px;

    background: var(--white);

    border: 1px solid #DDD9D1;
    border-radius: 12px;

    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;

    color: var(--charcoal);
    text-align: start;

    cursor: pointer;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.planner-month-trigger .icon {
    width: 25px;
    height: 25px;

    color: #8B795E;
}

.planner-month-trigger:hover {
    border-color: #9D968B;
}

.planner-month-trigger[aria-expanded="true"] {
    border-color: var(--black);
    box-shadow: 0 0 0 1px var(--black);
}

/* =========================================
   INTERACTIVE MONTH CALENDAR
========================================= */

.planner-calendar {
    position: absolute;

    top: calc(100% + 12px);
    inset-inline-start: 0;

    width: min(100%, 310px);

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 13px;

    box-shadow: 0 6px 24px rgb(0 0 0 / 12%);

    z-index: 5;

    animation: calendar-appear 160ms ease-out;
}

/* Small arrow above calendar */

.planner-calendar::before {
    content: '';

    position: absolute;
    top: -7px;
    left: 20px;

    width: 12px;
    height: 12px;

    background: var(--white);

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);

    transform: rotate(45deg);
}

/* Calendar year navigation */

.calendar-header {
    display: grid;

    grid-template-columns:
        44px minmax(0, 1fr) 44px;

    align-items: center;

    padding: 5px 8px;

    border-bottom: 1px solid var(--line);
}

.calendar-year {
    text-align: center;

    font-size: 16px;
    font-weight: 650;

    color: var(--charcoal);
}

.calendar-arrow {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 7px;

    color: var(--charcoal);
    cursor: pointer;

    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.calendar-arrow .icon {
    width: 19px;
    height: 19px;
}

.calendar-arrow:hover:not(:disabled) {
    background: var(--soft-green);
    color: var(--green);
}

.calendar-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Calendar months — three columns */

.calendar-months {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    justify-items: center;
    gap: 5px 7px;

    padding: 10px 8px;
}

/* Individual month buttons */

.calendar-month {
    display: grid;
    place-items: center;

    width: min(100%, 47px);
    aspect-ratio: 1;

    padding: 2px;

    border: 1px solid transparent;
    border-radius: 50%;

    background: transparent;
    color: var(--charcoal);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

/* Available month hover */

.calendar-month:hover:not(:disabled):not(.is-selected) {
    background: var(--soft-green);
    color: var(--green);
}

/* Past months — faded and unavailable */

.calendar-month:disabled {
    background: #F3F2EF;
    color: #AAA9A5;

    cursor: not-allowed;
}

/* Current month — green circular outline */

.calendar-month.is-current:not(:disabled) {
    color: var(--green);
    background: var(--soft-green);

    border-color: var(--green);
    font-weight: 750;
}

/* Selected month — solid green circle */

.calendar-month.is-selected:not(:disabled) {
    background: var(--green);
    color: var(--white);

    border-color: var(--green);
    font-weight: 750;
}

@keyframes calendar-appear {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Reserve space for an open mobile calendar */

.home-hero.calendar-open {
    padding-bottom: 190px;
}

/* =========================================
   PLANNER SUBMIT BUTTON
========================================= */

.planner-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 59px;

    margin-top: 24px;
    padding: 14px 12px;

    border-radius: 12px;

    background: var(--green);
    color: var(--white);

    font-size: 18px;
    font-weight: 750;
    line-height: 1.3;

    text-align: center;
    cursor: pointer;

    transition:
        background-color 200ms ease,
        color 200ms ease;
}

.planner-submit:hover:not(:disabled) {
    background: var(--orange);
    color: var(--black);
}

.planner-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Planner note */

.planner-note {
    margin: 14px 0 0;

    font-size: 13px;
    font-weight: 550;
    line-height: 1.5;

    color: #626262;
    text-align: center;
}

/* =========================================
   COMPANY TRUST INDICATORS
========================================= */

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px 24px;

    margin-top: 28px;
}

.hero-trust-item {
    display: flex;
    align-items: center;

    gap: 9px;

    max-width: 245px;

    color: var(--green);

    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.hero-trust-item .icon {
    width: 32px;
    height: 32px;

    color: var(--orange);
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 768px) {

    .home-hero {
        --hero-image-height: 530px;
        --hero-overlap: 135px;
    }

    .hero-intro {
        padding-top: 55px;
    }

    .hero-intro h1 {
        font-size: 48px;
    }

    .trip-planner {
        max-width: 470px;
    }

    .planner-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-trust {
        gap: 36px;
    }
}

/* =========================================
   DESKTOP HERO
========================================= */

@media (min-width: 1100px) {

    .home-hero,
    .home-hero.calendar-open {
        padding-bottom: 0;
    }

    /* Full-width desktop slideshow */

    .hero-visual {
        inset: 0;
        height: 100%;
    }

    .hero-visual::after {
        background: linear-gradient(
            90deg,
            rgb(0 0 0 / 40%) 0%,
            rgb(0 0 0 / 15%) 48%,
            rgb(0 0 0 / 5%) 100%
        );
    }

    .hero-slide {
        object-position: center;
    }

    /* Desktop two-column layout */

    .hero-layout {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(340px, 440px);

        align-items: center;

        gap: clamp(36px, 5vw, 85px);

        min-height: clamp(580px, 36.8vw, 700px);

        padding-block: 55px;
    }

    /* Desktop heading */

    .hero-intro {
        display: block;

        min-height: 0;
        padding: 0 0 100px;

        text-align: start;
    }

    .hero-intro h1 {
        font-size: clamp(44px, 3.2vw, 58px);
        font-weight: 650;
        line-height: 1.1;
    }

    /* Desktop planner */

    .trip-planner {
        width: 100%;
        max-width: none;

        padding: 24px;

        border-radius: 18px;
    }

    .planner-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .planner-option {
        min-height: 46px;
        font-size: 16px;
    }

    .planner-date {
        margin-top: 24px;
    }

    .planner-month-trigger {
        min-height: 53px;
    }

    .planner-submit {
        min-height: 55px;
        margin-top: 22px;
        font-size: 17px;
    }

    /* Desktop trust indicators */

    .hero-trust {
        position: absolute;

        left: var(--gutter);
        bottom: clamp(55px, 5.8vw, 100px);

        max-width: calc(100% - 500px);

        justify-content: flex-start;

        margin: 0;
        gap: 20px 30px;
    }

    .hero-trust-item {
        color: var(--white);

        font-size: 14px;
        max-width: 220px;
    }

    .hero-trust-item .icon {
        width: 39px;
        height: 39px;
        color: #FFC76A;
    }

    .hero-playback {
        top: auto;
        bottom: 20px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-playback,
    .planner-option,
    .planner-month-trigger,
    .calendar-arrow,
    .calendar-month,
    .planner-submit {
        transition: none;
    }

    .planner-calendar {
        animation: none;
    }
}
/* =========================================
   COMPANY INTRODUCTION AND TOUR CARDS
   MOBILE FIRST
========================================= */

.tour-showcase {
    position: relative;

    padding-block: 44px 48px;

    background: var(--off-white);
}

/* =========================================
   COMPANY INTRODUCTION
========================================= */

.tour-showcase-intro {
    max-width: 1050px;

    margin-inline: auto;
    margin-bottom: 36px;

    text-align: center;
}

/* Section heading */

.tour-showcase-intro h2 {
    margin: 0;

    font-size: clamp(24px, 5.8vw, 36px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;

    color: var(--black);
}

/* Golden orange decorative line */

.tour-showcase-intro h2::after {
    content: '';

    display: block;

    width: 64px;
    height: 2px;

    margin: 22px auto 25px;

    background: var(--orange);
}

/* Company introduction paragraph */

.tour-showcase-intro p {
    max-width: 1000px;

    margin: 0 auto;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;

    color: var(--black);

    text-wrap: pretty;
}

/* =========================================
   TOUR CARDS GRID
========================================= */

.tour-showcase-grid {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    gap: 28px;

    max-width: 460px;

    margin-inline: auto;
}

/* =========================================
   INDIVIDUAL TOUR CARD
========================================= */

.tour-showcase-card {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-width: 0;

    aspect-ratio: 2 / 3;

    padding: 34px 18px 28px;

    overflow: hidden;

    background: #354438;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgb(0 0 0 / 8%);

    color: var(--white);
    text-decoration: none;

    cursor: pointer;

    transition:
        box-shadow 280ms ease;
}

/* =========================================
   HIGH QUALITY CARD PHOTOGRAPHS
========================================= */

.tour-showcase-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    pointer-events: none;

    transform: scale(1);
    transform-origin: center;

    transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Kilimanjaro photograph positioning */

.tour-card-kilimanjaro
.tour-showcase-image {
    object-position: center 50%;
}

/* Safari photograph positioning */

.tour-card-safari
.tour-showcase-image {
    object-position: center 50%;
}

/* Zanzibar photograph positioning */

.tour-card-zanzibar
.tour-showcase-image {
    object-position: center 50%;
}

/* =========================================
   PHOTOGRAPH CONTRAST OVERLAY
   NO BLUR OR BACKDROP FILTER
========================================= */

.tour-showcase-card::after {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(

        180deg,

        rgb(0 0 0 / 62%) 0%,

        rgb(0 0 0 / 30%) 23%,

        transparent 48%,

        rgb(0 0 0 / 8%) 65%,

        rgb(0 0 0 / 58%) 100%

    );

    z-index: 1;

    pointer-events: none;
}

/* =========================================
   CARD HEADINGS AND SUBTITLES
========================================= */

.tour-showcase-copy {
    position: relative;

    z-index: 2;

    width: 100%;

    text-align: center;
}

/* Tour card main heading */

.tour-showcase-copy h3 {
    margin: 0;

    font-size: clamp(25px, 6.2vw, 32px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;

    color: var(--white);

    overflow-wrap: anywhere;
}

/* Tour card subtitle */

.tour-showcase-copy p {
    margin: 6px 0 0;

    font-size: clamp(17px, 4.4vw, 22px);
    font-weight: 550;
    line-height: 1.4;

    color: var(--white);

    overflow-wrap: anywhere;
}

/* =========================================
   DISCOVER NOW BUTTON
========================================= */

.tour-showcase-action {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 32px;

    z-index: 2;
}

/* Default transparent button */

.tour-showcase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    max-width: 100%;

    padding: 11px 23px;

    background: transparent;

    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 50px;

    color: var(--white);

    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;

    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;

    cursor: pointer;

    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        color 250ms ease;
}


/* =========================================
   DESKTOP MOUSE HOVER EFFECTS
========================================= */

@media (hover: hover) and (pointer: fine) {

    /* Smooth card shadow */

    .tour-showcase-card:hover {
        box-shadow:
            0 6px 20px rgb(0 0 0 / 15%);
    }

    /* Smooth photograph zoom */

    .tour-showcase-card:hover .tour-showcase-image {
        transform: scale(1.08);
    }

    /* Discover Now button hover */

    .tour-showcase-card:hover .tour-showcase-button {
        background: var(--green);
        border-color: var(--green);
        color: var(--white);
    }
}

/* =========================================
   KEYBOARD ACCESSIBILITY
========================================= */

.tour-showcase-card:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.tour-showcase-card:focus-visible
.tour-showcase-button {

    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* Touch and click feedback */

.tour-showcase-card:active
.tour-showcase-button {

    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* =========================================
   SMALL SMARTPHONES
========================================= */

@media (max-width: 359px) {

    .tour-showcase {
        padding-block: 36px 40px;
    }

    .tour-showcase-intro h2 {
        font-size: 23px;
    }

    .tour-showcase-intro p {
        font-size: 15px;
    }

    .tour-showcase-card {
        padding: 28px 14px 24px;
    }

    .tour-showcase-copy h3 {
        font-size: 23px;
    }

    .tour-showcase-copy p {
        font-size: 16px;
    }

    .tour-showcase-button {
        font-size: 14px;
    }
}

/* =========================================
   TABLET LAYOUT
   TWO CARDS AND ONE CENTRED CARD
========================================= */

@media (min-width: 640px) {

    .tour-showcase {
        padding-block: 56px 64px;
    }

    .tour-showcase-intro {
        margin-bottom: 44px;
    }

    .tour-showcase-intro h2 {
        font-size: clamp(28px, 3.8vw, 34px);
    }

    .tour-showcase-intro p {
        font-size: 18px;
        line-height: 1.7;
    }

    .tour-showcase-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 24px;

        max-width: 900px;
    }

    .tour-showcase-card {
        grid-column: span 2;

        aspect-ratio: 4 / 5;

        padding: 38px 18px 28px;
    }

    /* Centre the third card on tablets */

    .tour-showcase-card:last-child {
        grid-column: 2 / span 2;
    }

    .tour-showcase-copy h3 {
        font-size: clamp(24px, 3.1vw, 31px);
    }

    .tour-showcase-copy p {
        font-size: clamp(16px, 2.2vw, 21px);
    }
}

/* =========================================
   DESKTOP LAYOUT
   THREE EQUAL TOUR CARDS
========================================= */

@media (min-width: 1100px) {

    .tour-showcase {
        padding-block: 64px 76px;
    }

    .tour-showcase-intro {
        margin-bottom: 58px;
    }

    .tour-showcase-intro h2 {
        font-size: clamp(30px, 2.25vw, 38px);
        line-height: 1.25;
    }

    .tour-showcase-intro h2::after {
        width: 80px;

        margin: 24px auto 28px;
    }

    .tour-showcase-intro p {
        font-size: 19px;
        line-height: 1.65;
    }

    /* Three equal-width cards */

    .tour-showcase-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: clamp(24px, 2.5vw, 40px);

        max-width: none;
    }

    .tour-showcase-card,
    .tour-showcase-card:last-child {
        grid-column: auto;

        aspect-ratio: 4 / 5;

        padding: 46px 20px 32px;
    }

    /* Desktop card headings */

    .tour-showcase-copy h3 {
        font-size: clamp(26px, 2vw, 34px);
    }

    .tour-showcase-copy p {
        font-size: clamp(17px, 1.35vw, 22px);
    }

    /* Desktop Discover Now button */

    .tour-showcase-button {
        min-height: 48px;

        padding: 12px 24px;

        font-size: 16px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .tour-showcase-card,
    .tour-showcase-button,
    .tour-showcase-image {
        transition: none;
    }

    .tour-showcase-card:hover .tour-showcase-image {
        transform: none;
    }
}
/* =========================================
   WHY TRAVEL WITH TANZANIA ELSEWHERE
   MOBILE FIRST
========================================= */

.why-travel {
    --why-card-background: #0D3025;
    --why-card-accent: #B8CFC1;
    --why-gap: 22px;
    --why-card-size: min(100%, max(230px, 60%));

    position: relative;

    padding-block: 48px 60px;

    background: var(--off-white);
}

/* =========================================
   SECTION HEADING
========================================= */

.why-travel-intro {
    max-width: 900px;

    margin: 0 auto 26px;

    text-align: center;
}

.why-travel-intro h2 {
    margin: 0;

    font-size: clamp(24px, 5.8vw, 36px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;

    color: var(--black);
}

/* Golden orange decorative line */

.why-travel-intro h2::after {
    content: '';

    display: block;

    width: 64px;
    height: 2px;

    margin: 22px auto 0;

    background: var(--orange);
}

/* =========================================
   CAROUSEL STRUCTURE
========================================= */

.why-carousel {
    position: relative;

    min-width: 0;
}

/* Native horizontal scrolling */

.why-track {
    position: relative;

    display: flex;
    align-items: stretch;

    gap: var(--why-gap);

    min-width: 0;

    margin-inline: calc(-1 * var(--gutter));
    padding: 12px var(--gutter);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);

    overscroll-behavior-x: contain;

    scrollbar-width: none;
}

/* Hide scrollbar in Chrome, Edge and Safari */

.why-track::-webkit-scrollbar {
    display: none;
}

/* Allow the final mobile card to align correctly */

.why-track::after {
    content: '';

    flex: 0 0 max(
        0px,
        calc(100% - var(--why-card-size) - var(--why-gap))
    );
}

/* Desktop arrows are hidden on mobile */

.why-arrow {
    display: none;
}

/* =========================================
   INDIVIDUAL FLIP CARD
========================================= */

.why-card {
    position: relative;

    display: grid;

    flex: 0 0 var(--why-card-size);
    min-width: 0;

    scroll-snap-align: start;

    perspective: 1100px;
}

/* Both faces rotate together */

.why-card-inner {
    position: relative;

    display: grid;

    width: 100%;

    min-height: 320px;
    aspect-ratio: 3 / 4;

    transform-style: preserve-3d;
    transform: rotateY(0deg);

    transition:
        transform 950ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reverse side of card */

.why-card.is-flipped .why-card-inner {
    transform: rotateY(180deg);
}

/* =========================================
   SHARED CARD FACE STYLING
========================================= */

.why-face {
    position: relative;

    grid-area: 1 / 1;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 24px;

    overflow: hidden;

    background: var(--why-card-background);
    color: var(--white);

    border: 0;
    border-radius: 12px;

    text-align: start;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* =========================================
   FRONT FACE
========================================= */

.why-front {
    align-items: flex-start;
    justify-content: flex-end;

    width: 100%;

    cursor: pointer;

    transform: rotateY(0deg);
}

/* Large decorative illustration */

.why-watermark {
    position: absolute;

    top: 15px;
    right: -15px;

    width: 68%;
    max-width: 210px;

    aspect-ratio: 1;

    fill: none;
    stroke: var(--why-card-accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.16;

    pointer-events: none;
}

/* Front content */

.why-front-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;

    z-index: 1;
}

/* Foreground illustration */

.why-card-icon {
    width: 45px;
    height: 45px;

    margin-bottom: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Main card title */

.why-card-title {
    display: block;

    font-size: clamp(19px, 4.4vw, 24px);
    font-weight: 750;
    line-height: 1.16;

    text-transform: uppercase;

    overflow-wrap: anywhere;
}

/* Card subtitle */

.why-card-subtitle {
    display: block;

    margin-top: 14px;

    font-size: 14px;
    font-weight: 550;
    line-height: 1.4;

    text-transform: uppercase;

    overflow-wrap: anywhere;
}

/* =========================================
   REVERSE FACE
========================================= */

.why-back {
    align-items: flex-start;

    transform: rotateY(180deg);

    padding-top: 48px;
}

/* Reverse face heading */

.why-back h3 {
    margin: 0 0 16px;

    font-size: clamp(19px, 4.4vw, 24px);
    font-weight: 700;
    line-height: 1.2;

    color: var(--white);

    overflow-wrap: anywhere;
}

/* Reverse face description */

.why-back p {
    margin: 0 0 24px;

    font-size: 15px;
    font-weight: 450;
    line-height: 1.5;

    color: var(--white);

    overflow-wrap: anywhere;
}

/* Close reverse side */

.why-close {
    position: absolute;

    top: 6px;
    right: 8px;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    color: var(--white);

    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    border-radius: 50%;

    cursor: pointer;

    transition: background-color 180ms ease;
}

.why-close:hover {
    background: rgb(255 255 255 / 12%);
}

/* Read more button */

.why-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    max-width: 100%;

    margin-top: auto;

    padding: 11px 23px;

    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 50px;

    background: transparent;
    color: var(--white);

    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;

    text-align: center;
    text-decoration: none;

    overflow-wrap: anywhere;

    cursor: pointer;

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease;
}

.why-read-more:hover,
.why-read-more:focus-visible {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

/* =========================================
   CAROUSEL PAGINATION DOTS
========================================= */

.why-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 0;

    margin-top: 30px;
}

/* Large clickable area, small visible dot */

.why-dot {
    display: grid;
    place-items: center;

    width: 26px;
    height: 30px;

    padding: 0;

    background: transparent;

    cursor: pointer;
}

.why-dot::before {
    content: '';

    display: block;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #D2D4D3;

    transition:
        background-color 200ms ease,
        transform 200ms ease;
}

/* Active pagination dot */

.why-dot[aria-current="true"]::before {
    background: var(--charcoal);
    transform: scale(1.12);
}

.why-dot:hover::before {
    background: var(--green);
}

/* =========================================
   CONTACT ACTION BUTTONS
========================================= */

.why-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-top: 55px;
}

.why-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 56px;
    max-width: 100%;

    padding: 15px 23px;

    background: var(--green);
    color: var(--white);

    border-radius: 13px;

    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 220ms ease,
        color 220ms ease;
}

.why-action-button .icon {
    width: 23px;
    height: 23px;

    stroke-width: 2;
}

.why-action-button:hover {
    background: var(--orange);
    color: var(--black);
}

/* =========================================
   KEYBOARD ACCESSIBILITY
========================================= */

.why-front:focus-visible,
.why-close:focus-visible,
.why-read-more:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -4px;
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 640px) {

    .why-travel {
        --why-gap: 24px;

        --why-card-size:
            calc((100% - var(--why-gap)) / 2);

        padding-block: 60px 72px;
    }

    .why-travel-intro {
        margin-bottom: 32px;
    }

    .why-track {
        margin-inline: 0;
        padding-inline: 0;

        scroll-padding-inline: 0;
    }

    .why-track::after {
        display: none;
    }

    .why-card-inner {
        aspect-ratio: 4 / 5;
    }

    .why-face {
        padding: 28px;
    }

    .why-back {
        padding-top: 46px;
    }

    .why-card-title,
    .why-back h3 {
        font-size: 24px;
    }

    .why-card-subtitle {
        font-size: 16px;
    }

    .why-back p {
        font-size: 16px;
    }

    .why-actions {
        flex-direction: row;

        gap: 18px;
    }
}

/* =========================================
   DESKTOP LAYOUT — FOUR CARDS
========================================= */

@media (min-width: 1100px) {

    .why-travel {
        --why-gap: clamp(24px, 2.3vw, 44px);

        --why-card-size:
            calc((100% - 3 * var(--why-gap)) / 4);

        padding-block: 66px 80px;
    }

    .why-travel-intro {
        margin-bottom: 24px;
    }

    .why-travel-intro h2 {
        font-size: clamp(30px, 2.25vw, 38px);
    }

    .why-travel-intro h2::after {
        width: 80px;

        margin-top: 24px;
    }

    /* Space for arrows outside the cards */

    .why-carousel {
        display: grid;

        grid-template-columns:
            38px minmax(0, 1fr) 38px;

        column-gap: 12px;

        align-items: center;
    }

    .why-track {
        grid-column: 2;
        grid-row: 1;
    }

    .why-prev {
        grid-column: 1;
        grid-row: 1;
    }

    .why-next {
        grid-column: 3;
        grid-row: 1;
    }

    /* Carousel arrow buttons */

    .why-arrow {
        display: grid;
        place-items: center;

        width: 34px;
        height: 34px;

        margin-inline: auto;

        border-radius: 50%;

        background: var(--charcoal);
        color: var(--white);

        cursor: pointer;

        transition:
            background-color 200ms ease,
            opacity 200ms ease;
    }

    .why-arrow .icon {
        width: 19px;
        height: 19px;
    }

    .why-arrow:hover:not(:disabled) {
        background: var(--green);
    }

    .why-arrow:disabled {
        opacity: 0.22;
        cursor: default;
    }

    /* Desktop card dimensions */

    .why-card-inner {
        min-height: 320px;
        aspect-ratio: 5 / 6;
    }

    .why-face {
        padding: clamp(19px, 1.8vw, 30px);
    }

    .why-back {
        padding-top: 45px;
    }

    .why-card-title {
        font-size: clamp(19px, 1.45vw, 24px);
    }

    .why-card-subtitle {
        font-size: clamp(13px, 1vw, 16px);
    }

    .why-card-icon {
        width: 47px;
        height: 47px;

        margin-bottom: 24px;
    }

    .why-back h3 {
        font-size: clamp(19px, 1.45vw, 24px);
    }

    .why-back p {
        font-size: clamp(14px, 1.05vw, 16px);
        line-height: 1.45;
    }

    /* Desktop pagination */

    .why-pagination {
        margin-top: 24px;
    }

    /* Desktop contact buttons */

    .why-actions {
        margin-top: 70px;
    }

    .why-action-button {
        min-height: 56px;

        padding-inline: 24px;

        font-size: 17px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .why-card-inner,
    .why-arrow,
    .why-dot::before,
    .why-close,
    .why-read-more,
    .why-action-button {
        transition: none;
    }
}
/* =========================================
   OUR POPULAR ADVENTURES
   MOBILE FIRST
========================================= */

.popular-adventures {
    --popular-gap: 20px;
    --popular-card-width: 84%;

    position: relative;

    padding-block: 48px 60px;

    background: var(--off-white);
}

.popular-adventures [hidden] {
    display: none !important;
}

/* =========================================
   SECTION HEADING
========================================= */

.popular-intro {
    max-width: 900px;

    margin: 0 auto 26px;

    text-align: center;
}

.popular-intro h2 {
    margin: 0;

    font-size: clamp(24px, 5.8vw, 36px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;

    color: var(--black);
}

.popular-intro h2::after {
    content: '';

    display: block;

    width: 64px;
    height: 2px;

    margin: 22px auto 0;

    background: var(--orange);
}

/* =========================================
   TOUR CATEGORY FILTERS
========================================= */

.popular-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 28px;
}

.popular-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 14px;

    background: #F0EEEA;
    color: #796B55;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 650;
    line-height: 1.3;

    cursor: pointer;

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
}

.popular-filter[aria-pressed="true"] {
    background: var(--white);
    color: var(--black);

    border-color: #DDD7CB;

    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}

.popular-filter:hover {
    color: var(--green);
    border-color: var(--green);
}

/* =========================================
   HORIZONTAL CARD CAROUSEL
========================================= */

.popular-track {
    display: flex;
    align-items: stretch;

    gap: var(--popular-gap);

    min-width: 0;

    margin-inline-end: calc(-1 * var(--gutter));

    padding: 8px var(--gutter) 12px 0;

    overflow-x: auto;
    overflow-y: hidden;

    overscroll-behavior-x: contain;

    scroll-behavior: auto;
}

/* Hide native scrollbar once JS is initialized */

.popular-adventures.is-ready .popular-track {
    scrollbar-width: none;
}

.popular-adventures.is-ready
.popular-track::-webkit-scrollbar {
    display: none;
}

/* Active mouse dragging */

.popular-track.is-dragging,
.popular-track.is-dragging * {
    cursor: grabbing;

    user-select: none;
    -webkit-user-select: none;
}

/* =========================================
   INDIVIDUAL ADVENTURE CARD
========================================= */

.popular-card {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    flex: 0 0 var(--popular-card-width);

    min-width: 0;
    min-height: 350px;

    aspect-ratio: 5 / 7;

    gap: 24px;

    padding: clamp(18px, 4.7vw, 28px);

    overflow: hidden;

    background: #354438;
    color: var(--white);

    border-radius: 12px;

    text-decoration: none;

    box-shadow: 0 3px 10px rgb(0 0 0 / 9%);

    cursor: pointer;

    transition: box-shadow 280ms ease;
}

/* =========================================
   HIGH DEFINITION CARD PHOTOGRAPHS
========================================= */

.popular-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    pointer-events: none;

    transform: scale(1);
    transform-origin: center;

    transition:
        transform 700ms
        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   TEXT CONTRAST OVERLAY
   NO BLUR OR BACKDROP FILTER
========================================= */

.popular-card::after {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgb(0 0 0 / 65%) 0%,
        rgb(0 0 0 / 25%) 25%,
        transparent 48%,
        rgb(0 0 0 / 8%) 62%,
        rgb(0 0 0 / 68%) 100%
    );

    z-index: 1;

    pointer-events: none;
}

/* =========================================
   CARD TITLE AND TOUR DURATION
========================================= */

.popular-card-copy {
    position: relative;
    z-index: 2;

    min-width: 0;
}

.popular-card-copy h3 {
    margin: 0;

    font-size: clamp(21px, 5.5vw, 27px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;

    color: var(--white);

    overflow-wrap: anywhere;
}

.popular-duration {
    display: block;

    margin: 5px 0 0;

    font-size: clamp(15px, 4vw, 20px);
    font-weight: 550;
    line-height: 1.35;

    color: var(--white);
}

/* =========================================
   CARD FOOTER — PRICE AND VIEW TRIP
========================================= */

.popular-card-footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: auto;
}

/* Price information */

.popular-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;

    color: var(--white);
}

.popular-price-label {
    font-size: clamp(13px, 3.5vw, 17px);
    font-weight: 750;
    line-height: 1.3;
}

.popular-price-value {
    display: block;

    margin-block: 2px;

    font-size: clamp(24px, 6.5vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;

    font-variant-numeric: tabular-nums;
}

.popular-price-person {
    font-size: clamp(13px, 3.4vw, 16px);
    font-weight: 550;
    line-height: 1.35;
}

/* View Trip button */

.popular-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    max-width: 100%;

    padding: 10px 19px;

    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 50px;

    background: transparent;
    color: var(--white);

    font-size: clamp(13px, 3.6vw, 16px);
    font-weight: 750;
    line-height: 1.3;

    text-align: center;
    overflow-wrap: anywhere;

    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        color 250ms ease;
}

/* =========================================
   DESKTOP HOVER EFFECTS
========================================= */

@media (hover: hover) and (pointer: fine) {

    .popular-track:not(.is-dragging)
    .popular-card:hover {
        box-shadow:
            0 6px 20px rgb(0 0 0 / 16%);
    }

    .popular-track:not(.is-dragging)
    .popular-card:hover .popular-image {
        transform: scale(1.08);
    }

    .popular-track:not(.is-dragging)
    .popular-card:hover .popular-card-button {
        background: var(--green);
        border-color: var(--green);
        color: var(--white);
    }
}

/* Keyboard and touch feedback */

.popular-card:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: -3px;
}

.popular-card:focus-visible .popular-card-button,
.popular-card:active .popular-card-button {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* =========================================
   HORIZONTAL SCROLL INDICATOR
========================================= */

.popular-scroll-control {
    display: flex;
    align-items: center;

    margin-top: 15px;
}

.popular-scrollbar {
    appearance: none;
    -webkit-appearance: none;

    display: block;

    width: 100%;
    height: 30px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;

    cursor: pointer;
}

/* Chrome, Edge and Safari */

.popular-scrollbar::-webkit-slider-runnable-track {
    height: 5px;

    background: #EEECE7;
    border-radius: 20px;
}

.popular-scrollbar::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 38px;
    height: 5px;

    background: #BDB9AD;
    border-radius: 20px;

    transition: background-color 180ms ease;
}

/* Firefox */

.popular-scrollbar::-moz-range-track {
    height: 5px;

    background: #EEECE7;
    border-radius: 20px;
}

.popular-scrollbar::-moz-range-thumb {
    width: 38px;
    height: 5px;

    background: #BDB9AD;
    border: 0;
    border-radius: 20px;
}

.popular-scrollbar:hover::-webkit-slider-thumb {
    background: var(--green);
}

.popular-scrollbar:hover::-moz-range-thumb {
    background: var(--green);
}

/* =========================================
   VIEW ALL BUTTON
========================================= */

.popular-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 35px;
}

.popular-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 56px;

    padding: 14px 28px;

    background: var(--green);
    color: var(--white);

    border: 0;
    border-radius: 14px;

    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 220ms ease,
        color 220ms ease;
}

.popular-view-all:hover {
    background: var(--orange);
    color: var(--black);
}

/* Accessible keyboard focus */

.popular-filter:focus-visible,
.popular-scrollbar:focus-visible,
.popular-view-all:focus-visible,
.popular-track:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* =========================================
   VIEW ALL — EXPANDED CARD GRID
========================================= */

.popular-track.is-expanded {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    margin-inline: 0;
    padding-inline: 0;

    overflow: visible;
}

.popular-track.is-expanded .popular-card {
    width: 100%;
}

/* =========================================
   SMALL SMARTPHONES
========================================= */

@media (max-width: 359px) {

    .popular-adventures {
        --popular-gap: 14px;
        --popular-card-width: 90%;
    }

    .popular-filters {
        gap: 5px;
    }

    .popular-filter {
        padding-inline: 10px;
        font-size: 12px;
    }

    .popular-card {
        padding: 18px;
        min-height: 340px;
    }

    .popular-card-footer {
        gap: 8px;
    }

    .popular-card-button {
        padding-inline: 13px;
    }
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 640px) {

    .popular-adventures {
        --popular-gap: 24px;

        --popular-card-width:
            calc((100% - 2 * var(--popular-gap)) / 2.5);

        padding-block: 58px 70px;
    }

    .popular-intro {
        margin-bottom: 28px;
    }

    .popular-filters {
        gap: 12px;
        margin-bottom: 32px;
    }

    .popular-filter {
        min-height: 48px;
        padding-inline: 18px;
        font-size: 16px;
    }

    .popular-track {
        margin-inline: 0;
        padding-inline: 0;
    }

    .popular-card {
        min-height: 370px;
        padding: 24px;
    }

    .popular-card-copy h3 {
        font-size: 24px;
    }

    .popular-duration {
        font-size: 17px;
    }

    .popular-price-value {
        font-size: 29px;
    }

    .popular-price-label,
    .popular-price-person {
        font-size: 14px;
    }

    .popular-card-button {
        font-size: 14px;
        padding-inline: 17px;
    }

    .popular-track.is-expanded {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   DESKTOP LAYOUT
   THREE CARDS + PART OF THE FOURTH
========================================= */

@media (min-width: 1100px) {

    .popular-adventures {
        --popular-gap: clamp(24px, 1.9vw, 36px);

        --popular-card-width:
            calc((100% - 3 * var(--popular-gap)) / 3.5);

        padding-block: 65px 78px;
    }

    .popular-intro {
        margin-bottom: 28px;
    }

    .popular-intro h2 {
        font-size: clamp(30px, 2.25vw, 38px);
    }

    .popular-intro h2::after {
        width: 80px;

        margin-top: 24px;
    }

    .popular-filters {
        gap: 12px;
        margin-bottom: 40px;
    }

    .popular-filter {
        min-height: 50px;

        padding: 12px 19px;

        border-radius: 12px;

        font-size: 17px;
    }

    .popular-card {
        min-height: 410px;

        padding: clamp(22px, 1.8vw, 34px);

        aspect-ratio: 5 / 7;
    }

    .popular-card-copy h3 {
        font-size: clamp(21px, 1.35vw, 27px);
    }

    .popular-duration {
        font-size: clamp(17px, 1.1vw, 21px);
    }

    .popular-price-label {
        font-size: clamp(14px, 1vw, 18px);
    }

    .popular-price-value {
        font-size: clamp(26px, 1.8vw, 35px);
    }

    .popular-price-person {
        font-size: clamp(13px, 0.95vw, 17px);
    }

    .popular-card-button {
        min-height: 46px;

        padding: 10px clamp(16px, 1.3vw, 25px);

        font-size: 16px;
    }

    .popular-scroll-control {
        margin-top: 18px;
    }

    .popular-scrollbar::-webkit-slider-thumb {
        width: 78px;
    }

    .popular-scrollbar::-moz-range-thumb {
        width: 78px;
    }

    .popular-actions {
        margin-top: 32px;
    }

    .popular-view-all {
        min-width: 175px;
        min-height: 57px;
        font-size: 17px;
    }

    .popular-track.is-expanded {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .popular-card,
    .popular-image,
    .popular-filter,
    .popular-card-button,
    .popular-view-all {
        transition: none;
    }

    .popular-track:not(.is-dragging)
    .popular-card:hover .popular-image {
        transform: none;
    }
}
/* =========================================
   KILIMANJARO PREPARATION GUIDE
   MOBILE FIRST
========================================= */

.kili-preparation {
    padding-block: 48px 60px;

    background: var(--off-white);

    caret-color: transparent;
}

/* =========================================
   SECTION INTRODUCTION
========================================= */

.kili-preparation-intro {
    max-width: 1000px;
    margin: 0 auto 32px;
    text-align: center;
}

.kili-preparation-intro h2 {
    margin: 0;

    font-size: clamp(24px, 5.8vw, 36px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;

    color: var(--black);
}

/* Golden orange decorative line */

.kili-preparation-intro h2::after {
    content: '';

    display: block;

    width: 64px;
    height: 2px;

    margin: 22px auto 25px;

    background: var(--orange);
}

.kili-preparation-intro p {
    max-width: 850px;

    margin: 0 auto;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;

    color: var(--charcoal);
}

/* =========================================
   MAIN RESPONSIVE LAYOUT
========================================= */

.kili-preparation-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    align-items: start;

    gap: 25px;
}

/* =========================================
   HIGH-DEFINITION PHOTOGRAPH
========================================= */

.kili-preparation-photo {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    margin: 0;

    overflow: hidden;

    background: #354438;

    border-radius: 12px;
}

.kili-preparation-photo img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1);

    transition:
        transform 750ms
        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   PREPARATION CONTENT
========================================= */

.kili-preparation-content {
    min-width: 0;
}

.kili-preparation-accordion {
    display: grid;
    gap: 12px;
}

/* =========================================
   INDIVIDUAL INFORMATION PANEL
========================================= */

.kili-preparation-item {
    min-width: 0;

    background: var(--white);

    border: 1px solid #E1E3E2;
    border-radius: 12px;

    transition:
        border-color 250ms ease,
        background-color 250ms ease,
        box-shadow 250ms ease;
}

/* Selected information panel */

.kili-preparation-item[open] {
    border-color: var(--green);

    box-shadow:
        0 3px 12px rgb(0 0 0 / 4%);
}

/* =========================================
   CLICKABLE PANEL HEADING
========================================= */

.kili-preparation-item summary {
    display: grid;

    grid-template-columns:
        25px minmax(0, 1fr) 20px;

    align-items: center;

    gap: 12px;

    min-height: 65px;

    padding: 17px 15px;

    color: var(--black);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;

    list-style: none;

    cursor: pointer;

    transition: color 220ms ease;
}

/* Remove browser default marker */

.kili-preparation-item
summary::-webkit-details-marker {
    display: none;
}

.kili-preparation-item summary::marker {
    content: '';
}

/* Selected heading */

.kili-preparation-item[open] summary {
    color: var(--green);
}

.kili-preparation-item summary > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================
   SHARP SVG ICONS
========================================= */

.prep-icon {
    display: block;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kili-preparation-item .prep-icon {
    color: var(--green);
}

/* =========================================
   ANIMATED PLUS AND MINUS ICON
========================================= */

.prep-toggle {
    position: relative;

    display: block;

    width: 18px;
    height: 18px;

    color: var(--green);
}

.prep-toggle::before,
.prep-toggle::after {
    content: '';

    position: absolute;

    top: 50%;
    left: 50%;

    width: 14px;
    height: 1.8px;

    background: currentColor;

    border-radius: 2px;

    transform: translate(-50%, -50%);

    transition:
        transform 280ms ease,
        opacity 280ms ease;
}

/* Vertical line of plus icon */

.prep-toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

/* Change plus into minus */

.kili-preparation-item[open]
.prep-toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);

    opacity: 0;
}

/* =========================================
   EXPANDED INFORMATION
========================================= */

.prep-answer {
    padding: 0 18px 22px;

    color: var(--charcoal);
}

.prep-answer p {
    margin: 0;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
}

/* Gentle content reveal */

.kili-preparation-item[open]
.prep-answer {
    animation: prep-reveal 300ms ease-out;
}

@keyframes prep-reveal {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   INFORMATION AND DOWNLOAD LINKS
========================================= */

.prep-text-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    max-width: 100%;

    margin-top: 14px;

    color: var(--green);

    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;

    text-decoration: underline;
    text-underline-offset: 4px;

    overflow-wrap: anywhere;

    cursor: pointer;

    transition:
        color 250ms ease,
        text-decoration-color 250ms ease;
}

/* Downloadable PDF link */

.prep-download-link {
    min-height: 44px;
}

/* High-definition SVG download icon */

.prep-download-icon {
    display: block;

    width: 20px;
    height: 20px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 250ms ease;
}

/* Smooth desktop hover */

@media (hover: hover) and (pointer: fine) {

    .prep-text-link:hover {
        color: var(--orange);
    }

    .prep-download-link:hover
    .prep-download-icon {
        transform: translateY(3px);
    }
}

/* Mobile touch feedback */

.prep-text-link:active {
    color: var(--orange);
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    .prep-download-icon {
        transition: none;
    }

    .prep-download-link:hover
    .prep-download-icon {
        transform: none;
    }
}

/* =========================================
   PLAN MY CLIMB BUTTON
========================================= */

.kili-preparation-cta {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
    min-height: 56px;

    margin-top: 24px;

    padding: 15px 20px;

    background: var(--green);
    color: var(--white);

    border-radius: 12px;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 250ms ease,
        color 250ms ease;
}

.kili-preparation-cta .prep-icon {
    width: 21px;
    height: 21px;

    transition: transform 250ms ease;
}

/* =========================================
   DESKTOP HOVER EFFECTS
========================================= */

@media (hover: hover) and (pointer: fine) {

    .kili-preparation-photo:hover img {
        transform: scale(1.05);
    }

    .kili-preparation-item:hover {
        border-color: var(--green);
    }

    .kili-preparation-item summary:hover {
        color: var(--green);
    }

    .kili-preparation-cta:hover {
        background: var(--orange);
        color: var(--black);
    }

    .kili-preparation-cta:hover .prep-icon {
        transform: translateX(4px);
    }
}

/* =========================================
   KEYBOARD ACCESSIBILITY
========================================= */

.kili-preparation-item summary:focus-visible,
.kili-preparation-cta:focus-visible,
.prep-text-link:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.kili-preparation-item summary:focus-visible {
    outline-offset: -3px;
    border-radius: 12px;
}

/* =========================================
   SMALL SMARTPHONES
========================================= */

@media (max-width: 359px) {

    .kili-preparation-intro h2 {
        font-size: 23px;
    }

    .kili-preparation-intro p {
        font-size: 15px;
    }

    .kili-preparation-item summary {
        grid-template-columns:
            22px minmax(0, 1fr) 18px;

        gap: 9px;

        padding-inline: 12px;

        font-size: 14px;
    }

    .kili-preparation-cta {
        font-size: 14px;
    }
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 640px) {

    .kili-preparation {
        padding-block: 60px 72px;
    }

    .kili-preparation-intro {
        margin-bottom: 40px;
    }

    .kili-preparation-intro h2 {
        font-size: clamp(28px, 3.8vw, 36px);
    }

    .kili-preparation-intro p {
        font-size: 18px;
        line-height: 1.7;
    }

    .kili-preparation-photo {
        aspect-ratio: 16 / 9;
    }

    .kili-preparation-item summary {
        min-height: 70px;

        padding: 18px 22px;

        font-size: 17px;
    }

    .prep-answer {
        padding: 0 24px 24px 59px;
    }

    .prep-answer p {
        font-size: 16px;
    }
}

/* =========================================
   DESKTOP — TWO COLUMN LAYOUT
========================================= */

@media (min-width: 1100px) {

    .kili-preparation {
        padding-block: 65px 80px;
    }

    .kili-preparation-intro {
        margin-bottom: 48px;
    }

    .kili-preparation-intro h2 {
        font-size: clamp(30px, 2.25vw, 38px);
    }

    .kili-preparation-intro h2::after {
        width: 80px;

        margin: 24px auto 28px;
    }

    .kili-preparation-intro p {
        font-size: 19px;
        line-height: 1.65;
    }

    .kili-preparation-layout {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.1fr);

        gap: clamp(32px, 3.5vw, 60px);

        align-items: stretch;
    }

    /* Left photograph */

    .kili-preparation-photo {
        aspect-ratio: auto;

        min-height: 510px;

        border-radius: 14px;
    }

    /* Right information panels */

    .kili-preparation-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .kili-preparation-accordion {
        gap: 12px;
    }

    .kili-preparation-item summary {
        min-height: 66px;

        padding: 16px 22px;

        font-size: clamp(16px, 1.1vw, 19px);
    }

    .prep-answer p {
        font-size: clamp(15px, 1vw, 17px);
        line-height: 1.7;
    }

    .kili-preparation-cta {
        align-self: flex-start;

        width: auto;

        min-height: 56px;

        padding-inline: 25px;

        font-size: 17px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .kili-preparation-photo img,
    .kili-preparation-item,
    .kili-preparation-item summary,
    .prep-toggle::before,
    .prep-toggle::after,
    .prep-text-link,
    .kili-preparation-cta,
    .kili-preparation-cta .prep-icon {
        transition: none;
    }

    .kili-preparation-item[open]
    .prep-answer {
        animation: none;
    }

    .kili-preparation-photo:hover img {
        transform: none;
    }

    .kili-preparation-cta:hover .prep-icon {
        transform: none;
    }
}
/* =========================================
   GIVING BACK TO OUR COMMUNITY
   MOBILE FIRST
========================================= */

.community-section {
    --community-background: #F5F5EE;
    --community-soft-green: #E8EFE5;

    position: relative;

    padding-block: 52px 60px;

    background: var(--community-background);

    caret-color: transparent;
}

/* =========================================
   SECTION INTRODUCTION
========================================= */

.community-intro {
    max-width: 950px;

    margin: 0 auto 32px;

    text-align: center;
}

/* Small section label */

.community-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--green);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.16em;

    text-transform: uppercase;
}

/* Main section heading */

.community-intro h2 {
    margin: 0;

    color: var(--black);

    font-size: clamp(25px, 5.8vw, 38px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

/* Golden orange decorative line */

.community-intro h2::after {
    content: '';

    display: block;

    width: 64px;
    height: 2px;

    margin: 22px auto 0;

    background: var(--orange);
}

/* =========================================
   MAIN COMMUNITY LAYOUT
========================================= */

.community-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    align-items: center;

    gap: 30px;
}

/* =========================================
   COMMUNITY PHOTOGRAPH GALLERY
========================================= */

.community-gallery {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    gap: 12px;

    min-width: 0;
}

/* Shared photograph styling */

.community-photo {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;

    overflow: hidden;

    background: #DCE3D8;

    border-radius: 12px;
}

/* Main photograph */

.community-photo-main {
    aspect-ratio: 4 / 3;
}

/* Secondary photograph */

.community-photo-secondary {
    aspect-ratio: 16 / 7;
}

/* High-definition image display */

.community-photo img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1);
    transform-origin: center;

    transition:
        transform 850ms
        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   COMMUNITY STORY
========================================= */

.community-story {
    min-width: 0;
}

/* Story heading */

.community-story h3 {
    max-width: 650px;

    margin: 0 0 20px;

    color: var(--black);

    font-size: clamp(24px, 5.5vw, 34px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.03em;

    text-wrap: balance;
}

/* Story paragraphs */

.community-story > p {
    margin: 0 0 18px;

    color: var(--charcoal);

    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

/* =========================================
   COMMUNITY QUOTE
========================================= */

.community-quote {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-block: 24px;

    padding: 16px 18px;

    border-inline-start: 3px solid var(--orange);

    background: rgb(6 91 16 / 4%);

    border-radius: 0 8px 8px 0;
}

.community-quote-icon {
    display: block;

    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    fill: none;
    stroke: var(--green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-quote p {
    margin: 0;

    color: var(--green);

    font-size: 16px;
    font-weight: 650;
    font-style: italic;
    line-height: 1.6;
}

/* =========================================
   REUSABLE SVG ICONS
========================================= */

.community-icon {
    display: block;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================
   COMMUNITY ACTION BUTTON
========================================= */

.community-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
    min-height: 56px;

    padding: 15px 20px;

    background: var(--green);
    color: var(--white);

    border-radius: 12px;

    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 250ms ease,
        color 250ms ease;
}

.community-cta span {
    min-width: 0;

    overflow-wrap: anywhere;
}

.community-cta .community-icon {
    width: 21px;
    height: 21px;

    transition: transform 300ms ease;
}

/* =========================================
   COMMUNITY SUPPORT CARDS
========================================= */

.community-pillars {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    align-items: stretch;

    gap: 16px;

    margin-top: 36px;
}

/* Individual community card */

.community-card {
    position: relative;

    min-width: 0;

    padding: 26px 22px;

    background: var(--white);

    border: 1px solid #E3E6DF;
    border-radius: 14px;

    box-shadow:
        0 3px 12px rgb(0 0 0 / 3%);

    transition:
        transform 350ms ease,
        border-color 350ms ease,
        box-shadow 350ms ease;
}

/* Icon background */

.community-card-icon {
    display: grid;

    place-items: center;

    width: 58px;
    height: 58px;

    margin-bottom: 20px;

    background: var(--community-soft-green);
    color: var(--green);

    border-radius: 13px;

    transition:
        background-color 300ms ease,
        color 300ms ease;
}

.community-card-icon .community-icon {
    width: 30px;
    height: 30px;
}

/* Community card title */

.community-card h3 {
    margin: 0 0 12px;

    color: var(--black);

    font-size: 21px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.02em;

    overflow-wrap: anywhere;
}

/* Community card description */

.community-card p {
    margin: 0;

    color: var(--charcoal);

    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;

    overflow-wrap: anywhere;
}

/* =========================================
   CLOSING COMMUNITY MESSAGE
========================================= */

.community-footer {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    max-width: 850px;

    margin: 36px auto 0;

    text-align: center;
}

.community-footer .community-icon {
    width: 27px;
    height: 27px;

    color: var(--green);
}

.community-footer p {
    margin: 0;

    color: var(--green);

    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;

    text-wrap: balance;
}

/* =========================================
   DESKTOP MOUSE HOVER EFFECTS
========================================= */

@media (hover: hover) and (pointer: fine) {

    /* Smooth photograph enlargement */

    .community-photo:hover img {
        transform: scale(1.06);
    }

    /* Gentle card elevation */

    .community-card:hover {
        transform: translateY(-5px);

        border-color: #B9CEB7;

        box-shadow:
            0 9px 24px rgb(0 0 0 / 7%);
    }

    /* Card icon colour transition */

    .community-card:hover .community-card-icon {
        background: var(--green);
        color: var(--white);
    }

    /* Action button hover */

    .community-cta:hover {
        background: var(--orange);
        color: var(--black);
    }

    .community-cta:hover .community-icon {
        transform: translateX(5px);
    }
}

/* =========================================
   KEYBOARD AND TOUCH ACCESSIBILITY
========================================= */

.community-cta:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.community-cta:active {
    background: var(--orange);
    color: var(--black);
}

/* =========================================
   SMALL SMARTPHONES
========================================= */

@media (max-width: 359px) {

    .community-section {
        padding-block: 40px 48px;
    }

    .community-intro h2 {
        font-size: 24px;
    }

    .community-story h3 {
        font-size: 23px;
    }

    .community-story > p {
        font-size: 15px;
    }

    .community-quote {
        padding: 14px 12px;

        gap: 8px;
    }

    .community-quote p {
        font-size: 15px;
    }

    .community-card {
        padding: 22px 18px;
    }

    .community-card h3 {
        font-size: 20px;
    }

    .community-cta {
        font-size: 14px;
    }
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 640px) {

    .community-section {
        padding-block: 62px 72px;
    }

    .community-intro {
        margin-bottom: 40px;
    }

    .community-eyebrow {
        font-size: 13px;
    }

    .community-intro h2 {
        font-size: clamp(29px, 3.8vw, 37px);
    }

    .community-gallery {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, 1fr);

        gap: 16px;
    }

    .community-photo-main,
    .community-photo-secondary {
        aspect-ratio: auto;

        min-height: 280px;
    }

    .community-layout {
        gap: 36px;
    }

    .community-story h3 {
        font-size: 32px;
    }

    .community-story > p {
        font-size: 17px;
    }

    .community-cta {
        width: auto;

        padding-inline: 25px;

        font-size: 16px;
    }

    .community-pillars {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;

        margin-top: 44px;
    }

    /* Final card occupies the full second row */

    .community-card:last-child {
        grid-column: 1 / -1;
    }

    .community-card {
        padding: 28px;
    }

    .community-footer {
        margin-top: 44px;
    }
}

/* =========================================
   DESKTOP — TWO COLUMN COMMUNITY STORY
========================================= */

@media (min-width: 1100px) {

    .community-section {
        padding-block: 76px 82px;
    }

    .community-intro {
        margin-bottom: 50px;
    }

    .community-intro h2 {
        font-size: clamp(32px, 2.25vw, 40px);
    }

    .community-intro h2::after {
        width: 80px;

        margin-top: 24px;
    }

    /* Photographs left — story right */

    .community-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: clamp(36px, 4vw, 72px);

        align-items: center;
    }

    /* Stacked photographic arrangement */

    .community-gallery {
        grid-template-columns: minmax(0, 1fr);

        gap: 16px;
    }

    .community-photo {
        border-radius: 14px;
    }

    .community-photo-main {
        aspect-ratio: 4 / 3;

        min-height: 0;
    }

    .community-photo-secondary {
        aspect-ratio: 16 / 7;

        min-height: 0;
    }

    /* Desktop story typography */

    .community-story h3 {
        margin-bottom: 24px;

        font-size: clamp(29px, 2.2vw, 38px);

        line-height: 1.25;
    }

    .community-story > p {
        margin-bottom: 20px;

        font-size: clamp(16px, 1.05vw, 19px);

        line-height: 1.75;
    }

    .community-quote {
        margin-block: 27px;

        padding: 20px 22px;
    }

    .community-quote p {
        font-size: 18px;
    }

    .community-cta {
        min-height: 57px;

        font-size: 17px;
    }

    /* Three equally sized community cards */

    .community-pillars {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: clamp(22px, 2vw, 34px);

        margin-top: 52px;
    }

    .community-card,
    .community-card:last-child {
        grid-column: auto;

        padding: clamp(25px, 2.2vw, 36px);
    }

    .community-card-icon {
        width: 64px;
        height: 64px;

        margin-bottom: 22px;
    }

    .community-card-icon .community-icon {
        width: 32px;
        height: 32px;
    }

    .community-card h3 {
        font-size: clamp(21px, 1.5vw, 25px);
    }

    .community-card p {
        font-size: clamp(15px, 1vw, 17px);
    }

    .community-footer {
        margin-top: 50px;
    }

    .community-footer p {
        font-size: 18px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .community-photo img,
    .community-card,
    .community-card-icon,
    .community-cta,
    .community-cta .community-icon {
        transition: none;
    }

    .community-photo:hover img,
    .community-card:hover,
    .community-cta:hover .community-icon {
        transform: none;
    }
}


/* =========================================
   PROUDLY TRUSTED
   MOBILE FIRST
========================================= */

.trusted-section {
    --trusted-gap: 28px;
    --trusted-logo-width: 120px;
    --trusted-logo-height: 70px;
    --trusted-duration: 36s;
    --trusted-fade-width: 14px;

    position: relative;

    padding-block: 48px 45px;

    background: var(--white);

    caret-color: transparent;
}

/* =========================================
   SECTION INTRODUCTION
========================================= */

.trusted-intro {
    max-width: 850px;

    margin: 0 auto 30px;

    text-align: center;
}

.trusted-intro h2 {
    margin: 0;

    color: var(--black);

    font-size: clamp(25px, 5.8vw, 38px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

/* Golden orange decorative line */

.trusted-intro h2::after {
    content: '';

    display: block;

    width: 64px;
    height: 2px;

    margin: 22px auto;

    background: var(--orange);
}

/* Supporting description */

.trusted-intro p {
    margin: 0;

    color: var(--charcoal);

    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

/* =========================================
   LOGO MARQUEE VIEWPORT
========================================= */

.trusted-marquee {
    position: relative;

    width: 100%;
    min-width: 0;

    padding-block: 18px;

    overflow: hidden;

    container-type: inline-size;
}

/* =========================================
   LOGO TRACK
========================================= */

.trusted-track {
    display: flex;

    width: 100%;
}

/* =========================================
   LOGO GROUP
========================================= */

.trusted-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: var(--trusted-gap);

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

/* =========================================
   INDIVIDUAL LOGO
========================================= */

.trusted-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 var(--trusted-logo-width);

    width: var(--trusted-logo-width);
    height: var(--trusted-logo-height);

    min-width: 0;
}

/* =========================================
   HIGH-DEFINITION LOGO IMAGES
========================================= */

.trusted-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    opacity: 1;

    transform: scale(1);
    transform-origin: center;

    transition:
        transform 400ms
        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   CONTINUOUS MARQUEE
========================================= */

.trusted-section.is-ready .trusted-track {
    width: max-content;

    animation:
        trusted-scroll
        var(--trusted-duration)
        linear
        infinite;

    animation-play-state: paused;
}

/*
   Each group must occupy at least the viewport
   width to prevent empty space during looping.
*/

.trusted-section.is-ready .trusted-group {
    flex: 0 0 auto;

    flex-wrap: nowrap;

    justify-content: space-around;

    width: max-content;
    min-width: 100cqw;

    padding-inline:
        calc(var(--trusted-gap) / 2);
}

/* Exact movement through one complete group */

@keyframes trusted-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Animate only while the section is visible */

.trusted-section.is-ready.is-in-view
.trusted-track {
    animation-play-state: running;
}

/* Manual pause */

.trusted-section.is-ready.is-paused
.trusted-track {
    animation-play-state: paused;
}

/* =========================================
   SOFT EDGE FADE
========================================= */

.trusted-section.is-ready .trusted-marquee {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--trusted-fade-width),
        #000 calc(100% - var(--trusted-fade-width)),
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--trusted-fade-width),
        #000 calc(100% - var(--trusted-fade-width)),
        transparent 100%
    );
}

/* =========================================
   PAUSE / RESUME CONTROL
========================================= */

.trusted-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 14px;
}

.trusted-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 44px;

    padding: 8px 14px;

    background: transparent;
    color: var(--charcoal);

    border: 0;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;

    cursor: pointer;

    transition: color 220ms ease;
}

.trusted-control-icon {
    display: block;

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Default pause icon */

.trusted-play-icon {
    display: none;
}

/* Change to play icon when paused */

.trusted-section.is-paused
.trusted-pause-icon {
    display: none;
}

.trusted-section.is-paused
.trusted-play-icon {
    display: block;
}

/* Keyboard accessibility */

.trusted-pause:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* =========================================
   DESKTOP HOVER EFFECTS
========================================= */

@media (hover: hover) and (pointer: fine) {

    /* Pause movement while inspecting logos */

    .trusted-section.is-ready
    .trusted-marquee:hover
    .trusted-track {
        animation-play-state: paused;
    }

    /* Gentle individual logo enlargement */

    .trusted-logo:hover img {
        transform: scale(1.08);
    }

    .trusted-pause:hover {
        color: var(--orange);
    }
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 640px) {

    .trusted-section {
        --trusted-gap: 36px;
        --trusted-logo-width: 145px;
        --trusted-logo-height: 85px;
        --trusted-fade-width: 22px;

        padding-block: 55px 50px;
    }

    .trusted-intro {
        margin-bottom: 36px;
    }

    .trusted-intro p {
        font-size: 17px;
    }

    .trusted-marquee {
        padding-block: 24px;
    }
}

/* =========================================
   DESKTOP LAYOUT
========================================= */

@media (min-width: 1100px) {

    .trusted-section {
        --trusted-gap: 46px;
        --trusted-logo-width: 165px;
        --trusted-logo-height: 95px;
        --trusted-fade-width: 35px;

        padding-block: 65px 55px;
    }

    .trusted-intro {
        margin-bottom: 40px;
    }

    .trusted-intro h2 {
        font-size: clamp(32px, 2.25vw, 40px);
    }

    .trusted-intro h2::after {
        width: 80px;

        margin: 24px auto;
    }

    .trusted-intro p {
        font-size: 18px;
    }

    .trusted-marquee {
        padding-block: 28px;
    }

    .trusted-controls {
        margin-top: 18px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .trusted-section.is-ready .trusted-track {
        width: 100%;

        animation: none;
        transform: none;
    }

    .trusted-section.is-ready .trusted-group {
        width: 100%;
        min-width: 0;

        flex-wrap: wrap;

        justify-content: center;

        padding-inline: 0;
    }

    .trusted-section.is-ready
    .trusted-group.is-clone {
        display: none;
    }

    .trusted-section.is-ready .trusted-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .trusted-controls {
        display: none;
    }

    .trusted-logo img,
    .trusted-pause {
        transition: none;
    }

    .trusted-logo:hover img {
        transform: none;
    }
}