/* ==========================================================================
   Public site — גמ״ח קמפינג לזכרו של עמישר בן דוד הי״ד
   Builds on tokens.css. The page is RTL: logical properties throughout.

   1. Base           6. Hero             11. Trailer & memorial
   2. Layout         7. How it works     12. Donate
   3. Controls       8. Catalog          13. FAQ & contact
   4. Header & nav   9. Product dialog   14. Footer, FAB, toast
   5. Shared bits   10. Booking/lookup   15. Accessibility page, motion
   ========================================================================== */

:root {
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-pad: clamp(72px, 9vw, 128px);
  --card-border: 1px solid rgba(86, 101, 58, 0.14);
  --hairline: 1px solid rgba(86, 101, 58, 0.16);
  --focus-color: var(--navy-600);
  --danger-bg: var(--st-rejected-bg);
  --ok: #3F6A28;
  --ember-700: #A85A1C;     /* ember darkened for white text (AA) */
  --placeholder: #66706C;
}

/* 1. Base ================================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.has-modal { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> only chooses the file (WebP or PNG); the <img> inside is laid out as if it stood alone */
picture { display: contents; }
a { color: var(--navy-800); text-underline-offset: 0.2em; }
a:hover { color: var(--olive-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

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

main:focus { outline: none; }

::selection { background: var(--olive-300); color: var(--olive-900); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.icon--ember { color: var(--ember); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pre-line { white-space: pre-line; }

/* Phone numbers, booking codes and dates inside Hebrew messages (dom.js richText):
   isolated and kept on one line so the hyphen never ends up on the wrong side */
.ltr-token { unicode-bidi: isolate; white-space: nowrap; }

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--navy-900);
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: none; color: var(--text-on-dark); }

/* 2. Layout ============================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--olive-700);
  text-wrap: balance;
}

/* Dashed "trail" under section titles */
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: repeating-linear-gradient(-90deg, var(--olive-500) 0 12px, transparent 12px 20px);
}

.section-title--start { text-align: start; }
.section-title--start::after { margin-inline: 0; }

.section-sub {
  margin-top: 16px;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.section-sub--start { text-align: start; }

.card {
  background: var(--paper);
  border: var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.field--full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* Rolling-hills edge: a section with its own background rises into the one above as
   two layered hills, as on the trailer: a soft sage ridge behind (::before) and a near
   hill in the section's own colour (::after). A thin gap between them lets the colour
   above show through as a fine line, like the cream lines between the trailer's hills. */
.has-edge {
  --edge-far: rgba(168, 180, 125, 0.34);   /* olive-300, softened by the colour above */
  background: var(--section-bg);
}

.has-edge::before,
.has-edge::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(100% - 1px);
  height: clamp(26px, 4.4vw, 64px);
  background: var(--edge-far);
  -webkit-mask: url("/assets/img/decor/hills-edge-far.svg") center bottom / 100% 100% no-repeat;
  mask: url("/assets/img/decor/hills-edge-far.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.has-edge::after {
  background: var(--section-bg);
  -webkit-mask-image: url("/assets/img/decor/hills-edge-near.svg");
  mask-image: url("/assets/img/decor/hills-edge-near.svg");
}

.has-edge--flip::before,
.has-edge--flip::after { transform: scaleX(-1); }

/* Decorative hills band (art from /assets/img/decor). Fixed height + cover keeps
   the layout stable whatever the artwork's aspect ratio, or if it fails to load. */
.hills {
  position: relative;
  pointer-events: none;
  user-select: none;
}

.hills img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* 3. Controls ============================================================ */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.35em;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn--primary {
  --btn-bg: var(--olive-700);
  --btn-fg: var(--text-on-dark);
  box-shadow: 0 10px 24px -12px rgba(52, 63, 36, 0.75);
}

.btn--primary:hover { --btn-bg: var(--olive-800); box-shadow: 0 14px 28px -12px rgba(52, 63, 36, 0.8); }

.btn--outline {
  --btn-border: rgba(31, 61, 84, 0.35);
  --btn-fg: var(--navy-800);
  background: rgba(251, 248, 239, 0.6);
}

.btn--outline:hover { --btn-border: var(--navy-800); background: var(--paper); }

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--navy-900);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}

.btn--light:hover { --btn-bg: #FFFDF6; }

.btn--ghost-light {
  --btn-border: rgba(251, 248, 239, 0.45);
  --btn-fg: var(--text-on-dark);
}

.btn--ghost-light:hover { --btn-border: var(--cream); background: rgba(251, 248, 239, 0.08); }

.btn--text {
  --btn-fg: var(--navy-800);
  padding-inline: 0.75em;
}

.btn--text:hover { --btn-fg: var(--olive-700); background: rgba(86, 101, 58, 0.08); }

.btn--lg { min-height: 56px; padding-inline: 1.75em; font-size: var(--fs-md); }
.btn--sm { min-height: 44px; padding-inline: 1.1em; }
.btn--xs { min-height: 36px; padding-inline: 0.9em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

/* Loading state: spinner replaces the leading icon */
.spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.is-loading .spinner { display: inline-block; }
.btn.is-loading:disabled,
.btn.is-loading[aria-disabled="true"] { opacity: 0.85; cursor: progress; }

@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy-800);
  transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover { background: rgba(31, 61, 84, 0.08); }

/* Inputs */
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  background: var(--paper);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: var(--sand-2); }

.input:focus-visible {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: var(--ring);
  background: #FFFEF9;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FFF9F7;
}

.input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(163, 58, 44, 0.25); }

textarea.input { min-height: 104px; resize: vertical; }

.input--ltr { direction: ltr; text-align: right; }
.input--ltr::placeholder { text-align: right; }
.input--code { text-transform: uppercase; letter-spacing: 0.08em; }

input[type="date"].input { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-900);
}

.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--text-muted); }

.field__hint {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.field__hint:empty { display: none; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
  color: var(--danger);
}

.field-error .icon { width: 1.1em; height: 1.1em; margin-top: 0.15em; }
.field-error:focus { outline: none; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
}

.checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--olive-700);
  cursor: pointer;
}

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--sand);
  border-radius: var(--r-pill);
  background: var(--paper);
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--olive-100);
  color: var(--olive-800);
  transition: background-color 0.2s, color 0.2s;
}

.stepper__btn:hover:not(:disabled) { background: var(--olive-700); color: var(--text-on-dark); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__btn .icon { width: 18px; height: 18px; }

.stepper__value {
  min-width: 2.2ch;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--navy-900);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1.5px solid var(--sand);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--navy-800);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip:hover { border-color: var(--olive-500); }
.chip .icon { width: 20px; height: 20px; color: var(--olive-600); }

.chip__count {
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  color: var(--olive-800);
}

.chip[aria-pressed="true"] {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--text-on-dark);
  box-shadow: 0 8px 18px -10px rgba(23, 46, 64, 0.7);
}

.chip[aria-pressed="true"] .icon { color: var(--olive-300); }
.chip[aria-pressed="true"] .chip__count { background: rgba(251, 248, 239, 0.16); color: var(--text-on-dark); }

/* Tag (category label) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border-radius: var(--r-pill);
  background: var(--olive-100);
  color: var(--olive-800);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
}

.tag .icon { width: 16px; height: 16px; }

/* Check list */
.check-list { display: grid; gap: 10px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.check-list .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--olive-100);
  color: var(--olive-700);
}

/* Availability line */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.availability__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.availability--ok { color: var(--ok); }
.availability--ok .availability__dot { box-shadow: 0 0 0 4px rgba(63, 106, 40, 0.16); }
.availability--low { color: #8A5A12; }
.availability--out { color: var(--danger); }
.availability--loading { color: var(--text-muted); font-weight: 500; }
.availability--loading .availability__dot { animation: pulse 1s ease-in-out infinite alternate; }
.availability--hint { color: var(--text-muted); font-weight: 500; }
.availability--hint .availability__dot { display: none; }

@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }

/* Empty state */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 24px;
  border: 2px dashed var(--sand);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-muted);
}

.empty-state > .icon {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: var(--olive-100);
  color: var(--olive-700);
}

.empty-state--compact { padding: 28px 20px; }

/* 4. Header & navigation ================================================== */

.announcement {
  position: relative;
  z-index: 31;
  background: var(--navy-800);
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
}

.announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  text-align: center;
}

.announcement .icon { color: var(--olive-300); }
.announcement__text { text-wrap: balance; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  background: rgba(244, 239, 220, 0.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(244, 239, 220, 0.9);
  border-bottom-color: rgba(86, 101, 58, 0.14);
  box-shadow: 0 10px 30px -18px rgba(23, 46, 64, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: inherit;
  text-decoration: none;
}

.brand:hover { color: inherit; }

.brand__badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px -4px rgba(52, 63, 36, 0.45);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand__badge { transform: rotate(-8deg) scale(1.04); }

.brand__text { display: grid; line-height: 1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--olive-700);
}

.brand__tag {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.site-nav { margin-inline-start: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--navy-800);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav__link:hover { color: var(--olive-800); background: rgba(123, 140, 79, 0.12); }

.site-nav__link[aria-current] { color: var(--olive-800); }

.site-nav__link[aria-current]::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--olive-500);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header-cta { position: relative; min-height: 46px; padding-inline: 1.15em; }

.cart-badge {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-end: -6px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid var(--cream);
  border-radius: var(--r-pill);
  background: var(--ember-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cart-badge.is-bumping { animation: bump 0.45s var(--ease); }

@keyframes bump {
  30% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.menu-toggle { display: none; }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon--close { display: none; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: var(--hairline);
    box-shadow: 0 24px 40px -24px rgba(23, 46, 64, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .is-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .is-menu-open .menu-toggle .icon--open { display: none; }
  .is-menu-open .menu-toggle .icon--close { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: var(--container);
    margin-inline: auto;
  }

  .site-nav__link {
    width: 100%;
    min-height: 52px;
    padding-inline: 12px;
    border-radius: var(--r);
    font-size: var(--fs-md);
  }

  .site-nav__list li + li { border-top: var(--hairline); }
  .site-nav__link[aria-current]::after { inset-inline: auto 0; inset-block: 16px; width: 3px; height: auto; }
  .site-header__actions { margin-inline-start: auto; }
}

@media (max-width: 420px) {
  .site-header__inner { gap: 10px; min-height: 68px; }
  .brand { gap: 10px; }
  .brand__badge { width: 42px; height: 42px; }
  .brand__name { font-size: 1.75rem; }
  .header-cta { padding-inline: 0.95em; }
}

/* Very small phones (320px): the order button keeps its icon and count badge; its label
   stays available to assistive tech, so the header row still fits */
@media (max-width: 359px) {
  .site-header__inner { gap: 6px; }
  .header-cta { width: 46px; padding-inline: 0; }
  .header-cta__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* 5. Shared bits ========================================================== */

.noscript,
.load-error {
  margin-block: 24px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: var(--ember-100);
  color: #6E3A10;
  font-weight: 500;
}

.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: var(--card-border);
  box-shadow: var(--shadow-sm);
}

.notice:focus { outline: none; }
.notice:focus-visible { box-shadow: var(--shadow-sm), var(--ring); }

.notice__icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--st-pending-bg);
  color: var(--st-pending);
}

.notice__text { font-size: var(--fs-lg); font-weight: 500; color: var(--navy-900); }
.notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notice__actions:empty { display: none; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status--pending { color: #8A5A12; background: var(--st-pending-bg); }
.status--approved { color: var(--st-approved); background: var(--st-approved-bg); }
.status--picked_up { color: var(--st-picked); background: var(--st-picked-bg); }
.status--returned { color: var(--st-returned); background: var(--st-returned-bg); }
.status--cancelled { color: #5A5A5A; background: var(--st-cancelled-bg); }
.status--rejected { color: var(--st-rejected); background: var(--st-rejected-bg); }

/* 6. Hero ================================================================= */

/* overflow-x: clip keeps the rotating badge orbit from widening the page (it sits near the edge at ~1024px) */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(60% 70% at 18% 38%, rgba(255, 253, 244, 0.95) 0%, rgba(255, 253, 244, 0) 70%),
    radial-gradient(50% 60% at 92% 10%, rgba(226, 230, 204, 0.75) 0%, rgba(226, 230, 204, 0) 70%),
    var(--cream);
}

/* Sparkles from the art set, kept towards the edges of the sky */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(52vw, 520px);
  background: url("/assets/img/decor/stars.svg") center top / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-bottom: clamp(8px, 2vw, 24px);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 18px;
  border: 1px solid rgba(86, 101, 58, 0.2);
  border-radius: var(--r-pill);
  background: rgba(251, 248, 239, 0.7);
  color: var(--olive-800);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
}

.hero__kicker .icon { color: var(--navy-600); width: 22px; height: 22px; }

.hero__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 1.6rem + 6.4vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  color: var(--olive-700);
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 36em;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.75;
  color: var(--navy-800);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 20px; height: 20px; color: var(--olive-600); }

.hero__media {
  display: grid;
  place-items: center;
}

.hero__badge-wrap {
  position: relative;
  width: min(88%, 460px);
  aspect-ratio: 1;
}

/* Soft sun-halo and a dashed orbit behind the badge */
.hero__badge-wrap::before,
.hero__badge-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero__badge-wrap::before {
  inset: -9%;
  background: radial-gradient(circle, rgba(255, 253, 244, 1) 0%, rgba(255, 253, 244, 0.6) 45%, rgba(255, 253, 244, 0) 70%);
}

.hero__badge-wrap::after {
  inset: -4%;
  border: 2px dashed rgba(123, 140, 79, 0.45);
}

.hero__badge {
  width: 100%;
  height: 100%;
  /* An uploaded badge that is not square is cropped into the circle, never stretched */
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 28px 36px rgba(23, 46, 64, 0.22));
}

@media (prefers-reduced-motion: no-preference) {
  .hero__badge { animation: float 7s ease-in-out infinite; }
  .hero__badge-wrap::after { animation: orbit 60s linear infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.2deg); }
}

@keyframes orbit { to { transform: rotate(360deg); } }

.hills--hero { height: clamp(110px, 15vw, 230px); }

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 20px;
  }

  .hero__media { order: -1; }
  .hero__badge-wrap { width: min(62vw, 280px); }
  .hero__content { display: grid; justify-items: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__facts { justify-content: center; }
  .hills--hero { margin-top: 8px; }
}

@media (max-width: 480px) {
  .hero__kicker { font-size: var(--fs-xs); padding-inline: 14px; }
  /* Equal-width stacked buttons, centred */
  .hero__actions { display: grid; grid-auto-columns: min(100%, 320px); }
}

/* 7. How it works ========================================================= */

/* Rises out of the hero landscape as a single paper hill */
.how {
  --section-bg: var(--paper);
  --edge-far: transparent;
}

.steps {
  --medal: 88px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

/* Dashed trail connecting the medallions (CSS fallback for any number of steps) */
.steps::before {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--medal) / 2);
  inset-inline: calc(50% / var(--steps, 4));
  height: 0;
  border-top: 3px dashed var(--olive-300);
}

/* Four steps: the illustrated hiking trail, which crosses its vertical middle at each step centre */
@media (min-width: 861px) {
  .steps[data-count="4"]::before {
    inset-inline: 0;
    height: auto;
    aspect-ratio: 1200 / 160;
    border: 0;
    translate: 0 -50%;
    background: url("/assets/img/decor/trail.svg") center / 100% 100% no-repeat;
  }
}

.step-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.step-card__medal {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--medal);
  height: var(--medal);
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive-700);
  box-shadow: 0 0 0 8px var(--paper), 0 18px 32px -16px rgba(52, 63, 36, 0.5);
  border: 2px solid rgba(123, 140, 79, 0.35);
  transition: transform 0.4s var(--ease);
}

.step-card:hover .step-card__medal { transform: translateY(-4px); }
.step-card__medal .icon { width: 38px; height: 38px; }

.step-card__num {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--text-on-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.step-card__title {
  margin-top: 22px;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy-900);
}

.step-card__text {
  max-width: 24ch;
  margin-top: 8px;
  color: var(--text-muted);
  text-wrap: pretty;
  font-size: var(--fs-sm);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .steps {
    --medal: 64px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 520px;
    margin-inline: auto;
  }

  .steps::before {
    inset-block: calc(var(--medal) / 2);
    inset-inline: calc(var(--medal) / 2 - 1.5px) auto;
    height: auto;
    border-top: 0;
    border-inline-start: 3px dashed var(--olive-300);
  }

  .step-card {
    grid-template-columns: var(--medal) minmax(0, 1fr);
    column-gap: 20px;
    justify-items: start;
    text-align: start;
  }

  .step-card__medal { grid-row: span 2; box-shadow: 0 0 0 6px var(--paper), 0 12px 24px -14px rgba(52, 63, 36, 0.5); }
  .step-card__medal .icon { width: 28px; height: 28px; }
  .step-card__num { width: 26px; height: 26px; font-size: 0.75rem; }
  .step-card__title { margin-top: 4px; }
  .step-card__text { max-width: none; margin-top: 4px; }
}

/* 8. Catalog ============================================================== */

.catalog { --section-bg: var(--cream); }

.toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: clamp(16px, 2vw, 22px);
  border: var(--card-border);
  border-radius: var(--r-lg);
  background: rgba(251, 248, 239, 0.75);
  box-shadow: var(--shadow-sm);
}

.toolbar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 24px;
}

.search { position: relative; }

.search__icon {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: 50%;
  translate: 0 -50%;
  width: 22px;
  height: 22px;
  color: var(--olive-600);
  pointer-events: none;
}

.search__input { padding-inline-start: 50px; }
.search__input::-webkit-search-cancel-button { cursor: pointer; }

.range {
  display: flex;
  align-items: center;
  gap: 14px;
}

.range__legend {
  float: inline-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}

.range__legend .icon { color: var(--olive-600); }

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

.range__field { position: relative; display: block; }

.range__label {
  position: absolute;
  inset-block-start: -9px;
  inset-inline-start: 12px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
  pointer-events: none;
}

.range .input { width: 172px; min-height: 52px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(16px, 2vw, 22px));
    margin-bottom: -10px;   /* the extra bottom padding only makes room for the active chip shadow */
    padding: 4px clamp(16px, 2vw, 22px) 16px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: clamp(16px, 2vw, 22px);
  }
}

.chips::-webkit-scrollbar { display: none; }
.chips .chip { scroll-snap-align: start; }

.range-status {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--olive-800);
}

.range-status:empty { display: none; }
.range-status[data-status="invalid"],
.range-status[data-status="error"] { color: var(--danger); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--card-border);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(86, 101, 58, 0.24);
}

.product-card.is-in-cart { border-color: rgba(86, 101, 58, 0.5); box-shadow: 0 0 0 2px rgba(123, 140, 79, 0.3), var(--shadow-sm); }

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(255, 253, 244, 0.95), rgba(255, 253, 244, 0) 70%),
    linear-gradient(170deg, var(--olive-100), var(--cream-2));
  cursor: pointer;
  overflow: hidden;
}

/* Each item stands on a small two-tone hill, after the trailer landscape */
.product-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: var(--olive-300);
  opacity: 0.32;
  -webkit-mask: url("/assets/img/decor/hills-edge.svg") center bottom / 100% 100% no-repeat;
  mask: url("/assets/img/decor/hills-edge.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.product-card:nth-child(even) .product-card__media::after { transform: scaleX(-1); }

.product-card__media img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 86%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.05) rotate(-1deg); }
.product-card.is-unavailable .product-card__media img { filter: grayscale(0.6); opacity: 0.75; }

.product-fallback {
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(251, 248, 239, 0.8);
  color: var(--olive-600);
}

.product-fallback .icon { width: 46%; height: 46%; }

.ribbon {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--navy-800);
  color: var(--text-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px -6px rgba(23, 46, 64, 0.6);
}

/* "בהזמנה" marker on tiles that are in the order (opposite corner to the ribbon) */
.in-cart-mark {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--r-pill);
  background: var(--olive-700);
  color: var(--text-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 6px 14px -6px rgba(52, 63, 36, 0.7);
}

.in-cart-mark .icon { width: 14px; height: 14px; }
.product-card.is-in-cart .in-cart-mark { display: inline-flex; }

@media (prefers-reduced-motion: no-preference) {
  .product-card.is-in-cart .in-cart-mark { animation: mark-in 0.35s var(--ease); }
}

@keyframes mark-in { from { opacity: 0; transform: scale(0.8); } }

.product-card__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 4px;
}

.product-card__title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-900);
}

.product-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 14px 20px;
}

.product-card__details { margin-inline-start: -0.75em; }
.product-card__details .icon { width: 1em; height: 1em; }
.product-card__cart { display: flex; }
/* Tonal rather than solid: eighteen solid buttons would shout over the cards */
.product-card__add {
  --btn-bg: var(--olive-100);
  --btn-fg: var(--olive-900);
  padding-inline: 1em 1.15em;
  box-shadow: none;
}

.product-card__add:hover { --btn-bg: var(--olive-700); --btn-fg: var(--text-on-dark); box-shadow: 0 10px 22px -12px rgba(52, 63, 36, 0.7); }
.product-card__add:disabled { --btn-bg: var(--cream-2); --btn-fg: var(--text-muted); }

/* Mobile: compact horizontal cards */
@media (max-width: 560px) {
  .toolbar__row { grid-template-columns: minmax(0, 1fr); }
  /* The two dates get a row of their own, in equal columns, so a full dd/mm/yyyy value
     fits beside the native calendar icon; the clear button moves up beside the legend.
     The legend keeps its float: a non-floated legend is drawn in the fieldset border, and the
     button's inset-block-start: 0 would then land on the date row, over the second value. */
  .range { position: relative; flex-wrap: wrap; gap: 12px; }
  .range__legend { width: 100%; min-height: 44px; margin-inline-end: 0; padding-inline-end: 52px; }
  .range__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .range__field { min-width: 0; }
  .range .input { width: 100%; padding-inline: 12px 8px; }
  .range__clear { position: absolute; inset-block-start: 0; inset-inline-end: 0; }

  .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  .product-card:hover { transform: none; }
  .product-card__media { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 100%; }
  .product-card__media img { width: 84%; height: auto; max-height: 120px; }
  .ribbon { inset-block-start: 10px; inset-inline-start: 10px; padding: 3px 9px; font-size: 0.6875rem; }
  /* The narrow tile has no room for both badges side by side */
  .in-cart-mark { inset-block: auto 10px; inset-inline: 50% auto; translate: 50% 0; padding: 3px 9px 3px 8px; font-size: 0.6875rem; }
  .product-card__body { padding: 14px 14px 0; gap: 6px; }
  .product-card__title { font-size: var(--fs-md); }
  .product-card__footer { padding: 8px 10px 12px 14px; }
}

/* Very small phones: one date per row (room for the floating labels between them) */
@media (max-width: 359px) {
  .range__fields { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .toolbar__row { grid-template-columns: minmax(0, 1fr); }
}

/* 9. Product dialog ======================================================= */

.product-dialog {
  width: min(920px, 100% - 32px);
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(23, 46, 64, 0.5);
  overflow: hidden;
}

.product-dialog::backdrop {
  background: rgba(23, 46, 64, 0.55);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .product-dialog[open] { animation: dialog-in 0.35s var(--ease); }
  .product-dialog[open]::backdrop { animation: fade-in 0.35s ease; }
}

@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.pd {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-height: inherit;
}

.pd__close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  background: rgba(251, 248, 239, 0.9);
  box-shadow: var(--shadow-sm);
}

.pd__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(255, 253, 244, 1), rgba(255, 253, 244, 0) 70%),
    linear-gradient(170deg, var(--olive-100), var(--cream-2));
}

.pd__media img { position: relative; z-index: 1; width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain; }
.pd__media .product-fallback { position: relative; z-index: 1; }

/* The same two-tone hill the catalog tiles stand on */
.pd__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: var(--olive-300);
  opacity: 0.32;
  -webkit-mask: url("/assets/img/decor/hills-edge.svg") center bottom / 100% 100% no-repeat;
  mask: url("/assets/img/decor/hills-edge.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.pd__media .product-fallback { width: 60%; }

.pd__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: 40px 36px 32px;
  overflow-y: auto;
  max-height: min(88vh, 760px);
}

.pd__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--olive-700);
  padding-inline-end: 40px;
}

.pd__desc { color: var(--text); line-height: 1.75; }
.pd__includes { display: grid; gap: 12px; width: 100%; }

.pd__subtitle {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}

.pd__includes .check-list { font-size: var(--fs-sm); }

.pd__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  width: 100%;
  border-top: var(--hairline);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.pd__meta li { display: inline-flex; align-items: center; gap: 8px; }
.pd__meta .icon { width: 18px; height: 18px; color: var(--olive-600); }

.pd__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  margin-top: 6px;
}

.pd__actions:empty { display: none; }
.pd__qty { display: inline-flex; align-items: center; gap: 12px; }
.pd__qty-label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); }
.pd__add { flex: 1; min-width: 200px; }
.pd__remove { color: var(--danger); --btn-fg: var(--danger); }

@media (max-width: 720px) {
  .product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .product-dialog[open] { animation: sheet-in 0.4s var(--ease); }
  }

  .pd {
    grid-template-columns: minmax(0, 1fr);
    max-height: 92vh;
    overflow-y: auto;
  }

  .pd__media { padding: 28px; }
  .pd__media img { max-width: 180px; }
  .pd__body { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-height: none; overflow: visible; }
  .pd__add { min-width: 0; }
}

@keyframes sheet-in { from { transform: translateY(40px); opacity: 0.4; } }

/* 10. Booking & lookup ==================================================== */

.booking { --section-bg: var(--cream-2); }

.booking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: clamp(20px, 3vw, 32px);
}

.booking-form__main { padding: clamp(20px, 3.5vw, 40px); }

.step:not(:last-child) {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: var(--hairline);
}

.step__legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive-700);
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  flex: none;
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--olive-800);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.rule-chip .icon { width: 16px; height: 16px; color: var(--olive-600); }

.cart-list { display: grid; gap: 12px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px;
  border: var(--card-border);
  border-radius: var(--r);
  background: #FFFEF8;
  transition: border-color 0.2s, background-color 0.2s;
}

.cart-item.has-warning { border-color: rgba(183, 121, 31, 0.5); background: #FFFBF0; }

.cart-item__thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(170deg, var(--olive-100), var(--cream-2));
  overflow: hidden;
}

.cart-item__thumb img { width: 82%; height: 82%; object-fit: contain; }
.cart-item__thumb .product-fallback { width: 70%; }

.cart-item__info { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.cart-item__name { font-weight: 600; color: var(--navy-900); line-height: 1.4; }
.cart-item__meta { font-size: var(--fs-xs); color: var(--text-muted); }
.cart-item__info .availability { font-size: var(--fs-xs); margin-top: 2px; }

.cart-item__controls { display: flex; align-items: center; gap: 4px; }
.cart-item__remove { color: var(--text-muted); }
.cart-item__remove:hover { color: var(--danger); background: var(--danger-bg); }

.cart-item__warning {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--st-pending-bg);
  color: #7A4E0E;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.cart-item__warning .btn { margin-inline-start: auto; --btn-fg: #6A430B; --btn-border: rgba(122, 78, 14, 0.4); background: rgba(255, 255, 255, 0.6); }

.add-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--olive-700);
  text-decoration: none;
}

.add-more:hover { color: var(--olive-900); text-decoration: underline; }

.conflict {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1.5px solid rgba(163, 58, 44, 0.35);
  border-radius: var(--r);
  background: var(--danger-bg);
  color: #7D2A1F;
}

.conflict:focus { outline: none; box-shadow: 0 0 0 3px rgba(163, 58, 44, 0.3); }

.conflict__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.conflict__list {
  display: grid;
  gap: 4px;
  margin: 10px 0 14px;
  padding-inline-start: 28px;
  list-style: disc;
}

.terms {
  margin-bottom: 12px;
  border: var(--card-border);
  border-radius: var(--r);
  background: #FFFEF8;
}

.terms__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}

.terms__summary::-webkit-details-marker { display: none; }
.terms__chevron { transition: transform 0.25s var(--ease); }
.terms[open] .terms__chevron { transform: rotate(180deg); }
.terms__list { padding: 4px 18px 18px; font-size: var(--fs-sm); color: var(--text); }

/* Honeypot: out of sight and out of the tab order, without offsetting it off-page */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

/* Summary card (dark, like the river) */
.summary {
  position: sticky;
  inset-block-start: calc(var(--header-h) + 20px);
}

.summary__card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(79, 122, 153, 0.35), rgba(79, 122, 153, 0) 60%),
    var(--navy-900);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  --focus-color: var(--cream);
}

.summary__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--olive-300);
}

.summary__list { display: grid; margin-top: 18px; }

.summary__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(251, 248, 239, 0.12);
}

.summary__row dt { color: rgba(251, 248, 239, 0.7); font-size: var(--fs-sm); }
.summary__row dd { display: grid; font-weight: 600; line-height: 1.45; }
.summary__sub { font-size: var(--fs-xs); font-weight: 400; color: rgba(251, 248, 239, 0.7); }

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: #7D2A1F;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.5;
}

.form-alert:empty { display: none; }
.form-alert[data-tone="info"] { background: var(--olive-100); color: var(--olive-900); }
.form-alert .icon { margin-top: 0.1em; }
.form-alert__body { display: grid; gap: 6px; min-width: 0; }
.form-alert__actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.form-alert__actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: inherit; font-weight: 600; }
.form-alert__actions .icon { margin: 0; }

.summary .btn--block { margin-top: 20px; }
.summary__note { margin-top: 14px; font-size: var(--fs-xs); color: rgba(251, 248, 239, 0.72); text-align: center; }

@media (max-width: 960px) {
  .booking-form { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 560px) {
  .cart-item { grid-template-columns: 56px minmax(0, 1fr); }
  .cart-item__thumb { width: 56px; height: 56px; }
  .cart-item__controls { grid-column: 1 / -1; justify-content: space-between; }
  .summary__card { padding: 22px; }
  .summary__row { grid-template-columns: 104px minmax(0, 1fr); }
}

/* Success card */
.success {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--olive-700);
  color: var(--text-on-dark);
  box-shadow: 0 0 0 10px var(--olive-100);
}

.success__icon .icon { width: 42px; height: 42px; }

@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) .success__icon { animation: pop 0.6s var(--ease); }
}

@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); } }

.success__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--olive-700);
}

.success__title:focus { outline: none; }
.success__message { max-width: 34em; margin: 14px auto 0; color: var(--navy-800); line-height: 1.75; }

.success__code {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 28px;
  padding: 14px 18px 14px 14px;
  border: 2px dashed var(--olive-500);
  border-radius: 18px;
  background: var(--cream);
}

.success__code-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }

.success__code-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-900);
}

.success__summary {
  display: grid;
  gap: 0;
  max-width: 560px;
  margin: 28px auto 0;
  text-align: start;
  border-top: var(--hairline);
}

.success__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: var(--hairline);
}

.success__row dt { color: var(--text-muted); font-size: var(--fs-sm); }
.success__row dd { display: grid; font-weight: 500; color: var(--navy-900); }
.success__sub { font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); }
.success__items { display: grid; gap: 2px; }

.success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 560px) {
  .success__actions { display: grid; }
  .success__actions .btn { width: 100%; white-space: normal; }
}

/* Status lookup */
.lookup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px 40px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}

.lookup__head { display: flex; align-items: flex-start; gap: 16px; }

.lookup__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-800);
}

.lookup__title { font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; color: var(--navy-900); }
.lookup__sub { margin-top: 6px; color: var(--text-muted); font-size: var(--fs-sm); }

.lookup__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.lookup__submit { margin-top: 30px; min-height: 52px; }
.lookup__result { grid-column: 1 / -1; }
.lookup__result:empty { display: none; }

.lookup__message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--cream);
  color: var(--navy-900);
  font-weight: 500;
}

.lookup-card {
  padding: 20px 22px;
  border: var(--card-border);
  border-radius: var(--r);
  background: #FFFEF8;
}

.lookup-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lookup-card__code { font-weight: 700; font-size: var(--fs-lg); color: var(--navy-900); }
.lookup-card__code bdi { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.05em; }
.lookup-card__text { margin-top: 10px; color: var(--text-muted); }
.lookup-card__list { display: grid; margin-top: 12px; }

.lookup-card__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-block: 10px;
  border-top: var(--hairline);
}

.lookup-card__row dt { color: var(--text-muted); font-size: var(--fs-sm); }
.lookup-card__row dd { display: grid; font-weight: 500; }
.lookup-card__sub { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }

@media (max-width: 960px) {
  .lookup { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .lookup__form { grid-template-columns: minmax(0, 1fr); }
  .lookup__submit { margin-top: 4px; width: 100%; }
}

/* 11. Trailer & memorial ================================================== */

.trailer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

/* Cream backdrop: keeps the blend correct while the reveal animation isolates this box. */
.trailer__media {
  position: relative;
  background: var(--cream);
}

/* A soft patch of grass under the wheels, so the trailer stands on the land rather than floating */
.trailer__media::before {
  content: "";
  position: absolute;
  inset-inline: 0;   /* never wider than the image: on phones it would widen the page */
  inset-block-end: -3%;
  height: 26%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(168, 180, 125, 0.5) 0%, rgba(168, 180, 125, 0.22) 45%, rgba(168, 180, 125, 0) 72%);
  pointer-events: none;
}

.trailer__media img {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
}

/* The bundled artwork has a white background: multiply blends it into the cream page,
   and the soft mask hides the scan edge around the image. An uploaded photo is shown
   as is, with rounded corners (renderTrailer sets the class only for the artwork). */
.trailer__media img.trailer__art {
  border-radius: 0;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}

.trailer__text {
  margin-top: 24px;
  text-wrap: pretty;
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--navy-800);
}

@media (max-width: 860px) {
  .trailer__inner { grid-template-columns: minmax(0, 1fr); }
  .trailer__content { order: -1; text-align: center; }
  .trailer__content .section-title--start { text-align: center; }
  .trailer__content .section-title--start::after { margin-inline: auto; }
}

/* Memorial: calm and still — no reveal or hover motion in this section. */
.trailer,
.memorial { --section-bg: var(--cream); }

.memorial { padding-top: 0; }
.trailer[hidden] + .memorial { padding-top: var(--section-pad); }

/* Same colour as the trailer section above: the edge is only needed when the trailer is hidden */
.trailer:not([hidden]) + .memorial::before,
.trailer:not([hidden]) + .memorial::after { content: none; }

.memorial__panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(255, 253, 244, 0.95), rgba(255, 253, 244, 0) 70%),
    linear-gradient(180deg, #F8F4E4 0%, #F3EDD6 100%);
  border: 1px solid rgba(86, 101, 58, 0.18);
  box-shadow: var(--shadow-lg);
}

.memorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(36px, 6vw, 88px) clamp(20px, 6vw, 88px) 0;
}

.memorial__portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

/* A still sun-halo and a fine ring, echoing the hero badge without its motion */
.memorial__portrait::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 244, 1) 0%, rgba(255, 253, 244, 0.5) 50%, rgba(255, 253, 244, 0) 70%);
}

.memorial__portrait img {
  position: relative;
  width: 100%;
  /* An uploaded portrait (often 3:4) is cropped to a circle rather than shown as an ellipse */
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 22px 30px rgba(23, 46, 64, 0.2));
}

.memorial__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--olive-700);
}

/* Short olive rule leading into the subtitle */
.memorial__subtitle::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--olive-500);
}

.memorial__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2rem + 4vw, 5.75rem);
  font-weight: 700;
  line-height: 0.92;
  color: var(--navy-800);
}

.memorial__text {
  margin-top: 28px;
  padding-inline-start: 24px;
  border-inline-start: 2px solid rgba(123, 140, 79, 0.45);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.9;
  color: var(--navy-800);
}

.memorial__quote {
  max-width: 920px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-inline: var(--gutter);
  text-align: center;
}

.memorial__quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--olive-700);
  text-wrap: balance;
}

.memorial__quote blockquote p::before { content: "״"; }
.memorial__quote blockquote p::after { content: "״"; }

.memorial__quote figcaption {
  margin-top: 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--olive-700);
}

.memorial__quote figcaption::before { content: "("; }
.memorial__quote figcaption::after { content: ")"; }

/* The quote sits directly on the landscape */
.hills--panel {
  height: clamp(96px, 13vw, 190px);
  margin-top: clamp(4px, 1vw, 12px);
}

/* Mirrored, so the river runs the other way from the hero band */
.hills--panel img { transform: scaleX(-1); }

@media (max-width: 860px) {
  .memorial__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .memorial__portrait { width: min(64vw, 240px); }
  .memorial__subtitle { justify-content: center; }
  .memorial__subtitle::after {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--olive-500);
  }
  .memorial__text {
    max-width: 30em;
    margin-inline: auto;
    padding: 22px 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(31, 61, 84, 0.14);
    font-size: var(--fs-md);
  }
}

/* 12. Donate ============================================================== */

.donate { padding-top: 0; }

.donate__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px clamp(24px, 5vw, 72px);
  padding: clamp(32px, 6vw, 72px);
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(80% 120% at 0% 100%, rgba(123, 140, 79, 0.45), rgba(123, 140, 79, 0) 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(168, 180, 125, 0.25), rgba(168, 180, 125, 0) 60%),
    var(--olive-800);
  color: var(--text-on-dark);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  --focus-color: var(--cream);
}

.donate__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(251, 248, 239, 0.12);
  color: var(--ember-100);
}

.donate__icon .icon { width: 28px; height: 28px; }

.donate__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--cream);
}

.donate__text {
  max-width: 34em;
  margin-top: 18px;
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: rgba(251, 248, 239, 0.88);
}

.donate__actions { display: grid; gap: 16px; justify-items: stretch; }
.donate__paybox { width: 100%; }

.bank {
  padding: 18px 20px;
  border: 1px solid rgba(251, 248, 239, 0.2);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.12);
}

.bank__title { font-weight: 700; }
.bank__details { margin-top: 6px; color: rgba(251, 248, 239, 0.94); line-height: 1.7; }
.bank .btn { margin-top: 12px; }

.donate__fallback {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(251, 248, 239, 0.2);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.12);
}

.donate__fallback-text { font-size: var(--fs-lg); font-weight: 500; color: var(--cream); text-wrap: balance; }
.donate__fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.donate__fallback-actions .btn { flex: 1 1 auto; }

/* Darker olive hills along the bottom of the panel */
.donate__panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: clamp(64px, 9vw, 128px);
  background: var(--olive-900);
  opacity: 0.6;
  -webkit-mask: url("/assets/img/decor/hills-edge.svg") center bottom / 100% 100% no-repeat;
  mask: url("/assets/img/decor/hills-edge.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.donate__note {
  margin-top: -4px;
  font-size: var(--fs-xs);
  text-align: center;
  color: rgba(251, 248, 239, 0.92);   /* AA even over the light glow in the panel corner */
}

@media (max-width: 860px) {
  .donate__panel { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .donate__icon { margin-inline: auto; }
  .donate__text { margin-inline: auto; }
}

/* 13. FAQ & contact ======================================================= */

.faq { --section-bg: var(--paper); }

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.faq__head { position: sticky; inset-block-start: calc(var(--header-h) + 32px); }
.faq__head .section-sub a { font-weight: 600; }

.faq__list { display: grid; gap: 12px; }

.faq-item {
  border: var(--card-border);
  border-radius: var(--r);
  background: var(--cream);
  transition: background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.faq-item[open] { background: #FFFEF8; box-shadow: var(--shadow); border-color: rgba(86, 101, 58, 0.22); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--olive-100);
  color: var(--olive-800);
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.faq-item__toggle .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-item__toggle { transform: rotate(45deg); background: var(--olive-700); color: var(--text-on-dark); }
.faq-item__a { padding: 0 20px 20px; color: var(--text-muted); line-height: 1.75; text-wrap: pretty; }

@media (max-width: 860px) {
  .faq__inner { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; text-align: center; }
  .faq__head .section-title--start { text-align: center; }
  .faq__head .section-title--start::after { margin-inline: auto; }
  .faq__head .section-sub--start { text-align: center; }
}

.contact { --section-bg: var(--cream); padding-bottom: clamp(40px, 5vw, 72px); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: var(--card-border);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.contact-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--olive-700);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--olive-100);
  color: var(--olive-800);
}

.contact-card__icon .icon { width: 22px; height: 22px; }

.contact-card__address { font-size: var(--fs-lg); font-weight: 500; color: var(--navy-900); }
.contact-card__address.is-placeholder { font-size: var(--fs-md); font-weight: 400; color: var(--text-muted); }
.contact-card__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card__hours { font-size: var(--fs-lg); font-weight: 500; line-height: 1.8; color: var(--navy-900); }

.contact-card__note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--olive-900);
  font-size: var(--fs-sm);
}

.contact-links { display: grid; gap: 8px; }
.contact-links:empty { display: none; }
.contact-links__empty { color: var(--text-muted); }

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px 10px 12px;
  border: var(--card-border);
  border-radius: var(--r);
  background: #FFFEF8;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}

.contact-link:hover { color: inherit; border-color: var(--olive-500); background: var(--paper); transform: translateX(-2px); }

.contact-link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--olive-100);
  color: var(--olive-800);
}

.contact-link__text { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.contact-link__label { font-size: var(--fs-xs); color: var(--text-muted); }
.contact-link__value { font-weight: 600; color: var(--navy-900); text-align: start; overflow-wrap: anywhere; }
.contact-link__value[dir="ltr"] { text-align: end; justify-self: start; }
.contact-link__arrow { width: 18px; height: 18px; color: var(--olive-600); }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* 14. Footer, FAB, toast ================================================== */

.site-footer { position: relative; }

/* The art's navy foreground is the footer colour, so the hills flow straight into it */
.hills--footer {
  height: clamp(64px, 9vw, 130px);
  margin-bottom: -1px;
}

.site-footer__body {
  background: var(--navy-900);
  color: var(--text-on-dark);
  --focus-color: var(--cream);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "quote quote"
    "brand nav"
    "copy  copy";
  align-items: center;
  gap: 28px 48px;
  padding-block: clamp(20px, 3vw, 36px) 28px;
}

/* Amishar's own words close the page */
.site-footer__quote {
  grid-area: quote;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(251, 248, 239, 0.12);
  text-align: center;
}

.site-footer__quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--olive-300);
  text-wrap: balance;
}

.site-footer__quote blockquote p::before { content: "״"; }
.site-footer__quote blockquote p::after { content: "״"; }

.site-footer__quote figcaption {
  margin-top: 10px;
  color: rgba(251, 248, 239, 0.72);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

.site-footer__quote figcaption::before { content: "— "; }

.site-footer__brand { grid-area: brand; display: flex; align-items: center; gap: 16px; }

.site-footer__badge {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(251, 248, 239, 0.1);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
}

.site-footer__text { margin-top: 4px; color: rgba(251, 248, 239, 0.75); font-size: var(--fs-sm); }

.site-footer__nav { grid-area: nav; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: rgba(251, 248, 239, 0.88);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-footer__nav a:hover { color: var(--cream); background: rgba(251, 248, 239, 0.08); }
.site-footer__nav a[aria-current] { color: var(--cream); text-decoration: underline; text-underline-offset: 0.35em; }

.site-footer__copy {
  grid-area: copy;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 239, 0.1);
  color: rgba(251, 248, 239, 0.62);
  font-size: var(--fs-xs);
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "quote" "brand" "nav" "copy";
    justify-items: center;
    text-align: center;
  }
  .site-footer__brand { flex-direction: column; gap: 12px; }
  .site-footer__nav ul { justify-content: center; }
  .site-footer__copy { justify-self: stretch; }
  /* Room for the floating WhatsApp button */
  .site-footer__inner { padding-bottom: 96px; }
}

.wa-fab {
  position: fixed;
  inset-block-end: calc(20px + env(safe-area-inset-bottom));
  inset-inline-end: 20px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--olive-700);
  color: var(--text-on-dark);
  box-shadow: 0 14px 30px -10px rgba(52, 63, 36, 0.75), 0 0 0 4px rgba(244, 239, 220, 0.9);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.wa-fab:hover { color: var(--text-on-dark); background: var(--olive-800); transform: translateY(-3px) scale(1.04); }

/* On the landing page the button appears once the hero is scrolled past */
.wa-fab.is-deferred:not(.is-shown) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.wa-fab.is-deferred.is-shown {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s;
}
.wa-fab .icon { width: 28px; height: 28px; }

/* Phones: steps aside while the catalog or the booking form reaches its corner (chrome.js) */
.wa-fab.is-tucked {
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.toast {
  position: fixed;
  inset-block-end: calc(24px + env(safe-area-inset-bottom));
  inset-inline-start: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 140px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--navy-900);
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  translate: 50% 16px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}

.toast .icon { color: var(--olive-300); }
.toast.is-visible { opacity: 1; translate: 50% 0; }

/* Phones: the bottom of the screen is where the thumb just tapped (a card's stepper, the
   form), so the confirmation drops in under the header, next to the order count it updates */
@media (max-width: 760px) {
  .toast {
    inset-block: calc(var(--header-h, 68px) + 12px) auto;
    max-width: calc(100% - 32px);
    translate: 50% -16px;
  }
}

/* 15. Accessibility page ================================================== */

.page-hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(8px, 2vw, 16px);
  border-bottom: var(--hairline);
  background: radial-gradient(60% 80% at 80% 0%, rgba(226, 230, 204, 0.7), rgba(226, 230, 204, 0) 70%), var(--cream);
}

.page-hero__inner { padding-bottom: 8px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); }
.breadcrumbs li + li::before { content: "‹"; margin-inline-end: 8px; color: var(--sand-2); }
.breadcrumbs a { color: var(--olive-700); }

.page-hero__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--olive-700);
}

.page-hero__meta { margin-top: 12px; color: var(--text-muted); font-size: var(--fs-sm); }
.page-hero__meta:empty { display: none; }

.page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
}

.prose {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--text);
}

.prose__list {
  display: grid;
  gap: 6px;
  margin-top: -8px;               /* sits close to the line that introduces it */
  padding-inline-start: 1.25em;
  list-style: disc;
  text-wrap: pretty;
}

.prose__list li { padding-inline-start: 0.25em; }
.prose__list li::marker { color: var(--olive-600); }

.page__aside { position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
.page__aside-text { color: var(--text-muted); font-size: var(--fs-sm); }
.page__aside-name { font-weight: 600; color: var(--navy-900); }

@media (max-width: 900px) {
  .page__grid { grid-template-columns: minmax(0, 1fr); }
  .page__aside { position: static; }
}

/* Motion: reveal-on-scroll (only when JS enables it and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.8s var(--ease) var(--reveal-delay, 0ms),
      transform 0.8s var(--ease) var(--reveal-delay, 0ms);
  }

  .has-reveal .reveal.is-visible { opacity: 1; transform: none; }

  /* Cards keep their hover transition once revealed */
  .has-reveal .product-card.reveal.is-visible {
    transition: opacity 0.8s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* Zero duration and delay start no transitions at all. (A 0.01ms duration still starts
       one for every property, inherited visibility included, which kept the just-opened
       mobile menu unfocusable for a frame.) Nothing listens for transitionend. */
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .wa-fab, .hills, .toolbar, .lookup, .site-footer__nav { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
