/* ==========================================================================
   Eura Digital — style.css
   Design tokens, base, layout and section styles (mobile-first).
   Components: components.css · Breakpoints: responsive.css
   ========================================================================== */

/* ---------- Fonts (self-hosted, DM Sans variable: wght + opsz) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../assets/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../assets/fonts/dm-sans-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours — sampled from the official logo */
  --ink: #011337;            /* wordmark navy */
  --ink-2: #00267e;          /* deep navy (E bar) */
  --ink-3: #0a1f4d;          /* raised surface on navy (derived) */
  --blue: #0551c7;           /* rule blue — links/accents on light */
  --cobalt: #004dc8;
  --blue-electric: #0189fc;  /* "i" dot — accents on navy */
  --cyan: #00d3fe;           /* highlight, navy only */
  --orange: #fd8112;         /* "i" dot — signal */
  --amber: #fe9d01;
  --orange-ink: #c24e00;     /* orange text on light (4.8:1) */
  --slate: #304460;          /* descriptor grey */

  /* Neutrals (derived) */
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --line: #e3e8ef;
  --line-strong: #cdd5e1;
  --muted: #5a6a82;
  --on-ink: #ffffff;
  --on-ink-muted: #a9b5cc;
  --line-dark: rgba(255, 255, 255, 0.12);

  --grad-brand: linear-gradient(120deg, var(--cobalt) 0%, var(--blue-electric) 55%, var(--cyan) 100%);
  --grad-signal: linear-gradient(120deg, var(--orange-ink) 0%, var(--orange) 60%, var(--amber) 100%);

  /* Typography */
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.35rem + 4.9vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.6vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.04rem + 0.35vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.12vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem; --s-11: 10rem;
  --section-y: clamp(5rem, 3rem + 7vw, 10rem);

  /* Layout */
  --container: 80rem;        /* 1280px */
  --container-wide: 90rem;   /* 1440px */
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 5rem);
  --header-h: 4.5rem;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --slant: 0.7;              /* 1 / tan(55°) — the Eura angle */
  --skew: -35deg;            /* 90° − 55° */

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;
  --t-slow: 650ms;

  --shadow-pop: 0 24px 60px -24px rgba(1, 19, 55, 0.28), 0 2px 6px rgba(1, 19, 55, 0.06);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.08; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--cyan); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.is-dark :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  padding: var(--s-3) var(--s-4); background: var(--ink); color: #fff;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.is-dark { background: var(--ink); color: var(--on-ink); }

/* Signature section edge: a step that rises along the Eura angle */
.edge-slant {
  --edge-h: clamp(2rem, 1rem + 3vw, 3.5rem);
  --edge-x: 58%;
  clip-path: polygon(
    0 var(--edge-h),
    var(--edge-x) var(--edge-h),
    calc(var(--edge-x) + var(--edge-h) * var(--slant)) 0,
    100% 0, 100% 100%, 0 100%
  );
  margin-top: calc(var(--edge-h) * -1);
  padding-top: calc(var(--section-y) + var(--edge-h));
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1.5px; background: var(--blue);
}
.eyebrow__num { color: var(--blue); font-variant-numeric: tabular-nums; }
.is-dark .eyebrow { color: var(--on-ink-muted); }
.is-dark .eyebrow::before { background: var(--blue-electric); }
.is-dark .eyebrow__num { color: var(--blue-electric); }

.h-display {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h-section {
  font-size: var(--fs-h2);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--slate); max-width: 38ch; }
.is-dark .lead { color: var(--on-ink-muted); }
.accent-word { color: var(--blue); }
.is-dark .accent-word { color: var(--cyan); }

.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); max-width: 52rem; align-content: start; }

/* Dev-only marker for content awaiting real data. Remove the class when replaced. */
.pending {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.2em 0.6em; border-radius: 999px;
  color: var(--orange-ink); background: #fff3e8; border: 1px dashed #f3b27a;
  vertical-align: middle; white-space: nowrap;
}
.is-dark .pending { color: var(--amber); background: rgba(253, 129, 18, 0.1); border-color: rgba(253, 129, 18, 0.45); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(246, 248, 251, 0);
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 248, 251, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  padding-bottom: clamp(4rem, 2rem + 6vw, 7rem);
  position: relative;
  overflow: clip;
}
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); }
.hero__title { max-width: 14ch; }
.hero__title .accent-word { white-space: nowrap; }
.hero__lead { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__base {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5);
  font-size: var(--fs-small); color: var(--slate); letter-spacing: 0.02em;
}
.hero__base::before, .hero__base::after { content: ""; height: 1.5px; width: 2rem; background: var(--blue); }
.hero__base::after { display: none; }

/* Hero composition: three slanted panels (illustrative) */
.stack {
  position: relative;
  aspect-ratio: 5 / 4.4;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}
.stack__panel {
  position: absolute;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}
.stack__caption {
  position: absolute; left: 0; bottom: -2.25rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* Panel A — website */
.stack__panel--web {
  left: 0; top: 6%; width: 74%; height: 66%;
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock-bar b { margin-left: 10px; height: 10px; width: 40%; border-radius: 5px; background: #fff; }
.mock-web { position: relative; height: calc(100% - 28px); padding: 7% 8%; display: grid; align-content: start; gap: 6%; }
.mock-web__nav { display: flex; justify-content: space-between; align-items: center; }
.mock-web__nav span { height: 9px; width: 22%; border-radius: 5px; background: var(--ink); }
.mock-web__nav em { display: flex; gap: 8px; }
.mock-web__nav em i { width: 26px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.mock-web__h { display: grid; gap: 7px; width: 58%; }
.mock-web__h i { height: 13px; border-radius: 4px; background: var(--ink); }
.mock-web__h i:last-child { width: 70%; }
.mock-web__p { display: grid; gap: 6px; width: 48%; }
.mock-web__p i { height: 6px; border-radius: 3px; background: var(--line-strong); }
.mock-web__cta { display: flex; gap: 8px; }
.mock-web__cta i { height: 18px; width: 64px; border-radius: 4px; background: var(--blue); }
.mock-web__cta i + i { background: transparent; border: 1.5px solid var(--ink); width: 52px; }
.mock-web__art {
  position: absolute; right: 0; top: 18%; bottom: 0; width: 42%;
  background: var(--grad-brand);
  clip-path: polygon(calc(var(--slant) * 60%) 0, 100% 0, 100% 100%, 0 100%);
}

/* Panel B — mobile app */
.stack__panel--app {
  right: 2%; top: 0; width: 34%; height: 78%;
  border-radius: 22px;
  border: 6px solid var(--ink);
  background: var(--surface);
}
.mock-app { height: 100%; padding: 16% 10% 10%; display: grid; align-content: start; gap: 7%; }
.mock-app__top { display: flex; justify-content: space-between; align-items: center; }
.mock-app__top i { height: 8px; width: 40%; border-radius: 4px; background: var(--ink); }
.mock-app__top b { width: 18px; height: 18px; border-radius: 50%; background: var(--grad-signal); }
.mock-app__card { border-radius: 10px; padding: 12%; background: var(--ink); display: grid; gap: 8px; }
.mock-app__card i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.35); }
.mock-app__card i:first-child { width: 60%; background: var(--cyan); }
.mock-app__list { display: grid; gap: 9px; }
.mock-app__list div { display: flex; gap: 8px; align-items: center; }
.mock-app__list b { width: 22px; height: 22px; flex: none; border-radius: 6px; background: #e7eefa; }
.mock-app__list i { height: 6px; flex: 1; border-radius: 3px; background: var(--line-strong); }

/* Panel C — automation flow */
.stack__panel--flow {
  left: 14%; bottom: 0; width: 66%; height: 34%;
  background: var(--ink);
  clip-path: polygon(calc(var(--slant) * 14%) 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.mock-flow { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 16%; gap: 4%; }
.mock-flow__node {
  flex: 1; height: 42%; border-radius: 8px; border: 1px solid var(--line-dark);
  background: var(--ink-3); position: relative;
  display: grid; align-content: center; gap: 6px; padding: 0 10%;
}
.mock-flow__node i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
.mock-flow__node i:first-child { width: 55%; background: var(--blue-electric); }
.mock-flow__node--signal i:first-child { background: var(--orange); }
.mock-flow__link { flex: 0 0 8%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 9px); }

/* Decorative bars echoing the E (kept very subtle) */
.hero__bars {
  position: absolute; right: -6rem; top: 3rem; width: 22rem; height: 22rem;
  pointer-events: none; opacity: .5; z-index: -1;
}

/* ==========================================================================
   CAPABILITIES STRIP
   ========================================================================== */
.capabilities { border-block: 1px solid var(--line); background: var(--surface); }
.capabilities__inner {
  display: grid; gap: var(--s-4); padding-block: var(--s-6);
}
.capabilities__label { font-size: var(--fs-small); color: var(--muted); }
.capabilities__list {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: 1rem; font-weight: 500; color: var(--slate);
}
.capabilities__list { gap: var(--s-2) var(--s-4); }
.capabilities__list li { display: inline-flex; align-items: center; gap: var(--s-4); }
.capabilities__list li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services__layout { display: grid; gap: var(--s-7); }
.services__aside { display: grid; gap: var(--s-5); align-content: start; }
.services__intro { color: var(--slate); max-width: 30rem; }

/* Three-bar index mirroring the E */
.bar-index { display: none; gap: 10px; margin-top: var(--s-4); padding-left: 1.25rem; }
.bar-index a {
  display: flex; align-items: center; gap: var(--s-4);
  text-decoration: none; color: var(--muted); font-weight: 500;
  transition: color var(--t-mid) var(--ease);
}
.bar-index a::before {
  content: ""; flex: none; width: 3.25rem; height: 0.875rem; border-radius: 3px;
  transform: skewX(var(--skew));
  background: var(--line-strong);
  transition: background var(--t-mid) var(--ease), width var(--t-mid) var(--ease);
}
.bar-index a:nth-child(2)::before { margin-left: -0.6rem; }
.bar-index a:nth-child(3)::before { margin-left: -1.2rem; }
.bar-index a.is-active, .bar-index a:hover { color: var(--ink); }
.bar-index a.is-active::before { background: var(--grad-brand); width: 4.5rem; }

.service-group { display: grid; gap: var(--s-2); }
.service-group + .service-group { margin-top: var(--s-8); }
.service-group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding-bottom: var(--s-4); border-bottom: 1.5px solid var(--ink);
}
.service-group__title { font-size: var(--fs-h3); letter-spacing: -0.02em; }
.service-group__meta { font-size: var(--fs-small); color: var(--muted); }

/* ==========================================================================
   WORK (navy chapter)
   ========================================================================== */
.work__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.work__head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-5); }
.work__grid { display: grid; gap: var(--s-8); }

/* ==========================================================================
   APPROACH (Why Eura)
   ========================================================================== */
.approach__grid { display: grid; gap: var(--s-7); }
.approach__statement { display: grid; gap: var(--s-5); align-content: start; }
.approach__statement p { color: var(--slate); max-width: 32rem; }
.commitments { display: grid; counter-reset: c; }
.commitment {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-2) var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-strong);
}
.commitment:last-child { border-bottom: 1px solid var(--line-strong); }
.commitment__num { font-size: 0.875rem; font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 0.3rem; }
.commitment h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
.commitment p { grid-column: 2; color: var(--slate); max-width: 34rem; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.process__track { position: relative; }
.process__steps { display: grid; gap: 0; }
.process__rail {
  position: absolute; left: 0.4375rem; top: 0.5rem; bottom: 0.5rem; width: 1.5px; background: var(--line-strong);
}
.process__rail-fill {
  position: absolute; inset: 0 0 auto 0; height: var(--progress, 0%);
  background: var(--grad-brand); transition: height 120ms linear;
}

/* ==========================================================================
   SECTORS
   ========================================================================== */
.sectors__grid { display: grid; gap: var(--s-7); }
.sector-list { display: grid; border-top: 1px solid var(--line-strong); }
.sector {
  display: grid; gap: var(--s-1); padding-block: var(--s-5);
  border-bottom: 1px solid var(--line-strong);
}
.sector h3 { font-size: 1.25rem; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: var(--s-3); }
.sector h3 span { font-size: 0.8125rem; font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
.sector p { color: var(--slate); font-size: var(--fs-small); max-width: 30rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; gap: var(--s-7); }
.faq__aside { display: grid; gap: var(--s-5); align-content: start; }
.faq__aside p { color: var(--slate); }

/* ==========================================================================
   CONTACT / FINAL CTA (navy)
   ========================================================================== */
.contact__grid { display: grid; gap: var(--s-8); }
.contact__copy { display: grid; gap: var(--s-5); align-content: start; }
.contact__channels { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.channel { display: grid; gap: 2px; padding-top: var(--s-4); border-top: 1px solid var(--line-dark); }
.channel__label { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-muted); }
.channel__value { font-size: 1.125rem; font-weight: 500; }
.channel__value a { text-decoration: none; }
.channel__value a:hover { color: var(--cyan); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; gap: var(--s-7); padding-block: var(--s-9) var(--s-7); }
.footer__brand { display: grid; gap: var(--s-5); align-content: start; max-width: 24rem; }
.footer__brand img { width: 15rem; height: auto; }
.footer__brand p { font-size: var(--fs-small); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
.footer__col h2 {
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: var(--s-4);
}
.footer__col ul { display: grid; gap: var(--s-3); font-size: var(--fs-small); }
.footer__col a { text-decoration: none; transition: color var(--t-fast); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  position: relative;
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between; align-items: center;
  padding-block: var(--s-5) var(--s-6); font-size: 0.875rem;
}
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer__brand .lang { justify-self: start; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__legal span[aria-disabled] { opacity: .75; }

/* Adjacent light sections share one gap */
.sectors + .faq { padding-top: calc(var(--section-y) * 0.35); }
.project { align-content: start; }

/* Legal pages */
.legal__facts { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: var(--s-3) var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.legal__facts dt { font-weight: 500; }
