/* ==========================================================================
   SITE READABILITY LAYER (Nov 2026)
   Loaded last on every public page. Fixes text that was invisible or hard to read
   after the light/dark theme mix-up: white-on-white headings, dark-on-dark headings,
   brand-green/gold text on pale backgrounds, low-contrast buttons and placeholders.
   Colours only change where contrast was below WCAG AA; no wording is touched.
   ========================================================================== */
:root {
    --jr-green-on-light: #256B1B;   /* 5.4:1 on the pale green/teal badge tints */
    --jr-gold-on-light: #7A5A12;
    --jr-title-on-light: #0F2A2A;
    --jr-body-on-light: #475569;
    --jr-muted-on-light: #64748B;
    --jr-btn-grad: linear-gradient(135deg, #006B6D 0%, #2A7F2A 100%);
}

/* ---------- 1. Primary buttons: white text needs a deeper green ---------- */
.je-btn-primary,
.je-cov-btn-primary,
.je-btn-pill-green,
.je-car-book-btn,
.je-card-btn-book,
.je-btn-cta-main,
.je-filter-btn.active {
    background: var(--jr-btn-grad) !important;
    color: #FFFFFF !important;
}
.je-btn-primary:hover,
.je-cov-btn-primary:hover,
.je-btn-pill-green:hover,
.je-car-book-btn:hover,
.je-card-btn-book:hover,
.je-btn-cta-main:hover { filter: brightness(1.08); }
.je-car-book-btn span { color: #FFFFFF !important; }
.je-tab-count { background: #2A7F2A !important; color: #FFFFFF !important; }
html body .je-btn-cta-main, html body .je-card-btn-book { background: var(--jr-btn-grad) !important; color: #FFFFFF !important; }

/* home stats band: white figures on bright green were 2.8:1 */
.je-stats-bar { background: linear-gradient(135deg, #0B5D3E 0%, #1F6F2A 100%) !important; }
.je-stats-bar .je-stats-number, .je-stats-bar .je-stats-label { color: #FFFFFF !important; }

/* ---------- 2. Secondary (outline) buttons on pale sections ---------- */
.je-section-luxury .je-btn-secondary,
.je-fleet-single-page .je-btn-secondary,
.travel-guides-archive #guides-grid .je-btn-secondary {
    background: #FFFFFF !important;
    color: var(--jr-title-on-light) !important;
    border: 1px solid #94A3B8 !important;
    backdrop-filter: none !important;
}
.je-section-luxury .je-btn-secondary:hover,
.je-fleet-single-page .je-btn-secondary:hover,
.travel-guides-archive #guides-grid .je-btn-secondary:hover {
    border-color: #2A7F2A !important;
    color: #1F6F2A !important;
    background: #F2FAF0 !important;
}
/* ...but sections that are painted dark keep the light-on-dark style */
.je-section-luxury[style*="background: #0"] .je-btn-secondary,
.je-section-luxury[style*="background:#0"] .je-btn-secondary,
.je-section-dark .je-btn-secondary,
.je-service-cta-dark .je-btn-secondary,
.je-editorial-section-dark .je-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* ---------- 3. Green / gold eyebrow labels and badges on pale backgrounds ---------- */
.je-section-luxury .je-eyebrow,
.je-section-luxury .je-badge,
.contact-page .je-badge,
.je-fleet-badge,
.je-section-eyebrow,
.je-testimonials-badge,
.je-testimonial-badge,
.je-faq-badge,
.travel-guides-archive #guides-grid article .je-badge,
.travel-guides-archive #guides-grid article span[style*="brand-green"] {
    color: var(--jr-green-on-light) !important;
}
.je-section-luxury .je-eyebrow[style*="gold"],
.je-section-luxury .je-badge--gold,
.je-book-now-page .je-section-luxury:not(.je-section-luxury--alt) .je-section-header .je-eyebrow {
    color: var(--jr-gold-on-light) !important;
    border-color: rgba(122, 90, 18, 0.35) !important;
}
/* dark sections (painted inline, airport landing pages, CTA bands): restore the bright accents */
html body .je-section-luxury[style*="background: #0"] .je-eyebrow,
html body .je-section-luxury[style*="background:#0"] .je-eyebrow,
html body .je-section-luxury[style*="linear-gradient(180deg, #0"] .je-eyebrow,
html body .je-airport-landing-page .je-eyebrow,
html body .je-airport-landing-page .je-badge,
html body .je-section-dark .je-eyebrow,
html body .je-service-cta-dark .je-eyebrow,
html body .je-editorial-section-dark .je-eyebrow,
html body .je-subpage-hero .je-eyebrow,
html body .je-subpage-hero .je-badge {
    color: #7DDC6B !important;
}
html body .je-section-luxury[style*="background: #0"] .je-eyebrow[style*="gold"],
html body .je-section-luxury[style*="linear-gradient(180deg, #0"] .je-eyebrow[style*="gold"],
html body .je-airport-landing-page .je-eyebrow[style*="gold"] {
    color: #F2C46D !important;
    border-color: rgba(242, 196, 109, 0.4) !important;
}
html body .je-airport-landing-page .je-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
/* home page light sections use their own badge classes with high-specificity rules */
html body.home .je-fleet-badge,
html body.home .je-section-eyebrow,
html body.home .je-testimonials-badge,
html body.home .je-testimonial-badge,
html body.home .je-faq-badge { color: var(--jr-green-on-light) !important; }
/* inline brand-green labels on white cards (tour itineraries etc.) */
.je-section-luxury:not([style*="#0"]) .je-card-luxury [style*="color: #59C049"],
.je-section-luxury:not([style*="#0"]) .je-card-luxury [style*="color:#59C049"] { color: var(--jr-green-on-light) !important; }

/* ---------- 4. Headings / text painted white inside pale sections ---------- */
/* Our Fleet: comparison cards, amenities strip, bottom CTA */
.fleet-page .je-section-luxury h2,
.fleet-page .je-section-luxury h3,
.fleet-page .je-section-luxury .je-card-luxury > div > span,
.fleet-page .je-section-luxury .je-card-luxury > div[style*="font-weight: 600"],
.fleet-page .je-section-luxury .je-container-luxury > div > div > span {
    color: var(--jr-title-on-light) !important;
}
/* Single vehicle pages */
.je-fleet-single-page .je-section-luxury .je-card-luxury h2,
.je-fleet-single-page .je-section-luxury .je-card-luxury h4 {
    color: var(--jr-title-on-light) !important;
}
.je-fleet-single-page .je-section-luxury .je-card-luxury .je-eyebrow { color: var(--jr-gold-on-light) !important; }
/* Travel guides archive: card titles + CTA card */
.travel-guides-archive #guides-grid article h3,
.travel-guides-archive #guides-grid article h3 a,
.travel-guides-archive #guides-grid .je-card-luxury > h3 {
    color: var(--jr-title-on-light) !important;
}
.travel-guides-archive #guides-grid > .je-container-luxury > .je-card-luxury > .je-contact-subtitle { color: #7DDC6B !important; }
.travel-guides-archive #guides-grid > .je-container-luxury > .je-card-luxury > h3 { color: #FFFFFF !important; }
.travel-guides-archive #guides-grid > .je-container-luxury > .je-card-luxury > p { color: #E2E8F0 !important; }
/* Book Now: pale sections had white intro text; dark sections had dark headings */
.je-book-now-page .je-section-luxury:not(.je-section-luxury--alt) .je-section-header p,
.je-book-now-page .je-section-luxury:not(.je-section-luxury--alt) .je-section-header h2 {
    color: var(--jr-body-on-light) !important;
}
.je-book-now-page .je-section-luxury:not(.je-section-luxury--alt) .je-section-header h2 { color: var(--jr-title-on-light) !important; }
.je-book-now-page .je-section-luxury--alt .je-section-header h2 { color: #FFFFFF !important; }
.je-book-now-page .je-section-luxury--alt .je-section-header p { color: #CFD8DC !important; }
.je-book-now-page .je-section-luxury--alt div[style*="font-size: 40px"] { color: rgba(125, 220, 107, 0.55) !important; }

/* ---------- 5. Booking widget on pale pages (single vehicle pages) ---------- */
.je-fleet-single-page .je-hero-dual-container {
    background: linear-gradient(180deg, #012A2C 0%, #011C1E 100%);
    border-radius: 18px;
    padding: 24px !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}
.je-fleet-single-page .je-osm-credit,
.je-fleet-single-page .je-osm-credit a { color: #CFD8DC !important; }

/* ---------- 6. Form placeholders in the booking widget ---------- */
.jannah-booking-root .ant-select-selection-placeholder,
.jannah-booking-root input::placeholder,
.jannah-booking-root textarea::placeholder { color: #5F6673 !important; opacity: 1 !important; }

/* ---------- 7. Muted helper text on white ---------- */
.contact-page #inquiry-form .je-contact-subtitle:not([style*="brand-green"]),
.contact-page #inquiry-form .je-contact-note { color: var(--jr-muted-on-light) !important; }
.contact-page #inquiry-form .je-contact-subtitle[style*="brand-green"] { color: var(--jr-green-on-light) !important; }
.legal-page main a:not([class]),
.je-legal-content a, .je-legal-body a { color: var(--jr-green-on-light) !important; }

/* ---------- 8. Tiny labels ---------- */
.je-footer-airports-grid .je-airport-iata { font-size: 10.5px !important; }
.je-pill-lbl { font-size: 11.5px !important; }


/* ---------- 10. Chauffeur Vehicles page ---------- */
html body .je-vehicle-card-actions a.je-card-btn-book,
html body .je-cta-buttons a.je-btn-cta-main { background: var(--jr-btn-grad) !important; color: #FFFFFF !important; }
html body .je-filter-tab .je-tab-count { background: #1F5F24 !important; color: #FFFFFF !important; }
html body .je-faq-answer p a { color: var(--jr-green-on-light) !important; }
html body.home .je-section-services .je-section-eyebrow { color: #7DDC6B !important; }
html body .je-filter-tabs-wrapper .je-filter-tab.is-active { background: #1F6F2A !important; border-color: #1F6F2A !important; color: #FFFFFF !important; }
html body .je-filter-tabs-wrapper .je-filter-tab.is-active .je-tab-count { background: rgba(0, 0, 0, 0.28) !important; color: #FFFFFF !important; }
html body .je-fleet-card .je-card-footer a.je-car-book-btn { background: var(--jr-btn-grad) !important; }
/* Travel guides: the booking banner was a see-through tint over a white section */
.travel-guides-archive #guides-grid > .je-container-luxury > .je-card-luxury { background: radial-gradient(circle at center, #0B4A4C 0%, #01282A 100%) !important; }

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
/* Travel-guide articles: long titles in the breadcrumb were cut off on phones */
.breadcrumb-trail .trail-items { flex-wrap: wrap !important; white-space: normal !important; max-width: 100%; }
.breadcrumb-trail .trail-items .trail-item { white-space: normal !important; min-width: 0; overflow-wrap: anywhere; }

/* Booking widget step tabs (Journey / Passenger / Payment): the theme's 25px button
   padding pushed the labels out of their buttons on phones */
@media (max-width: 640px) {
    .jannah-booking-root form > .grid.grid-cols-3 { gap: 8px !important; }
    .jannah-booking-root form > .grid.grid-cols-3 > button {
        font-size: 13px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        letter-spacing: 0 !important;
    }
}

/* Footer phone / email: bigger tap area */
.je-contact-value.je-phone-link,
.je-contact-value.je-email-link { display: inline-block; padding: 6px 0; }
