/* ============================================================
   Mlima | Maasai Mara — site styles (WordPress-free rebuild)
   Fonts: Aboreto (display) + Spline Sans (body)
   ============================================================ */

@font-face{font-family:Aboreto;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/static/fonts/aboreto.ttf') format('truetype')}
@font-face{font-family:"Spline Sans";font-style:normal;font-weight:300;font-display:swap;src:url('/assets/static/fonts/spline-sans-300.ttf') format('truetype')}
@font-face{font-family:"Spline Sans";font-style:normal;font-weight:400;font-display:swap;src:url('/assets/static/fonts/spline-sans-400.ttf') format('truetype')}
@font-face{font-family:"Spline Sans";font-style:normal;font-weight:700;font-display:swap;src:url('/assets/static/fonts/spline-sans-700.ttf') format('truetype')}

:root{
  --ink:#1c1b18;
  /* Body copy is black throughout — no grey/black mix. --muted is kept as a
     name so existing rules keep working, but it resolves to the ink colour. */
  --muted:#1c1b18;
  --paper:#ffffff;
  --sand:#f6f4ef;
  --khaki:#8d8d71;
  --deep:#23221e;
  --line:#e7e3da;
  --maxw:1180px;
  --pad:clamp(1.1rem,4vw,3rem);
  --display:"Aboreto",system-ui,sans-serif;
  --body:"Spline Sans",system-ui,-apple-system,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);color:var(--ink);background:var(--paper);line-height:1.65;font-size:clamp(15px,.9rem + .3vw,17px)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:opacity .25s ease,color .25s ease}
a:hover{opacity:.78}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.14;letter-spacing:.02em;margin:0 0 .6em}

.container{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad)}
.btn{display:inline-block;padding:.8em 1.8em;border-radius:999px;background:var(--ink);color:#fff;font-family:var(--display);font-size:.95rem;letter-spacing:.04em;border:1px solid var(--ink);cursor:pointer}
.btn:hover{background:#000;opacity:1}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.75)}
.btn--ghost:hover{background:#fff;color:var(--ink)}
.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:-999px;top:0;z-index:1000;background:#fff;color:#000;padding:.6em 1em;border-radius:4px}
.skip-link:focus{left:.6rem;top:.6rem}

/* ---- Header / navigation ---- */
.site-header{position:fixed;inset:0 0 auto;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.9rem var(--pad);transition:background .3s ease,box-shadow .3s ease,padding .3s ease}
.site-header.is-scrolled{background:rgba(28,27,24,.94);box-shadow:0 1px 0 rgba(255,255,255,.08);backdrop-filter:saturate(140%) blur(6px)}
.site-header__logo img{height:46px;width:auto;filter:drop-shadow(0 1px 6px rgba(0,0,0,.45))}
.nav{display:flex;align-items:center;gap:clamp(1rem,2.6vw,2.4rem)}
.nav a{font-family:var(--display);font-size:.95rem;letter-spacing:.06em;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.nav__cta{padding:.5em 1.2em;border:1px solid rgba(255,255,255,.7);border-radius:999px;text-shadow:none}
.nav__cta:hover{background:#fff;color:var(--ink);opacity:1}
.nav__toggle,.nav__close{display:none;background:none;border:0;color:#fff;cursor:pointer;padding:.3rem}
.nav__toggle svg,.nav__close svg{width:30px;height:30px;filter:drop-shadow(0 1px 6px rgba(0,0,0,.45))}

@media (max-width:820px){
  .nav__toggle{display:inline-flex}
  .nav{position:fixed;inset:0;flex-direction:column;justify-content:center;gap:1.6rem;
    background:rgba(23,34,28,.97);backdrop-filter:blur(8px);transform:translateY(-100%);
    transition:transform .35s ease;visibility:hidden}
  .nav.is-open{transform:none;visibility:visible}
  .nav a{font-size:1.5rem;text-shadow:none}
  .nav__cta{border:1px solid rgba(255,255,255,.7)}
  .nav__close{display:inline-flex;position:absolute;top:1.1rem;right:var(--pad)}
}

/* ---- Hero ---- */
.hero{position:relative;min-height:100svh;display:grid;place-items:center;text-align:center;color:#fff;overflow:hidden}
.hero__media{position:absolute;inset:0;z-index:-2}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:30% 40%}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(20,18,14,.45) 0%,rgba(20,18,14,.12) 35%,rgba(20,18,14,.5) 100%)}
.hero__inner{padding:6rem var(--pad) 4rem;max-width:760px;width:100%}
.hero__logo{width:clamp(220px,34vw,360px);margin:0 auto 1.6rem;filter:drop-shadow(0 2px 16px rgba(0,0,0,.5))}
.hero h1{font-size:clamp(1.6rem,1.1rem + 2.6vw,2.9rem);margin:0 0 .35em;text-shadow:0 2px 22px rgba(0,0,0,.55)}
.hero__sub{font-family:var(--display);letter-spacing:.08em;font-size:clamp(1rem,.8rem + .9vw,1.4rem);opacity:.95;margin:0;text-shadow:0 2px 16px rgba(0,0,0,.5)}
.hero__strap{font-family:var(--body);letter-spacing:.02em;font-size:clamp(.85rem,.75rem + .5vw,1.05rem);opacity:.88;margin:.5rem 0 0;text-shadow:0 2px 16px rgba(0,0,0,.5)}
.hero__cta{margin-top:2.2rem;display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}
.hero__scroll{position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);color:#fff;animation:bob 2.4s ease-in-out infinite}
.hero__scroll svg{width:30px;height:30px}
@keyframes bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,8px)}}
@media (prefers-reduced-motion:reduce){.hero__scroll{animation:none}}

/* ---- Feature rows (image + text) ---- */
/* padding-block only: the shorthand was zeroing the .container inline padding
   these rows share, so text ran to the screen edge between 760px and 1180px. */
.features{padding-block:clamp(3rem,7vw,6rem)}
/* The photo fills its half of the row: the media cell stretches to the row
   height and the image covers it, instead of sitting short at a fixed 16/10. */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.4rem,4vw,4rem);align-items:stretch;margin-bottom:clamp(2.5rem,6vw,5rem)}
.feature:last-child{margin-bottom:0}
.feature:nth-child(even) .feature__media{order:2}
/* The photo is taken out of flow so it cannot inflate the row: the cell
   stretches to the text height (with a floor for short panels) and the image
   covers whatever that turns out to be. :not(--grid) leaves the team block. */
.feature__media:not(.feature__media--grid){position:relative;min-height:clamp(230px,26vw,420px)}
.feature__media:not(.feature__media--grid)>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.feature__body{align-self:center}
.feature h2{font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem)}
.feature p{color:var(--muted);margin:0 0 1.5rem}
@media (max-width:760px){
  .feature{grid-template-columns:1fr;gap:1.1rem}
  .feature:nth-child(even) .feature__media{order:0}
}

/* ---- Testimonial ---- */
.quote{background:var(--sand);padding:clamp(3rem,7vw,6rem) 0}
.quote blockquote{max-width:820px;margin:0 auto;text-align:center}
.quote p{font-size:clamp(1.1rem,1rem + .8vw,1.5rem);font-style:italic;line-height:1.5;margin:0 0 1.2rem}
.quote cite{font-family:var(--display);font-style:normal;letter-spacing:.05em;color:var(--khaki)}

/* ---- Newsletter ---- */
.nl{max-width:560px;margin:0 auto;padding:clamp(3rem,7vw,5rem) var(--pad);text-align:center}
.nl__title{font-size:clamp(1.3rem,1.1rem + 1vw,1.8rem);margin:0 0 .4rem}
.nl__desc{color:var(--muted);margin:0 0 1.4rem}
.nl__form{display:flex;flex-direction:column;gap:.6rem}
.nl__names,.nl__row{display:flex;gap:.6rem}
.nl__names .nl__input,.nl__row .nl__input{flex:1}
.nl__input{min-height:46px;padding:0 .9rem;border:1px solid var(--line);border-radius:8px;background:var(--sand);font:inherit;font-size:16px}
.nl__input:focus{outline:2px solid var(--khaki);outline-offset:1px;background:#fff}
.nl__btn{min-height:46px;padding:0 1.5rem;border:0;border-radius:8px;background:var(--ink);color:#fff;font-family:var(--display);letter-spacing:.04em;font-size:1rem;cursor:pointer;transition:background .2s ease}
.nl__btn:hover{background:#000}
.nl__hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.nl__msg{min-height:1.2em;margin:.5rem 0 0;font-size:14px}
.nl__msg[data-state="ok"]{color:#1f7a36}
.nl__msg[data-state="error"]{color:#b00020}
@media (max-width:520px){.nl__names,.nl__row{flex-direction:column}}

/* ---- Footer ---- */
.site-footer{background:var(--deep);color:#efece4;text-align:center;padding:clamp(2.5rem,6vw,4rem) var(--pad)}
.site-footer__brand{font-family:var(--display);letter-spacing:.12em;font-size:.95rem;margin:0 0 1.2rem;opacity:.85}
.social{display:flex;gap:1.1rem;justify-content:center;list-style:none;margin:0;padding:0}
.social a{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.25);border-radius:999px}
.social a:hover{background:#fff;color:var(--deep);opacity:1}
.social svg{width:20px;height:20px;fill:currentColor}

/* ---- Interior pages ---- */
.page-hero{position:relative;color:#fff;text-align:center;padding:8rem var(--pad) 3.2rem;overflow:hidden}
.page-hero__media{position:absolute;inset:0;z-index:-2}
.page-hero__media img{width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.page-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(20,18,14,.5),rgba(20,18,14,.3) 45%,rgba(20,18,14,.62))}
.page-hero .kicker{font-family:var(--display);letter-spacing:.18em;text-transform:uppercase;font-size:.85rem;opacity:.9;margin:0 0 .45rem;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.page-hero h1{font-size:clamp(1.7rem,1.2rem + 2.4vw,2.8rem);margin:0;text-shadow:0 2px 18px rgba(0,0,0,.5)}

.section{max-width:var(--maxw);margin-inline:auto;padding:clamp(2.4rem,6vw,4.5rem) var(--pad)}
.section--narrow{max-width:780px}
.tint{background:var(--sand)}
.lead{font-size:clamp(1.05rem,1rem + .5vw,1.25rem);color:var(--muted)}
.prose h2{font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem);margin:0 0 .6em}
.prose h3{font-size:1.15rem;margin:1.4rem 0 .4em}
.prose p{margin:0 0 1rem}
.prose>*+h2{margin-top:2.2rem}

.ticks{list-style:none;margin:1rem 0;padding:0;display:grid;gap:.6rem}
.ticks li{position:relative;padding-left:1.9rem;color:var(--ink)}
.ticks li::before{content:"";position:absolute;left:.15rem;top:.35em;width:.9rem;height:.5rem;border-left:2px solid var(--khaki);border-bottom:2px solid var(--khaki);transform:rotate(-45deg)}
/* Linked bullets sit plain — no underline at rest. It appears on hover only,
   so there is still some sign the row is clickable. */
.ticks a{text-decoration:none}
.ticks a:hover{text-decoration:underline;text-decoration-color:var(--khaki);text-underline-offset:3px;opacity:1}

.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.8rem}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}

.contact{max-width:660px;margin:0 auto}
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.contact label{display:flex;flex-direction:column;gap:.3rem;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.contact input,.contact textarea{min-height:46px;padding:.6rem .75rem;border:1px solid var(--line);border-radius:8px;background:var(--sand);font:inherit;font-size:16px;text-transform:none;letter-spacing:normal;color:var(--ink)}
.contact textarea{min-height:140px}
.contact input:focus,.contact textarea:focus{outline:2px solid var(--khaki);outline-offset:1px;background:#fff}
.contact .full{grid-column:1/-1}
.contact__hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.contact__msg{min-height:1.3em;margin:.5rem 0 0;font-size:14px}
.contact__msg[data-state="ok"]{color:#1f7a36}
.contact__msg[data-state="error"]{color:#b00020}
@media (max-width:560px){.contact__grid{grid-template-columns:1fr}}

/* ---- Photo protection: no right-click, no drag-to-save, no long-press save ---- */
img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* ---- Clickable photo: gallery tile, cottage badge ----
   No frame: no radius, no background, no ring. Just the photograph. */
.shot{display:block;width:100%;padding:0;border:0;background:none;font:inherit;color:inherit;
  cursor:zoom-in;position:relative;overflow:hidden}
.shot img{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .45s ease}
.shot:hover img{transform:scale(1.045)}
.shot:focus-visible{outline:none}
.gallery .shot{aspect-ratio:4/3}
.gallery--wide{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
/* Two-up on a phone — auto-fill would otherwise drop to one tile per row. */
@media (max-width:600px){.gallery,.gallery--wide{grid-template-columns:repeat(2,1fr)}}

/* Four-up photo block beside a feature panel (the team on About Us) */
.feature__media--grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;align-content:center;min-height:0}
.feature__media--grid img{width:100%;aspect-ratio:1/1;height:auto;object-fit:cover}

/* Hero variant for the wide plains shots. The band is short and the crop is
   tight, so this value is a balance: too high (0%) and the elephants fall off
   the bottom; too low (32%) and the camp on the skyline sits on the very top
   edge. At 20% the camp reads in the background with the herd still dominant. */
.page-hero--top .page-hero__media img{object-position:50% 20%}

/* ---- Generic modal (cottage gallery, operator enquiry) ---- */
.modal{position:fixed;inset:0;z-index:180;display:none;align-items:center;justify-content:center;
  background:rgba(14,13,11,.72);padding:clamp(.8rem,4vw,2.5rem);backdrop-filter:blur(3px)}
.modal.is-open{display:flex}
.modal__panel{position:relative;width:100%;max-width:880px;max-height:90vh;overflow:auto;
  background:var(--paper);color:var(--ink);border-radius:16px;padding:clamp(1.3rem,3.5vw,2.2rem);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.7)}
.modal__panel--narrow{max-width:580px}
.modal__close{position:absolute;top:.7rem;right:.7rem;width:40px;height:40px;border-radius:999px;
  border:1px solid var(--line);background:#fff;color:var(--ink);font-size:1.5rem;line-height:1;cursor:pointer}
.modal__close:hover{background:var(--sand)}
.modal__kicker{font-family:var(--display);letter-spacing:.16em;text-transform:uppercase;font-size:.74rem;
  color:var(--khaki);margin:0 0 .3rem}
.modal__panel h2{font-size:clamp(1.3rem,1.1rem + 1vw,1.8rem);margin:0 0 .5rem;padding-right:2.5rem}
.modal__lead{margin:0 0 1.2rem}

/* ---- Lightbox: the larger preview ---- */
.lightbox{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;
  background:rgba(14,13,11,.94);padding:clamp(1rem,4vw,3rem)}
.lightbox.is-open{display:flex}
.lightbox__figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:.7rem;max-width:100%}
.lightbox__img{max-width:100%;max-height:80vh;width:auto}
.lightbox__caption{margin:0;color:#efece4;font-size:.85rem;letter-spacing:.04em;text-align:center}
.lightbox__btn,.lightbox__close{position:absolute;display:grid;place-items:center;border-radius:999px;
  border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.35);color:#fff;cursor:pointer;line-height:1}
.lightbox__btn{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:1.6rem}
.lightbox__btn--prev{left:clamp(.4rem,2vw,1.6rem)}
.lightbox__btn--next{right:clamp(.4rem,2vw,1.6rem)}
.lightbox__close{top:clamp(.6rem,2vw,1.4rem);right:clamp(.6rem,2vw,1.4rem);width:44px;height:44px;font-size:1.7rem}
.lightbox__btn:hover,.lightbox__close:hover{background:rgba(255,255,255,.18)}
.lightbox__btn[hidden]{display:none}
@media (max-width:600px){.lightbox__btn{width:40px;height:40px}}

/* ---- Small-screen polish ---- */
@media (max-width:430px){
  .hero__cta{flex-direction:column;align-items:center}
  .hero__cta .btn{width:100%;max-width:300px;text-align:center}
}
