@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600;700;900&display=swap');

:root {
  --ink: #15120D;
  --ink-soft: #26221B;
  --bone: #F4EFE3;
  --bone-2: #EBE2CD;
  --paper: #FBF8F1;
  --rhino: #726B5C;
  --rhino-line: rgba(21, 18, 13, 0.12);
  --gold: #C6862A;
  --gold-deep: #9C6A1E;
  --gold-soft: #E9C382;
  --ember: #7A2E22;
  --ember-deep: #5C2119;
  --ivory: #FBF6EA;

  /* "Shouting colors" — imported from the main Bushland Safari app's
     brand system (app/globals.css) for this microsite's vibrant redesign.
     Exact same hex values, used there as tag-pill/accent colors; used more
     liberally here as a deliberate section-identity color-coding system
     (see comments at each usage site). */
  --blue: #3E5C78;
  --teal: #2B7A73;
  --plum: #5A4470;
  --acacia-dark: #212E1D;
  --acacia-light: #93AE72;

  /* WhatsApp brand green — was hardcoded directly in .btn-whatsapp before,
     tokenized here so the new .wa-flip component can reference it too. */
  --wa-green: #25D366;
  --wa-green-deep: #1EBE5B;

  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-feature-settings: "palt" 1;
}

/* Typography styles */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.35;
  font-weight: 700;
}

/* Subtle decorative dashed route divider */
.trail-divider {
  width: 100%;
  height: 1px;
  border-top: 2px dashed var(--rhino-line);
  margin: 0;
}

.trail-divider-gold {
  border-top: 2px dashed rgba(198, 134, 42, 0.35);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header and footer content run edge-to-edge (full viewport width) rather
   than centering within the same 1140px column every other section's
   content uses — same side padding as .container, just no max-width cap. */
.container-full {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container-full {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Trust band — 2 columns on mobile (set inline in index.html), 4 across on
   desktop where there's room for the full row without cramping. */
@media (min-width: 860px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Trade-partner "who we work with" / "what you get" cards — 5 items each.
   Flexbox instead of grid on purpose: with a 3-per-row grid, 5 items leave
   a trailing row of 2 stuck at the left edge instead of centered under the
   row above. flex-wrap + justify-content:center centers an incomplete
   trailing row automatically, which CSS Grid has no equivalent one-liner
   for. 1 column on mobile, 2 per row on tablet, 3 per row on desktop
   (3+2, the trailing pair centered). */
.partner-benefits-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}

.partner-benefits-grid > * {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .partner-benefits-grid > * {
    flex: 0 1 calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1000px) {
  .partner-benefits-grid > * {
    flex: 0 1 calc((100% - 2 * 1.25rem) / 3);
  }
}

/* Trade-partner "how it works" steps — exactly 4 items, so this one does
   get a flat row on desktop (unlike the 5-item grids above). */
@media (min-width: 640px) {
  .partner-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1000px) {
  .partner-steps-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* About Us — photo + note is a 2-column layout inline (set for desktop);
   stack to a single column with the portrait centered above the text once
   there isn't room for a 260px sidebar photo alongside readable prose. */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ember);
  color: var(--ivory);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--ember-deep);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(21, 18, 13, 0.12);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--ember-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(21, 18, 13, 0.18);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--wa-green);
  color: #FFFFFF;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--wa-green-deep);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(21, 18, 13, 0.12);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background-color: var(--wa-green-deep);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--gold-deep);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--gold);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--ink);
}

/* Trust Stamp component */
.cert-stamp {
  width: 92px;
  height: 92px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bone);
  position: relative;
  transition: transform 0.2s ease;
}

.cert-stamp:hover {
  transform: rotate(-3deg) scale(1.04);
}

.cert-stamp-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(198, 134, 42, 0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.cert-stamp-abbr {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.cert-stamp-label {
  font-size: 0.65rem;
  color: var(--gold-deep);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 2px;
}

/* Trust-band color-coding — one shouting color per badge (TANAPA/TATO-TLTO/
   AMREF/100%タンザニア) instead of every badge sharing gold. Only the
   dashed border and label recolor; geometry stays identical to .cert-stamp. */
.cert-stamp--blue { border-color: var(--blue); }
.cert-stamp--blue .cert-stamp-label { color: var(--blue); }
.cert-stamp--teal { border-color: var(--teal); }
.cert-stamp--teal .cert-stamp-label { color: var(--teal); }
.cert-stamp--plum { border-color: var(--plum); }
.cert-stamp--plum .cert-stamp-label { color: var(--plum); }
.cert-stamp--acacia { border-color: var(--acacia-light); }
.cert-stamp--acacia .cert-stamp-label { color: var(--acacia-dark); }

/* Reusable colored chip/badge backgrounds — used on why-bushland's numbered
   cards and both trade-partner card grids so the shouting-color rotation is
   defined once and shared everywhere it's needed. */
.chip-blue { background: var(--blue) !important; }
.chip-teal { background: var(--teal) !important; }
.chip-plum { background: var(--plum) !important; }
.chip-acacia-dark { background: var(--acacia-dark) !important; }
.chip-gold { background: var(--gold-deep) !important; }

/* Small plum dashed-circle accent for the About Us / founder's-note quote
   column — echoes the .cert-stamp motif (same dashed-circle-plus-rotation
   language) without a stamp's full badge treatment. */
.quote-stamp {
  width: 44px;
  height: 44px;
  border: 2px dashed var(--plum);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.1rem;
  transform: rotate(-6deg);
  margin-bottom: 1rem;
}

/* Horizontal Timeline / Route Motif */
.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .timeline-track {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .timeline-track::before {
    content: "";
    position: absolute;
    top: 2.75rem;
    left: 4%;
    right: 4%;
    height: 0;
    border-top: 2px dashed var(--gold);
    z-index: 1;
  }
}

.timeline-step {
  position: relative;
  z-index: 2;
  background: var(--bone);
  border: 1px solid var(--rhino-line);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .timeline-step {
    flex: 1;
    min-width: 0;
  }
}

.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(21, 18, 13, 0.08);
}

.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--ink);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--gold);
}

/* Accordion */
.faq-item {
  border-bottom: 1px solid var(--rhino-line);
  padding: 1.25rem 0;
}

.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  gap: 1rem;
}

.faq-button:hover {
  color: var(--gold-deep);
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1px solid var(--rhino-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--gold-deep);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--bone-2);
}

.faq-content {
  display: none;
  padding-top: 0.875rem;
  color: var(--rhino);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.active .faq-content {
  display: block;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rhino-line);
  border-radius: 8px;
  background: var(--paper);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--rhino-line);
}

.comparison-table th {
  background-color: var(--bone);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background-color: rgba(244, 239, 227, 0.35);
}

/* Column tint on the two data headers, reinforcing the same color identity
   each itinerary owns elsewhere on the page (Kilimanjaro = ember, Safari =
   acacia) so a reader recognizes the pairing at a glance. */
.comparison-table th.col-kili {
  background-color: rgba(122, 46, 34, 0.08);
}

.comparison-table th.col-safari {
  background-color: rgba(33, 46, 29, 0.08);
}

/* ===================================================================
   Full-bleed section photo band — used for the trade-partners section's
   intro (real trade-show photo), same overlay technique as the hero and
   closing-cta background images: a relatively-positioned wrapper, an
   absolutely-positioned image + gradient-scrim div behind the content,
   and the content itself sitting on top via z-index.
   =================================================================== */
.section-photo-band {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  padding: 2.5rem 1.75rem;
  margin-bottom: 3rem;
  color: var(--ivory);
}

.section-photo-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  z-index: 1;
}

.section-photo-band__content {
  position: relative;
  z-index: 2;
}

/* Real trade-show photo overlay for the itinerary hero images (Kilimanjaro/
   Safari) — a colored gradient duotone over the existing photo, same
   position:relative-wrapper + absolute-overlay technique as above, just a
   thinner overlay since the photo itself (not text) is the point there. */
.photo-tint-wrapper {
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--rhino-line);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.photo-tint-wrapper img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.photo-tint-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-tint-wrapper--ember::after {
  background: linear-gradient(to bottom, rgba(122, 46, 34, 0.15), rgba(21, 18, 13, 0.55));
}

.photo-tint-wrapper--acacia::after {
  background: linear-gradient(to bottom, rgba(33, 46, 29, 0.2), rgba(21, 18, 13, 0.55));
}

/* Real FITUR Madrid trade-show photo filmstrip — tangible proof under the
   "how it works" steps, not just a features list. 2x2 on mobile, flat row
   of 4 on desktop. */
.fitur-filmstrip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .fitur-filmstrip {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.fitur-filmstrip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--gold);
}

/* ===================================================================
   WhatsApp QR flip component — front face is the normal WhatsApp button
   (direct tap still opens WhatsApp instantly, unchanged for mobile users);
   a small toggle flips the card to reveal a QR back face, for desktop
   users who'd rather scan with their phone than get redirected to
   WhatsApp Web. Reused as-is across all 5 prefilled-message instances.
   =================================================================== */
.wa-flip {
  display: inline-block;
  perspective: 1000px;
}

.wa-flip__card {
  position: relative;
  width: 260px;
  max-width: 100%;
  height: 250px;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.wa-flip.is-flipped .wa-flip__card {
  transform: rotateY(180deg);
}

.wa-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wa-flip__face--front {
  flex-direction: row;
}

.wa-flip__face--back {
  transform: rotateY(180deg);
  background: var(--paper);
  border: 2px dashed var(--gold);
  border-radius: 8px;
  padding: 1rem;
}

.wa-flip__toggle {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--wa-green-deep);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.wa-flip__toggle:hover {
  background: var(--bone);
}

.wa-flip__qr {
  width: 160px;
  height: 160px;
  border-radius: 4px;
}

.wa-flip__caption {
  font-size: 0.82rem;
  color: var(--rhino);
}

@media (prefers-reduced-motion: reduce) {
  .wa-flip__card {
    transition: none;
  }
  .wa-flip__face {
    transition: opacity 0.15s ease;
  }
}

/* Sits inline next to .btn-primary in the hero's CTA row without stretching
   to match its height, on wide viewports where both buttons fit side by
   side. */
#wa-flip-hero {
  flex: 0 0 auto;
}

/* On narrow screens the .wa-flip__card's fixed 260px width left it visibly
   narrower than the full-width buttons around it (e.g. .btn-primary in the
   hero, which naturally fills the row once it wraps to its own line).
   Stretch the whole component to match on mobile -- the WhatsApp link grows
   to fill the space next to the fixed-size QR toggle. */
@media (max-width: 600px) {
  .wa-flip {
    display: block;
    width: 100%;
  }
  .wa-flip__card {
    width: 100%;
  }
  .wa-flip__link {
    flex: 1 1 auto;
    /* Flex items default to min-width:auto, which refuses to shrink below
       the content's own width -- combined with .btn-whatsapp's
       white-space:nowrap, that was forcing the button (and the whole page)
       wider than the viewport instead of wrapping, leaving a horizontal
       scrollbar and a strip of background visible past the right edge.
       Overriding both here lets the (sometimes long, e.g. with a phone
       number in it) label wrap onto multiple lines instead. */
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
  #wa-flip-hero {
    flex: 1 1 100%;
  }
}

/* Footer — the 3-column grid collapses to 1 column on mobile (auto-fit
   below ~720px), and the bottom copyright bar wraps to 2 stacked lines,
   but neither was actually centered -- everything just stayed left-aligned
   inside its full-width column/row, which looks unbalanced on a narrow
   screen. Center both on mobile only; desktop keeps its left-aligned
   columns and space-between bottom bar. */
@media (max-width: 640px) {
  #site-footer {
    text-align: center;
  }
  .footer-cols {
    justify-items: center;
  }
  .footer-bottom-bar {
    justify-content: center !important;
    flex-direction: column;
  }
}

