/* ==========================================================================
   Ya Basta Safaris & Horse Ranch · Plaaskombuis
   Palette and type come from the design. The breakpoints do not — the design
   was drawn at desktop width only, and most of this site's traffic arrives
   from a WhatsApp link on a phone.
   ========================================================================== */

:root {
  --bg: #0B0908;
  --panel: #1A130D;
  --gold: #F2C14E;
  --gold-bright: #FFD97A;
  --gold-line: #D4A017;
  --amber: #FFC42B;
  --orange: #E8611A;
  --rust: #B8321A;
  --brown: #3A1208;
  --cream: #F6ECD8;
  --sand: #EAD9B8;
  --khaki: #C9B58F;
  --muted: #8C7A5C;
  --wa: #25D366;
  --wa-soft: #7BE39A;
  --danger: #FF8A65;
  --shell: 1200px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

/* Load-bearing. The browser hides [hidden] with `display: none` from its own
   stylesheet, which ANY author `display` rule outranks — so `el.hidden = true`
   silently fails on the grids and on the login screen, and the sign-in card
   stays painted on top of the panel. Both pages toggle visibility with the
   hidden property, so this has to win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; }

input, textarea, select, button { font-family: inherit; }

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

.shell { max-width: var(--shell); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.kicker {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; margin-bottom: 10px;
}
.kicker--amber { color: var(--amber); letter-spacing: 0.2em; }

.h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 7vw, 56px); line-height: 1;
  text-transform: uppercase; color: var(--cream);
}

.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;
}

@keyframes ybfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- header -- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
}
.header__inner {
  display: flex; align-items: center; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold-line);
}
.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: 0.06em; color: var(--gold); line-height: 1;
}
.brand__sub {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--khaki); line-height: 1.3; margin-top: 2px;
}

.nav {
  margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a { color: var(--cream); }
.nav a:hover { color: var(--gold); }

.header__tools { display: flex; gap: 10px; align-items: center; }

.lang {
  display: flex; border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600;
}
.lang button {
  padding: 6px 12px; border: 0; cursor: pointer;
  background: transparent; color: var(--sand);
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--panel); }

.wa-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; background: var(--wa); color: #062b13;
  font-weight: 600; font-size: 13px; white-space: nowrap;
}
.wa-pill:hover { background: #3fe07a; color: #062b13; }
.wa-pill svg { flex-shrink: 0; }

.nav-toggle {
  display: none; padding: 8px 12px; border-radius: 6px;
  border: 1px solid rgba(212, 160, 23, 0.5); background: transparent;
  color: var(--gold); font-size: 20px; line-height: 1; cursor: pointer;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 100%, var(--orange) 0%, var(--rust) 30%, var(--brown) 60%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 90deg at 50% 100%, rgba(255, 196, 43, 0.08) 0deg 6deg, transparent 6deg 14deg);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px;
}
.hero__copy { animation: ybfade .6s ease both; }
.hero__place {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--amber); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 9vw, 88px); line-height: 0.92; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--cream); text-wrap: pretty;
}
.hero p {
  margin: 24px 0 36px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5;
  max-width: 520px; color: var(--sand); text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge { display: flex; justify-content: center; animation: ybfade .8s ease both; }
.hero__badge img {
  /* height:auto is load-bearing. The <img height="420"> attribute becomes a
     presentational hint the aspect-ratio cannot override, and the badge
     renders as an oval on any screen narrower than 420px. */
  width: min(420px, 100%); height: auto; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px var(--gold-line), 0 0 0 10px var(--panel);
}

.btn {
  display: inline-block; padding: 15px 28px; border-radius: 6px;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border: 0;
}
.btn--solid { background: var(--gold); color: var(--panel); }
.btn--solid:hover { background: var(--gold-bright); color: var(--panel); }
.btn--ghost { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn--ghost:hover { background: rgba(242, 193, 78, 0.12); color: var(--gold-bright); }

/* --------------------------------------------------------------- pillars -- */

.pillars {
  background: var(--panel);
  border-top: 1px solid rgba(212, 160, 23, 0.3);
  border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 24px; }
.pillar { padding: 26px 24px; border-right: 1px solid rgba(212, 160, 23, 0.2); }
.pillar:last-child { border-right: 0; }
.pillar__title {
  font-family: var(--display); font-weight: 800; font-size: 26px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold);
}
.pillar__sub { font-size: 15px; color: var(--khaki); margin-top: 4px; }

/* ------------------------------------------------------------------ menu -- */

.section { padding-top: 88px; padding-bottom: 72px; }
.section--tight { padding-top: 24px; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.section__head p { margin: 12px 0 0; color: var(--khaki); font-size: 17px; max-width: 560px; text-wrap: pretty; }

.week-badge {
  padding: 10px 18px; border: 1px solid var(--gold-line); border-radius: 6px;
  color: var(--gold); font-family: var(--display); font-weight: 600;
  font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(212, 160, 23, 0.4);
  background: transparent; color: var(--sand); font-weight: 600; font-size: 14px;
  cursor: pointer; letter-spacing: 0.04em; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--gold); color: var(--panel); border-color: var(--gold); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

.dish {
  background: var(--panel); border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.dish:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.dish__media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--brown), var(--panel));
}
.dish__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dish__initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 64px;
  color: rgba(242, 193, 78, 0.25); text-transform: uppercase;
}
.dish__day {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px;
  background: rgba(11, 9, 8, 0.8); color: var(--amber); font-size: 12px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.dish__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish__name {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px;
  line-height: 1.05; color: var(--cream);
}
.dish__price {
  font-family: var(--display); font-weight: 800; font-size: 26px;
  color: var(--gold); white-space: nowrap;
}
.dish__desc { margin: 0; color: var(--khaki); font-size: 15px; line-height: 1.45; flex: 1; text-wrap: pretty; }

.wa-btn {
  margin-top: 8px; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 6px; background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.5); color: var(--wa-soft);
  font-weight: 600; font-size: 14px;
}
.wa-btn:hover { background: rgba(37, 211, 102, 0.28); color: #9df3b3; }

.empty {
  padding: 56px 24px; text-align: center; border: 1px dashed rgba(212, 160, 23, 0.4);
  border-radius: 12px; color: var(--khaki); font-size: 18px;
}

/* -------------------------------------------------------------- specials -- */

.specials { background: linear-gradient(180deg, var(--bg) 0%, #2A0F08 50%, var(--bg) 100%); }
.specials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.special {
  display: grid; grid-template-columns: 200px 1fr; background: var(--panel);
  border: 2px solid var(--gold-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.special__price {
  background: linear-gradient(160deg, var(--amber), var(--orange) 60%, var(--rust));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}
.special__only { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--panel); font-weight: 600; }
.special__amount { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--panel); }
.special__date { font-size: 13px; color: var(--brown); font-weight: 600; margin-top: 6px; }
.special__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.special__kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.special__title {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px;
  line-height: 1; text-transform: uppercase; color: var(--cream);
}
.special__desc { margin: 0; color: var(--khaki); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.special__cta {
  margin-top: auto; align-self: flex-start; padding: 10px 18px; border-radius: 6px;
  background: var(--gold); color: var(--panel); font-weight: 600; font-size: 14px;
}
.special__cta:hover { background: var(--gold-bright); color: var(--panel); }

/* ------------------------------------------------------- events & market -- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel-card {
  padding: 40px; border-radius: 14px; background: var(--panel);
  border: 1px solid rgba(212, 160, 23, 0.25);
  display: flex; flex-direction: column; gap: 14px;
}
.panel-card--market {
  background: radial-gradient(ellipse at 100% 0%, var(--rust) 0%, var(--brown) 45%, var(--panel) 100%);
}
.panel-card h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 5vw, 44px); line-height: 1; text-transform: uppercase; color: var(--cream);
}
.panel-card p { margin: 0; color: var(--khaki); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.panel-card--market p { color: var(--sand); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--sand); font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "\2605"; color: var(--gold); }
.panel-card__cta {
  margin-top: auto; align-self: flex-start; padding: 12px 20px; border-radius: 6px;
  background: var(--gold); color: var(--panel); font-weight: 600; font-size: 14px;
}
.panel-card__cta:hover { background: var(--gold-bright); color: var(--panel); }
.market-when {
  margin-top: auto; padding: 14px 18px; border-radius: 8px;
  background: rgba(11, 9, 8, 0.5); border: 1px solid rgba(255, 196, 43, 0.3);
}
.market-when__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.market-when__value { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--cream); margin-top: 2px; }

/* --------------------------------------------------------------- gallery -- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery__item {
  position: relative; border-radius: 10px; overflow: hidden; padding: 0;
  border: 1px solid rgba(212, 160, 23, 0.2); margin: 0;
  background: linear-gradient(160deg, var(--brown), var(--panel)); cursor: zoom-in;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(11, 9, 8, 0.85));
  color: var(--cream); font-size: 14px; font-weight: 600; text-align: left;
}
.gallery__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center; color: rgba(242, 193, 78, 0.45);
  font-family: var(--display); font-weight: 600; font-size: 22px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.lightbox {
  border: 0; padding: 0; width: 100vw; height: 100vh;
  max-width: none; max-height: none; background: transparent; color: var(--cream);
}
.lightbox::backdrop { background: rgba(11, 9, 8, 0.94); }
.lightbox__inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox__caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--sand); font-size: 15px; }
.lightbox__close {
  position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.5); background: rgba(11, 9, 8, 0.7);
  color: var(--gold); font-size: 22px; cursor: pointer; line-height: 1;
}

/* --------------------------------------------------------------- contact -- */

.contact { background: var(--panel); border-top: 1px solid rgba(212, 160, 23, 0.3); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.contact__address { margin: 0 0 6px; color: var(--cream); font-size: 17px; line-height: 1.5; }
.contact__city { margin: 0 0 18px; color: var(--khaki); font-size: 15px; }
.link-btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  border: 1px solid var(--gold-line); color: var(--gold); font-weight: 600;
  font-size: 14px; white-space: nowrap;
}
.link-btn:hover { background: rgba(212, 160, 23, 0.15); color: var(--gold-bright); }
.hours-row {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.15); font-size: 15px;
}
.hours-row span:first-child { color: var(--sand); }
.hours-row span:last-child { color: var(--cream); font-weight: 600; }
.reach { display: grid; gap: 12px; font-size: 16px; }
.reach a { color: var(--cream); }
.reach a:hover { color: var(--gold); }
.reach a.is-wa { color: var(--wa-soft); }
.reach a.is-wa:hover { color: #9df3b3; }

.footer { border-top: 1px solid rgba(212, 160, 23, 0.15); }
.footer__inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--muted);
}
.footer__inner a { color: var(--muted); }
.footer__inner a:hover { color: var(--gold); }

/* ------------------------------------------------------- floating action -- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  color: #062b13; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.wa-float:hover { background: #3fe07a; color: #062b13; }

/* ----------------------------------------------------------- breakpoints -- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 64px; }
  .hero__badge { order: -1; }
  .hero__badge img { width: min(260px, 60%); }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid rgba(212, 160, 23, 0.2); }
  .pillar:last-child { border-bottom: 0; }
  .duo { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .section { padding-top: 56px; padding-bottom: 48px; }
  .panel-card { padding: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    display: none; order: 3; width: 100%; margin-left: 0; gap: 0;
    flex-direction: column; border-top: 1px solid rgba(212, 160, 23, 0.25);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(212, 160, 23, 0.12); }
  .header__inner { flex-wrap: wrap; }
  .header__tools { order: 2; margin-left: 0; }
  .brand__sub { display: none; }
  .special { grid-template-columns: 1fr; }
  .special__price { flex-direction: row; gap: 12px; align-items: baseline; justify-content: center; padding: 14px; }
  .special__amount { font-size: 44px; }
  .week-badge { font-size: 16px; padding: 8px 14px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 1; }
  .btn { font-size: 17px; padding: 13px 22px; }
}
