/* Self-hosted fonts: no third-party request (CSP + privacy) */
@font-face {
  font-family: "Roboto";
  src: local("Roboto"), url("fonts/roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: local("Roboto Condensed"), url("fonts/roboto-condensed.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --csem-blue: #00a1e5;
  --csem-blue-dark: #003264;
  --csem-grey: #f2f2f2;
  --csem-text: #1a1a1a;
  --white: #fff;
  --font: "Roboto", Arial, sans-serif;
  --font-title: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  /* Aligns full-width header/footer content with .container */
  --edge: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

img { max-width: 100%; height: auto; }

body {
  font-family: var(--font);
  color: var(--csem-text);
  background: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem var(--edge);
  background: var(--white);
  border-bottom: 1px solid var(--csem-grey);
}

.logo { display: block; line-height: 0; }

.logo img { width: clamp(120px, 30vw, 165px); }

.lang { display: flex; gap: 0.25rem; }

.lang button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: none;
  border: 1px solid transparent;
  color: var(--csem-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.lang button:hover,
.lang button:focus-visible { border-color: var(--csem-blue); }

.lang button[aria-pressed="true"] {
  background: var(--csem-blue);
  border-color: var(--csem-blue);
  color: var(--white);
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 8vw, 4rem) 0;
  background: var(--white);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 1rem;
  background: var(--csem-blue);
}

.hero p {
  max-width: 680px;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.hero .lead {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--csem-blue);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus-visible { background: var(--csem-blue-dark); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem var(--edge);
  background: var(--csem-blue-dark);
  color: var(--white);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .btn { display: block; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
