/* FoxKey BH — shared styles for the public site and admin panel */

:root {
  --bg: #190a0d;
  --bg-rgb: 25, 10, 13;
  --bg-alt: #220e12;
  --surface: #271217;
  --surface-2: #33181e;
  --line: #4a232b;
  --text: #f8eff1;
  --muted: #bfa3a9;
  /* Channels are kept separately so tints and gradients derive from one source. */
  --accent-rgb: 230, 33, 47;
  --accent: rgb(var(--accent-rgb));
  --accent-2: #ff7d88;
  --accent-deep: #9e0e1a;
  --accent-soft: rgba(var(--accent-rgb), 0.16);
  --on-accent: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  /* Amber, not red: destructive actions must not read as the brand colour. */
  --danger-rgb: 255, 159, 69;
  --danger: rgb(var(--danger-rgb));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Must outrank the display values set by component classes below. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 800; }
.brand em { font-style: normal; color: var(--accent); font-weight: 800; }
.main-nav { margin-left: auto; display: flex; gap: 1.5rem; }
.main-nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }
.header-cta { flex-shrink: 0; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang-btn {
  border: none; background: transparent; color: var(--muted); font: inherit;
  font-size: .78rem; font-weight: 700; padding: .35rem .65rem; border-radius: 999px;
  cursor: pointer; line-height: 1.2;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent-soft); color: var(--accent); }

/* RTL layout */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .section-head.left { text-align: right; }
html[dir="rtl"] select {
  background-position: left .9rem center; padding-left: 2.2rem; padding-right: .85rem;
}
html[dir="rtl"] .row-card .when,
html[dir="rtl"] .booking-item .meta { text-align: right; }
html[dir="rtl"] .summary .row span:first-child { text-align: start; }
html[dir="rtl"] .fob.selected::after { right: auto; left: .8rem; }
/* Flex containers mirror themselves under dir="rtl"; only text alignment needs help. */
html[dir="rtl"] .steps-list li,
html[dir="rtl"] .contact-list li { text-align: right; }
/* Phone and handle are Latin runs: isolate them or bidi reorders "+973 3766 7222". */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href*="instagram.com"] { direction: ltr; unicode-bidi: isolate; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(var(--accent-rgb), .26), transparent 60%),
    radial-gradient(700px 400px at 88% 0%, rgba(255, 125, 136, .12), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .75rem;
  color: var(--accent); font-weight: 700; margin-bottom: .8rem;
}
.hero h1 span { color: var(--accent); display: block; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-points li { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .45rem; }
.hero-points li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-card { position: relative; }
.hero-card-glow {
  position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 65%); filter: blur(28px);
}
.hero-card-body {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.steps-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .85rem; }
.steps-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
/* Only the leading number is a badge; the rest is the step label. */
.steps-list li > span:first-child {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: .8rem; display: grid; place-items: center;
}
.steps-list li > span + span { flex: 1 1 auto; min-width: 0; }
.hero-card-note { font-size: .82rem; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.2rem; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head p { color: var(--muted); margin: 0; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow);
}

/* ----------------------------------------------------------------- stepper */
.stepper {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: .4rem 1.6rem; padding: 0; margin: 0 0 1.6rem;
}
.stepper li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; font-weight: 500; }
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 700;
}
.stepper li.active { color: var(--text); }
.stepper li.active .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper li.done .dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.booking-card { min-height: 340px; }
.step-actions {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ fields */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: .7rem .85rem; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bfa3a9' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px; padding-right: 2.2rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.hint { color: var(--muted); font-size: .86rem; }
.form-error { color: var(--danger); font-size: .88rem; min-height: 1.2rem; margin: .2rem 0; }
.inline-form { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; margin-bottom: 0; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, opacity .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Deepens rather than lightens: white label needs the darker end to stay legible. */
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(var(--danger-rgb), .14); border-color: rgba(var(--danger-rgb), .45); color: var(--danger); }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }
.btn.full { width: 100%; }

/* ------------------------------------------------------------------ upload */
.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2);
  min-height: 220px; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  transition: border-color .15s, background .15s; position: relative;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone img { max-height: 340px; width: auto; object-fit: contain; }
.upload-empty { display: grid; justify-items: center; gap: .3rem; color: var(--muted); padding: 2rem; text-align: center; }
.upload-empty strong { color: var(--text); font-size: .98rem; }
.upload-empty span { font-size: .8rem; }
.upload-status { font-size: .85rem; color: var(--muted); min-height: 1.3rem; margin: .6rem 0 0; }
.upload-status.ok { color: var(--ok); }
.upload-status.err { color: var(--danger); }

/* ---------------------------------------------------------------- fob grid */
.fob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.fob {
  position: relative; text-align: left; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; gap: .6rem; transition: border-color .15s, transform .12s;
}
.fob:hover { border-color: var(--accent); transform: translateY(-2px); }
.fob.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fob.selected::after {
  content: "✓"; position: absolute; top: .8rem; right: .8rem; width: 24px; height: 24px;
  background: var(--accent); color: var(--on-accent); border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
}
.fob-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: #fbfbfd; display: grid;
  place-items: center; overflow: hidden; border: 1px solid var(--line); padding: .5rem;
}
/* contain, never cover: product shots must never be cropped */
.fob-media img { width: 100%; height: 100%; object-fit: contain; }
/* Grid children default to min-height:auto, which lets a tall image stretch the
   box and break the aspect ratio, giving cards of uneven height. */
.fob-media > * { min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; }
.fob-media .placeholder { color: #c9cdd6; }
.fob h4 { margin: 0; font-size: 1rem; }
.fob .price { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.fob .desc { color: var(--muted); font-size: .85rem; margin: 0; }
.fob ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.fob ul li {
  font-size: .72rem; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: .18rem .5rem; border-radius: 999px; color: var(--muted);
}
.showcase .fob { cursor: default; }
.showcase .fob:hover { transform: none; border-color: var(--line); }

/* ---------------------------------------------------------------- calendar */
.calendar { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; max-width: 420px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-nav {
  background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.cal-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekdays span { text-align: center; font-size: .7rem; color: var(--muted); padding-bottom: .35rem; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; background: transparent; color: var(--muted);
  border-radius: 9px; cursor: pointer; font: inherit; font-size: .85rem;
}
.cal-day.available { background: var(--surface); color: var(--text); border-color: var(--line); font-weight: 600; }
.cal-day.available:hover { border-color: var(--accent); color: var(--accent); }
.cal-day.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.cal-day:disabled { cursor: not-allowed; opacity: .35; }
.cal-day.empty { visibility: hidden; }

.slots { margin-top: 1.2rem; }
.slot-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.slot {
  padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; font-size: .88rem;
}
.slot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ----------------------------------------------------------------- summary */
.summary {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; margin: 1rem 0; display: grid; gap: .4rem;
}
.summary .row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.summary .row span:first-child { color: var(--muted); }
.summary .row.total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .6rem; font-size: 1rem; font-weight: 700; }
.summary .row.total span:last-child { color: var(--accent); }

/* ----------------------------------------------------------------- success */
.success { text-align: center; padding: 1.5rem 0; }
.success .check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(52, 211, 153, .15);
  color: var(--ok); display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem;
}
.ref-badge {
  display: inline-block; font-size: 1.5rem; font-weight: 800; letter-spacing: .06em;
  background: var(--accent-soft); color: var(--accent); padding: .5rem 1.2rem; border-radius: 999px;
  margin: .3rem 0 1rem;
}

/* ------------------------------------------------------------ booking cards */
.lookup-result { margin-top: 1rem; display: grid; gap: 1rem; }
.booking-item {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap;
}
.booking-item img { width: 110px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.booking-item .meta { flex: 1 1 220px; }
.booking-item .meta strong { display: block; }
.booking-item .meta span { color: var(--muted); font-size: .88rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .18rem .55rem; border-radius: 999px;
}
.badge.booked { background: rgba(52,211,153,.15); color: var(--ok); }
.badge.cancelled { background: rgba(var(--danger-rgb), .15); color: var(--danger); }
.badge.completed { background: rgba(147,197,253,.15); color: #93c5fd; }

/* ----------------------------------------------------------------- contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }

/* ------------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: .8rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 90;
  transition: transform .25s ease; font-size: .9rem; max-width: min(90vw, 460px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { border-color: rgba(var(--danger-rgb), .5); color: #ffe4cd; }
.toast.success { border-color: rgba(52,211,153,.5); }
.toast.booking {
  border-color: rgba(var(--accent-rgb), .55); background: var(--surface);
  max-width: min(92vw, 520px); border-radius: 16px; text-align: start;
  padding: .95rem 1.15rem;
}

.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-note { text-align: center; color: var(--muted); padding: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------- announcements & notices */
.site-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent); position: relative; z-index: 45;
}
.site-banner-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.site-banner-text { margin: 0; font-size: .92rem; flex: 1 1 auto; }
.site-banner-text strong { font-weight: 800; }
.site-banner-close {
  flex-shrink: 0; background: rgba(255, 255, 255, .16); border: none; color: inherit;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.site-banner-close:hover { background: rgba(255, 255, 255, .3); }

.announce-backdrop {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  padding: 1.5rem; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
}
.announce-card {
  position: relative; width: min(440px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem; box-shadow: var(--shadow);
}
.announce-card h2 { font-size: 1.4rem; color: var(--accent); }
.announce-card p { color: var(--muted); white-space: pre-line; }
.announce-close {
  position: absolute; top: .6rem; right: .7rem; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.announce-close:hover { color: var(--text); border-color: var(--accent); }
html[dir="rtl"] .announce-close { right: auto; left: .7rem; }

.notice { text-align: center; }
.notice h3 { color: var(--accent); }
.notice p { color: var(--muted); max-width: 52ch; margin-inline: auto; white-space: pre-line; }

/* ------------------------------------------------------------- holding page */
.holding-body { display: grid; place-items: center; min-height: 100vh; padding: 2rem 1rem; }
.holding { width: min(520px, 100%); }
.holding-card { position: relative; text-align: center; }
.holding-card img { margin: 0 auto 1rem; }
.holding-card .lang-switch { position: absolute; top: 1rem; right: 1rem; margin: 0; }
html[dir="rtl"] .holding-card .lang-switch { right: auto; left: 1rem; }
.holding-card h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.holding-card .lede { margin-inline: auto; }
.holding-contact { margin-top: 1.6rem; text-align: start; }

/* --------------------------------------------------------------------- mobile
   Kept at the end of the file: these rules must win over the component rules
   above, which share the same specificity. */

/* Sticky header would otherwise hide the heading of a jumped-to section. */
section[id] { scroll-margin-top: 96px; }

@media (max-width: 760px) {
  .wrap, .wrap.narrow { width: min(1140px, 100% - 2rem); }

  /* Header: brand and call button on top, nav scrolls underneath. */
  .header-inner { height: auto; padding: .55rem 0 0; flex-wrap: wrap; gap: .5rem; }
  .brand { font-size: 1.05rem; }
  .lang-switch { order: 2; margin-left: 0; }
  .header-cta { order: 1; margin-left: auto; }
  html[dir="rtl"] .header-cta { margin-left: 0; margin-right: auto; }
  html[dir="rtl"] .lang-switch { margin-right: 0; }
  .main-nav {
    order: 3; width: 100%; margin-left: 0; gap: 1.25rem;
    overflow-x: auto; scrollbar-width: none; padding: .1rem 0 .55rem;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  section[id] { scroll-margin-top: 120px; }

  .hero { padding: 2.2rem 0 2.6rem; }
  .hero-inner { gap: 2rem; }
  .lede { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 2.6rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .card { padding: 1.1rem; border-radius: 14px; }

  /* 16px minimum stops iOS Safari from zooming in on focus. */
  input, select, textarea { font-size: 16px; padding: .8rem .9rem; }
  .btn { padding: .8rem 1.2rem; font-size: .95rem; }
  .btn-sm { padding: .55rem 1rem; }

  /* Progress row scrolls instead of wrapping into a ragged block. */
  .stepper {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    gap: 1.1rem; padding-bottom: .5rem; scrollbar-width: none;
  }
  .stepper::-webkit-scrollbar { display: none; }
  .stepper li { white-space: nowrap; }

  .step-actions { gap: .6rem; }
  .step-actions .btn { flex: 1 1 0; }
  .step-actions span:empty { display: none; }

  .upload-zone { min-height: 180px; }
  .upload-zone img { max-height: 260px; }

  .fob-grid { grid-template-columns: 1fr; gap: .8rem; }
  .fob-media { aspect-ratio: 3 / 2; }

  .calendar { max-width: none; padding: .8rem; }
  .cal-day { font-size: .9rem; border-radius: 8px; }
  .slot { padding: .6rem 1rem; font-size: .92rem; }
  .slot-list { gap: .45rem; }

  .inline-form { gap: .6rem; }
  .inline-form .btn { width: 100%; }

  .booking-item { gap: .8rem; }
  .booking-item img { width: 100%; height: 160px; }
  .booking-item .btn { width: 100%; }

  .contact-wrap { gap: 1.8rem; }
  .footer-inner { flex-direction: column; gap: .6rem; }

  .site-banner-text { font-size: .86rem; }
  .announce-card { padding: 2.2rem 1.1rem 1.2rem; }
  .announce-card .btn { width: 100%; }
  /* Full-width switch would collide with the logo at the top of the card. */
  .holding-card .lang-switch { position: static; margin: 0 auto 1rem; }
}

@media (max-width: 380px) {
  .stepper li span.dot { width: 23px; height: 23px; }
  .hero-points { gap: .5rem 1rem; }
  .cal-day { font-size: .82rem; }
}
