/* ============================================================
   FMCG RETAIL GMBH — SHARED DESIGN SYSTEM
   "Retail Press" — Editorial B2B
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --paper:      #F2EDE2;
  --paper-2:    #ECE5D6;
  --ink:        #0E0E0E;
  --ink-soft:   #2A2926;
  --muted:      #6B6359;
  --line:       #1C1C1C1A;
  --line-2:     #1C1C1C12;
  --signal:     #C7411B;
  --signal-dk:  #A8350F;
  --sage:       #5C6748;
  --sage-dk:    #404B30;
  --white:      #FFFFFF;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.mono       { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.display    { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; font-variation-settings: "opsz" 120, "SOFT" 30; }
.display-it { font-style: italic; font-variation-settings: "opsz" 120, "SOFT" 100; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}
.eyebrow--light { color: rgba(242,237,226,0.7); }
.eyebrow--light::before { background: var(--paper); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section { position: relative; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.ticker__track {
  display: flex;
  gap: 56px;
  padding: 9px 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker__dot { width: 5px; height: 5px; background: var(--signal); border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   NAV WITH LOGO
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.18);
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 540px) {
  .logo img { height: 36px; }
  .logo { padding: 6px 10px; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__cta:hover { background: var(--signal); }
.nav__cta svg { width: 14px; height: 14px; }

.nav__burger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__burger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 28px var(--pad-x);
    gap: 20px;
    align-items: flex-start;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--signal);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--small {
  padding: 10px 18px;
  font-size: 12px;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--download:hover svg { transform: translateY(3px); }

/* ============================================================
   PAGE HEADER (for non-home pages)
   ============================================================ */
.page-header {
  padding: clamp(60px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-header__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 350;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.page-header__title em {
  font-style: italic;
  color: var(--signal);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.page-header__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}
@media (max-width: 860px) {
  .page-header__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { margin: 0 10px; opacity: 0.5; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  font-variation-settings: "opsz" 120, "SOFT" 30;
}
.section-head__title em {
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" 100;
  color: var(--signal);
}
.section-head__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   PROSE (long-form content)
   ============================================================ */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 56px 0 18px;
  color: var(--ink);
}
.prose h2 em { font-style: italic; color: var(--signal); }
.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--ink);
}
.prose ul, .prose ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 18px;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--font-mono);
}
.prose a { color: var(--signal); border-bottom: 1px solid var(--signal); transition: color 0.2s, border-color 0.2s; }
.prose a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242,237,226,0.15);
}
.footer__logo {
  display: inline-block;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.footer__logo img { height: 38px; width: auto; display: block; }
.footer__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.55);
  max-width: 36ch;
  line-height: 1.7;
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.55);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-size: 14px;
  color: var(--paper);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--signal); }
.footer__col p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242,237,226,0.8);
  margin: 0 0 6px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.5);
}
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
