/* Self-hosted fonts.
   Loading these from fonts.googleapis.com sent every visitor's IP address to
   Google before any consent was given -- the same problem as the analytics
   script and the map embed. Serving them from our own origin removes the
   third-party request entirely (and drops a DNS lookup plus a TLS handshake
   from the critical path). Latin + latin-ext subsets cover all five locales. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   NERA SAFARIS — SHARED STYLESHEET
   Base design system (original) + new components for the
   multi-page build: page headers, blog, team, services,
   package detail, WhatsApp button, social icons.
   ============================================================ */

/* VARIABLES */
:root {
  --dark: #0f1115;
  --forest: #141a15;
  --card: #191d22;
  --text: #f5efe0;
  --text-muted: rgba(245, 239, 224, 0.7);
  --text-faint: rgba(245, 239, 224, 0.45);
  --gold: #c5a880;
  --gold-light: #d4bfa0;
  --line: rgba(245, 239, 224, 0.12);
  --whatsapp: #25D366;
  --sans: 'Montserrat', sans-serif;
  --serif: 'Playfair Display', serif;
  --max: 1200px;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
section { position: relative; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}
.section-head p { color: var(--text-muted); margin-top: 1rem; font-size: 1.02rem; max-width: 520px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

/* NAVIGATION */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.6rem 2rem;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--line);
}
.nav-container { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.logo svg { height: 34px; width: auto; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; flex-shrink: 0; border-radius: 50%; }
.founder-avatar { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold), var(--gold-light)); font-family: var(--serif); font-size: 3rem; color: #fff; letter-spacing: 1px; }
.founder-avatar-photo { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 1.5rem; overflow: hidden; border: 3px solid var(--gold); }
.founder-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-profile { max-width: 760px; margin: 0 auto; }
.logo-word { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: 1.5px; line-height: 1; }
.logo-word span { color: var(--gold); display: block; font-family: var(--sans); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.3em; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links .btn { padding: 0.7rem 1.5rem; font-size: 0.78rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 1rem 2.25rem; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; transition: all 0.3s ease; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary { border: 1px solid rgba(245, 239, 224, 0.4); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-small { padding: 0.7rem 1.4rem; font-size: 0.75rem; }

/* HERO (home) */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding-bottom: 5rem;
  background: linear-gradient(to top, rgba(15,17,21,1) 0%, rgba(15,17,21,0.4) 50%, rgba(15,17,21,0.2) 100%);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--hero-image, url('../images/hero/home-hero.jpg'));
  background-size: cover; background-position: center; z-index: -2; background-color: var(--forest);
}
.hero-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-content { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 2rem; }
.hero-title { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 400; margin-bottom: 1.5rem; }
.hero-description { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 600px; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 2rem; right: 2rem; display: flex; align-items: center; gap: 0.7rem; color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; }
.scroll-cue::after { content: ''; width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); }

/* HERO SEARCH */
.hero-search { display: flex; gap: 0; max-width: 560px; margin-top: 2.2rem; background: rgba(15,17,21,0.55); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.hero-search select, .hero-search input { flex: 1; background: transparent; border: none; color: var(--text); font-family: var(--sans); font-size: 0.9rem; padding: 1rem 1.2rem; }
.hero-search select { border-right: 1px solid var(--line); appearance: none; cursor: pointer; }
.hero-search select option { background: var(--dark); color: var(--text); }
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search button { background: var(--gold); color: var(--dark); border: none; padding: 0 1.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; cursor: pointer; transition: background 0.3s ease; }
.hero-search button:hover { background: var(--gold-light); }

/* TRUST BAR */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--dark); padding: 1.4rem 0; }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.4rem; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; }
.trust-item .trust-icon { font-size: 1rem; }

/* PAGE HEADER (inner pages) */
.page-header {
  position: relative; padding: 11rem 0 5rem; text-align: left;
  background: linear-gradient(to top, rgba(15,17,21,1) 0%, rgba(15,17,21,0.55) 70%, rgba(15,17,21,0.35) 100%);
}
.page-header::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--header-image, url('../images/hero/page-header-default.jpg'));
  background-size: cover; background-position: center; z-index: -1; background-color: var(--forest);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 760px; }
.page-header p { color: var(--text-muted); margin-top: 1rem; max-width: 560px; font-size: 1.02rem; }
.breadcrumb { display: flex; gap: 0.6rem; align-items: center; font-size: 0.78rem; color: var(--text-faint); margin-top: 1.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* STATS STRIP */
.stats-strip { border-bottom: 1px solid var(--line); background: var(--forest); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3rem 0; }
.stat { text-align: center; border-left: 1px solid var(--line); padding: 0 1rem; }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold); }
.stat .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-top: 0.4rem; }

/* TOURS / PACKAGES */
.tours { padding: 7rem 0; }
.tour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tour-grid.single-col { grid-template-columns: 1fr; gap: 2rem; }
.tour-card { background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s ease; }
.tour-card:hover { border-color: var(--gold); }
.tour-card.wide { flex-direction: row; }
.tour-card.wide .tour-img { width: 42%; height: auto; flex-shrink: 0; }
.tour-img { height: 260px; overflow: hidden; position: relative; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; background: var(--forest); }
.tour-card:hover .tour-img img { transform: scale(1.06); }
.tour-tag { position: absolute; top: 1rem; left: 1rem; background: rgba(15,17,21,0.85); color: var(--gold); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 0.8rem; border: 1px solid var(--gold); }
.tour-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.tour-meta { display: flex; gap: 1.2rem; font-size: 0.75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; flex-wrap: wrap; }
.tour-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.7rem; }
.tour-body p { color: var(--text-muted); font-size: 0.94rem; flex: 1; margin-bottom: 1.3rem; }
.tour-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.tour-price { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; }
.tour-price small { color: var(--text-faint); font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; }
.tour-link { color: var(--text); font-size: 0.8rem; text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.tour-link:hover { color: var(--gold); }

/* PACKAGE ITINERARY (package detail page) */
.itinerary { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.itinerary-day { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.itinerary-day:last-child { border-bottom: none; }
.itinerary-day .day-label { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; }
.itinerary-day .day-copy { color: var(--text-muted); font-size: 0.92rem; }
.itinerary-day .day-copy strong { color: var(--text); font-weight: 600; }
.package-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.4rem; }
.package-includes ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.package-includes h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.9rem; }
.package-includes li { font-size: 0.92rem; color: var(--text-muted); display: flex; gap: 0.6rem; }
.package-includes li::before { content: '✓'; color: var(--gold); flex-shrink: 0; }
.package-includes .excludes li::before { content: '—'; color: var(--text-faint); }

/* MIGRATION CALENDAR */
.calendar { padding: 6rem 0; background: var(--forest); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-track { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 2.5rem; }
.cal-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0.6rem 1.2rem; text-align: center; position: relative; }
.cal-month { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; margin: 0.9rem auto 0.6rem; background: var(--line); }
.cal-cell.active .cal-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(197,168,128,0.15); }
.cal-region { font-size: 0.66rem; color: var(--gold-light); line-height: 1.3; min-height: 28px; }
.cal-legend { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--text-muted); }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ABOUT */
.about { padding: 7rem 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.about-imgs { position: relative; height: 480px; }
.about-imgs img { position: absolute; object-fit: cover; background: var(--forest); }
.about-img-1 { width: 72%; height: 78%; top: 0; left: 0; }
.about-img-2 { width: 55%; height: 55%; bottom: 0; right: 0; border: 6px solid var(--dark); }
.about-copy .eyebrow { margin-bottom: 1rem; }
.about-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.4rem; line-height: 1.2; }
.about-copy p { color: var(--text-muted); margin-bottom: 1.2rem; }
.about-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.about-list li { list-style: none; display: flex; gap: 0.9rem; font-size: 0.95rem; color: var(--text); }
.about-list li::before { content: '—'; color: var(--gold); }

/* VALUES / SERVICE CARDS */
.values-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.value-card, .service-card { background: var(--card); border: 1px solid var(--line); padding: 2.2rem; transition: border-color 0.3s ease; }
.value-card:hover, .service-card:hover { border-color: var(--gold); }
.service-card .service-icon { width: 44px; height: 44px; margin-bottom: 1.4rem; color: var(--gold); }
.service-card h3, .value-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 0.8rem; }
.service-card p, .value-card p { color: var(--text-muted); font-size: 0.92rem; }

/* TEAM */
.team { padding: 7rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card { background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s ease; }
.team-card:hover { border-color: var(--gold); }
.team-photo { height: 280px; overflow: hidden; background: var(--forest); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 1.4rem 1.5rem 1.6rem; }
.team-info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.team-role { color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0.4rem 0 0.8rem; }
.team-info p { color: var(--text-muted); font-size: 0.88rem; }

/* TESTIMONIALS */
.testimonials { padding: 7rem 0; background: var(--forest); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonials.plain { background: var(--dark); border: none; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.test-card { background: var(--card); border: 1px solid var(--line); padding: 2.2rem; }
.test-quote { font-family: var(--serif); font-size: 1.15rem; font-style: italic; line-height: 1.5; margin-bottom: 1.5rem; color: var(--text); }
.test-author { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.test-origin { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.2rem; }
.test-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 2px; }

/* GALLERY */
.gallery { padding: 7rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 0.8rem; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: saturate(0.85); background: var(--forest); }
.gallery-grid img:hover { transform: scale(1.03); filter: saturate(1.1); }
.gallery-grid .g-tall { grid-row: span 2; }

/* BLOG */
.blog { padding: 7rem 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.blog-card { background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color 0.3s ease; }
.blog-card:hover { border-color: var(--gold); }
.blog-card .blog-img { height: 210px; overflow: hidden; background: var(--forest); }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-card .blog-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.8rem; }
.blog-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.7rem; line-height: 1.3; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.blog-readmore { margin-top: 1.1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-light); }

/* Single blog post */
.post-header { padding: 11rem 0 3rem; }
.post-header .eyebrow { margin-bottom: 1rem; }
.post-header h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem); max-width: 820px; line-height: 1.15; }
.post-meta { display: flex; gap: 1.5rem; margin-top: 1.4rem; color: var(--text-faint); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.post-cover { height: 420px; overflow: hidden; margin-bottom: 3rem; background: var(--forest); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 760px; margin: 0 auto; padding-bottom: 6rem; }
.post-body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 2.4rem 0 1rem; }
.post-body p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 1rem; }
.post-body ul { color: var(--text-muted); margin: 0 0 1.2rem 1.3rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-tags { display: flex; gap: 0.6rem; margin-top: 2.5rem; flex-wrap: wrap; }
.post-tags span { border: 1px solid var(--line); color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4rem 0.9rem; }
.post-cta { margin-top: 3rem; background: var(--card); border: 1px solid var(--line); padding: 2.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.post-cta p { color: var(--text); margin: 0; font-family: var(--serif); font-size: 1.1rem; }

/* FAQ */
.faq { padding: 7rem 0; background: var(--forest); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq.plain { background: var(--dark); border: none; }
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: none; cursor: pointer; padding: 1.6rem 0; text-align: left; font-family: var(--serif); font-size: 1.15rem; color: var(--text); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s ease; }
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; color: var(--text-muted); font-size: 0.95rem; padding: 0 0 0; }
.faq-item.open .faq-a { max-height: 320px; padding: 0 0 1.6rem; }
.faq-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin: 2.6rem 0 0.5rem; }
.faq-category:first-of-type { margin-top: 0; }

/* CONTACT / CTA */
.contact { padding: 7rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; background: var(--card); border: 1px solid var(--line); }
.contact-info { padding: 3.5rem; background-image: linear-gradient(rgba(15,17,21,0.75), rgba(15,17,21,0.9)), var(--contact-image, url('../images/hero/contact-hero.jpg')); background-size: cover; background-position: center; background-color: var(--forest); }
.contact-info h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-detail { margin-bottom: 1.3rem; }
.contact-detail .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); display: block; margin-bottom: 0.3rem; }
.contact-detail .value { color: var(--text); font-size: 0.98rem; }
.contact-detail .value a { color: inherit; text-decoration: none; }
.contact-detail .value a:hover { color: var(--gold); }
.contact-social { display: flex; gap: 0.9rem; margin-top: 2rem; }
.contact-social a { width: 38px; height: 38px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.25s ease; }
.contact-social a:hover { border-color: var(--gold); color: var(--gold); }
.contact-social svg { width: 16px; height: 16px; }
.contact-form { padding: 3.5rem 3.5rem 3.5rem 0; display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); display: block; margin-bottom: 0.5rem; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--sans); font-size: 0.95rem; padding: 0.6rem 0; }
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold); outline: none; }
.field select option { background: var(--card); }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

/* MAP */
.map-section { border-top: 1px solid var(--line); }
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo { display: inline-flex; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-faint); font-size: 0.88rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.25s ease; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; color: var(--text-faint); font-size: 0.8rem; flex-wrap: wrap; gap: 1rem; }

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35); text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float .wa-pulse {
  position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: wa-pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* ============================================================
   MOTION SYSTEM — scroll reveals, load-in stagger, page transitions
   ============================================================ */

/* Elements below the fold fade + rise into place as they enter view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Above-the-fold hero / page-header elements animate in immediately on load */
.load-in {
  opacity: 0;
  transform: translateY(18px);
  animation: nera-load-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes nera-load-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Soft cross-fade when the SPA router swaps a page into #page-root */
#page-root { animation: nera-page-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes nera-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle lift on hover for anything already using .btn / cards keeps interactions alive */
.tour-card, .value-card, .service-card, .team-card, .blog-card, .test-card {
  will-change: transform;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .wa-pulse { animation: none; display: none; }
  .reveal, .load-in { opacity: 1 !important; transform: none !important; }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .stat:nth-child(3) { border-left: none; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-card.wide { flex-direction: column; }
  .tour-card.wide .tour-img { width: 100%; height: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-imgs { height: 380px; margin-bottom: 1rem; }
  .test-grid { grid-template-columns: 1fr; }
  .values-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 0 3.5rem 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cal-track { grid-template-columns: repeat(6, 1fr); }
  .package-includes { grid-template-columns: 1fr; }
}

/* Nav collapses to a hamburger earlier than other breakpoints since this
   site has more top-level pages (9) than the original single-page nav. */
@media (max-width: 1080px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 340px; background: var(--dark); flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem; gap: 1.8rem; transform: translateX(100%); transition: transform 0.35s ease; border-left: 1px solid var(--line); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.95rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .hero { padding-bottom: 3rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-grid { gap: 1.2rem 1.8rem; justify-content: flex-start; }
  .btn { width: 100%; text-align: center; }
  .scroll-cue { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid, .service-grid, .team-grid, .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .cal-track { grid-template-columns: repeat(3, 1fr); }
  .page-header { padding: 8.5rem 0 3.5rem; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 1.2rem; right: 1.2rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Styles added for the Hono app, on top of the extracted template CSS.
   Appended to public/styles.css by scripts/extract.mjs. */

/* ------------------------------------------------- contrast corrections --- */
/* The template's faint tone sat at 4.1:1 on the page background, below the
   4.5:1 WCAG AA threshold for body text. 0.55 alpha lifts it to 5.6:1 on the
   page and 5.0:1 on cards while keeping the muted hierarchy. */
:root {
  --text-faint: rgba(245, 239, 224, 0.55);
  --error: #e5776b; /* 6.5:1 on the page background */
}

/* `.nav-links a` (0-1-1) outranked `.btn-primary` (0-1-0), so the nav CTA
   rendered muted-gold text on a gold fill at 1.6:1. */
.nav-links .btn-primary,
.nav-links .btn-primary:hover {
  color: var(--dark);
}

/* --------------------------------------------------------- focus states --- */
/* The template cleared the outline on form fields, leaving only a border-colour
   change — not a sufficient focus indicator on its own. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.faq-q:focus-visible,
.nav-toggle:focus-visible,
.cookie-bar button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--gold);
  color: var(--dark);
  padding: 0.8rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Card headings shift between h2 and h3 depending on whether the section above
   them already has an h2, so both levels need the same look. */
.tour-card h2,
.blog-body h2,
.test-card h2 {
  font-family: var(--serif);
  font-weight: 400;
}
.tour-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}
.blog-body h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

/* ------------------------------------------------------- FAQ disclosure --- */
/* Replaces the template's `max-height: 0` collapse, which (a) left closed
   answers in the accessibility tree and keyboard tab order, and (b) clipped
   longer answers at 320px once they wrapped on narrow screens. The 0fr/1fr
   grid animates to the content's real height with no magic number. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  visibility: hidden;
  transition:
    grid-template-rows 0.35s ease,
    padding 0.35s ease,
    visibility 0s linear 0.35s;
}
.faq-a > .faq-a-inner {
  min-height: 0;
  overflow: hidden;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  max-height: none;
  visibility: visible;
  transition:
    grid-template-rows 0.35s ease,
    padding 0.35s ease;
}

/* ------------------------------------------------------------ mobile nav --- */
/* Collapse point for the main bar.
   The template used 1080px; the language/currency row pushed it to 1180px, and
   the Gallery link opened a new dead zone at 1240px where the German labels
   wrapped. Measured from 1180-1520px in German and Kiswahili: 1280px is the
   first width that stays on one row. Re-measure whenever a nav item is added. */
@media (max-width: 1280px) {
  /* The template's own off-canvas rules live in a max-width:1080px block, so
     they have to be restated here to move the collapse point up. */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 340px;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.8rem;
    transform: translateX(100%);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    transition:
      transform 0.35s ease,
      visibility 0s linear 0.35s;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s ease;
  }
  .nav-links a {
    font-size: 0.95rem;
  }
  .nav-toggle {
    display: flex;
  }
  /* A comfortable target for the hamburger (WCAG 2.5.8 asks for 24px min). */
  .nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
}

/* ---------------------------------------------- form feedback & notices --- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 0.45rem;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--error);
}
.field .required {
  color: var(--gold);
}

.form-notice {
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-notice-ok {
  background: rgba(197, 168, 128, 0.12);
  border-left: 2px solid var(--gold);
  color: var(--text);
}
.form-notice-error {
  background: rgba(229, 119, 107, 0.1);
  border-left: 2px solid var(--error);
  color: var(--text);
}

/* ------------------------------------------------------------ cookie bar --- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(15, 17, 21, 0.97);
  color: var(--text);
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
.cookie-bar span {
  max-width: 640px;
}
.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}
/* Accept and decline are given equal visual weight: a prompt that makes
   refusal harder than acceptance is not a free choice. */
.cookie-bar button {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  min-height: 44px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--gold);
}
.cookie-accept {
  background: var(--gold);
  color: var(--dark);
}
.cookie-accept:hover {
  background: var(--gold-light);
}
.cookie-decline {
  background: transparent;
  color: var(--gold);
}
.cookie-decline:hover {
  background: rgba(197, 168, 128, 0.12);
}
.cookie-bar button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Reopens the prompt from the footer, since consent must be withdrawable. */
.cookie-manage {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: inherit;
  color: var(--text-faint);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-manage:hover {
  color: var(--gold);
}
.cookie-manage:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Keep the floating WhatsApp button clear of the notice while it is up. */
body:has(.cookie-bar) .whatsapp-float {
  bottom: 7.5rem;
}

@media (max-width: 768px) {
  .cookie-bar {
    justify-content: flex-start;
    padding: 1rem 1.1rem;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions button {
    flex: 1;
  }
  body:has(.cookie-bar) .whatsapp-float {
    bottom: 11rem;
  }
}

/* ------------------------------------------------------------- map facade --- */
/* Stands in for the Google Maps embed until the visitor asks for it, so no
   request reaches Google — and no Google cookie is set — on page load. */
.map-facade {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem;
}
.map-facade-inner {
  max-width: 520px;
  text-align: center;
}
.map-facade h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.map-address {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.map-notice {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-bottom: 1.6rem;
}
.map-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.map-actions .btn {
  width: auto;
}

@media (max-width: 768px) {
  .map-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .map-actions .btn {
    width: 100%;
  }
}

/* --------------------------------- semantic markup, same visual result --- */
/* Several containers changed element type for accessibility (list semantics
   for the calendar, figure/blockquote for quotes, a heading around each FAQ
   button). These rules keep the original appearance. */
.cal-track {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cal-month,
.cal-region {
  display: block;
}

.test-card {
  margin: 0;
}
.test-quote {
  margin: 0;
  quotes: none;
}
.test-card figcaption {
  display: block;
}
.test-author,
.test-origin {
  display: block;
}

.faq-item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.faq-category {
  font-family: var(--sans);
}

.breadcrumb a {
  text-decoration: none;
}

/* --------------------------------------------- secondary <nav> landmarks --- */
/* The template styles the `nav` ELEMENT as the fixed header bar:
     nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; }
   The breadcrumb and language switcher are also <nav> landmarks (correct for
   accessibility), so without this reset they inherit that fixed positioning
   and pile up in the top-left corner. */
.breadcrumb,
.nav-lang {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  padding: 0;
  border-bottom: 0;
  background: none;
  backdrop-filter: none;
  z-index: auto;
  transition: none;
}

/* ------------------------------------------- language & currency pickers --- */
/* A slim utility row above the main nav. The main bar already carries nine
   links plus a CTA, and German/Kiswahili labels are longer than the English
   ones, so putting the pickers on the same row forced the links to wrap. */
.nav-utility {
  max-width: var(--max);
  margin: 0 auto 0.55rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
}

.nav-lang ul {
  display: flex;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-lang a {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-decoration: none;
  padding: 0.2rem 0.25rem;
}
.nav-lang a:hover,
.nav-lang a.active {
  color: var(--gold);
}
.nav-lang a.active {
  border-bottom: 1px solid var(--gold);
}

.currency-select {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  cursor: pointer;
}
.currency-select:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.currency-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.currency-select option {
  background: var(--card);
  color: var(--text);
}

/* A short note that the converted figure is indicative, shown next to prices
   whenever the visitor is not looking at the billing currency. */
.currency-note {
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.4rem;
  max-width: 34ch;
}

@media (max-width: 768px) {
  /* Comfortable tap targets once the bar is thumb-operated. */
  .nav-utility {
    gap: 0.8rem;
    margin-bottom: 0.35rem;
  }
  .nav-lang a {
    font-size: 0.75rem;
    padding: 0.45rem 0.35rem;
  }
  .currency-select {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    min-height: 32px;
  }
}

/* Once the visitor loads the map, the facade keeps its heading and collapses
   its padding around the embed. */
.map-facade.map-loaded {
  display: block;
  padding: 0;
  min-height: 0;
}
.map-facade.map-loaded .map-facade-inner {
  max-width: none;
  padding: 2rem 1.5rem 1rem;
}
.map-facade.map-loaded iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ------------------------------------------------------------- gallery --- */
/* The grid itself comes from the template; these style the figure wrapper
   that replaced bare <img> tags so photos can carry captions. */
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
  background: linear-gradient(to top, rgba(15, 17, 21, 0.85), transparent);
}

/* The standalone gallery page has no hero above it. */
.gallery.plain {
  padding-top: 3rem;
}
