/* ============================================================================
   UrbanWay Tours & Safari — Arusha Wildlife Safaris design system

   Ported from the operator's own Arusha Wildlife Safaris build at the founder's
   request: same palette, same type pairing, same image organisation, same feel.

   THE SYSTEM IN ONE LINE: a dark forest chrome, a warm paper body, an editorial
   old-style serif for everything a person reads, and a wide-tracked grotesque
   for every label, button and number.

   Every ratio in a comment here was computed (sRGB -> WCAG), never eyeballed.
   ========================================================================== */

:root{
  /* chrome — header, footer, hero ground */
  --forest:#2A3327;        /* header / footer ground              */
  --forest-deep:#1F2620;   /* deepest band                        */
  --rule-dark:#3D4739;     /* hairline on dark                    */

  /* body grounds */
  --paper:#F0EDE6;         /* main light ground                   */
  --card:#F6F4EF;          /* card / inset ground                 */
  --sand:#E3DFD4;          /* alternate light band                */
  --rule:#D5D0C4;          /* hairline on light                   */

  /* ink */
  --ink:#1E241C;           /* headings + body on light  13.56:1   */
  --ink-soft:#46503F;      /* secondary body on light    7.24:1   */
  --muted:#5C6456;         /* meta / destination lines   5.60:1   */
  --cream:#E8E4D9;         /* body on dark              10.32:1   */

  /* accents */
  --gold:#D9A94E;          /* CTA fill; label on dark    6.08:1   */
  --gold-ink:#745718;      /* gold label on light: paper 5.76 · card 6.13 · sand 5.06 */
  --lime:#93B23F;          /* brand mark accent; dark only 5.42:1 */

  --rail:1180px;
  --gut:clamp(1.15rem,4vw,2.6rem);
  --band-y:clamp(3.4rem,7vw,6.5rem);

  --serif:"EB Garamond",Georgia,"Times New Roman",serif;
  --sans:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;min-height:100dvh;background:var(--paper);color:var(--ink-soft);
  font-family:var(--serif);font-size:19px;line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
img,video,svg{max-width:100%;height:auto;display:block}
a{color:inherit}

/* ---- type ---------------------------------------------------------------- */
h1,h2,h3,h4{color:var(--ink);margin:0;font-family:var(--serif);font-weight:400;
            text-wrap:balance;letter-spacing:-.006em}
h1{font-size:clamp(2.5rem,6.2vw,4.3rem);line-height:1.06}
h2{font-size:clamp(1.9rem,4vw,3rem);line-height:1.12}
h3{font-size:clamp(1.35rem,2.4vw,1.8rem);line-height:1.2}
h4{font-size:1.15rem;line-height:1.3}
p{margin:0;max-width:64ch}
strong{font-weight:600;color:var(--ink)}

/* the wide-tracked grotesque that carries every label on the reference */
.label{font-family:var(--sans);font-weight:600;font-size:13px;
       letter-spacing:.22em;text-transform:uppercase;color:var(--gold-ink);margin:0}
.band-dark .label,.band-deep .label{color:var(--gold)}
/* the reference sets the HERO eyebrow in white and reserves gold for section
   labels on solid dark grounds (the footer).

   SIZED UP DELIBERATELY. At 13px this needs 4.5:1 over the photograph, and the
   only way to buy that on a bright aerial is a scrim heavy enough to flatten
   the picture — which is the opposite of the brief. At 19px/600 it is large
   text (3:1), so the wash can stay light and the mountain stays visible. */
.hero .label{color:var(--paper);font-size:19px;font-weight:600;letter-spacing:.2em}
.meta{font-family:var(--sans);font-weight:500;font-size:13px;
      letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.lede{font-size:clamp(1.16rem,2.1vw,1.42rem);line-height:1.58;max-width:56ch;color:var(--ink-soft)}
.num{font-family:var(--sans);font-variant-numeric:tabular-nums}

/* ---- layout -------------------------------------------------------------- */
.rail{max-width:var(--rail);margin-inline:auto}
.band{padding:var(--band-y) var(--gut);background:var(--paper)}
.band-sand{background:var(--sand)}
.band-card{background:var(--card)}
.band-dark{background:var(--forest);color:var(--cream)}
.band-dark h1,.band-dark h2,.band-dark h3,.band-dark h4{color:var(--paper)}
.band-dark p{color:var(--cream)}
.band-deep{background:var(--forest-deep);color:var(--cream)}
.band-deep h2,.band-deep h3{color:var(--paper)}
.band-deep p{color:var(--cream)}
.stack{display:flex;flex-direction:column;gap:1.5rem}
.stack-s{display:flex;flex-direction:column;gap:.7rem}
.scroller{overflow-x:auto}

/* numbered section head — "07 THIS IS TANZANIA" with a rule running right */
.sechead{display:flex;align-items:center;gap:.9rem;margin-bottom:1.4rem}
.sechead .n{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.14em;
            color:var(--ink)}
.sechead .t{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.22em;
            text-transform:uppercase;color:var(--ink)}
.sechead::after{content:"";flex:1;height:1px;background:var(--rule)}
.band-dark .sechead .n,.band-dark .sechead .t,
.band-deep .sechead .n,.band-deep .sechead .t{color:var(--gold)}
.band-dark .sechead::after,.band-deep .sechead::after{background:var(--rule-dark)}

/* ---- header -------------------------------------------------------------- */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--gold);
      color:var(--ink);padding:.8rem 1.2rem;font-family:var(--sans);font-weight:600;
      font-size:13px;letter-spacing:.14em;text-transform:uppercase;text-decoration:none}
.skip:focus{left:0}

.site-head{background:var(--forest);position:sticky;top:0;z-index:50;
           border-bottom:1px solid var(--rule-dark)}
.site-head .rail{display:flex;align-items:center;gap:1rem;padding:.85rem var(--gut);
                 position:relative}
.site-head__logo{display:block;flex:0 0 auto}
.site-head__logo img{height:52px;width:auto}
@media (max-width:700px){.site-head__logo img{height:42px}}

/* hamburger inside a bordered square, exactly as the reference */
.nav-toggle{margin-left:auto;display:grid;place-items:center;width:52px;height:52px;
  background:none;border:1px solid var(--cream);color:var(--paper);cursor:pointer;
  font-size:20px;line-height:1;padding:0}
.nav-toggle:hover{background:var(--rule-dark)}

.nav{display:none}
.nav.is-open{display:block;position:absolute;left:0;right:0;top:100%;
  background:var(--forest);border-top:1px solid var(--rule-dark);
  padding:1.4rem var(--gut) 2rem;z-index:60}
.nav a{display:block;font-family:var(--serif);font-size:1.22rem;color:var(--cream);
       text-decoration:none;padding:.62rem 0}
.nav a:hover,.nav a:focus-visible{color:var(--gold)}
@media (min-width:1000px){
  .nav-toggle{display:none}
  .nav{display:flex;margin-left:auto;gap:.15rem;position:static;padding:0;
       background:none;border:none}
  .nav a{font-family:var(--sans);font-size:14px;font-weight:500;letter-spacing:.04em;
         padding:.5rem .78rem}
}

/* ---- buttons — full-width stacked bars with a circled arrow --------------- */
.btn{display:flex;align-items:center;justify-content:center;gap:.85rem;
  font-family:var(--sans);font-weight:600;font-size:14px;letter-spacing:.17em;
  text-transform:uppercase;text-decoration:none;padding:1.15rem 1.6rem;
  border:1px solid transparent;cursor:pointer;transition:background-color .16s,color .16s}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}
.btn .arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  border:1px solid currentColor;flex:0 0 auto;font-size:14px;line-height:1}
.btn-primary{background:var(--gold);color:var(--ink);border-color:var(--gold)}      /* 7.35:1 */
.btn-primary:hover,.btn-primary:focus-visible{background:var(--ink);color:var(--gold);border-color:var(--ink)}
.btn-light{background:var(--paper);color:var(--ink);border-color:var(--paper)}      /* 13.56:1 */
.btn-light:hover,.btn-light:focus-visible{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.btn-ghost{background:transparent;color:var(--paper);border-color:var(--paper)}
.btn-ghost:hover,.btn-ghost:focus-visible{background:var(--paper);color:var(--ink)}
.btn-dark{background:var(--forest);color:var(--paper);border-color:var(--forest)}
.btn-dark:hover,.btn-dark:focus-visible{background:var(--gold);color:var(--ink);border-color:var(--gold)}
.actions{display:flex;flex-direction:column;gap:.85rem;max-width:34rem}
@media (min-width:760px){.actions{flex-direction:row}.actions .btn{flex:1}}

:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---- hero — CLEAN media, text on its own ground --------------------------
   No scrim of any kind. Three attempts at a wash all failed the same way: a
   gradient dark enough to carry white text over a bright sky is dark enough to
   flatten the sky, and the operator wants the footage clear. So the text does
   not sit on the video — it sits on a solid forest band directly beneath it,
   and the media block is 100% untouched.
   Text on solid --forest: paper 11.22:1, cream 10.32:1, gold 6.08:1.
   -------------------------------------------------------------------------- */
.hero{position:relative;background:var(--forest);display:flex;flex-direction:column}
.hero__media{position:relative;width:100%;aspect-ratio:21/9;overflow:hidden;
             background:var(--forest-deep)}
.hero__media img,.hero__media video{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:900px){.hero__media{aspect-ratio:4/3}}
@media (max-width:560px){.hero__media{aspect-ratio:1/1}}
.hero__body{background:var(--forest);padding:clamp(2.4rem,5vw,4rem) var(--gut) clamp(2.6rem,5vw,4rem)}
.hero__body .rail{display:flex;flex-direction:column;gap:1.15rem}
.hero h1{color:var(--paper);max-width:18ch}
.hero .lede{color:var(--cream);max-width:52ch}

/* ---- safari cards -------------------------------------------------------- */
.cards{display:grid;gap:1.6rem;
       /* min() guard: at 320px the gutters leave ~283px, and a hard 310px
          track minimum pushed the whole page 8px sideways */
       grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr))}
/* Wide screens take the column count the balancer worked out, so a row is
   always full — seven cards render 4 + 3, never 3 + 3 + 1 with a hole. */
/* The balanced row count only applies once there is genuinely room for it.
   Below this the grid falls back to auto-fit, which picks 2 or 3 itself.
   minmax(0,1fr): a plain 1fr floors at min-content, so fixed tracks could not
   shrink and the rail overflowed. */
@media (min-width:1200px){
  .cards{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}
}
.card{display:flex;flex-direction:column;background:var(--card);
      border:1px solid var(--rule);text-decoration:none;color:inherit}
.card__media{aspect-ratio:16/11;overflow:hidden;background:var(--sand)}
.card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card__media img,.card:focus-visible .card__media img{transform:scale(1.035)}
@media (prefers-reduced-motion:reduce){.card__media img{transition:none}}
.card__body{padding:1.5rem 1.6rem 1.7rem;display:flex;flex-direction:column;gap:.75rem;flex:1}
.card__dur{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.18em;
           text-transform:uppercase;color:var(--ink)}
.card h3{color:var(--ink)}
.card__where{font-family:var(--sans);font-weight:500;font-size:13px;letter-spacing:.16em;
             text-transform:uppercase;color:var(--muted)}
.card p{font-size:1.02rem;line-height:1.55;color:var(--ink-soft)}
.card__foot{margin-top:auto;padding-top:1.1rem;border-top:1px solid var(--rule);
            display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}
.card__price .l{display:block;font-family:var(--sans);font-weight:500;font-size:13px;
                letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
                /* 13px, not 12.5: this sits inside .card, which is an <a> */
.card__price .v{font-family:var(--sans);font-weight:700;font-size:1.12rem;color:var(--ink);
                font-variant-numeric:tabular-nums}
.card__go{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.16em;
          text-transform:uppercase;color:var(--ink);white-space:nowrap}
/* The same treatment used as a STANDALONE link, outside a card. .card__go is
   --ink because a card always has a light ground; on a dark band that is
   1.21:1, so a standalone link needs its own band-aware colour. */
.inline-go{font-family:var(--sans);font-weight:600;font-size:14px;letter-spacing:.16em;
           text-transform:uppercase;color:var(--gold-ink);text-decoration:none;
           display:inline-block;padding:.35rem 0;min-height:24px}
.band-dark .inline-go,.band-deep .inline-go{color:var(--gold)}   /* 6.08:1 */
.inline-go:hover,.inline-go:focus-visible{text-decoration:underline}

/* ---- spec grid — bordered two-column cells ------------------------------- */
.spec{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--rule);
      border-bottom:none;background:var(--card);margin:0}
.spec > div{padding:1.15rem 1.3rem;border-bottom:1px solid var(--rule)}
.spec > div:nth-child(odd){border-right:1px solid var(--rule)}
.spec dt{font-family:var(--sans);font-weight:600;font-size:12.5px;letter-spacing:.18em;
         text-transform:uppercase;color:var(--muted);margin:0 0 .3rem}
.spec dd{margin:0;font-size:1.15rem;color:var(--ink)}

/* ---- route chips --------------------------------------------------------- */
.route{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}
.route span{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink);background:var(--sand);
  border:1px solid var(--rule);padding:.6rem .95rem}
.route i{font-style:normal;color:var(--muted);font-size:15px}

/* ---- day list ------------------------------------------------------------ */
.days{display:flex;flex-direction:column;border-top:1px solid var(--rule)}
.day{display:grid;grid-template-columns:5.6rem 1fr;gap:0 1.5rem;padding:1.5rem 0;
     border-bottom:1px solid var(--rule);align-items:start}
.day__n{font-family:var(--sans);font-weight:600;font-size:12.5px;letter-spacing:.18em;
        text-transform:uppercase;color:var(--gold-ink);padding-top:.4rem}
.day h3{margin-bottom:.35rem}
@media (max-width:620px){.day{grid-template-columns:1fr;gap:.4rem}}

/* ---- photo mosaic — the "what the days look like" grid ------------------- */
.mosaic{display:grid;grid-template-columns:repeat(2,1fr);gap:2px}
@media (min-width:900px){.mosaic{grid-template-columns:repeat(3,1fr)}}
.mosaic img{width:100%;aspect-ratio:1/1;object-fit:cover}
.mosaic figure{margin:0}

/* ---- lists --------------------------------------------------------------- */
.ticks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.6rem}
.ticks li{display:grid;grid-template-columns:1.1rem 1fr;gap:.75rem;font-size:1.05rem}
.ticks li::before{content:"";width:7px;height:7px;margin-top:.62rem;background:var(--gold-ink)}
.ticks.no li::before{background:none;box-shadow:inset 0 0 0 1px var(--muted)}

/* ---- two-up prose grid --------------------------------------------------- */
.duo{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.duo h3{margin-bottom:.5rem}

/* ---- forms --------------------------------------------------------------- */
.form-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.16em;
             text-transform:uppercase;color:var(--muted)}
.band-dark .field label,.band-deep .field label{color:var(--gold)}
.field input,.field select,.field textarea{
  font-family:var(--serif);font-size:17px;padding:.85rem .95rem;background:var(--card);
  color:var(--ink);border:1px solid var(--muted);border-radius:0;width:100%}
.band-dark .field input,.band-dark .field select,.band-dark .field textarea,
.band-deep .field input,.band-deep .field select,.band-deep .field textarea{
  background:var(--forest-deep);color:var(--paper);border-color:var(--cream)}
.field textarea{min-height:7.5rem;resize:vertical}
.field ::placeholder{color:var(--muted);opacity:1}
.band-dark .field ::placeholder,.band-deep .field ::placeholder{color:var(--cream);opacity:.8}
.form-note{font-size:1rem;border-left:3px solid var(--gold);padding-left:1rem}

/* ---- footer -------------------------------------------------------------- */
.site-foot{background:var(--forest);color:var(--cream);padding:var(--band-y) var(--gut) 2.6rem}
.site-foot__logo img{height:64px;width:auto;margin-bottom:1.2rem}
.site-foot .tagline{font-family:var(--serif);font-style:italic;font-size:1.3rem;
                    color:var(--paper);margin-bottom:1rem}
.site-foot p{color:var(--cream)}
.foot-grid{display:grid;gap:2.4rem;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));
           margin-top:2.6rem}
.foot-col h4{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.22em;
             text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.foot-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.1rem}
.foot-col a{display:inline-block;font-family:var(--serif);font-size:1.08rem;
            color:var(--cream);text-decoration:none;padding:.42rem 0;min-height:24px}
.foot-col a:hover,.foot-col a:focus-visible{color:var(--gold)}
.foot-bottom{margin-top:2.8rem;padding-top:1.5rem;border-top:1px solid var(--rule-dark);
  display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;font-size:1rem}
.foot-bottom a{display:inline-block;padding:.3rem 0;min-height:24px;color:var(--cream)}

/* ---- sticky whatsapp ----------------------------------------------------- */
.wa{position:fixed;right:1rem;bottom:1rem;z-index:60;display:inline-flex;align-items:center;
  gap:.55rem;background:var(--gold);color:var(--ink);font-family:var(--sans);font-weight:600;
  font-size:14px;letter-spacing:.1em;text-transform:uppercase;padding:.9rem 1.2rem;
  text-decoration:none;box-shadow:0 3px 18px rgba(20,26,18,.34)}
.wa:hover,.wa:focus-visible{background:var(--ink);color:var(--gold)}
@media (max-width:560px){.wa span{display:none}.wa{padding:1rem}}

.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
