/* ==========================================================================
   WILD & NATURE SAFARIS — responsive.css
   Breakpoints: 1180 · 1024 · 860 · 640 · 420
   Sections are redesigned per device — never simply shrunk.
   ========================================================================== */

/* --------------------------------------------------------------------------
   ≤ 1180px — compact desktop / small laptop
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .exp-accordion { height: clamp(26rem, 58vh, 38rem); }
  .exp-panel.is-active { flex-grow: 4; }

  .founder-cards { grid-template-columns: 1fr; }

  .footer__grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    row-gap: 2.75rem;
  }

  .footer__brand { grid-row: span 2; }
}

/* --------------------------------------------------------------------------
   ≤ 1024px — tablet landscape
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__list { gap: 1.35rem; }
  .nav__link { font-size: 0.66rem; letter-spacing: 0.14em; }

  .why__grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.25rem;
  }

  .exp-accordion { height: clamp(25rem, 56vh, 35rem); }
  .exp-panel.is-active { flex-grow: 3.6; }
  .exp-panel__title { font-size: clamp(1.85rem, 3.2vw, 2.35rem); }

  .pkg-grid { grid-template-columns: repeat(2, 1fr); }

  .dest-explorer {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 1.5rem;
  }

  .dest-select__item {
    grid-template-columns: 72px 1fr 34px;
    gap: 0.85rem;
    padding: 0.75rem 0.95rem 0.75rem 0.75rem;
  }

  .dest-select__thumb { width: 72px; height: 54px; }
  .dest-feature__text { max-width: 38ch; }

  .journal-row { gap: 2.25rem 1.75rem; }

  /* about page */
  .vehicle-features { grid-template-columns: repeat(2, 1fr); }
  .vehicle-gallery { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   ≤ 860px — tablet portrait: navigation collapses
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* hero */
  .hero__content { padding-bottom: 8.5rem; }
  .hero__actions { gap: 0.9rem; }

  /* why — stack, image becomes a wide editorial band */
  .why__grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .intro__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .intro__head { position: static; }
  .intro__text { padding-left: 0; border-left: 0; }

  .why__media {
    position: static;
    max-width: 34rem;
  }

  .why__media .frame,
  .why__media .frame img { aspect-ratio: 3 / 2; }

  .frame::after { inset: 14px -14px -14px 14px; }

  /* experiences — accordion tightens */
  .exp-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .exp-head .section__lead { padding-bottom: 0; }

  /* faq — stacked */
  .faq__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq__head { position: static; }
  .faq__sign { margin-top: 1.1rem; }

  .exp-accordion {
    height: clamp(24rem, 55vh, 32rem);
    gap: 0.55rem;
  }

  .exp-panel { border-radius: 14px; }
  .exp-panel.is-active { flex-grow: 3.2; }

  .exp-panel__body { padding: 1.35rem; }
  .exp-panel__title { font-size: clamp(1.65rem, 3.4vw, 2.15rem); }
  .exp-panel__text { font-size: 0.9rem; margin-bottom: 1.15rem; }
  .exp-panel__vtitle { font-size: 1.05rem; bottom: 1.35rem; }

  /* destinations — featured image first, selector becomes a horizontal rail */
  .dest-explorer {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .dest-feature {
    order: -1;
    min-height: clamp(28rem, 62vh, 38rem);
  }

  .dest-select {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
    justify-content: flex-start;
  }

  .dest-select::-webkit-scrollbar { display: none; }

  .dest-select > li { flex: 0 0 auto; scroll-snap-align: start; }

  .dest-select__item {
    grid-template-columns: 64px 1fr 30px;
    width: clamp(235px, 58vw, 300px);
    padding: 0.65rem 0.85rem 0.65rem 0.65rem;
    gap: 0.85rem;
  }

  .dest-select__thumb {
    width: 64px;
    height: 52px;
  }

  .dest-select__name { font-size: 1.02rem; }
  .dest-select__arrow { width: 30px; height: 30px; }

  .dest-select__item:hover { transform: none; }

  /* journal — two by two */
  .journal-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.75rem;
  }

  /* reviews — cards stack to one column */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
    max-width: 34rem;
    margin-inline: auto;
  }

  .reviews__summary { gap: 2rem 2.75rem; }

  /* about page — stacked panels and founder */
  .vm-grid { grid-template-columns: 1fr; }

  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 26rem; }

  .founder-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

  .role-grid {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }

  /* footer */
  /* tailor card stacks */
  .tailor__card {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }

  .tailor__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem 1.85rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
  }

  .tailor__actions .btn { margin-top: 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; grid-row: auto; }
}

/* --------------------------------------------------------------------------
   ≤ 640px — mobile
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --section-y: clamp(48px, 9vw, 64px);
    --gutter: 20px;
  }

  .eyebrow { margin-bottom: 1.05rem; letter-spacing: 0.24em; }

  .section__head--split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section__head--split .section__lead { padding-bottom: 0; }

  /* hero — content repositioned, headline scaled, CTA stacked full width */
  .hero {
    min-height: 92svh;
    align-items: flex-end;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 7.5rem;
  }

  .hero__title { font-size: clamp(2.65rem, 12.5vw, 3.75rem); }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.72;
    max-width: 34ch;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 2.15rem;
  }

  .hero__actions .btn { width: 100%; }

  .hero__scroll {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.85rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__scroll-line { width: 1px; height: 46px; }
  .hero__scroll-line::after {
    inset: 0;
    transform: translateY(-100%);
    animation-name: scroll-sweep-v;
  }

  @keyframes scroll-sweep-v {
    0%   { transform: translateY(-100%); }
    55%  { transform: translateY(0); }
    100% { transform: translateY(100%); }
  }

  /* why */
  .why__media { max-width: none; }
  .frame::after { inset: 10px -10px -10px 10px; }

  .value {
    grid-template-columns: 3.15rem 1fr;
    gap: 0.85rem;
    padding-block: 1.75rem;
  }

  .value__num { font-size: 1.3rem; }

  /* experiences — vertical accordion, tap to open */
  .exp-accordion {
    flex-direction: column;
    height: auto;
    gap: 0.65rem;
  }

  .exp-panel {
    flex: none;
    height: 4.35rem;
    border-radius: 14px;
    transition: height 0.8s var(--ease-out);
  }

  .exp-panel.is-active { height: 23rem; flex-grow: 0; }

  .exp-panel__vtitle {
    writing-mode: horizontal-tb;
    transform: translateY(-50%);
    left: 1.25rem;
    right: 1.25rem;
    bottom: auto;
    top: 50%;
    font-size: 1.2rem;
  }

  .exp-panel.is-active .exp-panel__vtitle {
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
  }

  .exp-panel__body { padding: 1.35rem; }
  .exp-panel__title { font-size: 1.85rem; }

  /* destinations — featured image prominent, compact selector rail */
  .dest-feature {
    min-height: 26rem;
    margin-inline: calc(var(--gutter) * -1);
  }

  .dest-feature__content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 4.75rem;
    max-width: none;
  }

  .dest-feature__title { font-size: clamp(2.15rem, 9vw, 2.85rem); }
  .dest-feature__text { font-size: 0.925rem; line-height: 1.75; margin-bottom: 1.35rem; }

  .dest-feature__nav {
    right: 1.25rem;
    bottom: 1.15rem;
  }

  .dest-arrow {
    width: 44px;
    height: 44px;
  }

  .dest-select {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .dest-select__item {
    width: clamp(215px, 66vw, 260px);
    grid-template-columns: 56px 1fr 28px;
  }

  .dest-select__thumb { width: 56px; height: 46px; }

  /* journal — one moving row, horizontal snap scroll */
  .journal-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    gap: 1.35rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.75rem;
  }

  .journal-row::-webkit-scrollbar { display: none; }

  .journal-row .journal-card {
    flex: 0 0 auto;
    width: min(76vw, 300px);
    scroll-snap-align: start;
  }

  .journal-row .journal-card:hover { transform: none; }

  .journal-card__text { margin-bottom: 1.25rem; }

  .journal__cta { margin-top: 2.85rem; }

  /* reviews — tighter summary */
  .reviews__summary {
    gap: 1.5rem;
    padding-block: 1.35rem;
  }

  .reviews__stat { flex: 1 1 40%; }

  .review-card { padding: 1.5rem; }

  /* about page — single column features */
  .vehicle-features { grid-template-columns: 1fr; }

  .founder-card { grid-template-columns: 1fr; }
  .founder-card__photo { aspect-ratio: 4 / 3; }
  .team-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }

  .pkg-grid { grid-template-columns: 1fr; }

  .pkg-card__foot {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .pkg-card__price { font-size: 0.82rem; }
  .pkg-card__price strong { font-size: 0.95rem; }

  .btn--pill {
    padding: 0.8em 1.35em;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  /* footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
    padding-block: 3.25rem;
  }

  .footer__brand { grid-column: 1 / -1; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .tailor__actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .tailor__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   ≤ 420px — small phones
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .brand__name { font-size: 1.02rem; letter-spacing: 0.04em; }
  .brand__sub { letter-spacing: 0.38em; font-size: 0.5rem; }

  .hero__title { font-size: 2.55rem; }

  .section__title { font-size: 2.15rem; }

  .footer__grid { grid-template-columns: 1fr; }

  .mobile-menu__foot { flex-direction: column; align-items: flex-start; }
}
