/* ============================================================
   KOSHER.CSS - /kosher (כשרות).
   "Certificate wall" on a warm cream canvas: each standard is a
   framed document card (hairline gold inner frame, seal, typed
   issuing-authority label) - the vernacular of a real תעודת הכשר.
   Brand-locked: Rubik display, Heebo body, Courier utility label,
   cleaver-red accent used once, warm-gold for the frames.
   ============================================================ */

/* page sits under the fixed nav - cream so there's no grey strip */
.kosher-page { padding-top: 124px; background: #F2DCC9; }

/* local tokens for this page (derived from the brand set) */
.kosher-page {
  --k-canvas:   #F2DCC9;   /* warm cream page */
  --k-card:     #FBF4E9;   /* lighter cream - raised document */
  --k-card-2:   #F6ECDD;   /* subtle alt */
  --k-ink:      #1F1A1B;   /* near-black type */
  --k-ink-dim:  #6E5F51;   /* muted body */
  --k-red:      #950709;   /* cleaver-red accent (used sparingly) */
  --k-gold:     #C9A86A;   /* warm gold - certificate frame lines */
  --k-gold-2:   #E4D4B8;   /* faint gold hairline */
}

/* ---------- HERO (light cream) ---------- */
.kosher-hero {
  background: var(--k-canvas);
  padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 52px);
  text-align: center;
}
.kosher-hero-inner { max-width: 760px; margin: 0 auto; }
.kosher-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.04;
  letter-spacing: -0.01em; color: var(--k-ink);
  margin-bottom: 20px;
}
.kosher-title span { color: var(--k-red); }
.kosher-lead {
  font-family: var(--font); font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.85; color: var(--k-ink-dim);
  max-width: 620px; margin: 0 auto;
}

/* ---------- CERTIFICATE WALL ---------- */
.kosher-wall {
  background: var(--k-canvas);
  padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 8vw, 104px);
}

/* shared card = a framed document */
.cert {
  position: relative;
  background: var(--k-card);
  border: 1px solid var(--k-gold-2);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -28px rgba(31,26,27,0.45);
  padding: 30px 30px 30px;
  overflow: hidden;
}
/* the inner hairline frame - the "official certificate" tell */
.cert::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid var(--k-gold);
  border-radius: 2px;
  opacity: 0.55;
  pointer-events: none;
}
/* red corner tick - a wax-seal nod. Sits on the LEADING-OUT corner
   (top-inline-end = top-left in RTL) so it never collides with the
   right-aligned issuer label. */
.cert::after {
  content: "";
  position: absolute; top: 0; inset-inline-end: 0;
  width: 40px; height: 40px;
  background: linear-gradient(225deg, var(--k-red) 0 50%, transparent 50%);
  opacity: 0.92;
}

.cert-body { position: relative; z-index: 1; }
.cert-issuer {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k-red);
  margin-bottom: 8px;
}
.cert-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.15;
  color: var(--k-ink); margin: 0 0 10px;
}
.cert-note {
  font-family: var(--font); font-size: 14.5px; line-height: 1.7;
  color: var(--k-ink-dim); margin: 0; max-width: 46ch;
}

/* seal (round cream medallion) */
.cert-seal {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  width: 108px; height: 108px; border-radius: 50%;
  background: #fff;
  border: 1px solid var(--k-gold-2);
  display: grid; place-items: center;
  padding: 14px;
  box-shadow: inset 0 0 0 3px rgba(201,168,106,0.18);
}
.cert-seal img { width: 100%; height: 100%; object-fit: contain; }
.cert-seal--sm { width: 84px; height: 84px; padding: 11px; }
/* landscape seal artwork - less padding so it reads at the same optical size */
.cert-seal--wide { padding: 7px; }

/* ---- LEAD certificate (כשר חלק בית יוסף): wide, seal beside body ---- */
.cert--lead {
  display: flex; flex-direction: row-reverse; align-items: center; gap: 34px;
  padding: 40px clamp(30px, 4vw, 52px);
  margin-bottom: 22px;
  background:
    radial-gradient(130% 150% at 100% 0%, #FFFBF4 0%, var(--k-card) 62%);
}
.cert--lead .cert-seal {
  width: 132px; height: 132px; padding: 16px;
  /* hairline divider between seal and text */
  position: relative;
}
.cert--lead .cert-body {
  flex: 1; padding-inline-end: 30px;
  border-inline-end: 1px solid var(--k-gold-2);
}
.cert--lead .cert-name { font-size: clamp(26px, 3.4vw, 38px); }
.cert--lead .cert-note { font-size: 15.5px; max-width: 62ch; }

/* ---- supporting grid ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
/* seal-bearing cards lay the seal above the text */
.cert-grid .cert:not(.cert--text) {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
/* text-only cards (רישיון יצרן / טכנולוג) read like a note -
   their own centered row below the seal grid */
.cert-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 830px;      /* = 2 grid cols + gap → sits centered under the 3-col row */
  margin: 22px auto 0;
}
.cert--text { background: var(--k-card-2); }
.cert--text::after { opacity: 0.75; }

/* ============================================================
   RESPONSIVE - brand's two breakpoints only
   ============================================================ */
@media (max-width: 1200px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-notes { max-width: none; }
}

@media (max-width: 767px) {
  .kosher-page { padding-top: 88px; }
  .cert-grid { grid-template-columns: 1fr; gap: 16px; }
  .cert-notes { grid-template-columns: 1fr; gap: 16px; }
  .cert { padding: 26px 22px; }
  .cert--lead {
    flex-direction: column; text-align: center; gap: 20px; padding: 30px 22px;
  }
  .cert--lead .cert-body { display: flex; flex-direction: column; align-items: center; }
  .cert--lead .cert-note { margin-inline: auto; }
  .cert-grid .cert:not(.cert--text) { align-items: center; text-align: center; }
  .cert-grid .cert:not(.cert--text) .cert-note { margin-inline: auto; }
}
