/* EFORTERA — holding page. Colors and the shadow come from tokens.css, loaded first. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-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;
}

:root { color-scheme: light; }

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

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

body {
  margin: 0;
  background: var(--ef-bg);
  color: var(--ef-text);
  font-family: var(--ef-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ef-interactive); }
a:focus-visible { outline: 2px solid var(--ef-interactive); outline-offset: 2px; }

.page {
  --bar-top: 16px;
  --bar-h: 56px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Header block — same pattern as the application */
.bar {
  width: min(1200px, calc(100% - 32px));
  margin: var(--bar-top) auto 0;
  height: var(--bar-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius);
  box-shadow: var(--ef-shadow);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }

.lang { display: inline-flex; align-items: center; gap: 1px; }
.lang a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--ef-radius);
  color: var(--ef-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}
/* The "|" between languages: empty content, so screen readers skip it */
.lang a + a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: var(--ef-border);
}
.lang a[aria-current="page"] {
  color: var(--ef-interactive);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.lang a:not([aria-current="page"]):hover { color: var(--ef-primary); background: var(--ef-bg); }
.lang a:focus-visible { outline-offset: -2px; }

/* Hero: the only area outside the blocks. Navy stage fading into the page.
   It starts at the top of the page, behind the header (.bar stays above it through z-index). */
main { flex: 1; display: flex; flex-direction: column; }

.hero {
  --behind-bar: calc(var(--bar-top) + var(--bar-h));
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--behind-bar));
  background: var(--ef-primary);
  color: var(--ef-surface);
  padding: calc(var(--behind-bar) + 48px) 16px 88px;
}
/* The one permitted gradient (brief §3.2). Text must stay above it: padding-bottom > height. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--ef-bg));
}
.hero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.hero__text { max-width: 680px; }

.eyebrow { margin: 0 0 12px; }
.eyebrow span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ef-surface);
}
h1 span { display: block; }
.lead { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ef-surface); }
.lead + .lead { margin-top: 8px; }

/* Framed block: stacked under the hero on mobile, overlapping its edge from 768px */
.wrap { position: relative; z-index: 2; width: min(1200px, calc(100% - 32px)); margin: 12px auto 0; }
.card {
  max-width: 680px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius);
  overflow: hidden;
  box-shadow: var(--ef-shadow);
}
.card__body { padding: 12px 16px; }
.label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ef-text-2);
}
.card__main { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.card__main a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ef-primary);
  text-decoration-color: var(--ef-border);
  text-underline-offset: 4px;
}
.card__main a:hover { color: var(--ef-interactive); }
.card__band {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-top: 1px solid var(--ef-border);
  background: var(--ef-bg);
  font-size: 12px;
  color: var(--ef-text-2);
}
.card__band a { display: inline-flex; align-items: center; min-height: 44px; }
.badge {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--ef-interactive);
  border-radius: var(--ef-radius);
  background: var(--ef-surface);
  color: var(--ef-text);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

/* Footer: compact centered block, without a shadow (guidelines §13) */
.foot {
  align-self: center;
  max-width: calc(100% - 32px);
  margin: 16px 0;
  padding: 6px 12px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius);
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ef-text-2);
}

@media (min-width: 768px) {
  .bar { width: min(1200px, calc(100% - 48px)); padding: 0 16px; }
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(clamp(360px, 46svh, 480px) + var(--behind-bar) + 16px);
    padding: calc(var(--behind-bar) + 72px) 24px 128px;
  }
  .hero__inner { width: 100%; }
  .hero::after { height: 96px; }
  h1 { font-size: 40px; }
  .lead { font-size: 15px; }
  .wrap { width: min(1200px, calc(100% - 48px)); margin-top: -72px; }
}

/* Desktop: standard control height. Tablets keep the 44px touch targets. */
@media (min-width: 992px) {
  .page { --bar-h: 52px; }
  .brand { min-height: 0; }
  .lang a { min-height: 34px; }
  .card__main a, .card__band a { min-height: 0; }
}

/* Pages without a hero (404): the block sits directly under the header */
.wrap.wrap--page { margin-top: 16px; }

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