/* ==========================================================
   Kobo Safaris (Mauritius) — static rebuild
   Palette:
     --kobo-red    #DA291C  (from Kobo horizontal red logo)
     --ink         #1F1B18  (warm near-black, body headings)
     --earth       #6E5C4F  (muted earth, secondary text)
     --sand        #F7F3EC  (light sand section background)
     --charcoal    #262220  (footer)
   Type: Marcellus (display) / Mulish (body)
   ========================================================== */

:root {
  --kobo-red: #DA291C;
  --kobo-red-dark: #B01F14;
  --ink: #1F1B18;
  --earth: #6E5C4F;
  --sand: #F7F3EC;
  --charcoal: #262220;
  --deep-earth: #3D322B;
  --white: #ffffff;
  --max-w: 1180px;
  --radius: 4px;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--kobo-red); text-decoration: none; }
a:hover { color: var(--kobo-red-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--kobo-red);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(31, 27, 24, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo img { height: 44px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--kobo-red);
  border-bottom-color: var(--kobo-red);
}
.main-nav .has-sub { position: relative; }
.main-nav .sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 200px;
  background: var(--white);
  border: 1px solid rgba(31, 27, 24, 0.08);
  box-shadow: 0 14px 34px rgba(31, 27, 24, 0.12);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  gap: 0;
}
.main-nav .has-sub:hover .sub,
.main-nav .has-sub:focus-within .sub { display: flex; }
.main-nav .sub a {
  display: block;
  padding: 8px 18px;
  border-bottom: none;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 14px;
}
.main-nav .sub a:hover { background: var(--sand); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--charcoal);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 10, 0.75) 0%, rgba(20, 14, 10, 0.15) 55%, rgba(20, 14, 10, 0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 720px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: #F3C9C4;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  color: var(--white);
  margin-bottom: 18px;
}
.hero p { font-size: 1.1rem; max-width: 560px; color: rgba(255,255,255,0.92); }
.hero-home { min-height: 82vh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 34px;
  background: var(--kobo-red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--kobo-red-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--kobo-red);
  color: var(--kobo-red);
}
.btn-outline:hover { background: var(--kobo-red); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--kobo-red);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--earth); }

/* ---------- Destination cards ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.dest-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  aspect-ratio: 3 / 2.4;
}
.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.dest-card:hover img { transform: scale(1.06); }
.dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 8, 0.85) 8%, rgba(15, 10, 8, 0.05) 60%);
}
.dest-card-body {
  position: absolute;
  z-index: 1;
  bottom: 0;
  padding: 26px;
}
.dest-card h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 6px;
}
.dest-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.45s ease;
}
.dest-card:hover p, .dest-card:focus-visible p { max-height: 140px; opacity: 1; }
@media (hover: none) {
  .dest-card p { max-height: none; opacity: 1; }
}

/* ---------- Country page ---------- */
.country-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.country-intro h2 { font-size: 2rem; margin-bottom: 18px; }
.country-intro p + p { margin-top: 16px; }
.fact-box {
  background: var(--sand);
  border-top: 3px solid var(--kobo-red);
  padding: 30px;
  border-radius: var(--radius);
}
.fact-box h3 { font-size: 1.15rem; margin-bottom: 16px; }
.fact-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.95rem; }
.fact-box dt { font-weight: 800; color: var(--kobo-red); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; padding-top: 4px; }
.fact-box dd { color: var(--earth); }

.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.highlight {
  background: var(--white);
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: var(--radius);
  padding: 30px;
}
.highlight h3 { font-size: 1.2rem; margin-bottom: 10px; }
.highlight p { font-size: 0.95rem; color: var(--earth); }

.cta-band {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 540px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-details h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.contact-details h3:first-child { margin-top: 0; }
.contact-details p { color: var(--earth); }

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid rgba(31, 27, 24, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--kobo-red);
  outline-offset: 1px;
  border-color: transparent;
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: 70px 0 34px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--white); }
.footer-cols-2 { columns: 2; column-gap: 30px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 18px; list-style: none; }
.footer-social a { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .dest-grid, .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .country-intro, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav: activate early (many Android phones report ~720-780px CSS width) */
@media (max-width: 900px) {
  .header-inner { height: 72px; }
  .logo img { height: 36px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 30px 24px;
    will-change: transform;
    z-index: 40;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav > ul > li { width: 100%; border-bottom: 1px solid rgba(31,27,24,0.07); }
  .main-nav a { display: block; padding: 14px 0; font-size: 15px; }
  .main-nav .sub {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    padding: 0 0 10px 16px;
  }
}

@media (max-width: 680px) {
  .dest-grid, .highlight-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 60px 0; }
  .hero-content { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hero p { font-size: 1rem; }
  .hero-content .eyebrow { font-size: 11px; letter-spacing: 0.2em; }
  .section-head h2, .country-intro h2, .cta-band h2, .adventure-content h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}

/* Footer vertical mark (as per original site) */
.footer-mark { text-align: center; margin: 4px 0 34px; }
.footer-mark img { height: 96px; width: auto; display: inline-block; opacity: 0.92; }

/* ---------- Country page: narrow container, fact tiles, climate, regions ---------- */
.container.narrow { max-width: 860px; }
.container.narrow p + p { margin-top: 16px; }
.eyebrow.red { color: var(--kobo-red); display: inline-block; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.country-intro aside .about-side { border-radius: var(--radius); margin-bottom: 24px; }
.country-intro h3 { font-size: 1.2rem; margin: 26px 0 8px; }

.fact-strip { background: var(--white); border-top: 1px solid rgba(31,27,24,0.08); border-bottom: 1px solid rgba(31,27,24,0.08); }
.fact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact-tile { padding: 44px 28px; text-align: center; }
.fact-tile + .fact-tile { border-left: 1px solid rgba(31,27,24,0.08); }
.fact-icon { display: inline-block; width: 34px; height: 34px; color: var(--kobo-red); margin-bottom: 12px; }
.fact-icon svg { width: 100%; height: 100%; }
.fact-tile h3 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.fact-tile p { font-size: 0.88rem; color: var(--earth); line-height: 1.6; }

.climate-band { background: var(--deep-earth); color: rgba(255,255,255,0.88); padding: 76px 0; }
.climate-band h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 18px; }
.climate-band p { margin-bottom: 14px; }
.climate-band ul { list-style: none; margin-bottom: 10px; }
.climate-band li { padding: 6px 0 6px 22px; position: relative; }
.climate-band li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--kobo-red); }

.region-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; border: 1px solid rgba(31,27,24,0.06); }
.region-row .region-img { min-height: 320px; }
.region-row .region-img img { width: 100%; height: 100%; object-fit: cover; }
.region-row .region-text { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.region-row.reverse .region-img { order: 2; }
.region-row h3 { font-size: 1.5rem; margin-bottom: 12px; }
.region-row p { font-size: 0.96rem; color: var(--earth); }
.region-row.no-img { grid-template-columns: 1fr; }
.region-row.no-img .region-text { padding: 38px 46px; }

@media (max-width: 960px) {
  .fact-tiles { grid-template-columns: repeat(2, 1fr); }
  .fact-tile + .fact-tile { border-left: none; }
  .fact-tile { border-top: 1px solid rgba(31,27,24,0.08); }
  .region-row, .region-row.reverse { grid-template-columns: 1fr; }
  .region-row.reverse .region-img { order: 0; }
  .region-row .region-img { min-height: 240px; }
}
@media (max-width: 680px) {
  .fact-tiles { grid-template-columns: 1fr; }
  .region-row .region-text { padding: 30px 24px; }
}

/* ---------- Home: stats strip ---------- */
.stats-strip { background: var(--sand); border-bottom: 1px solid rgba(31,27,24,0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 26px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(31,27,24,0.08); }
.stat .fact-icon { display:inline-block; width:30px; height:30px; color: var(--kobo-red); margin-bottom: 12px; }
.stat .fact-icon svg { width:100%; height:100%; }
.stat h3 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.stat p { font-size: 0.85rem; color: var(--earth); line-height: 1.5; }

/* ---------- Home: feature cards (distinct from source 2x2 block) ---------- */
.feature-band { background: var(--sand); padding: 88px 0; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(31,27,24,0.07); display: flex; flex-direction: column; }
.feature-img { aspect-ratio: 3 / 2; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature-card:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 32px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.feature-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature-body p { font-size: 0.95rem; color: var(--earth); margin-bottom: 22px; flex: 1; }
.feature-body .btn { align-self: flex-start; margin-top: 0; }

/* ---------- Home: adventure parallax strip ---------- */
.adventure-band { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.adventure-band .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adventure-band::after { content:""; position:absolute; inset:0; background: rgba(20,14,10,0.42); }
.adventure-content { position: relative; z-index: 1; color: var(--white); }
.adventure-content h2 { color: var(--white); font-size: clamp(1.8rem,3.4vw,2.6rem); margin-bottom: 20px; }
.cta-band.green { background: var(--kobo-red-dark); }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat + .stat { border-left: none; }
  .stat:nth-child(n+1) { border-top: 1px solid rgba(31,27,24,0.08); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .feature-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-top: 1px solid rgba(31,27,24,0.08); }
}

/* ---------- Contact: offices + expanded enquiry form ---------- */
.office { margin-bottom: 22px; }
.office h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kobo-red); margin-bottom: 5px; }
.office p { color: var(--earth); font-size: 0.95rem; line-height: 1.55; }

.enquiry-form fieldset { border: none; border-top: 1px solid rgba(31,27,24,0.1); padding: 26px 0 4px; margin: 0; }
.enquiry-form fieldset:first-of-type { border-top: none; padding-top: 0; }
.enquiry-form legend { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 16px; padding: 0; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.checkbox-grid label { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; margin: 0; }
.checkbox-grid input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--kobo-red); flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 680px) {
  .form-three { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* ---------- About: looping video panel ---------- */
.about-video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
