/* ==========================================================================
   Futur — Maintenance-sidor
   Helt fristående: alla assets lokala, inga externa requests.
   Tokens: css/figma-tokens.css (lokal snapshot av cdn.futur.se/tokens/figma-tokens.css)
   ========================================================================== */

/* --- Fonter (lokala) --------------------------------------------------- */

@font-face {
  font-family: "Gilroy";
  src: url("../assets/fonts/gilroymedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../assets/fonts/gilroybold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Bas ---------------------------------------------------------------- */

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

html {
  height: 100%;
}

/* min-height (inte height) — body måste växa med innehållet, annars
   klipps bakgrundsbilden när innehållet är högre än viewporten
   (svart band i botten på iPhone). */
body {
  min-height: 100%;
}

body {
  background-color: var(--clr-key-black, #141414);
  background-image: url("../assets/images/background-dark.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--content-primary, #ffffff);
  font-family: "Inter", arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- Sidlayout -----------------------------------------------------------
   Mobil först: logotyp i botten. Desktop: logotyp i toppen. */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--spc-09, 2.5rem) clamp(1rem, 5vw, 5rem);
  gap: var(--spc-08, 2rem);
}

.page__logo {
  order: 2;
  flex-shrink: 0;
}

.page__logo img {
  display: block;
  width: auto;
  height: clamp(38px, 4vw, 48px);
}

.page__main {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  gap: var(--spc-10, 3rem);
  width: 100%;
  max-width: 1164px;
  text-align: center;
}

/* --- Typografi ------------------------------------------------------------
   All typografi via .type-style-*-klasser från typography-scale-patternet:
   css/typography-scale.css (lokal snapshot av
   cdn.futur.se/design-system/foundation/typography-scale/pattern.css).
   H1: disp-prm-sm · ingress: title-prm-md · subrubrik: hl-prm-sm
   knapp: label-prm-md · kontakt: label-prm-lg */

/* --- Innehållsblock ------------------------------------------------------ */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spc-07, 1.5rem);
}

.intro p {
  max-width: 54rem; /* 862px i skissen */
}

/* --- CTA-knappar ---------------------------------------------------------- */

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spc-05, 1rem);
  width: 100%;
  max-width: 328px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spc-03, 0.5rem);
  padding: var(--spc-04, 0.75rem) var(--spc-06, 1.25rem);
  border-radius: var(--shp-full, 62.5rem);
  background-color: var(--background-button-accent-default, #65e697);
  color: var(--content-button-accent-default, #141414);
  text-decoration: none;
  transition: background-color 120ms ease;
}

.button:hover {
  background-color: var(--background-button-accent-hover, #93eeb6);
}

.button:focus-visible {
  outline: 2px solid var(--clr-key-white, #ffffff);
  outline-offset: 2px;
}

.button:active {
  background-color: var(--background-button-accent-active, #c1f5d5);
}

.button img {
  width: 24px;
  height: 24px;
  display: block;
}

/* --- Kontakt -------------------------------------------------------------- */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spc-07, 1.5rem);
}

.contact__heading {
  max-width: 54rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  color: var(--content-primary, #ffffff);
  text-decoration: none;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__link:focus-visible {
  outline: 2px solid var(--clr-key-white, #ffffff);
  outline-offset: 2px;
  border-radius: var(--shp-xs, 0.25rem);
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.contact__icon img {
  width: 24px;
  height: 24px;
  display: block;
}

/* --- Mobil: color mark alltid 100% opacity — aldrig dimmad.
       Kontrast löses med positionering: cover-beskärningen läggs så att
       märkets mörka parti hamnar bakom innehållet. ------------------------ */

@media (max-width: 767px) {
  body {
    background-position: 70% top;
  }
}

/* --- Desktop -------------------------------------------------------------- */

@media (min-width: 768px) {
  .page__logo {
    order: 0; /* logotyp i toppen på desktop */
  }

  .page__main {
    order: 1;
  }

  .actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    width: auto;
  }

  .contact__links {
    flex-direction: row;
    gap: var(--spc-08, 2rem);
  }
}
