/* RED CO — tokens, base, header, footer and shared components. */

@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-greek.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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 {
  --navy: #0A2F41;
  --navy-2: #0F4761;
  --navy-deep: #071F2B;
  --red: #BD202E;
  --red-dark: #9E1A26;
  --red-soft: #FBEAEC;
  --red-on-navy: #F2A7AE;
  --ink: #2B2D33;
  --muted: #4A5560;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --line: #E8E8E8;
  --on-navy: #DCE6EC;
  --on-navy-muted: #B7C7D1;

  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 18px 40px rgba(10, 47, 65, .10);
  --shadow-lift: 0 24px 60px rgba(10, 47, 65, .14);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }

a { color: var(--navy); }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------- Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.section { padding-block: 96px; }
.section--alt { background: var(--bg-alt); }

@media (max-width: 640px) {
  .section { padding-block: 64px; }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* -------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding-block: 8px; }
.site-nav a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 47, 65, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; }
  /* Without JS the toggle cannot open the menu, so show it inline. */
  html:not(.has-js) .site-nav { position: static; display: flex; box-shadow: none; }
  html:not(.has-js) .nav-toggle { display: none; }
  html:not(.has-js) .site-header__inner { flex-wrap: wrap; }
}

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 56px 0 32px; font-size: 14px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer__top img { height: 38px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { color: var(--on-navy); text-decoration: none; padding-block: 10px; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px;
}

/* -------------------------------------------------------------- Reveal */
.has-js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.has-js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .has-js .reveal { opacity: 1; transform: none; }
}
