/* Archivo, SIL Open Font License (see fonts/OFL.txt). Self-hosted: no third-party requests. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* AMP brand colours, taken from ampservices.fi */
:root {
  --navy: #021D48;
  --navy-2: #071F46;
  --sky: #A2D0F1;
  --white: #FFFFFF;
  --paper: #F4F7FB;
  --ink: #021D48;
  --muted: #4A5872;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* Top bar */
/* Header spacing copied from ampservices.fi: full width, 80px tall, logo 125px, 30px left / 50px right */
.topbar { background: var(--navy-2); color: var(--white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding: 0 50px 0 30px; }
@media (max-width: 767px) { .topbar-inner { padding-right: 22px; } }
.logo { display: block; margin: 12px 0 10px; }
.logo img { width: 125px; height: auto; }
.lang { display: flex; gap: 4px; }
.lang button {
  font: 600 14px/1 var(--font);
  letter-spacing: 0.06em;
  color: var(--white);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 8px 8px;
  cursor: pointer;
  opacity: 0.75;
}
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--sky); border-bottom-color: var(--sky); }
.lang button:focus-visible, .btn:focus-visible, .logo:focus-visible {
  outline: 2px solid var(--sky); outline-offset: 3px;
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-2); color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2, 29, 72, 0.92) 0%, rgba(2, 29, 72, 0.75) 45%, rgba(2, 29, 72, 0.35) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 12vw, 140px); }
.eyebrow {
  margin: 0 0 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
}
.hero h1 {
  margin: 0 0 20px; max-width: 13.5em;
  font-size: clamp(34px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
}
.lead { margin: 0; max-width: 34em; font-size: clamp(17px, 2.1vw, 20px); color: rgba(255, 255, 255, 0.88); }

/* Handover row in the hero: old logo -> AMP logo (white AMP SVG, since the hero is dark) */
.handover { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); margin-top: clamp(28px, 4vw, 44px); }
.handover img { display: block; width: auto; height: clamp(40px, 5vw, 60px); }
/* Old logo's teal/navy doesn't read on the dark hero, so it gets a white card */
.handover .old-logo { box-sizing: content-box; padding: 8px 12px; background: var(--white); }
.handover-arrow { flex: none; width: clamp(24px, 3vw, 36px); height: auto; color: var(--sky); }

/* Contact */
.contact { background: var(--paper); padding: clamp(48px, 8vw, 96px) 0; }
.contact-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.contact h2 { margin: 0 0 32px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; line-height: 1.15; }
.contact-text p { margin: 0; color: var(--muted); max-width: 36em; }

.actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin-top: 32px; }

/* Photo beside the text (square crop); hidden when there is no room beside the text */
.contact-img { display: none; }
@media (min-width: 880px) { .contact-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; } }
.btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 22px;
  border: 2px solid var(--navy);
  font-size: 18px; font-weight: 800; line-height: 1.25;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn-sub { font-size: 14px; font-weight: 400; opacity: 0.8; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); color: var(--sky); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* Company name never splits across lines, except on phones where it is wider than the screen */
.name { white-space: nowrap; }
@media (max-width: 600px) { .hero h1 .name { white-space: normal; } }
