/* Iron Republic PH: marketplace brand system (yellow / black / white).
   Source of truth for the look: the owner's Facebook Marketplace ads (docs/STATE.md). Rules: docs/BUILD-BRIEF.md. */

:root {
  --y: #ffd028;          /* brand yellow (ads background) */
  --y-2: #f5b800;        /* deeper yellow, hover */
  --y-3: #e6b813;        /* skew panel on yellow */
  --y-soft: #fff4c7;     /* tint for chips on white */
  --k: #141414;          /* black */
  --k-2: #222222;
  --k-3: #333333;        /* hairlines on black */
  --w: #ffffff;
  --g: #f3f3f3;          /* light grey section (neutral) */
  --g-2: #e5e5e5;        /* hairlines on white */
  --ink: #141414;
  --ink-2: #3d3d3d;
  --ink-3: #5f5f5f;      /* captions on white, 6.3:1 */
  --on-k: #f2f2f2;
  --on-k-2: #bdbdbd;
  --viber: #7360f2;      /* Viber purple, as in the ads */
  --ok: #1c7c36;         /* "Successful delivery" green */
  --err: #b3261e;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;  /* use with font-stretch */
  --f-body: "Inter", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --sec: clamp(56px, 8vw, 112px);
  --r: 14px;             /* card radius */
  --r-s: 10px;           /* button radius */
  --ease: cubic-bezier(.2, .9, .2, 1);
  --z-nav: 100; --z-menu: 200; --z-fab: 150;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--w); color: var(--ink); font: 400 1rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Copy protection (owner request): no text selection or image dragging; form fields stay editable. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--k); outline-offset: 3px; }
.on-k :focus-visible { outline-color: var(--y); }
::selection { background: var(--k); color: var(--y); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--k); color: var(--y); padding: 12px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Surfaces ---------- */
.on-y { background: var(--y); color: var(--k); }
.on-k { background: var(--k); color: var(--on-k); }
.on-g { background: var(--g); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .005em; line-height: .95; text-wrap: balance; }
.d1 { font-size: clamp(2.6rem, 6.4vw, 6rem); }
.d2 { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.d3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.d4 { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.05; }
.outline { color: var(--w); -webkit-text-stroke: 3px var(--k); paint-order: stroke fill; }
.hl { color: var(--y); }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.5; max-width: 46ch; }
.on-k .lead, .on-k .muted { color: var(--on-k-2); }
.muted { color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--k); color: var(--y); font: 800 .76rem var(--f-display); font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 400px) { .eyebrow { font-size: .66rem; letter-spacing: .04em; font-stretch: 108%; padding: 0 12px; max-width: 100%; } }
.on-k .eyebrow { background: var(--y); color: var(--k); }
.num { font-family: var(--f-display); font-style: italic; font-stretch: 75%; font-weight: 900; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--k); --t: var(--w);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border: 0; border-radius: var(--r-s); background: var(--b); color: var(--t); text-decoration: none; white-space: nowrap;
  font: 800 .92rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .03em; text-transform: uppercase;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s; touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(0,0,0,.55); }
.btn:active { transform: none; }
.btn i { font-size: 1.15em; }
.btn.y { --b: var(--y); --t: var(--k); }
.btn.w { --b: var(--w); --t: var(--k); }
.btn.viber { --b: var(--viber); --t: #fff; }
.btn.ghost { --b: transparent; --t: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px currentColor, 0 10px 18px -10px rgba(0,0,0,.4); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: .82rem; }
.link { display: inline-flex; align-items: center; gap: 6px; font: 800 .85rem var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; min-height: 32px; }

/* ---------- Phone pair (Viber + call), as on every ad ---------- */
.phones { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.phone { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 52px; }
.phone .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--k); color: var(--y); font-size: 24px; flex: none; }
.phone.viber .ic { background: var(--viber); color: #fff; border-radius: 16px 16px 16px 4px; }
.on-k .phone .ic { background: var(--y); color: var(--k); }
.on-k .phone.viber .ic { background: var(--viber); color: #fff; }
.phone small { display: block; font: 700 .68rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.phone .num { font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.05; }

/* ---------- Top bar + nav ---------- */
.topbar { background: var(--k); color: var(--on-k); font: 600 .8rem var(--f-body); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar b { color: var(--y); font-weight: 700; }
.topbar i { color: var(--y); }
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: var(--y); border-bottom: 2px solid var(--k); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--k); min-height: 44px; flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; }
.brand b { display: block; font: 900 1.2rem/1 var(--f-display); font-stretch: 112%; white-space: nowrap; }
.brand small { display: block; margin-top: 3px; font: 700 .64rem var(--f-body); letter-spacing: .15em; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font: 700 .92rem var(--f-body); text-decoration: none; }
.nav-links a:hover { background: rgba(0,0,0,.08); }
.nav-links a[aria-current="page"] { background: var(--k); color: var(--y); }
.nav .btn { min-height: 46px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--k); border-radius: var(--r-s); background: transparent; align-items: center; justify-content: center; font-size: 1.4rem; }
.mmenu { position: fixed; inset: calc(var(--nav-h) + 2px) 0 0; z-index: var(--z-menu); background: var(--y); padding: 20px var(--gutter) 40px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .24s var(--ease), visibility 0s .24s; }
.mmenu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .24s var(--ease); }
.mmenu a:not(.btn):not(.phone) { font: 900 1.9rem/1.15 var(--f-display); font-stretch: 118%; text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 2px solid rgba(0,0,0,.12); }
.mmenu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.mmenu .phones { margin-top: 20px; }
.mmenu .btn { margin-top: 16px; }
@media (max-width: 1000px) { .nav-links, .nav .wrap > .btn { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 560px) { .topbar .hide-s { display: none; } .topbar .wrap { justify-content: center; } .nav .wrap { gap: 12px; } .brand { gap: 8px; min-width: 0; } .brand b { font-size: 1rem; } .brand small { font-size: .56rem; } .brand svg { width: 34px; height: 34px; } }
@media (max-width: 360px) { .brand b { font-size: .88rem; } .brand small { letter-spacing: .1em; } .menu-btn { width: 44px; height: 44px; flex: none; } }

/* ---------- Floating Viber button (mobile) ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-fab); display: none; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--viber); color: #fff; text-decoration: none; font: 800 .9rem var(--f-display); font-stretch: 112%; text-transform: uppercase; box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); transition: opacity .2s, transform .2s; }
.fab i { font-size: 1.5rem; }
@media (max-width: 1000px) { .fab { display: inline-flex; } }
.fab.fab--off { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }

/* ---------- Product cutout + card ---------- */
.cutout { filter: drop-shadow(0 22px 18px rgba(0,0,0,.32)); object-fit: contain; }
.pcard { position: relative; display: flex; flex-direction: column; min-height: 340px; border-radius: var(--r); overflow: hidden; background: var(--y); color: var(--k); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.55); }
.pcard .cat { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; font: 700 .7rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.pcard h3 { padding: 18px 18px 0; font-size: 1.05rem; line-height: 1.05; font-stretch: 118%; }
.pcard img { width: 100%; aspect-ratio: 4 / 3; margin-top: auto; padding: 10px 16px 4px; }
.pcard .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; background: var(--k); color: var(--w); font: 800 .78rem var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .03em; }
.pcard .bar i { color: var(--y); font-size: 1.2rem; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pgrid { gap: 10px; } .pcard { min-height: 240px; } .pcard h3 { font-size: .88rem; padding: 14px 12px 0; } .pcard .bar { padding: 0 12px; font-size: .7rem; } }

/* ---------- Chips / filter tabs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 2px solid var(--k); border-radius: 999px; background: var(--w); color: var(--k); text-decoration: none; font: 800 .78rem var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .03em; }
.chip[aria-pressed="true"], .chip.on { background: var(--k); color: var(--y); }

/* ---------- Big X marks (from the ads) ---------- */
.xmarks { display: grid; gap: 8px; font-size: 42px; line-height: 1; }
.xmarks i { -webkit-text-stroke: .09em currentColor; paint-order: stroke fill; } /* the ads use a chunky X, not a hairline */
.xmarks i:nth-child(2) { color: var(--w); }

/* ---------- Trust strip ---------- */
.trust { background: var(--k); color: var(--on-k); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; padding-block: 0; list-style: none; } /* keep .wrap's centring + gutter so the strip lines up with the page */
@media (min-width: 901px) { .trust li:first-child { padding-left: 0; } }
@media (max-width: 900px) { .trust li:nth-child(odd) { padding-left: 0; } }
.trust li { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-right: 1px solid var(--k-3); }
.trust li:last-child { border-right: 0; }
.trust i { font-size: 30px; color: var(--y); flex: none; }
.trust b { display: block; font: 900 .95rem var(--f-display); font-stretch: 115%; text-transform: uppercase; color: var(--w); }
.trust span { font-size: .85rem; color: var(--on-k-2); }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr 1fr; } .trust li:nth-child(2) { border-right: 0; } .trust li:nth-child(-n+2) { border-bottom: 1px solid var(--k-3); } }
@media (max-width: 420px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust li { flex-direction: column; align-items: flex-start; padding: 16px 12px; gap: 8px; } .trust i { font-size: 24px; } .trust b { font-size: .85rem; } }

/* ---------- Delivery post (Real Yard feed) ---------- */
.dpost { display: grid; grid-template-columns: 120px 1fr; background: var(--w); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 24px -16px rgba(0,0,0,.5); }
.dpost img { width: 100%; height: 100%; min-height: 96px; object-fit: cover; }
.dpost div { padding: 12px 14px; font-size: .88rem; }
.dpost b { display: block; font: 900 .9rem var(--f-display); font-stretch: 115%; text-transform: uppercase; }
.dpost .ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--ok); font-weight: 800; font-size: .8rem; }
.dpost time { color: var(--ink-3); font-size: .78rem; }

/* ---------- Page head (inner pages) ---------- */
.phead { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px); }
.phead.on-y::before { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 45%; background: var(--y-3); transform: skewX(-24deg); }
.phead .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font: 700 .8rem var(--f-body); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; opacity: .75; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.phead .lead { margin-top: 18px; }
.phead-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta p { margin-top: 16px; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--k); color: var(--on-k-2); padding-top: clamp(48px, 6vw, 72px); font-size: .92rem; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.foot .brand { color: var(--w); }
.foot .brand svg path { fill: var(--y); }
.foot .brand small { color: var(--y); }
.foot p { margin-top: 14px; max-width: 34ch; }
.foot h3 { margin-bottom: 12px; font-size: .82rem; font-stretch: 115%; color: var(--y); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--on-k); text-decoration: none; }
.foot a:hover { color: var(--y); }
.foot a i { color: var(--y); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-block: 20px 28px; border-top: 1px solid var(--k-3); font-size: .8rem; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-top { grid-template-columns: minmax(0, 1fr); } .foot a { overflow-wrap: anywhere; } }
@media (max-width: 1000px) { .foot { padding-bottom: 72px; } }

/* ---------- Forms ---------- */
.f { display: grid; gap: 6px; margin-bottom: 18px; }
.f label, .f legend { font: 700 .92rem var(--f-body); }
.f-in { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #cfcfcf; border-radius: var(--r-s); background: var(--w); font: 500 1rem var(--f-body); transition: border-color .15s, box-shadow .15s; }
.f-in:hover { border-color: #9a9a9a; }
.f-in:focus { outline: none; border-color: var(--k); box-shadow: 0 0 0 4px var(--y); }
.f-in[aria-invalid="true"] { border-color: var(--err); }
.f-hint { font-size: .8rem; color: var(--ink-3); }
.f-err { font-size: .82rem; font-weight: 700; color: var(--err); }
.f-err:empty { display: none; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
}
