/* Readability corrections, loaded last on every page.
   Raises text contrast to at least 4.5:1 on the cream backgrounds, keeps small labels at 11px or more,
   and keeps phone headings from filling the screen. */

/* Body and supporting text that was too light on cream (was 3.0–4.4:1, now about 5.9:1). */
.intro-main p,.featured-copy p,.journey-head p,.recognition-heading>p,.recognition-detail,.recognition-rating small,
.safari-film-figure figcaption,.testimonial-card figcaption span,.testimonial-card figcaption a,.intro-location,
.catalog-intro p,.empty-catalog p,.itinerary-unavailable p,.tour-inclusion-grid article>p,.tour-section-heading>p,.tour-section-intro,
.itinerary-list p,.tour-card-content>p,.tour-request-card>p,.tour-card-bottom small,.tour-gallery-note,.tour-reviews-note,
.tour-facts small,.booking-response-time,.related-tour-copy small,.tour-review-grid figcaption span,.rich-copy,
.contact-aside p,.contact-aside-note,.form-submit>span,.partner-reasons li,.guide-list-heading>span,.brand-name small{color:#5b6156}

/* Small capitalised labels: darker olive, never smaller than 11px. */
.eyebrow:where(:not(.light)){color:#56623f}
.eyebrow{font-size:11px}
.testimonial-source-mark{color:#56623f}
.partner-strip-heading .eyebrow,.tour-review-source{color:#8c5a2b}
.tour-facts small,.contact-aside-note{font-size:11px}
.form-submit>span{font-size:11px}

/* Remaining small text: footer, quick-link bar and review labels. */
.intro-main>.eyebrow{font-size:11px}
.testimonial-source-mark{font-size:11px}
.footer-bottom{font-size:12px;color:#c4c8bd}
.mobile-bottom-link{font-size:11px}

/* Rust and gold accents used as text on cream. */
.hand-note,.text-link span{color:#9a4e31}
.day-number,.intro-location-mark,.mobile-bottom-submenu a span,.breadcrumb span{color:#9a4e31}
.recognition-stars,.testimonial-stars{color:#a8651f}
.nav-submenu a:hover,.nav-submenu a:focus-visible,.mobile-submenu a:hover,.mobile-submenu a:focus-visible{color:#9a4e31}
.content-page-aside h2 em,.guide-list-heading h2 em,.tour-card h2 a:hover{color:#56623f}

/* Pale gold headings that sit on light sections (were 1.5:1 and nearly invisible). */
.tour-highlights h2 em,.tour-itinerary h2 em{color:#9a4e31}

/* Green bands: a deeper green so cream and gold text stay readable. */
.quote-band,.story-commitment,.recognition-local{background:#4f5a48}
.quote-band blockquote em,.quote-ornament{color:#e8c9a3}
.quote-band .eyebrow{color:#e6e1d4;font-size:11px}
.recognition-local .recognition-platform,.recognition-local .recognition-link{color:#f1d5b1}

/* Tour pages: deeper green bands, readable gold numbers, and small text raised to 11–12px. */
.tour-map,.tour-booking{background:#4f5a48}
.tour-map-copy li span,.tour-map-copy h2 em{color:#f0d6b4}
.catalog-cta{background-color:#4f5a48}
.form-grid label>span,.tour-booking-fields label>span{color:#9a4e31}
.tour-card-meta{color:#9a4e31;font-size:11px}
.category-filters a,.tour-card-image>span,.related-tour-image>span,.tour-card-bottom small,.breadcrumb,.tour-gallery-item figcaption,
.tour-inclusion-grid .eyebrow,.tour-review-source,.related-tour-copy small,.tour-booking-fields small{font-size:11px}
.tour-gallery-note,.tour-reviews-note,.tour-review-grid figcaption span,.tour-review-grid figcaption a,.tour-booking-fields label,.booking-response-time{font-size:12px}

/* Formatted text from the admin editor (tour descriptions and guide pages): every editor format has a matching style. */
.rich-copy h2,.content-page-body .rich-copy h2{font:500 clamp(28px,3vw,36px)/1.2 var(--serif);letter-spacing:-.01em;color:#25392e;margin:1.8em 0 .6em}
.rich-copy h3,.content-page-body .rich-copy h3{font:500 clamp(23px,2.3vw,27px)/1.25 var(--serif);color:#25392e;margin:1.6em 0 .5em}
.rich-copy h4{font:600 19px/1.35 var(--sans);color:#25392e;margin:1.4em 0 .4em}
.rich-copy h1{font:500 clamp(30px,3.4vw,40px)/1.15 var(--serif);color:#25392e;margin:1.8em 0 .6em}
.rich-copy>:is(h1,h2,h3,h4):first-child{margin-top:0}
.rich-copy :is(h1,h2,h3,h4) :is(sub,sup){font-size:inherit;vertical-align:baseline;line-height:inherit}
.rich-copy p:empty{min-height:1.75em}
.rich-copy :is(ul,ol){padding-left:1.4em;margin:0 0 1.5em}
.rich-copy li{margin:.35em 0}
.rich-copy li>p,.content-page-body .rich-copy li>p{margin:0}
.rich-copy blockquote{margin:1.6em 0;padding:.2em 0 .2em 1.2em;border-left:3px solid #c79a77;font:italic 400 1.15em/1.6 var(--serif);color:#3d4a40}
.rich-copy blockquote p:last-child,.content-page-body .rich-copy blockquote p:last-child{margin-bottom:0}
.rich-copy pre{margin:0 0 1.5em;padding:14px 16px;overflow-x:auto;background:#ece9df;border-radius:6px;font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre}
.rich-copy code{padding:.1em .35em;background:#ece9df;border-radius:4px;font:.9em ui-monospace,SFMono-Regular,Menlo,monospace}
.rich-copy pre code{padding:0;background:none}
.rich-copy hr{margin:2.2em 0;border:0;border-top:1px solid #d8d4c8}
.rich-copy mark{padding:0 .15em;background:#f3dfb7;color:inherit}
.rich-copy .color{color:var(--color)}
.rich-copy .lead{font-size:1.2em;line-height:1.65;color:#3d4a40}
.rich-copy small{font-size:.85em}
.rich-copy img{max-width:100%;height:auto;border-radius:6px}
.rich-copy table{width:100%;margin:0 0 1.6em;border-collapse:collapse;font-size:.95em}
.rich-copy table p,.content-page-body .rich-copy table p{margin:0}
.rich-copy table th{text-align:left;font-weight:600;color:#25392e}
.rich-copy [style*="text-align: justify"]{text-align:left!important}

/* Inside a tour description, headings stay a step below the page's own section titles. */
.tour-overview-copy .rich-copy h1,.tour-overview-copy .rich-copy h2{font-size:clamp(24px,2.4vw,28px)}
.tour-overview-copy .rich-copy h3{font-size:clamp(20px,2vw,23px)}

/* Tour descriptions often open with a heading: that first one reads as an introduction line, not as a section title. */
.tour-overview-copy .rich-copy>:is(h1,h2,h3,h4):first-child{font:500 clamp(21px,2.4vw,26px)/1.4 var(--serif);letter-spacing:0;color:#25392e;margin:0 0 18px}
.tour-overview-copy .rich-copy>:is(h1,h2,h3,h4):first-child strong{font-weight:500}

/* Guide pages: the hero keeps the normal page margins, guide photos carry only the arrow, and tables get row lines. */
.content-page-hero-inner.section-wrap{width:min(1180px,88%)}
.guide-card-image{justify-content:flex-end}
.rich-copy table td,.rich-copy table th{border-bottom:1px solid #e2dfd5;padding:10px 8px 10px 0;vertical-align:top}

/* Cloudflare security check above the send buttons. */
.form-turnstile{margin:4px 0 18px;min-height:65px}
.form-turnstile small{display:block;margin-top:6px;color:#a3361f;font-size:12px}

.tour-pagination-status{margin:36px 0 12px;font-size:13px;color:#5b6156;text-align:center}

/* Homepage slides after the first use h2 headings (one h1 per page), styled the same as the first slide. */
.hero h2.hero-heading{font:500 clamp(62px,7vw,100px)/.99 var(--serif);letter-spacing:-.04em;margin:24px 0 20px}
.hero .hero-heading em{font-weight:500;color:#dbb691}

/* Hero labels on photos: slightly larger, with a soft shadow behind the text. */
.hero-caption{font-size:11px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.hero-copy,.hero .eyebrow{text-shadow:0 1px 10px rgba(0,0,0,.35)}

@media(max-width:760px){
    /* Headings sized for the phone screen instead of a desktop poster. */
    .hero h1,.hero .hero-heading{font-size:clamp(42px,12vw,52px);line-height:1.02}
    .catalog-hero h1,.tour-detail-heading h1,.contact-heading h1{font-size:clamp(36px,10.5vw,44px);line-height:1.08}
    .intro-main h2,.featured-copy h2,.contact-cta h2{font-size:clamp(32px,9.5vw,40px);line-height:1.1}
    .contact-heading:after{font-size:96px}
    .quote-band blockquote{font-size:28px}

    /* The decorative "Local heart. Wild soul." badge crowds the phone hero, so it is hidden there. */
    .hero-seal{display:none}
    .hero-caption{font-size:11px}
    .hero-slide-caption{display:none}
    /* Slide arrows sit on the left so the "Ask Rafiki" chat button never covers the next arrow. */
    .hero .hero-controls{justify-content:flex-start}
    .category-filters a{font-size:11px}

    /* Wide tables from the editor scroll sideways instead of squeezing the page. */
    .rich-copy table{display:block;overflow-x:auto}
    .rich-copy table>tbody{display:table;width:100%}

    /* The header arrow button is hidden on phones; the bottom bar already has Menu and WhatsApp. */
    .header-cta{display:none}

    /* "Choose your kind of wild": one card per row so titles, labels and arrows never overlap. */
    .journey-grid{grid-template-columns:1fr;grid-template-rows:280px;grid-auto-rows:230px;gap:12px}
    .journey-card.tall{grid-row:auto;grid-column:auto}
    .journey-card:after{background:linear-gradient(0deg,rgba(17,26,20,.85),rgba(17,26,20,.35) 55%,rgba(17,26,20,.05) 85%)}
    .card-copy small{text-shadow:0 1px 6px rgba(0,0,0,.5)}
    .card-copy{left:18px;right:18px;bottom:18px}
    .card-copy h3,.tall .card-copy h3{font-size:30px;line-height:1.08;padding-right:44px}
    .card-copy small{display:block;font-size:11px}

    /* Headings keep their natural line breaks on narrow screens instead of leaving one word on its own line. */
    .safari-film-copy h2 br{display:none}
    .safari-film-copy h2{text-wrap:balance}

    /* Tours page: category buttons on one swipeable row, shorter cards, clearer paging. */
    .category-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:14px;margin-bottom:22px}
    .category-filters::-webkit-scrollbar{display:none}
    .category-filters a{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:10px 13px}
    .tour-card-image{height:200px}
    .tour-card-content>p{min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
    .tour-pagination nav>div:first-child>span{opacity:.35}

    /* Contact page: phone, WhatsApp and email as comfortable tap targets. */
    .contact-aside>a{display:flex;align-items:center;min-height:44px;margin:0;font-size:15px}
    .contact-aside>a.contact-whatsapp{color:#1f7a4d}

    /* Contact and partner forms: Cloudflare's security check needs 300px, so the form card uses the full screen width
       less an even 12px edge instead of pushing out past the right margin. */
    .contact-layout,.tour-booking-layout{grid-template-columns:minmax(0,1fr)}
    .contact-form-card,.tour-booking-card{margin-inline:calc(12px - 7vw);padding:29px 16px}

    /* Footer: copyright and "Made with care" on their own lines instead of a ragged right column. */
    .footer-bottom{grid-template-columns:1fr;gap:8px}
    .footer-bottom span:nth-child(2){text-align:left}

    /* Partner form: a larger consent tick box and readable consent text. */
    .form-grid .partner-consent{font-size:13px}
    .form-grid .partner-consent input{width:22px;height:22px}

    /* Travel guides: phone-sized headings and guide descriptions cut to four lines. */
    .content-page-hero-inner.section-wrap{width:86%}
    .content-page-hero h1,.guide-index-hero h1{font-size:clamp(36px,10.5vw,44px);line-height:1.08}
    /* Guide pages: an even, darker shade behind the words (they span the whole photo on a phone) and the summary cut to four lines. */
    .content-page-hero{background:linear-gradient(0deg,rgba(17,34,26,.88),rgba(17,34,26,.6)),var(--page-image,url('../images/home/safari.webp')) center 48%/cover,#344b3f}
    .content-page-hero p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

    /* Headings share their words evenly between lines, so no single word is left alone on the last line. */
    h1,h2,h3{text-wrap:balance}
    .guide-card-image{height:190px}
    .guide-card-copy p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

    /* Underlined text links ("See Kilimanjaro climbs ↗"): a larger invisible tap area without moving the layout. */
    .text-link{position:relative}
    .text-link:after{content:"";position:absolute;inset:-12px -6px -4px}

    /* Partner logos in equal boxes. */
    .partner-logos{align-items:stretch}
    .partner-logos li:nth-child(3) img{height:44px}
}

/* Touch screens: iPhones zoom the whole page into any form field under 16px, so fields use 16px there. */
@media(hover:none) and (pointer:coarse){
    input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
}

/* Larger text across the site: reading text at 17px (16px on phones), supporting text at 14px,
   and small capitalised labels at 12px. Headings keep their sizes. */
.hero-copy,.intro-main p,.featured-copy p,.safari-film-copy p,.journey-head p,.recognition-heading>p,
.catalog-hero-inner p,.catalog-intro p,.empty-catalog p,.tour-card-content>p,.tour-detail-heading>p,.tour-overview-copy .rich-copy,
.tour-section-heading>p,.tour-section-intro,.itinerary-list p,.itinerary-unavailable p,.tour-inclusion-grid article>p,
.tour-request-card>p,.tour-booking-copy>p,.contact-heading-inner p,.contact-aside p,.partner-reasons li,
.guide-card-copy p,.content-page-aside p,.story-copy p,.story-service-copy p,.tour-detail .itinerary-list p,.tour-final-cta p,.tour-map-copy>p{font-size:17px;line-height:1.75}
.tour-highlights li,.tour-inclusion-grid li,.tour-map-copy li,.story-values p{font-size:16px}
.hero-actions .button,.mobile-nav>summary,.tour-pagination a,.tour-pagination span[aria-current],.tour-pagination nav>div:first-child>*,.tour-pagination nav>div:nth-child(2)>div:last-child>span>*,.tour-gallery-note,.tour-reviews-note{font-size:13px}
.story-signature strong{font-size:12px}
.button,.header-cta,.text-link,.intro-actions .text-link,.safari-film-copy .text-link,.featured-tours-heading .text-link,.related-tour-copy .text-link,
.desktop-nav,.nav-submenu a,.recognition-detail,.recognition-link,.intro-location,.testimonial-card figcaption strong,
.form-grid label,.tour-booking-fields label,.tour-section-nav a,.tour-card-bottom>span,.booking-whatsapp,.tour-direct-contact,.tour-direct-contact a,
.booking-promise p,.tour-pagination-status,.contact-aside>a,.footer-brand+p,footer p,.mobile-bottom-menu-panel a{font-size:14px}
.nav-dropdown>summary{font-size:14px}
.testimonial-card figcaption span,.testimonial-card figcaption a,.safari-film-figure figcaption,.form-submit>span,.booking-response-time,
.tour-gallery-item figcaption,.tour-review-grid figcaption span,.tour-review-grid figcaption a,.footer-bottom,.form-grid .partner-consent,
.category-filters a,.tour-facts strong{font-size:13px}
.eyebrow,.eyebrow.light,.intro-main>.eyebrow,.quote-band .eyebrow,.tour-inclusion-grid .eyebrow,.partner-strip-heading .eyebrow,
.hero-caption,.recognition-platform,.testimonial-source-mark,.card-copy small,.photo-tag,.contact-aside-note,.tour-card-meta,.tour-card-bottom small,
.breadcrumb,.tour-facts small,.tour-search label,.related-tour-copy small,.tour-booking-fields small,.featured-tour small,.featured-tour-copy small{font-size:12px}
.card-index,.intro-photo-label small{font-size:11px}

/* The header menu stays on one line: slightly smaller text and tighter gaps as the screen narrows. */
.desktop-nav,.nav-dropdown>summary,.header-cta{white-space:nowrap}
@media(max-width:1240px) and (min-width:761px){
    .desktop-nav{gap:22px;font-size:13px}
    .nav-dropdown>summary{font-size:13px}
    .header-cta{font-size:13px}
}
@media(max-width:1120px) and (min-width:761px){
    .desktop-nav{gap:12px;font-size:12px}
    .nav-dropdown>summary{font-size:12px}
    .header-cta{font-size:12px;padding:12px 14px;gap:12px}
}
@media(max-width:900px) and (min-width:761px){
    .desktop-nav{gap:10px;font-size:11px}
    .nav-dropdown>summary{font-size:11px}
    .header-cta{font-size:11px;padding:11px 12px}
    .site-header .brand-logo{width:150px}
}
@media(max-width:840px) and (min-width:761px){
    .desktop-nav{gap:7px}
    .site-header .brand-logo{width:128px}
}

@media(max-width:760px){
    .hero-copy,.intro-main p,.featured-copy p,.safari-film-copy p,.journey-head p,.recognition-heading>p,
    .catalog-hero-inner p,.catalog-intro p,.empty-catalog p,.tour-card-content>p,.tour-detail-heading>p,.tour-overview-copy .rich-copy,
    .tour-section-heading>p,.tour-section-intro,.itinerary-list p,.itinerary-unavailable p,.tour-inclusion-grid article>p,
    .tour-request-card>p,.tour-booking-copy>p,.contact-heading-inner p,.contact-aside p,.partner-reasons li,
    .guide-card-copy p,.content-page-aside p,.story-copy p,.story-service-copy p,.tour-detail .itinerary-list p,.tour-final-cta p,.tour-map-copy>p{font-size:16px;line-height:1.7}
    .button{font-size:13px}
    .contact-aside>a{font-size:15px}
    .mobile-nav-group>summary,.mobile-bottom-menu-panel a{font-size:15px}
    .mobile-submenu a,.mobile-bottom-submenu a{font-size:14px}
    .mobile-bottom-link{font-size:12px}
    .category-filters a{font-size:13px}
    .card-copy small{font-size:12px}
}
