/* ==========================================================================
   RELESH - Restaurant Supplies
   Design tokens + global styles
   ========================================================================== */

:root {
  /* Brand */
  --brand:        #B8442A;   /* terracotta */
  --brand-dark:   #93331F;
  --brand-soft:   #F6E7E1;
  --accent:       #E0A33D;   /* amber */
  --accent-soft:  #FBF0DC;

  /* Neutrals */
  --ink:          #221C18;
  --ink-2:        #4A403A;
  --ink-3:        #7A6E66;
  --line:         #E7DED3;
  --cream:        #FBF6EF;
  --paper:        #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw:        1180px;
  --gutter:      20px;
  --radius:      14px;
  --radius-sm:   9px;

  --shadow-sm:   0 1px 2px rgba(34,28,24,.06), 0 2px 6px rgba(34,28,24,.05);
  --shadow-md:   0 8px 24px rgba(34,28,24,.09);
  --shadow-lg:   0 18px 50px rgba(34,28,24,.13);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }

.section { padding: 76px 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 52px 0; }

.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .65em;
}

.lede { font-size: 1.1rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  text-decoration: none !important;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--light { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: #D9CEC5;
  font-size: .8rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #F0E7DE; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px; min-height: 70px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--accent) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  flex: none;
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.32rem; letter-spacing: .02em;
  color: var(--ink);
}
.logo__text small {
  display: block; font-family: var(--font-body); font-size: .58rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 500; margin-top: -2px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: .93rem;
  text-decoration: none !important;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 10px 20px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 42px; height: 40px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(700px 400px at 5% 110%, var(--brand-soft) 0%, transparent 62%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 78px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: 1.14rem; max-width: 50ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__note { margin-top: 22px; font-size: .86rem; color: var(--ink-3); }

.hero__card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg);
}
.hero__card h3 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 16px;
}
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: .94rem;
  text-decoration: none !important; transition: background .15s var(--ease);
}
.cat-list a:hover { background: var(--cream); }
.cat-list .ico { font-size: 1.15rem; width: 26px; text-align: center; flex: none; }
.cat-list .arw { margin-left: auto; color: var(--ink-3); transition: transform .18s var(--ease); }
.cat-list a:hover .arw { transform: translateX(3px); color: var(--brand); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust__item { padding: 26px 24px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__item strong { display: block; color: var(--ink); font-size: .97rem; margin-bottom: 3px; }
.trust__item span { font-size: .87rem; color: var(--ink-3); }

/* ---------- Section head ---------- */
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none !important; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D9CCBE; }
.card__ico {
  width: 46px; height: 46px; border-radius: 11px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; flex: none;
}
.card h3 { margin-bottom: .4em; font-size: 1.1rem; }
.card p { font-size: .92rem; color: var(--ink-3); margin: 0; }
.card__tags {
  margin: 14px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.card__tags li {
  font-size: .74rem; color: var(--ink-3); background: var(--cream);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.card__more { margin-top: auto; padding-top: 16px; font-size: .86rem; font-weight: 600; color: var(--brand); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.checks .tick {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-size: .68rem; margin-top: 2px; font-weight: 700;
}
.checks strong { color: var(--ink); display: block; }
.checks span { color: var(--ink-3); font-size: .89rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 600;
  color: var(--line); display: block; line-height: 1; margin-bottom: 10px;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { font-size: .9rem; color: var(--ink-3); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #3A2C23 100%);
  color: #EFE5DB; padding: 66px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9BBAF; max-width: 54ch; }
.cta-band .hero__cta { margin-top: 22px; }

/* ---------- Products page ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.filter {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.filter:hover { border-color: var(--ink-3); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.prod {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prod__top {
  height: 128px; display: grid; place-items: center; font-size: 2.6rem;
  background: linear-gradient(140deg, var(--accent-soft), var(--brand-soft));
}
.prod__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prod__cat {
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 7px;
}
.prod h3 { font-size: 1.04rem; margin-bottom: .4em; }
.prod p { font-size: .88rem; color: var(--ink-3); margin: 0 0 16px; }
.prod__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod__moq { font-size: .78rem; color: var(--ink-3); }
.prod .btn { padding: 8px 16px; font-size: .84rem; }

.empty { text-align: center; padding: 60px 0; color: var(--ink-3); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--ink-3); }
.form-status { font-size: .9rem; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.ok  { display: block; background: #EDF7EE; border: 1px solid #C6E5C9; color: #2C6B31; }
.form-status.err { display: block; background: #FDEEEC; border: 1px solid #F3CFC9; color: #9B3226; }

/* ---------- Info boxes ---------- */
.infobox {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.infobox h3 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px;
}
.infobox address { font-style: normal; font-size: .95rem; line-height: 1.75; color: var(--ink-2); }
.infobox + .infobox { margin-top: 18px; }

.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.meta-list li { display: grid; grid-template-columns: 116px 1fr; gap: 12px; font-size: .92rem; }
.meta-list .k { color: var(--ink-3); font-size: .85rem; }
.meta-list .v { color: var(--ink); font-weight: 500; }

/* ---------- Page header ---------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 58px 0 52px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--ink-3); max-width: 62ch; margin: 0; }

/* ---------- Legal / prose ---------- */
.prose { font-size: .97rem; }
.prose h2 { font-size: 1.32rem; margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.04rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); }
.prose th { background: var(--cream); color: var(--ink); font-weight: 600; }
.updated {
  font-size: .86rem; color: var(--ink-3); padding-bottom: 1.6em;
  border-bottom: 1px solid var(--line); margin-bottom: 2em;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 19px 36px 19px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; color: var(--brand); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 19px; color: var(--ink-3); font-size: .93rem; max-width: 72ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B5A79C; padding: 60px 0 0; font-size: .9rem; }
.site-footer .logo__text { color: #fff; }
.site-footer .logo__text small { color: #8C7D72; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
  padding-bottom: 44px;
}
.site-footer h4 {
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .15em;
  text-transform: uppercase; color: #8C7D72; font-weight: 600; margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #D6C9BE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer__about { max-width: 34ch; margin: 16px 0 0; color: #9C8D82; font-size: .88rem; }
.footer__bottom {
  border-top: 1px solid #3A2F28; padding: 22px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .83rem; color: #8C7D72;
}
.footer__legalname { color: #B5A79C; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 38px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px;
    box-shadow: var(--shadow-md); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .site-header .wrap { position: relative; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 52px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .hide-sm { display: none; }
}

@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .steps   { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .meta-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
