/* ======================================================================
   ZAFIO · SITE — premium design layer for public restaurant pages
   Hand-authored (no build). Loaded on /r/{slug} pages alongside app.css.
   Color-agnostic on purpose: blocks pass their brand colour inline
   (--c = primary), these primitives handle type, space, depth & motion
   so every variant feels Aesop / Aman / Apple — not a Tailwind template.
   ====================================================================== */

:root {
  --zf-ease:      cubic-bezier(.16, 1, .3, 1);
  --zf-ease-out:  cubic-bezier(.22, 1, .36, 1);
  --zf-ink:       #14110d;
  --zf-ink-2:     #57534e;
  --zf-ink-3:     #a8a29e;
  --zf-paper:     #ffffff;
  --zf-paper-2:   #faf9f7;
  --zf-line:      rgba(20, 17, 13, .08);
  --zf-radius:    22px;
  --zf-radius-sm: 14px;
  --zf-shadow-sm: 0 1px 2px rgba(16,16,18,.04), 0 4px 14px -6px rgba(16,16,18,.10);
  --zf-shadow:    0 2px 6px rgba(16,16,18,.05), 0 18px 40px -22px rgba(16,16,18,.28);
  --zf-shadow-lg: 0 40px 90px -40px rgba(16,16,18,.40);
}

/* ── Section & container rhythm — generous, editorial whitespace ─────── */
.zf-section   { padding: clamp(64px, 9vw, 140px) 24px; position: relative; }
.zf-section-sm{ padding: clamp(48px, 6vw, 88px) 24px; position: relative; }
.zf-container { max-width: 1180px; margin: 0 auto; }
.zf-narrow    { max-width: 720px; margin: 0 auto; }
.zf-wide      { max-width: 1320px; margin: 0 auto; }

/* ── Typography — fluid, optical, tight tracking on display ─────────── */
.zf-eyebrow {
  font-size: clamp(.72rem, .9vw, .8rem); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--c, var(--zf-ink-2));
}
.zf-display {
  font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .98;
  letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance;
}
.zf-h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.zf-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.zf-lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--zf-ink-2); text-wrap: pretty; }
.zf-body { font-size: 1.05rem; line-height: 1.8; color: var(--zf-ink-2); text-wrap: pretty; }
.zf-mono-num { font-variant-numeric: tabular-nums lining-nums; }

/* ── Surfaces & depth ──────────────────────────────────────────────── */
.zf-card {
  background: var(--zf-paper); border: 1px solid var(--zf-line);
  border-radius: var(--zf-radius); box-shadow: var(--zf-shadow-sm);
  transition: transform .5s var(--zf-ease), box-shadow .5s var(--zf-ease), border-color .5s var(--zf-ease);
}
.zf-card-hover:hover { transform: translateY(-4px); box-shadow: var(--zf-shadow); border-color: rgba(20,17,13,.12); }

.zf-glass {
  background: rgba(255,255,255,.62);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--zf-shadow), inset 0 1px 0 rgba(255,255,255,.6);
}
.zf-dark .zf-glass, .zf-glass-dark {
  background: rgba(20,20,22,.5);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--zf-shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Media frame — rounded, layered, subtle zoom on hover */
.zf-media { border-radius: var(--zf-radius); overflow: hidden; box-shadow: var(--zf-shadow); position: relative; }
.zf-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--zf-ease); }
.zf-media-zoom:hover img { transform: scale(1.045); }
.zf-fullbleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* Soft gradient veils for legibility over imagery */
.zf-veil-b::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.12) 45%, transparent); pointer-events:none; }
.zf-veil-radial::before { content:""; position:absolute; inset:0; background:radial-gradient(70% 60% at 50% 30%, transparent, rgba(0,0,0,.45)); pointer-events:none; }

/* ── Buttons — pill, refined motion ────────────────────────────────── */
.zf-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-size: .95rem; font-weight: 600;
  letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: none;
  transition: transform .4s var(--zf-ease), box-shadow .4s var(--zf-ease), background .3s, color .3s, opacity .3s;
  will-change: transform;
}
.zf-btn:active { transform: translateY(0) scale(.98); }
.zf-btn-solid { background: var(--c, var(--zf-ink)); color: #fff; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--c, #000) 55%, transparent); }
.zf-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--c, #000) 60%, transparent); }
.zf-btn-light { background: #fff; color: var(--c, var(--zf-ink)); box-shadow: var(--zf-shadow-sm); }
.zf-btn-light:hover { transform: translateY(-2px); box-shadow: var(--zf-shadow); }
.zf-btn-ghost { background: transparent; color: var(--c, var(--zf-ink)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--zf-ink)) 28%, transparent); }
.zf-btn-ghost:hover { background: color-mix(in srgb, var(--c, var(--zf-ink)) 7%, transparent); }
.zf-btn-glass { background: rgba(255,255,255,.16); color:#fff; border:1px solid rgba(255,255,255,.28); backdrop-filter: blur(12px); }
.zf-btn-glass:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.zf-link { color: var(--c, var(--zf-ink)); font-weight: 600; text-decoration: none; display:inline-flex; align-items:center; gap:.3rem; }
.zf-link .zf-arrow { transition: transform .35s var(--zf-ease); }
.zf-link:hover .zf-arrow { transform: translateX(4px); }

/* ── Pills / chips / dividers ──────────────────────────────────────── */
.zf-pill { display:inline-flex; align-items:center; gap:.4rem; padding:.4rem .9rem; border-radius:999px; font-size:.78rem; font-weight:600; letter-spacing:.04em; background: color-mix(in srgb, var(--c, var(--zf-ink)) 9%, transparent); color: var(--c, var(--zf-ink)); }
.zf-rule { height:1px; background: var(--zf-line); border:0; }
.zf-rule-accent { height:2px; width:44px; border-radius:2px; background: var(--c, var(--zf-ink)); }

/* ── Dark section modifier (for "premium dark" variants) ───────────── */
.zf-dark { background:#0b0b0d; color:#f5f3f0; }
.zf-dark .zf-h1, .zf-dark .zf-h2, .zf-dark .zf-display { color:#fafaf9; }
.zf-dark .zf-lead, .zf-dark .zf-body { color: rgba(255,255,255,.66); }
.zf-dark .zf-eyebrow { color: color-mix(in srgb, var(--c, #fff) 70%, #fff); }
.zf-dark .zf-card { background:#161617; border-color: rgba(255,255,255,.08); box-shadow: var(--zf-shadow-lg); }
.zf-dark .zf-rule { background: rgba(255,255,255,.1); }

/* ── Scroll reveal — discreet, premium (JS adds .is-in) ────────────── */
.zf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--zf-ease), transform .9s var(--zf-ease); }
.zf-reveal.is-in { opacity: 1; transform: none; }
.zf-reveal-2 { transition-delay: .08s; }
.zf-reveal-3 { transition-delay: .16s; }
.zf-reveal-4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .zf-reveal { opacity: 1 !important; transform: none !important; }
  .zf-media img, .zf-btn, .zf-card { transition: none !important; }
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.zf-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.zf-stack { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.zf-center { text-align: center; }
.zf-balance { text-wrap: balance; }
