/* ==========================================================================
   Responsive breakpoints
   Desktop ≥1440 · Laptop 1024–1366 · Tablet 768–1023 · Mobile 320–767
   ========================================================================== */

/* Large desktop --------------------------------------------------------- */
@media (min-width: 1440px) {
    :root { --container: 1280px; }
}

/* Laptop ----------------------------------------------------------------- */
@media (max-width: 1280px) {
    .main-nav { gap: 16px; }
    .main-nav__link { padding: 10px 9px; font-size: .9rem; }
    .main-nav__link::after { left: 9px; right: 9px; }
    .package-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
}

/* Collapse navigation ---------------------------------------------------- */
@media (max-width: 1100px) {
    .nav-toggle { display: block; }

    /* backdrop-filter makes the header the containing block for the fixed
       drawer below, collapsing it to the header's height — disable it here. */
    .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(27, 47, 122, .97); }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        bottom: 0;
        z-index: 99;
        width: min(360px, 88vw);
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 28px 24px 32px;
        background: var(--navy);
        border-left: 1px solid rgba(201, 162, 75, .35);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav__link {
        padding: 15px 4px;
        font-size: 1.02rem;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .main-nav__link::after { left: 0; right: auto; width: 3px; top: 14px; bottom: 14px; height: auto; transform: scaleY(0); }
    .main-nav__link:hover::after { transform: scaleY(.5); }
    .main-nav__link.is-active::after { transform: scaleY(1); }
    .main-nav__link.is-active { padding-left: 14px; }
    .main-nav__cta { width: 100%; padding: 15px 22px; }

    body.nav-open { overflow: hidden; }
}

/* Tablet ----------------------------------------------------------------- */
@media (max-width: 1023px) {
    :root { --section-y: 88px; --gutter: 28px; }

    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 56px; }


    .about-media { max-width: 560px; margin: 0 auto; }

    .package-grid--3 { grid-template-columns: repeat(2, 1fr); }

    .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
    .timeline::before { display: none; }

    .destinations { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
    .destinations .destination-card:first-child { grid-column: span 2; grid-row: span 1; }
    .destination-card--feature h3 { font-size: 1.6rem; }

    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .faq-aside { position: static; }

    .pkg-layout { grid-template-columns: 1fr; }
    .price-card { position: static; }
    .pkg-gallery { grid-template-columns: repeat(2, 1fr); }

    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-layout { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    .enquiry-strip { flex-direction: column; align-items: flex-start; padding: 36px; }
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 767px) {
    :root {
        --section-y: 72px;
        --gutter: 20px;
        --header-h: 72px;
    }
    body { font-size: 15.5px; }

    .logo__name { font-size: 1.12rem; }
    .logo__mark img { height: 66px; }
    .logo__tag { letter-spacing: .24em; }

    .section-heading { margin-bottom: 40px; }

    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

    /* Hero */
    .hero { min-height: auto; max-height: none; }
    .hero__content { padding: 72px 0 128px; }
    .hero__text { font-size: 1.02rem; }
    .hero .btn-group .btn { width: 100%; }
    .scroll-indicator { display: none; }

    /* About */
    .about-media { padding: 0 24px 32px 0; }
    .about-media__frame { top: -10px; left: -10px; width: 80px; height: 80px; }
    .about-media--poster { padding: 0; }
    .split .btn-group .btn { width: 100%; }

    /* Cards */
    .package-grid,
    .package-grid--3 { grid-template-columns: 1fr; }

    /* Vertical timeline */
    .timeline { grid-template-columns: 1fr; row-gap: 0; }
    .timeline::before {
        display: block;
        top: 36px;
        bottom: 36px;
        left: 35px;
        right: auto;
        width: 1px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px);
    }
    .timeline__step {
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 20px;
        text-align: left;
        padding-bottom: 28px;
        align-items: start;
    }
    .timeline__marker { margin: 0; }
    .timeline__content { padding-top: 10px; }

    /* Destinations */
    .destinations { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .destinations .destination-card:first-child { grid-column: auto; }
    .destination-card p { max-height: 120px; opacity: 1; margin-top: 6px; }

    /* Gallery */
    .gallery { columns: 2 140px; column-gap: 10px; }
    .gallery__item { margin-bottom: 10px; border-radius: var(--radius-sm); }
    .gallery__caption { display: none; }

    /* Page hero */
    .page-hero { padding: 72px 0 64px; }
    .page-hero__text { font-size: 1rem; }

    /* Filter: horizontal scroll chips */
    .filter-bar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 calc(var(--gutter) * -1) 36px;
        padding: 4px var(--gutter) 8px;
        scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-btn { flex: none; }

    .enquiry-strip { padding: 28px 24px; margin-top: 56px; }
    .enquiry-strip .btn-group, .enquiry-strip .btn { width: 100%; }

    /* Package detail */
    .pkg-hero { min-height: 460px; }
    .pkg-hero__inner { padding: 96px 0 40px; }
    .pkg-meta__item { font-size: .82rem; padding: 7px 12px; }
    .highlight-grid, .hotel-grid, .incl-grid { grid-template-columns: 1fr; }
    .pkg-block__title { font-size: 1.4rem; }
    .pkg-main > * + * { margin-top: 44px; }

    /* Services / about */
    .service-grid { grid-template-columns: 1fr; }
    .vm-grid { grid-template-columns: 1fr; }
    .vm-card { padding: 32px 26px; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .team-card { padding: 26px 14px 22px; }
    .team-card .avatar { width: 72px; height: 72px; font-size: 1.25rem; }
    .stat-row { grid-template-columns: 1fr; }

    /* Contact */
    .contact-cards { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions .btn { width: 100%; }
    .map-embed iframe { height: 320px; }

    /* CTA */
    .cta-banner { padding: 88px 0; }
    .cta-banner .btn { width: 100%; }

    /* Footer */
    .site-footer { padding-top: 64px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Floating buttons */
    .wa-float { right: 16px; bottom: 16px; height: 54px; width: 54px; padding: 0; justify-content: center; }
    .wa-float__label { display: none; }
    .back-to-top { right: 21px; bottom: 82px; }

    .lightbox { padding: 64px 12px 96px; }
    .lightbox__nav { top: auto; bottom: 24px; margin-top: 0; }
    .lightbox__nav--prev { left: calc(50% - 60px); }
    .lightbox__nav--next { right: calc(50% - 60px); }
}

/* Small mobile ----------------------------------------------------------- */
@media (max-width: 380px) {
    .logo__tag { display: none; }
    .package-card__footer { flex-direction: column; align-items: stretch; }
    .package-card__actions .btn--navy { flex: 1; }
    .team-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RSA Travel content additions
   ========================================================================== */

/* Hero rotating quote */
.hero__quote {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: -14px 0 34px;
    padding-left: 16px;
    border-left: 2px solid var(--gold);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-light);
    min-height: 3.2em;
}
.hero__quote i { font-size: .8rem; margin-top: 6px; opacity: .8; }
.hero__quote span { transition: opacity .5s var(--ease); }
.hero__quote.is-fading span { opacity: 0; }

/* Package type cards (homepage) */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.type-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.type-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ivory-deep); }
.type-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.type-card:hover .type-card__media img { transform: scale(1.04); }
.type-card__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 28px;
}
.type-card__title { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy); margin-bottom: 6px; }
.type-card__text { display: block; font-size: .94rem; color: var(--grey); }
.type-card__price { flex: none; text-align: right; }
.type-card__price small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.type-card__price strong { font-family: var(--font-heading); font-size: 1.7rem; color: var(--royal); white-space: nowrap; }

/* Logo inset on about media */
.about-media__inset--logo { background: var(--navy); display: grid; place-items: center; padding: 18px; }
.about-media__inset--logo img { object-fit: contain; }

.lead--light { color: rgba(255, 255, 255, .9); }

/* Video */
.video-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(230, 200, 120, .4);
    box-shadow: var(--shadow-lg);
    background: #000;
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* 5-item grids */
.grid--why, .grid--5 { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.grid--why > * { flex: 0 1 calc((100% - 56px) / 3); }
.grid--5 > * { flex: 0 1 calc((100% - 112px) / 5); min-width: 180px; }

/* Testimonials with photo */
.testimonial-card--photo { padding-top: 0; overflow: hidden; }
.testimonial-card__photo {
    margin: 0 -32px 22px;
    overflow: hidden;
    background: var(--ivory-deep);
}
/* Show the whole photo, uncropped */
.testimonial-card__photo img { display: block; width: 100%; height: auto; }

/* Licence badges */
.licence-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 30px; }
.licence-badges li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--ivory);
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--navy);
    font-size: .95rem;
    line-height: 1.3;
}
.licence-badges li i { color: var(--gold-dark); }
.licence-badges small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.section--cream .licence-badges li { background: var(--white); }

/* Airline logos */
.airline-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 36px;
    padding: 22px 26px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line-soft);
}
.airline-strip img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

.section--tight { padding-top: 80px; padding-bottom: 80px; }

/* Package detail additions */
.pkg-route { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); margin: 0; }
.pkg-route i { color: var(--gold-dark); margin-top: 5px; }

.tier-grid { display: grid; gap: 18px; }
.tier-card { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.tier-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background: var(--navy);
    color: rgba(255, 255, 255, .8);
}
.tier-card__name { display: block; font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); }
.tier-card__meta { font-size: .85rem; }
.tier-card__price { text-align: right; line-height: 1.2; }
.tier-card__price s { display: block; font-size: .85rem; opacity: .7; }
.tier-card__price strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--gold-light); }
.tier-card__hotels { display: grid; gap: 12px; padding: 18px 22px 20px; }
.tier-card__hotels li { display: flex; gap: 12px; font-size: .95rem; }
.tier-card__hotels i { color: var(--gold-dark); margin-top: 5px; }
.tier-card__hotels strong { display: block; color: var(--navy); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.table-note { font-size: .85rem; color: var(--grey); margin: 12px 0 0; }

.hotel-card--text { border-left: 3px solid var(--gold); }
.incl-grid--single { grid-template-columns: 1fr; }
.incl-card--kit h3 i, .incl-card--kit .incl-list i { color: var(--gold-dark); }
.incl-card h3 i { color: var(--gold-dark); }
.incl-card .incl-list .fa-diamond { color: var(--gold-dark); font-size: .6rem; margin-top: 8px; }

.date-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.date-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 500;
    color: var(--black);
    font-size: .94rem;
}
.date-list i { color: var(--gold-dark); }

.info-box__title { font-size: 1.05rem; margin: 0 0 12px; }
.info-box ul + .info-box__title { margin-top: 24px; }

.pkg-gallery .gallery__item--poster { grid-row: span 2; aspect-ratio: auto; }
.pkg-gallery .gallery__item--poster img { object-fit: cover; object-position: top; }

.price-card__was { display: block; opacity: .65; font-size: .95rem; }

/* Services */
.service-grid--2 { grid-template-columns: repeat(2, 1fr); }
.academy-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.academy-media img { width: 100%; height: auto; display: block; }

/* About */
.split--top { align-items: start; }
.history-col { padding-top: 12px; }
.accreditation { max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--white); }
.accreditation img { width: 100%; height: auto; display: block; }

/* Contact */
.hours-list { display: grid; gap: 4px; margin: 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hours-list dt { font-weight: 500; }
.hours-list dd { margin: 0; color: var(--navy); font-weight: 600; }

/* Footer */
.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 0 0 40px;
    margin-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-cta p { margin: 0; font-family: var(--font-heading); font-size: 1.4rem; color: var(--white); }
.footer-licences { display: grid; gap: 6px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.footer-licences strong { color: var(--gold-light); font-weight: 600; }
.footer-text { max-width: 380px; }

@media (max-width: 1100px) {
    .grid--5 > * { flex-basis: calc((100% - 56px) / 3); }
}
@media (max-width: 1023px) {
    .grid--why > * { flex-basis: calc((100% - 28px) / 2); }
    .licence-badges { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .type-grid, .service-grid--2, .date-list { grid-template-columns: 1fr; }
    .type-card__body { flex-direction: column; align-items: flex-start; padding: 20px 22px 24px; }
    .type-card__price { text-align: left; }
    .grid--why > *, .grid--5 > * { flex-basis: 100%; }
    .tier-card__head { flex-direction: column; align-items: flex-start; }
    .tier-card__price { text-align: left; }
    .airline-strip { gap: 14px 24px; padding: 18px; }
    .airline-strip img { height: 30px; }
    .footer-cta p { font-size: 1.15rem; }
    .section--tight { padding-top: 64px; padding-bottom: 64px; }
}
