/* ============================================
   EPC Delivery v3 — LIGHT theme (epcsrbija.com palette)
   Cream/warm white base, dark ink text
   Vivid yellow + cyan blocks for emphasis
   ============================================ */

:root {
  /* warm cream surfaces */
  --bg-0: #FAF8F5;        /* page — matches epcsrbija.com */
  --bg-1: #FFFFFF;        /* card surface */
  --bg-2: #F4F1EC;        /* tonal raise */
  --bg-3: #EDE9E2;        /* hover / raised */
  --bg-4: #E2DDD3;        /* strong raise */
  --bg-dark: #0F1A33;     /* deep midnight navy — pairs with yellow & cyan */
  --bg-dark-2: #172240;

  /* hairlines on light */
  --line-1: rgba(14,15,19,0.06);
  --line-2: rgba(14,15,19,0.10);
  --line-3: rgba(14,15,19,0.18);
  --line-d: rgba(255,255,255,0.10);
  --line-d2: rgba(255,255,255,0.18);

  /* foreground on light */
  --fg-0: #0A0B0F;
  --fg-1: #2A2C33;
  --fg-2: #57595F;
  --fg-3: #888A91;
  --fg-4: #B5B7BD;
  --fg-d-0: #F5F4F1;      /* light fg on dark */
  --fg-d-2: #A9ABB1;

  /* signature accents (Glovo + Wolt) */
  --y: #FFC244;
  --y-deep: #E0A026;
  --y-soft: #FFE08A;
  --c: #00C2E8;
  --c-deep: #008FB0;
  --c-soft: #66DAF0;
  --ink: #14223F;         /* deep navy for buttons/text on light surfaces */

  /* semantic */
  --ok: #16A375;
  --warn: #C8821F;
  --bad: #C73B3B;
  --ok-d: #2BE5A1;
  --warn-d: #FFB23D;
  --bad-d: #FF5D5D;

  /* type */
  --f-sans: "Geist", "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --f-display: "Geist", "Geist Variable", ui-sans-serif, system-ui, sans-serif;

  /* motion */
  --e-out: cubic-bezier(.2,.7,.2,1);
  --e-bounce: cubic-bezier(.34,1.56,.64,1);

  /* nav metrics */
  --nav-top: 32px;        /* utility strip */
  --nav-main: 72px;       /* logo + segmented + market */
  --nav-sub: 56px;        /* colored sub-nav */
  --nav-total: 160px;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--y); color: #000; }

/* ====== utilities ============== */
.mono { font-family: var(--f-mono); font-feature-settings: "ss01","cv11","zero"; letter-spacing: 0.01em; }
.upper { text-transform: uppercase; letter-spacing: 0.14em; }
.tabular { font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--wide { max-width: 1600px; }
.container--full { max-width: none; padding: 0 32px; }
@media (max-width: 720px) {
  .container, .container--wide, .container--full { padding: 0 20px; }
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--y);
  box-shadow: 0 0 10px rgba(255,194,68,0.5);
}
.eyebrow .stripe-dual {
  display: inline-block; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--y) 0 50%, var(--c) 50% 100%);
}

.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section--tight { padding: 80px 0; }
.section--dark {
  background: var(--bg-dark);
  color: var(--fg-d-0);
}
.section--dark .eyebrow { color: var(--fg-d-2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 64px;
  max-width: 960px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--fg-0);
  text-wrap: balance;
}
.section-head p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}
.section--dark .section-head h2 { color: var(--fg-d-0); }
.section--dark .section-head p { color: var(--fg-d-2); }

/* ====== buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-0);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--e-out);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.btn:hover { background: var(--bg-2); border-color: var(--line-3); }

.btn--ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--ink:hover { background: #1E2F55; border-color: #1E2F55; }

.btn--y {
  background: var(--y);
  color: #000;
  border-color: var(--y);
}
.btn--y:hover { background: var(--y-soft); border-color: var(--y-soft); }

.btn--c {
  background: var(--c);
  color: #000;
  border-color: var(--c);
}
.btn--c:hover { background: var(--c-soft); border-color: var(--c-soft); }

.btn--ghost {
  border-color: var(--line-3);
  color: var(--fg-0);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn--lg { padding: 18px 28px; font-size: 13px; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s var(--e-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ====== animations ============== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.55; }
}
@keyframes drift-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== form ============== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-2);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg-0);
  font-family: var(--f-sans);
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  transition: border-color .2s var(--e-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }

.field--dark input, .field--dark textarea, .field--dark select {
  color: var(--fg-d-0);
  border-bottom-color: var(--line-d);
}
.field--dark label { color: var(--fg-d-2); }

/* ====== scrollbar ============== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }

/* ====== grid background ============== */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,15,19,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,15,19,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 50%, transparent 100%);
}
.grid-bg--dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* ====== ticks (corner ticks) ============== */
.ticks::before, .ticks::after,
.ticks > .tl, .ticks > .tr {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--line-3);
  border-style: solid;
  pointer-events: none;
}
.ticks::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.ticks::after  { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.ticks > .tl   { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.ticks > .tr   { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ====== marquee strip ============== */
.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 64px;
  animation: drift-right 40s linear infinite;
  flex-shrink: 0;
  padding-right: 64px;
}

/* ====== NAV ============== */
.nav-utility {
  background: var(--bg-0);
  border-bottom: 1px solid var(--line-1);
}
.nav-main {
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-1);
}
.nav-sub {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--ink);
  transition: background .4s var(--e-out);
}
.nav-sub--c { background: var(--c); color: #000; }
.nav-sub--y { background: var(--y); color: #000; }

.nav-sublinks {
  display: flex;
  align-items: center;
  height: var(--nav-sub);
  gap: 0;
}
.nav-sublinks a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: inherit;
  position: relative;
  transition: background .2s var(--e-out);
  border-left: 1px solid rgba(0,0,0,0.08);
}
.nav-sublinks a:first-child { border-left: none; }
.nav-sublinks a:hover { background: rgba(0,0,0,0.06); }

/* ====== responsive ============== */
@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-4--md2 { grid-template-columns: 1fr 1fr !important; }
  .section-head h2 { font-size: clamp(36px, 8vw, 60px) !important; }
  .nav-sublinks { overflow-x: auto; }
  .nav-sublinks a { flex: 0 0 auto; padding: 0 18px; }
  .hero-3pl-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .grid-4--md2 { grid-template-columns: 1fr !important; }
  .hide-sm { display: none !important; }
}
