/* PriceMart, European B2B food distributor design system
   Cream paper backgrounds, forest green secondary,
   aubergine + coral kept as logo-derived accents.
   Single typeface: Inter, with weight + size for hierarchy.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* primary brand (from logo) */
  --aubergine: #2D1B4F;
  --aubergine-soft: #4A3A6A;
  --coral: #F4A989;
  --coral-soft: #FBD9C8;

  /* sustainability secondary */
  --forest: #1F4438;
  --forest-soft: #2E5F4E;
  --sage: #B8C9B5;
  --sage-soft: #E0E8DE;

  /* paper / cream backgrounds */
  --paper: #FBF7EE;
  --paper-deep: #F4EDDC;
  --paper-edge: #ECE3CC;
  --ink: #1A1410;
  --ink-soft: #3D352C;
  --muted: #6B6258;
  --line: #E2D9C3;
  --line-soft: #EFE9D8;

  --bg: #FFFFFF;
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1180px;
  --max-narrow: 75ch;
  --pad: clamp(1rem, 3vw, 2rem);

  /* typography scale, single family for restraint */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { 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);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--aubergine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--aubergine);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--forest); margin-bottom: 0.8em; }

p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 600; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--forest);
  margin-bottom: 0.9rem;
}

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad); }

section { padding: 5rem 0; }
section.tight { padding: 3rem 0; }
section.alt { background: var(--paper-deep); }
section.dark { background: var(--aubergine); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark h4 { color: var(--coral); }
section.dark .eyebrow { color: var(--coral); }
section.dark p, section.dark li, section.dark .lead, section.dark .lbl { color: rgba(255, 255, 255, 0.88); }
section.dark .muted, section.dark .form-note { color: rgba(255, 255, 255, 0.65); }
section.dark strong { color: #fff; }
section.dark a:not(.btn) { color: var(--coral); }
section.dark a:not(.btn):hover { color: #fff; }
section.dark a.btn { color: #fff; background: var(--coral); }
section.dark a.btn:hover { background: #fff; color: var(--aubergine); }
section.dark a.btn-coral { background: var(--coral); color: var(--aubergine); }
section.dark a.btn-coral:hover { background: #fff; color: var(--aubergine); }
section.dark a.btn-ghost { background: transparent; color: var(--coral); border: 1.5px solid var(--coral); }
section.dark a.btn-ghost:hover { background: var(--coral); color: var(--aubergine); }
section.forest { background: var(--forest); color: var(--paper); }
section.forest h1, section.forest h2, section.forest h3 { color: var(--paper); }
section.forest h4 { color: var(--coral); }
section.forest .eyebrow { color: var(--coral); }
section.forest p, section.forest li, section.forest .lead, section.forest .lbl { color: rgba(251, 247, 238, 0.88); }
section.forest .muted, section.forest .form-note { color: rgba(251, 247, 238, 0.65); }
section.forest strong { color: var(--paper); }
section.forest a:not(.btn) { color: var(--coral); }
section.forest a:not(.btn):hover { color: var(--paper); }
section.forest a.btn { color: var(--forest); background: var(--coral); }
section.forest a.btn:hover { background: var(--paper); color: var(--forest); }
section.forest a.btn-coral { background: var(--coral); color: var(--forest); }
section.forest a.btn-coral:hover { background: var(--paper); color: var(--forest); }
section.forest a.btn-ghost { background: transparent; color: var(--coral); border: 1.5px solid var(--coral); }
section.forest a.btn-ghost:hover { background: var(--coral); color: var(--forest); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  max-width: var(--max);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.topbar .logo img { height: 56px; width: auto; display: block; }
.topbar .wrap { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.topbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.topbar nav a {
  text-decoration: none;
  color: var(--aubergine);
  font-weight: 500;
  font-size: 0.95rem;
}
.topbar nav a:hover { color: var(--coral); }
.topbar nav a[aria-current="page"] {
  color: var(--forest);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .topbar .wrap { flex-wrap: wrap; gap: 0.4rem; }
  .topbar .logo img { height: 44px; }
  .topbar nav { width: 100%; }
  .topbar nav ul {
    gap: 0.4rem 0.9rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }
  .topbar nav a { font-size: 0.82rem; }
  .topbar nav a.btn { font-size: 0.84rem !important; padding: 0.45rem 0.85rem !important; }
  .topbar nav ul .lang-switcher { margin-left: auto; }
}

/* language switcher (dropdown) */
.lang-switcher {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  position: relative;
}
.lang-switcher details { position: relative; }
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  color: var(--aubergine);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.12s ease;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::marker { content: ''; }
.lang-switcher summary:hover { background: var(--line-soft); }
.lang-switcher details[open] summary { background: var(--coral-soft); }
.lang-switcher .lang-chev {
  font-size: 0.65rem;
  transition: transform 0.18s ease;
  display: inline-block;
}
.lang-switcher details[open] .lang-chev { transform: rotate(180deg); }
.lang-switcher ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem;
  list-style: none;
  margin: 0;
  min-width: 9.5rem;
  box-shadow: 0 12px 30px -8px rgba(45, 27, 79, 0.18);
  z-index: 60;
}
.lang-switcher ul li { margin: 0; }
.lang-switcher ul a {
  display: block;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 4px;
  text-transform: none;
}
.lang-switcher ul a:hover { background: var(--paper-deep); color: var(--aubergine); }
.lang-switcher ul a[aria-current="true"] { background: var(--coral-soft); color: var(--aubergine); font-weight: 700; }

@media (max-width: 760px) {
  .lang-switcher { margin-left: 0.3rem; padding-left: 0.4rem; }
  .lang-switcher summary { padding: 0.3rem 0.45rem; font-size: 0.76rem; }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  max-width: 22ch;
  margin-bottom: 0.4em;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) { .hero-split { grid-template-columns: 1fr; gap: 2rem; } }
.hero-split .hero-image { margin-top: 0; }

.hero-image {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(45, 27, 79, 0.25);
}

/* ---------- audience split (the two-CTA block) ---------- */
.audience-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .audience-split { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -25px rgba(45, 27, 79, 0.25);
  border-color: var(--coral);
}
.audience-card h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.audience-card p { color: var(--ink-soft); margin-bottom: 1.2rem; flex-grow: 1; }
.audience-card .audience-tag {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest);
  background: var(--sage-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--aubergine);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--forest); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--aubergine);
  border: 1.5px solid var(--aubergine);
}
.btn-ghost:hover { background: var(--aubergine); color: #fff; }

.btn-coral {
  background: var(--coral);
  color: var(--aubergine);
}
.btn-coral:hover { background: var(--aubergine); color: var(--coral); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 700;
  color: var(--aubergine);
  line-height: 1;
  margin-bottom: 0.3em;
  letter-spacing: -0.02em;
}
.stat .num small {
  font-size: 0.55em;
  color: var(--coral);
  font-weight: 600;
  margin-left: 0.15em;
}
.stat .lbl {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
section.dark .stat .lbl, section.forest .stat .lbl { color: rgba(251, 247, 238, 0.85); }

/* ---------- brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.brand-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s ease;
}
.brand-card:hover { border-color: var(--coral); }
.brand-card h3 { margin-top: 0; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- how-it-works steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 3.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.4rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--forest);
  border-radius: 4px;
}
.step h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin: 0 0 0.4em; color: var(--aubergine); }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.94rem; }

/* ---------- feature list (checks) ---------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-left: 0;
}
.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--coral) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D1B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- pull quotes / blockquote ---------- */
.pull-quote {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--aubergine);
  border-left: 3px solid var(--coral);
  padding-left: 1.4rem;
  margin: 2rem 0;
  letter-spacing: -0.01em;
}

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

form .field { margin-bottom: 1.1rem; }
form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { form .field-row { grid-template-columns: 1fr; } }

form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
form input, form textarea, form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}
form textarea { min-height: 140px; resize: vertical; }
form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232D1B4F'><polygon points='5,7 15,7 10,13'/></svg>"); background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2rem; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- legal pages ---------- */
.legal {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
.legal h1 { margin-top: 0; margin-bottom: 0.4em; }
.legal h2 { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 1.6rem; }
.legal h3 { margin-top: 1.6em; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--aubergine); }
.legal p, .legal ul, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.25em; }
.legal em { color: var(--muted); }

/* ---------- map / regions ---------- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.region-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.region-card .flag { font-size: 1.6rem; margin-bottom: 0.3em; }
.region-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 0.25em; color: var(--aubergine); }
.region-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
footer {
  background: var(--aubergine);
  color: rgba(251, 247, 238, 0.85);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { footer .wrap { grid-template-columns: 1fr; } }

footer .brand-block .footer-logo { color: var(--coral); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-bottom: 1rem; display: block; text-decoration: none; }
footer .brand-block p { color: rgba(251, 247, 238, 0.7); font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.7rem; }

footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: var(--coral);
  font-family: var(--font-body);
  font-weight: 600;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.55rem; }
footer a { color: rgba(251, 247, 238, 0.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(251, 247, 238, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(251, 247, 238, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.6; }

/* category strip, anti-default flat blocks instead of cards everywhere */
.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.category-strip > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 1.3rem;
  background: var(--bg);
}
.category-strip h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.3em; color: var(--aubergine); letter-spacing: -0.01em; }
.category-strip p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.5; }
