/* Black Cherry — premium catering prototype
   Real HTML/CSS reproduction of Figma designs.
   Brand tokens locked in alt-homepage v3 (2026-05-03). */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;600;700&family=Heebo:wght@300;400;500;600;700;800&family=Allura&family=Great+Vibes&display=swap');

:root {
  /* Brand */
  --cherry: #3D0C11;
  --cherry-dk: #2A0709;
  --cherry-lt: #5A2228;
  --gold: #C5A059;
  --gold-soft: #D8BC7F;
  --cream: #F9F7F2;
  --cream-2: #F3EEE4;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --muted: #5C5C5C;
  --muted-2: #8A8A8A;
  --line: #E6DDD0;
  --line-2: #EFE9DC;
  --success: #2E7D5B;
  --danger: #B23B3B;

  /* Type */
  --font-display: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --font-body: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Allura', 'Great Vibes', cursive;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(26,15,12,0.04), 0 1px 4px rgba(26,15,12,0.04);
  --shadow-2: 0 4px 12px rgba(61,12,17,0.07), 0 2px 4px rgba(61,12,17,0.04);
  --shadow-3: 0 14px 30px rgba(61,12,17,0.12), 0 4px 10px rgba(61,12,17,0.06);
  --shadow-modal: 0 30px 60px rgba(0,0,0,0.25), 0 10px 20px rgba(0,0,0,0.15);

  /* Container */
  --max: 1280px;
  --max-narrow: 980px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body p { line-height: 1.75; max-width: 65ch; }
p.section-lede, .hero p, .quote p, .card .desc { max-width: unset; }
/* Prevent ₪/numbers from drifting in RTL mixed-context paragraphs */
.amount { unicode-bidi: plaintext; }

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

a { color: var(--cherry); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cherry-lt); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cherry);
  margin: 0 0 .4em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }

/* ---- Focus ---- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  top: -100px;
  background: var(--cherry);
  color: var(--cream);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 2px solid var(--gold);
  z-index: 200;
  font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: var(--s-3); color: var(--cream); }

/* ---- Kashrut/availability sticky banner (Gemini critique #4) ---- */
.kashrut-bar {
  background: var(--cherry-dk);
  color: var(--cream);
  font-size: 13px;
  padding: 8px var(--s-6);
  display: flex; gap: var(--s-5); justify-content: center; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid rgba(197,160,89,0.25);
  position: relative;
  z-index: 51;
}
.kashrut-bar a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.kashrut-bar a:hover { color: var(--gold-soft); }
.kashrut-bar .sep { color: rgba(197,160,89,0.5); }
.kashrut-bar .badge-k {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(197,160,89,0.15);
  border: 1px solid rgba(197,160,89,0.5);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .08em;
}

/* ---- WhatsApp FAB (ChatGPT critique #5) ---- */
.whatsapp-fab {
  position: fixed;
  inset-inline-start: var(--s-5);
  bottom: var(--s-5);
  width: 60px; height: 60px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 4px 8px rgba(37,211,102,0.3);
  z-index: 40;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(37,211,102,0.55), 0 6px 12px rgba(37,211,102,0.4);
  color: #fff;
  text-decoration: none;
}
.whatsapp-fab svg { width: 32px; height: 32px; fill: currentColor; }

/* Move proto chip out of WhatsApp's way */
.proto-chip { inset-inline-end: var(--s-5) !important; bottom: var(--s-5) !important; }

/* ---- Top bar (premium look) ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-4) var(--s-6);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-6);
  min-height: 72px;
}
.topbar .left, .topbar .right { display: flex; align-items: center; gap: var(--s-3); }
.topbar .right { justify-self: end; }

.brand-mark {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  text-align: center;
}
.brand-mark .script {
  font-family: var(--font-script);
  font-size: 38px;
  color: var(--cherry);
  letter-spacing: .01em;
}
.brand-mark .sub {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--cherry);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--cream-2); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-main {
  display: flex; gap: var(--s-6);
  list-style: none; padding: 0; margin: 0;
  font-size: 15px;
}
.nav-main a {
  color: var(--ink-2);
  padding: var(--s-2) 0;
  position: relative;
}
.nav-main a:hover, .nav-main a.active { color: var(--cherry); }
.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; inset-inline-start: 50%;
  transform: translateX(50%);
  width: 24px; height: 2px; background: var(--gold);
}

/* Prototype indicator (small, unobtrusive) */
.proto-chip {
  position: fixed;
  inset-inline-end: var(--s-4);
  bottom: var(--s-4);
  background: var(--cherry);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: .14em;
  box-shadow: var(--shadow-2);
  z-index: 40;
}
.proto-chip a { color: var(--gold); margin-inline-start: var(--s-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  /* Premium "soft & heavy" easing per ChatGPT critique #3 */
  transition: background .2s ease, color .2s, border-color .2s,
              transform .28s cubic-bezier(.22,1,.36,1),
              box-shadow .3s ease;
  text-decoration: none;
  min-height: 48px;  /* a11y tap target */
}
.btn-primary { background: var(--cherry); color: var(--cream); border-color: var(--cherry); }
.btn-primary:hover { background: var(--cherry-dk); color: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61,12,17,0.22); }
.btn-secondary { background: transparent; color: var(--cherry); border-color: var(--cherry); }
.btn-secondary:hover { background: var(--cherry); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--cherry-dk); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--cherry-dk); }
.btn-ghost-light { color: var(--cream); border-color: var(--gold); background: transparent; }
.btn-ghost-light:hover { background: var(--gold); color: var(--cherry-dk); border-color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: var(--s-4) var(--s-8); font-size: 16px; min-height: 52px; }

/* ---- Layout helpers ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-16) 0; }
.section-tight { padding: var(--s-10) 0; }
.section-title-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.section-title {
  text-align: center;
  font-family: var(--font-display);
  color: var(--cherry);
  margin: 0 auto var(--s-3);
  max-width: 720px;
}
.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto var(--s-10);
}

.divider-ornament {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  color: var(--gold);
  margin: var(--s-6) auto;
}
.divider-ornament::before, .divider-ornament::after {
  content: ''; flex: 0 0 60px; height: 1px; background: var(--gold);
}

/* ---- HERO (dark wood) ---- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--cream);
  background:
    linear-gradient(rgba(20,8,4,0.55), rgba(20,8,4,0.65)),
    url('assets/hero-wood.svg') center/cover no-repeat,
    #2a1610;
  overflow: hidden;
}
.hero-inner { max-width: 760px; padding: var(--s-16) var(--s-6); }
.hero h1 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: var(--s-4);
}
.hero .tag {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 32px;
  margin-bottom: var(--s-2);
}
.hero p {
  color: rgba(249,247,242,0.85);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto var(--s-6);
}

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--gold-soft); }
.card .card-img {
  aspect-ratio: 4/3;
  background: var(--cream-2) center/cover no-repeat;
  transition: transform .7s cubic-bezier(.22,1,.36,1);  /* gentle zoom-on-hover */
  filter: saturate(0.96) contrast(1.02);  /* unified photo treatment */
}
.card:hover .card-img { transform: scale(1.03); }
.card .card-body { padding: var(--s-5) var(--s-5) var(--s-5); }
.card h3 { margin-bottom: var(--s-2); }
.card .desc { color: var(--muted); font-size: 14px; line-height: 1.55; min-height: 42px; }
.card .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--s-5) var(--s-5);
  gap: var(--s-3);
}
.card .price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cherry);
  font-weight: 600;
  unicode-bidi: plaintext;
}
.card .price small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Card meta-badges (Gemini critique #3) — min portion, dietary flags */
.card .meta-badges {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-2);
}
.meta-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  color: var(--ink-2);
  letter-spacing: .02em;
}
.meta-badge.gold { background: rgba(197,160,89,0.15); color: var(--cherry-dk); border: 1px solid rgba(197,160,89,0.4); }
.meta-badge.dot::before { content: '●'; color: var(--cherry); font-size: 8px; }

.grid-3 {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 { display: grid; gap: var(--s-6); grid-template-columns: repeat(4, 1fr); }

/* Story card variant — image fills more */
.story-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: center;
  padding-bottom: var(--s-5);
  transition: transform .2s, box-shadow .2s;
}
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.story-card .img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.story-card h3 { margin: var(--s-5) var(--s-4) var(--s-3); font-size: 22px; }
.story-card p { color: var(--muted); font-size: 14px; padding: 0 var(--s-5); }
.story-card .btn { margin: var(--s-4) auto 0; }

/* ---- Filter sidebar (menu page) ---- */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--s-8);
  align-items: start;
}
.filter-aside {
  position: sticky; top: 92px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.filter-aside h3 {
  font-size: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
}
.filter-aside ul { list-style: none; padding: 0; margin: 0; }
.filter-aside li {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-2) 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.filter-aside li:last-child { border-bottom: 0; }
.filter-aside li:hover { color: var(--cherry); }
.filter-aside li .chevron { color: var(--muted-2); }

/* Filter chips row */
.filter-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.filter-row .chip-select,
.filter-row .chip-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 14px;
  cursor: pointer;
}
.filter-row .chip-btn.primary { background: var(--cherry); color: var(--cream); border-color: var(--cherry); }
.filter-row .chip-btn.primary:hover { background: var(--cherry-dk); }

/* ---- Modal (item details) ---- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,10,8,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: var(--s-4);
}
.modal {
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-modal);
  max-width: 880px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  max-height: 92vh;
}
.modal-close {
  position: absolute; top: var(--s-3); inset-inline-end: var(--s-3);
  background: var(--paper); border: 1px solid var(--line);
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.modal-close:hover { background: var(--cream-2); }
.modal-img { background: var(--cream-2) center/cover no-repeat; min-height: 360px; }
.modal-body { padding: var(--s-10) var(--s-8); display: flex; flex-direction: column; }
.modal-body h2 { margin-bottom: var(--s-3); }
.modal-body .desc { color: var(--muted); margin-bottom: var(--s-5); }
.modal-meta { color: var(--muted-2); font-size: 13px; margin-bottom: var(--s-4); }
.modal-actions {
  margin-top: auto;
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.qty button {
  width: 38px; height: 44px;
  background: transparent; border: 0;
  font-size: 18px; color: var(--cherry);
  cursor: pointer;
}
.qty button:hover { background: var(--cream-2); }
.qty input {
  width: 44px; height: 44px; text-align: center;
  border: 0; background: transparent;
  font-size: 16px; color: var(--ink);
}
.modal-price {
  margin-inline-start: auto;
  font-family: var(--font-display);
  font-size: 26px; color: var(--cherry); font-weight: 600;
}

/* ---- Forms ---- */
.form-grid { display: grid; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  color: var(--ink);
  min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.18);
}
.textarea { min-height: 100px; resize: vertical; padding-top: var(--s-3); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.panel h3 {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

/* ---- Checkout cart summary ---- */
.cart-line {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.cart-line .thumb {
  width: 60px; height: 60px; border-radius: var(--r-md);
  background: var(--cream-2) center/cover no-repeat;
}
.cart-line .name { color: var(--ink); }
.cart-line .qty-small { color: var(--muted); font-size: 12px; }
.cart-line .line-price { color: var(--cherry); font-family: var(--font-display); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 2px solid var(--cherry);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cherry);
}

/* ---- Testimonial ---- */
.quote {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: var(--s-10) var(--s-6);
}
.quote .marks {
  font-family: var(--font-display);
  font-size: 64px; color: var(--gold);
  line-height: .5; height: 30px;
}
.quote p {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.55;
  color: var(--ink-2);
}
.quote cite {
  display: block;
  font-style: normal;
  color: var(--cherry);
  font-weight: 600;
  margin-top: var(--s-3);
}

/* ---- Featured split ---- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center;
}
.split .photo {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: var(--cream-2) center/cover no-repeat;
  box-shadow: var(--shadow-2);
}
.split h2 { margin-bottom: var(--s-4); }
.split p { color: var(--muted); }

/* ---- Footer ---- */
.footer {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  padding: var(--s-12) 0 var(--s-6);
  margin-top: var(--s-16);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: var(--s-10);
  align-items: start;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--s-2); }
.footer li a { color: var(--ink-2); font-size: 14px; }
.footer li a:hover { color: var(--cherry); }
.footer .newsletter input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: var(--s-3);
  min-height: 44px;
}
.footer .brand-mark .script { font-size: 36px; }
.footer .brand-mark p { font-size: 13px; color: var(--muted); margin-top: var(--s-3); max-width: 240px; text-align: center; }
.footer-bottom {
  max-width: var(--max);
  margin: var(--s-10) auto 0;
  padding: var(--s-5) var(--s-6) 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  color: var(--muted);
  font-size: 12px;
}

/* ---- Trust strip ---- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-10);
  padding: var(--s-8) var(--s-6);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .item { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); color: var(--muted); font-size: 14px; }
.trust-strip .item strong { color: var(--cherry); font-family: var(--font-display); font-size: 18px; }

/* ---- Eyebrow tag ---- */
.tag-line {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold);
}

/* ---- Pager (between mockup pages) ---- */
.pager-row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  margin: var(--s-10) auto 0;
  max-width: var(--max);
  padding: 0 var(--s-6);
}
.pager-row a {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s, transform .15s;
}
.pager-row a:hover { border-color: var(--gold); transform: translateY(-1px); }
.pager-row .dir { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.pager-row .name { font-family: var(--font-display); color: var(--cherry); font-size: 18px; }

/* ---- Index gallery ---- */
.index-hero {
  text-align: center;
  padding: var(--s-16) var(--s-6) var(--s-8);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.index-hero .brand-mark .script { font-size: 56px; }
.index-hero h1 { font-size: 32px; margin-top: var(--s-3); }
.index-hero p { color: var(--muted); max-width: 620px; margin: var(--s-3) auto; }
.index-section { padding: var(--s-12) 0; }
.index-section-title {
  text-align: center; margin-bottom: var(--s-8);
}
.index-section-title h2 { margin-bottom: var(--s-2); }
.index-section-title p { color: var(--muted); }

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-align: start;
  color: inherit;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--gold-soft); text-decoration: none; }
.feature-card .thumb {
  aspect-ratio: 21/9;
  background: var(--cream-2) center top/cover no-repeat;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.feature-card .thumb .tag-pill {
  position: absolute; top: var(--s-3); inset-inline-end: var(--s-3);
  background: rgba(61,12,17,0.92);
  color: var(--cream);
  font-size: 11px;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.feature-card .info { padding: var(--s-5) var(--s-5) var(--s-6); }
.feature-card h3 { margin-bottom: var(--s-2); font-size: 22px; }
.feature-card .info p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.feature-card .meta-line {
  margin-top: var(--s-4);
  display: flex; gap: var(--s-3); font-size: 12px; color: var(--muted-2);
}

.thumb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-5);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.thumb-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  color: inherit;
  display: block;
  transition: border-color .15s, transform .15s;
}
.thumb-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.thumb-card .t {
  height: 140px;
  background: var(--cream-2) center top/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.thumb-card .name { padding: var(--s-3); font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---- Page meta (mockup viewer chrome) ---- */
.page-meta {
  background: var(--cream);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.page-meta .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
}
.page-meta h1 {
  font-size: 22px; margin: 0; color: var(--cherry);
}
.page-meta .crumbs {
  display: flex; gap: var(--s-2);
  font-size: 13px; color: var(--muted);
}
.page-meta .crumbs a { color: var(--cherry); }
.page-meta .badge {
  background: var(--paper); color: var(--muted); border: 1px solid var(--line);
  font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .menu-layout { grid-template-columns: 1fr; }
  .filter-aside { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .topbar-inner { grid-template-columns: auto 1fr; padding: var(--s-3) var(--s-4); }
  .topbar .right { justify-self: end; }
  .nav-main { display: none; }
  .container { padding: 0 var(--s-4); }
  .section { padding: var(--s-10) 0; }
  .grid-3, .grid-4, .feature-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .modal { grid-template-columns: 1fr; }
  .modal-img { min-height: 240px; }
  .modal-body { padding: var(--s-6) var(--s-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid-3, .grid-4, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .index-hero .brand-mark .script { font-size: 44px; }
}

/* ---- Print-safe ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
