/* Afriken Travel – public site. Colours keep the old site's deep teal, with a warm savannah gold for buttons. */

/* Typefaces served from this website (public/assets/fonts, SIL Open Font License), not from Google: visitors'
   browsers then contact no outside service (see the Privacy policy). */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/lato-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/lato-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/raleway-variable-latin.woff2') format('woff2'); }
:root {
  --teal: #0d5c6e;
  --teal-dark: #083f4c;
  --teal-light: #e6f1f3;
  --gold: #d98b1e;
  --gold-dark: #b46f10;
  --ink: #1f2a2e;
  --muted: #5b6a70;
  --line: #dde5e8;
  --bg: #ffffff;
  --sand: #faf6ef;
  --ok: #1f7a3a;
  --err: #b3261e;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(10, 40, 50, .08);
  --head: 'Raleway', system-ui, sans-serif;
  --body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; color: var(--teal-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.4em 0 .5em; }
h3 { font-size: 1.15rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--muted); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: #fff; border: 2px solid var(--gold); padding: .65em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem; font-family: var(--body); transition: background .15s; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-small { padding: .4em .95em; font-size: .9rem; }
.btn-block { display: block; text-align: center; width: 100%; margin-top: .6em; }
.btn-wa { background: #1fa855; border-color: #1fa855; }
.btn-wa:hover { background: #178a45; border-color: #178a45; }

/* Header */
.topbar { background: var(--teal-dark); color: #d7e8ec; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; padding: 6px 0; }
.topbar a { color: #d7e8ec; text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-dark); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; font-family: var(--head); font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.menu-toggle { display: none; background: var(--teal); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: 700 .95rem var(--body); }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; border-radius: 6px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--teal); background: var(--teal-light); }
.main-nav .nav-cta { background: var(--teal); color: #fff; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current] { background: var(--teal-dark); color: #fff; }
.has-sub { position: relative; }
.has-sub > ul { display: none; position: absolute; left: 0; top: 100%; background: #fff; box-shadow: var(--shadow); border-radius: 8px; list-style: none; padding: 6px; margin: 0; min-width: 220px; }
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.preview-bar { background: #fff4d6; color: #6b4b00; text-align: center; padding: 8px 16px; font-weight: 700; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); padding: 8px 16px 16px; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub > ul { display: block; position: static; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .has-sub > ul a { font-weight: 400; }
  .topbar .wrap { justify-content: center; }
}

/* Home slider */
.hero { position: relative; height: min(78vh, 640px); min-height: 380px; background: var(--teal-dark); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.slide.is-active { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55)); }
.slide-text { position: absolute; left: 0; right: 0; bottom: 18%; z-index: 2; color: #fff; }
.slide-heading { font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 5.5vw, 3.6rem); line-height: 1.1; margin: 0 0 .3em; max-width: 16em; text-shadow: 0 2px 12px rgba(0,0,0,.4); overflow-wrap: break-word; }
.slide-sub { font-size: clamp(1rem, 2.2vw, 1.3rem); margin: 0 0 1em; max-width: 34em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.slide-dots { position: absolute; bottom: 92px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.slide-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slide-dots button[aria-current] { background: #fff; }

/* Search */
.search-wrap { position: relative; z-index: 5; margin-top: -60px; }
.trip-search { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(10,40,50,.15); margin: 0 0 24px; }
.trip-search label span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.trip-search select { width: 100%; }
@media (max-width: 900px) { .trip-search { grid-template-columns: 1fr 1fr; } .trip-search .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .trip-search { grid-template-columns: 1fr; } }
select, input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .6em .7em; border: 1px solid #c5d1d5; border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }

/* Home sections */
.intro { text-align: center; padding: 20px 0 30px; }
.intro .lead { max-width: 46em; margin: 0 auto; font-size: 1.1rem; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; text-align: left; }
.feature { background: var(--sand); padding: 22px; border-radius: var(--radius); border-top: 4px solid var(--gold); }
.feature h3 { margin-top: 0; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.trip-section { padding: 30px 0 46px; }
.trip-section.alt { background: var(--sand); }
.trip-section h2 { text-align: center; }
.section-intro { text-align: center; max-width: 44em; margin: -6px auto 26px; color: var(--muted); }
.custom-trip { background: var(--teal); color: #fff; text-align: center; padding: 46px 0; }
.custom-trip h2 { color: #fff; margin-top: 0; }
.custom-trip p { max-width: 42em; margin-inline: auto; }
.tiles-section { padding-bottom: 40px; }
.tiles-section h2 { text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--teal-dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font: 700 1.3rem var(--head); }
.tile small { display: block; font: 400 .9rem var(--body); }
.tiles-big { margin: 10px 0 50px; }
.testimonials { background: var(--teal-light); padding: 20px 0 46px; }
.testimonials h2 { text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { margin: 0; background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 12px; font-style: italic; }
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Trip cards */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.trip-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.trip-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-light); }
.trip-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.trip-card:hover .trip-card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.trip-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.trip-card-meta { margin: 0; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.trip-card h3 { margin: .25em 0; font-size: 1.15rem; }
.trip-card h3 a { color: var(--teal-dark); text-decoration: none; }
.trip-card-days { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.tag { color: var(--ok); font-weight: 700; }
.trip-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.price { margin: 0; line-height: 1.2; }
.price .from { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.price s { color: var(--muted); font-size: .9rem; margin-right: 4px; }
.price strong { font-size: 1.3rem; color: var(--teal-dark); }
.price .pp { font-size: .8rem; color: var(--muted); }

/* Page heads */
.page-head { position: relative; background: var(--teal); color: #fff; padding: 26px 0 22px; margin-bottom: 26px; overflow: hidden; }
.page-head h1 { color: #fff; margin: .1em 0 0; position: relative; }
.page-head.has-photo { padding: 120px 0 26px; }
.page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0,0,0,.6)); }
.page-head .wrap { position: relative; z-index: 2; }
.crumbs { font-size: .88rem; color: inherit; opacity: .9; }
.crumbs a { color: inherit; }
.page-head .crumbs, .page-head .crumbs a { color: #e6f1f3; }
.count { color: var(--muted); }
.empty { text-align: center; padding: 40px 0; }
.term-intro { margin-bottom: 20px; }
.prose { max-width: 50em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.page-body { padding-bottom: 50px; }

/* Trip page */
.trip-hero { background: #111; }
.gallery { position: relative; max-width: 1400px; margin: 0 auto; }
.gallery-main { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
@media (max-width: 700px) { .gallery-main { aspect-ratio: 4 / 3; } }
.gallery-item { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; }
.gallery-item.is-active { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { position: absolute; right: 8px; bottom: 6px; color: #fff; font-size: .72rem; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 4px; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.gallery-prev { left: 12px; } .gallery-next { right: 12px; }
.gallery-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #111; }
.gallery-thumbs button { flex: 0 0 90px; height: 60px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .65; }
.gallery-thumbs button[aria-current] { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 20px 0 50px; }
.trip-main, .trip-side { min-width: 0; }
@media (max-width: 960px) { .trip-layout { grid-template-columns: minmax(0, 1fr); } .trip-side { order: -1; } }
.trip h1 .days { color: var(--muted); font-weight: 600; font-size: .7em; }
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--teal-light); color: var(--teal); padding: 3px 12px; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 700; }
.lead { font-size: 1.12rem; }
.trip-tabs { position: sticky; top: 72px; background: #fff; z-index: 10; display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin: 20px 0 0; }
.trip-tabs a { padding: 10px 14px; white-space: nowrap; text-decoration: none; font-weight: 700; color: var(--muted); }
.trip-tabs a:hover { color: var(--teal); }
.trip-main section { scroll-margin-top: 130px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.facts div { background: var(--sand); padding: 12px 14px; border-radius: 8px; }
.facts dt { font-size: .8rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }
.itinerary { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--teal-light); }
.itinerary li { position: relative; padding: 0 0 6px 22px; }
.itinerary li::before { content: ''; position: absolute; left: -9px; top: 14px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; }
.itinerary summary, .faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--teal-dark); }
.day-no { display: inline-block; background: var(--teal); color: #fff; padding: 1px 10px; border-radius: 999px; font-size: .85rem; margin-right: 6px; }
.cost-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .cost-cols { grid-template-columns: 1fr; } }
.ticks, .crosses { list-style: none; padding: 0; }
.ticks li, .crosses li { padding: 4px 0 4px 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.crosses li::before { content: '✕'; position: absolute; left: 0; color: var(--err); font-weight: 700; }
.faq { border-bottom: 1px solid var(--line); }
.faq p { margin-top: 0; }
.map-img { border-radius: var(--radius); border: 1px solid var(--line); }
.price-box { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.price-box .from { margin: 0; color: var(--muted); text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.price-big { margin: 4px 0; font-size: 1rem; }
.price-big strong { font-size: 2rem; color: var(--teal-dark); }
.price-big s { color: var(--muted); }
.save { color: var(--ok); font-weight: 700; margin: 0; }
.group { background: var(--teal-light); padding: 8px 10px; border-radius: 6px; font-size: .92rem; }
.enquire { background: var(--sand); padding: 6px 22px 22px; border-radius: var(--radius); margin-top: 30px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid label { font-weight: 700; font-size: .92rem; }
.form-grid label input, .form-grid label select, .form-grid label textarea { margin-top: 4px; font-weight: 400; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.notice { padding: 12px 16px; border-radius: 8px; margin: 10px 0 16px; }
.notice.ok { background: #e5f4ea; color: var(--ok); border: 1px solid #b9dfc5; }
.notice.err { background: #fbe9e8; color: var(--err); border: 1px solid #efc2bf; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-bottom: 50px; }
.contact-layout h2:first-child, .contact-side h2 { margin-top: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side { background: var(--sand); padding: 22px; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--teal-dark); color: #cfe0e4; padding: 40px 0 20px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.social a { margin-right: 12px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 16px; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.wa-float:hover { color: #fff; background: #178a45; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
