/* =====================================================================
   Kiboko Tours & Travel — Homepage
   -----------------------------------------------------------------
   Scoped to .kh-* so nothing here can reach the 542 KB shared style.css
   or the .kt-* group-safari styles. Tokens mirror group-safaris.css so
   the two pages read as one brand.

   The page makes one promise at a time:
     hero (one choice)  ->  group or private  ->  proof  ->  packages.

   Contrast: brand orange #f4732b is ~3.0:1 on white, so it is used for
   large text, borders and as a background behind white text only.
   --kh-orange-ink (#a8460f) is the AA-safe variant for small text.
   ===================================================================== */

.kh {
    --kh-orange:      #f4732b;
    --kh-orange-ink:  #a8460f;
    --kh-orange-soft: rgba(244, 115, 43, .12);
    --kh-navy:        #14293a;
    --kh-sand:        #f8f3ec;
    --kh-surface:     #ffffff;
    --kh-ink:         #14181d;
    --kh-muted:       #5d6570;
    --kh-line:        #e4dcd1;
    --kh-gold:        #c98a24;

    color: var(--kh-ink);
    font-size: 17px;
}

.kh section { scroll-margin-top: 80px; }
.kh-section        { padding: 104px 0; }
.kh-section--sand  { background: var(--kh-sand); }
.kh-section--ink   { background: var(--kh-navy); color: #fff; }
.kh-section--tight { padding: 72px 0; }

.kh-h2 {
    color: var(--kh-ink);
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    font-weight: 750; line-height: 1.12; letter-spacing: -.015em;
    margin: 0; text-wrap: balance;
}
.kh-section--ink .kh-h2 { color: #fff; }
.kh-lede { font-size: 1.12rem; line-height: 1.6; color: var(--kh-muted); max-width: 54ch; margin: 14px 0 0; }
.kh-section--ink .kh-lede { color: #c9d6de; }
.kh-eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--kh-orange-ink); margin: 0 0 12px;
}
.kh-section--ink .kh-eyebrow { color: #f4a373; }
.kh-head { margin-bottom: 52px; }
.kh-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; }
.kh-head--mid { text-align: center; }
.kh-head--mid .kh-lede { margin-left: auto; margin-right: auto; }

/* ── Hero with a Ken Burns carousel ──────────────────────────────── */
.kh-hero { position: relative; background: #0b1620; color: #fff; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.kh-stage { position: absolute; inset: 0; overflow: hidden; }
.kh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; will-change: opacity; }
.kh-slide.is-on { opacity: 1; }
.kh-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.02); transition: transform 9s linear;
    will-change: transform;
}
.kh-slide.is-on img { transform: scale(1.16); }
/* Alternate the drift so consecutive slides do not feel identical */
.kh-slide:nth-child(even) img { transform-origin: 70% 35%; }
.kh-slide:nth-child(odd)  img { transform-origin: 30% 65%; }

.kh-hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 16, 23, .88) 0%, rgba(8, 16, 23, .66) 40%, rgba(8, 16, 23, .22) 76%, rgba(8, 16, 23, .12) 100%),
        linear-gradient(180deg, rgba(8, 16, 23, .44) 0%, rgba(8, 16, 23, .16) 40%, rgba(8, 16, 23, .58) 100%);
}
.kh-hero__inner { position: relative; padding: 92px 0 84px; width: 100%; }
.kh-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 1.3rem + 4vw, 4.6rem);
    font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
    margin: 0; max-width: 15ch;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .42);
}
.kh-hero__sub {
    font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.5;
    color: #eaf0f4; max-width: 50ch; margin: 20px 0 0;
    text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}
.kh-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.kh-btn-main {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--kh-orange); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.12rem; padding: 1rem 2rem; border-radius: 14px;
    box-shadow: 0 12px 34px rgba(244, 115, 43, .38);
    transition: transform .15s ease, box-shadow .15s ease;
}
.kh-btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(244, 115, 43, .46); }
.kh-hero__alt { color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.kh-hero__alt:hover { color: #fff; border-color: #fff; }

.kh-hero__trust {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
    padding: 0; margin: 34px 0 0; font-size: .93rem; color: #d7e2e9;
}
.kh-hero__trust li { display: flex; align-items: center; gap: 9px; }
.kh-hero__trust i { color: #7fd6b0; }

.kh-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 9px; z-index: 2; }
.kh-dots button {
    width: 30px; height: 4px; border: 0; border-radius: 99px; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .38); transition: background .2s ease;
}
.kh-dots button[aria-current="true"] { background: var(--kh-orange); }

/* ── Choose: group or private ────────────────────────────────────── */
.kh-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 991.98px) { .kh-choose { grid-template-columns: 1fr; } }
.kh-pick {
    display: flex; flex-direction: column;
    background: var(--kh-surface); border-radius: 20px; overflow: hidden;
    box-shadow: 0 2px 4px rgba(20, 24, 29, .05), 0 14px 34px rgba(20, 24, 29, .09);
    transition: transform .18s ease, box-shadow .18s ease;
}
.kh-pick:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(20, 24, 29, .16); }
.kh-pick__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--kh-sand); }
.kh-pick__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.kh-pick:hover .kh-pick__media img { transform: scale(1.05); }
.kh-pick__tag {
    position: absolute; left: 18px; top: 18px;
    background: var(--kh-orange); color: #fff;
    font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 999px;
}
.kh-pick__body { padding: 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.kh-pick h3 { color: var(--kh-ink); font-size: 1.65rem; font-weight: 800; margin: 0; letter-spacing: -.015em; }
.kh-pick__for { font-size: .95rem; color: var(--kh-orange-ink); font-weight: 700; margin: -6px 0 0; }
.kh-pick p { font-size: 1.04rem; line-height: 1.55; color: var(--kh-muted); margin: 0; }
.kh-pick__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.kh-pick__facts li { font-size: .98rem; line-height: 1.4; display: flex; gap: 11px; align-items: flex-start; color: var(--kh-ink); }
.kh-pick__facts i { color: var(--kh-orange-ink); margin-top: 4px; flex: none; }
.kh-pick__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--kh-line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.kh-pick__price { margin: 0; font-size: .85rem; color: var(--kh-muted); }
.kh-pick__price strong { display: block; font-size: 1.5rem; color: var(--kh-ink); font-weight: 800; }
.kh-pick .btn { font-weight: 700; padding: .78rem 1.4rem; border-radius: 12px; }

/* ── Accreditation ───────────────────────────────────────────────── */
.kh-accred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991.98px) { .kh-accred { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .kh-accred { grid-template-columns: 1fr; } }
.kh-acc {
    display: flex; gap: 18px; align-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px; padding: 20px;
}
.kh-acc__logo {
    width: 74px; height: 58px; flex: none; border-radius: 10px; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 7px;
}
.kh-acc__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kh-acc h3 { color: #fff; font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.kh-acc p { color: #b9c8d2; font-size: .9rem; line-height: 1.45; margin: 0; }

/* ── Reviews ─────────────────────────────────────────────────────── */
.kh-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991.98px) { .kh-quotes { grid-template-columns: 1fr; } }
.kh-quote { background: var(--kh-surface); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 26px rgba(20, 24, 29, .08); }
.kh-quote__stars { color: var(--kh-gold); font-size: 1.05rem; letter-spacing: 3px; }
.kh-quote__text { font-size: 1.06rem; line-height: 1.6; margin: 0; }
.kh-quote__who { font-size: .9rem; color: var(--kh-muted); margin: auto 0 0; }
.kh-quote__who strong { color: var(--kh-ink); display: block; }

.kh-review-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.kh-review-link {
    display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: 16px;
    background: var(--kh-surface); border: 1px solid var(--kh-line);
    text-decoration: none; color: var(--kh-ink); font-weight: 700;
    transition: border-color .15s ease, transform .15s ease;
}
.kh-review-link:hover { border-color: var(--kh-orange); transform: translateY(-2px); color: var(--kh-ink); }
.kh-review-link i { font-size: 1.6rem; color: var(--kh-orange-ink); }
.kh-review-link small { display: block; font-size: .82rem; font-weight: 400; color: var(--kh-muted); }

/* ── Safari cards ────────────────────────────────────────────────── */
.kh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1199.98px) { .kh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px)  { .kh-grid { grid-template-columns: repeat(2, 1fr); } }
.kh-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--kh-surface); border-radius: 18px; overflow: hidden;
    box-shadow: 0 2px 4px rgba(20, 24, 29, .05), 0 10px 26px rgba(20, 24, 29, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.kh-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 24, 29, .15); }
.kh-card__media { position: relative; aspect-ratio: 5 / 4; background: var(--kh-sand); overflow: hidden; }
.kh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.kh-card:hover .kh-card__media img { transform: scale(1.05); }
.kh-card__days {
    position: absolute; left: 14px; top: 14px;
    background: rgba(14, 24, 33, .86); color: #fff;
    font-size: .78rem; font-weight: 700; padding: 6px 11px; border-radius: 999px;
}
.kh-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kh-card__title { font-size: 1.06rem; font-weight: 700; line-height: 1.35; margin: 0; }
.kh-card__title a { color: var(--kh-ink); text-decoration: none; }
.kh-card:hover .kh-card__title a { color: var(--kh-orange-ink); }
.kh-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--kh-line); }
.kh-card__price { margin: 12px 0 0; font-size: .8rem; color: var(--kh-muted); line-height: 1.25; }
.kh-card__price strong { display: block; font-size: 1.3rem; color: var(--kh-ink); font-weight: 800; }
.kh-card__go { margin: 12px 0 2px; font-size: .92rem; font-weight: 700; color: var(--kh-orange-ink); text-decoration: none; white-space: nowrap; }
.kh-card__go i { transition: transform .16s ease; }
.kh-card:hover .kh-card__go i { transform: translateX(3px); }

/* ── Full-bleed band ─────────────────────────────────────────────── */
.kh-band { position: relative; min-height: 400px; display: flex; align-items: center; overflow: hidden; background: #0b1620; }
.kh-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kh-band__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 16, 23, .86) 0%, rgba(8, 16, 23, .48) 58%, rgba(8, 16, 23, .24) 100%); }
.kh-band__text { position: relative; padding: 76px 0; color: #fff; }
.kh-band__text h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); font-weight: 800; line-height: 1.12; margin: 0; max-width: 18ch; letter-spacing: -.02em; }
.kh-band__text p { font-size: 1.15rem; line-height: 1.55; color: #dfe8ee; margin: 16px 0 0; max-width: 42ch; }

/* ── Reasons & steps ─────────────────────────────────────────────── */
.kh-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 991.98px) { .kh-reasons { grid-template-columns: repeat(2, 1fr); gap: 34px; } }
@media (max-width: 575.98px) { .kh-reasons { grid-template-columns: 1fr; } }
.kh-reason__ico {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--kh-orange-soft); color: var(--kh-orange-ink);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px;
}
.kh-reason h3 { color: var(--kh-ink); font-size: 1.18rem; font-weight: 700; margin: 0 0 9px; line-height: 1.3; }
.kh-reason p  { font-size: 1rem; line-height: 1.55; color: var(--kh-muted); margin: 0; }

.kh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: kh; }
@media (max-width: 767.98px) { .kh-steps { grid-template-columns: 1fr; gap: 28px; } }
.kh-step { position: relative; padding-left: 62px; }
.kh-step::before {
    counter-increment: kh; content: counter(kh);
    position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
    background: var(--kh-orange); color: #fff; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.kh-step h3 { color: var(--kh-ink); font-size: 1.12rem; font-weight: 700; margin: 7px 0 7px; }
.kh-step p  { font-size: 1rem; line-height: 1.55; color: var(--kh-muted); margin: 0; }

/* ── Destinations ────────────────────────────────────────────────── */
.kh-dests { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1199.98px) { .kh-dests { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px)  { .kh-dests { grid-template-columns: repeat(2, 1fr); } }
.kh-dest { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; }
.kh-dest img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.kh-dest:hover img { transform: scale(1.07); }
.kh-dest__cap {
    position: absolute; inset: auto 0 0 0; padding: 34px 14px 16px;
    background: linear-gradient(180deg, transparent, rgba(8, 16, 23, .9));
    color: #fff; font-size: .98rem; font-weight: 700; line-height: 1.25;
}

/* ── Video ───────────────────────────────────────────────────────── */
.kh-video { position: relative; border-radius: 20px; overflow: hidden; background: var(--kh-navy); aspect-ratio: 16 / 9; }
.kh-video img, .kh-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-video__play {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: rgba(8, 16, 23, .3); border: 0; cursor: pointer; color: #fff;
}
.kh-video__play:hover { background: rgba(8, 16, 23, .42); }
.kh-video__disc {
    width: 84px; height: 84px; border-radius: 50%; background: var(--kh-orange); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}
.kh-video__label { font-weight: 700; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }

/* ── Closing CTA ─────────────────────────────────────────────────── */
.kh-cta { position: relative; border-radius: 24px; overflow: hidden; background: var(--kh-navy); }
.kh-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kh-cta__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 28, 40, .94) 0%, rgba(12, 28, 40, .74) 100%); }
.kh-cta__in { position: relative; padding: 64px; color: #fff; }
.kh-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.kh-cta p { color: #d9e3ea; margin: 0; line-height: 1.6; max-width: 46ch; font-size: 1.1rem; }
.kh-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.kh-cta__btns .btn { font-weight: 700; padding: .86rem 1.6rem; border-radius: 12px; font-size: 1.02rem; }
.kh-btn-wa { background: #25d366; border-color: #25d366; color: #06351d; }
.kh-btn-wa:hover { background: #1fb959; border-color: #1fb959; color: #06351d; }

/* ── Phones ──────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .kh { font-size: 16px; }
    .kh-section { padding: 56px 0; }
    .kh-section--tight { padding: 44px 0; }
    .kh-head { margin-bottom: 30px; }

    .kh-hero { min-height: 520px; }
    .kh-hero__inner { padding: 54px 0 56px; }
    .kh-hero h1 { font-size: 2.3rem; max-width: 100%; }
    .kh-hero__sub { font-size: 1.04rem; margin-top: 14px; }
    .kh-hero__cta { margin-top: 26px; gap: 14px; }
    .kh-btn-main { width: 100%; justify-content: center; font-size: 1.05rem; }
    .kh-hero__trust { margin-top: 24px; font-size: .86rem; gap: 8px 16px; }

    .kh-pick__body { padding: 22px; }
    .kh-pick h3 { font-size: 1.4rem; }
    .kh-pick__foot { padding-top: 14px; }
    .kh-pick .btn { width: 100%; }

    .kh-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .kh-card__body { padding: 14px 14px 16px; }
    .kh-card__title { font-size: .95rem; }
    .kh-card__price strong { font-size: 1.08rem; }
    .kh-card__foot { flex-direction: column; align-items: stretch; gap: 0; }
    .kh-card__go { align-self: flex-start; margin-top: 6px; }

    .kh-band { min-height: 320px; }
    .kh-band__text { padding: 52px 0; }
    .kh-acc { padding: 16px; gap: 14px; }
    .kh-acc__logo { width: 60px; height: 48px; }
    .kh-cta__in { padding: 34px 26px; }
}
@media (max-width: 359.98px) { .kh-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    .kh-slide { transition: opacity .01s; }
    .kh-slide img, .kh-slide.is-on img { transform: none; transition: none; }
    .kh-card, .kh-pick, .kh-dest img, .kh-card__media img, .kh-pick__media img { transition: none; }
    .kh-card:hover, .kh-pick:hover, .kh-btn-main:hover { transform: none; }
    .kh-dest:hover img, .kh-card:hover .kh-card__media img, .kh-pick:hover .kh-pick__media img { transform: none; }
}
