/* =========================================================
   Ralto — rekrutteringsside
   Bygget etter Figma-design. Farger, typografi og spacing
   speiler designet 1:1. Organisert per komponent/seksjon.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Farger */
  --rust: #c45a2d;
  --rust-dark: #a94a22;
  --ink: #2b1911;
  --muted: #503e36;
  --soft: #8c7870;
  --cream: #f7f2ea;       /* sidebakgrunn */
  --beige: #efe9df;       /* alternerende seksjoner, kanter, piller */
  --cream-2: #f6f1ea;     /* footer + myke notat-kort */
  --field: #fbf9f6;       /* skjemafelt */
  --field-focus: #fffdfb;
  --check-bg: #f5e6e1;    /* ikon-bakgrunn i sjekkliste */
  --white: #ffffff;
  --border: #efe9df;
  --error: #c0392b;

  /* Typografi */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wonk: "opsz" 144, "SOFT" 0, "WONK" 1;

  /* Layout */
  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Fraunces display helpers */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  letter-spacing: -0.01em;
}
.display--reg { font-weight: 400; }

.container { max-width: var(--container); margin-inline: auto; width: 100%; }

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--rust);
}
.eyebrow--plain { gap: 0; }
.eyebrow--muted { color: var(--soft); }
.eyebrow__square { width: 12px; height: 12px; border-radius: 4px; background: var(--rust); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: none; cursor: pointer; border-radius: 30px;
  padding: 18px 36px; transition: background-color .2s var(--ease), transform .1s var(--ease);
}
.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: var(--rust-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--block { width: 100%; }

/* ---------- Cards / notes shared ---------- */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.rule { display: block; width: 120px; height: 4px; border-radius: 2px; background: var(--rust); }

.note {
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px; font-size: 16px;
}
.note--beige { background: var(--beige); padding: 32px; font-weight: 600; color: var(--ink); }
.note--soft  { background: var(--cream-2); padding: 24px 32px; color: var(--ink); }
.note__icon { flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 16px; padding: 16px 24px; font-weight: 600;
  font-size: 16px; color: var(--ink);
}
.pill--soft { background: var(--cream-2); }
.pill__icon { flex: none; display: inline-flex; }

/* Text roles */
.lead { font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 600; line-height: 1.5; color: var(--ink); }
.body { font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.6; color: var(--muted); }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-title { font-size: clamp(2rem, 4.6vw, 52px); line-height: 1.08; color: var(--ink); }
.section-lead { font-size: clamp(1.05rem, 1.4vw, 20px); line-height: 1.5; color: var(--muted); max-width: 800px; }

/* =========================================================
   NAV
   ========================================================= */
.nav { background: var(--cream); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px var(--pad-x);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__word { font-weight: 800; font-size: 32px; color: var(--ink); letter-spacing: -0.02em; }
.logo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.logo--sm .logo__word { font-size: 24px; }
.logo--sm .logo__dot { width: 6px; height: 6px; }

.nav__pill {
  display: inline-block; background: var(--beige); color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 20px;
  text-decoration: none; transition: background-color .2s var(--ease);
}
.nav__pill:hover { background: #e6dfd2; }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--cream); }
.hero__inner {
  position: relative;
  display: flex; flex-direction: column; gap: 48px;
  padding: 80px var(--pad-x) 120px;
}
.hero__mascot {
  position: absolute; top: -40px; right: var(--pad-x); margin: 0;
  width: 240px; height: 240px; border-radius: 50%; overflow: hidden;
}
.hero__mascot img { width: 100%; height: 100%; object-fit: cover; }

.hero__head { display: flex; flex-direction: column; gap: 16px; max-width: 1000px; }
.hero__title {
  font-size: clamp(2.5rem, 7vw, 76px); line-height: 1.03; color: var(--ink);
  max-width: 900px;
}
.hero__meta { font-size: clamp(1rem, 1.4vw, 20px); font-weight: 600; color: var(--muted); }

.hero__hook { max-width: 860px; padding: 48px; display: flex; flex-direction: column; gap: 24px; }
.hero__quote { font-size: clamp(1.375rem, 2.6vw, 32px); line-height: 1.35; color: var(--ink); }
.hero__answer { font-size: clamp(1.125rem, 1.5vw, 20px); font-weight: 600; color: var(--rust); }

.hero__cta { display: flex; }

/* =========================================================
   INTRO
   ========================================================= */
.section--beige { background: var(--beige); }
.section--white { background: var(--white); }

.intro__inner {
  display: flex; gap: 80px; align-items: center;
  padding: 100px var(--pad-x);
}
.intro__left { width: 480px; flex: none; display: flex; flex-direction: column; gap: 32px; }
.intro__title { font-size: clamp(1.9rem, 4vw, 44px); line-height: 1.15; color: var(--ink); }
.intro__right { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* =========================================================
   HVEM SER VI ETTER
   ========================================================= */
.who__inner { display: flex; flex-direction: column; gap: 64px; padding: 120px var(--pad-x); }
.who__list-wrap { display: flex; flex-direction: column; gap: 32px; }
.who__subtitle { font-size: clamp(1.25rem, 1.6vw, 22px); font-weight: 600; color: var(--ink); }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist__item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  font-size: 16px; color: var(--ink); line-height: 1.5;
}
.checklist__icon {
  flex: none; width: 28px; height: 28px; border-radius: 14px;
  background: var(--check-bg); display: inline-flex; align-items: center; justify-content: center;
}

/* =========================================================
   KULTUR
   ========================================================= */
.culture__inner { display: flex; gap: 80px; align-items: flex-start; padding: 120px var(--pad-x); }
.culture__left { width: 520px; flex: none; display: flex; flex-direction: column; gap: 32px; }
.culture__image { margin: 0; height: 360px; border-radius: 24px; overflow: hidden; background: var(--beige); }
.culture__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.culture__right { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.culture__right .note--soft { font-size: clamp(1.125rem, 1.5vw, 20px); font-weight: 600; }

/* =========================================================
   HVA FÅR DU
   ========================================================= */
.perks__inner { display: flex; flex-direction: column; gap: 64px; padding: 120px var(--pad-x); }
.perks__grid { display: flex; gap: 48px; align-items: stretch; }
.perks__list { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.perk {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px;
  font-size: clamp(1rem, 1.2vw, 18px); font-weight: 600; color: var(--ink);
}
.perk__num {
  flex: none; width: 32px; height: 32px; border-radius: 16px;
  background: var(--rust); color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.timeline {
  width: 480px; flex: none; background: var(--beige);
  border-radius: var(--radius-lg); padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
.timeline__title { font-size: clamp(1.5rem, 2.4vw, 32px); line-height: 1.25; color: var(--ink); }
.timeline .body { font-size: 16px; }

/* =========================================================
   SKJEMA / APPLY
   ========================================================= */
.apply__inner { display: flex; flex-direction: column; gap: 80px; padding: 120px var(--pad-x); }
.apply__intro { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.apply__kicker { font-size: clamp(1.25rem, 1.6vw, 22px); font-weight: 600; color: var(--rust); }

.apply__list { display: flex; flex-direction: column; gap: 16px; }
.apply__list-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.dashrow { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.dashrow__dash { color: var(--rust); font-weight: 600; flex: none; }
.dashrow span:last-child { color: var(--muted); }

.contact { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.contact__card { display: flex; flex-direction: column; gap: 4px; }
.contact__name { font-size: 22px; color: var(--ink); }
.contact__row { font-size: 16px; color: var(--muted); }
.contact__row a { text-decoration: none; }
.contact__row a:hover { text-decoration: underline; }
.contact__row--mail a { color: var(--rust); font-weight: 600; }

/* Form card */
.formcard {
  background: var(--white); border: 1px solid var(--cream-2);
  border-radius: 28px; padding: clamp(24px, 3.5vw, 48px);
  display: flex; flex-direction: column; gap: 32px;
}
.formcard__title { font-size: clamp(1.5rem, 2.4vw, 32px); color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__legend { font-size: 13px; color: var(--soft); margin-top: -4px; }
.form__row { display: flex; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--grow { flex: 1; min-width: 0; }
.field--age { width: 180px; flex: none; }

.field label { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-star { color: var(--rust); }
.opt-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--soft); background: var(--field); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 20px;
}

.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--field); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--soft); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--rust); background: var(--field-focus);
  box-shadow: 0 0 0 3px rgba(196,90,45,.14);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

/* Invalid state */
.field.is-invalid input, .field.is-invalid textarea, .dropzone.is-invalid {
  border-color: var(--error); background: #fdf6f4;
}
.field__error {
  font-size: 13px; color: var(--error); font-weight: 600; min-height: 0;
}
.field__error:empty { display: none; }

/* Dropzone */
.dropzone {
  position: relative; background: var(--field);
  border: 1.5px dashed var(--border); border-radius: 12px;
  padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--rust); background: #fdf7f3; }
.dropzone__input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.dropzone__title { font-size: 14px; font-weight: 600; color: var(--rust); }
.dropzone__hint { font-size: 12px; color: var(--soft); }
.dropzone__file {
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px;
}
.dropzone__file button {
  border: none; background: none; color: var(--rust); cursor: pointer;
  font-weight: 700; font-size: 16px; line-height: 1; padding: 0;
}

/* Success */
.form-success {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; padding: 24px 8px;
}
.form-success__text { font-size: clamp(1.125rem, 1.6vw, 20px); font-weight: 600; color: var(--ink); max-width: 460px; line-height: 1.5; }
.form__status { font-size: 14px; color: var(--muted); text-align: center; }
.form__status:empty { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--cream-2); }
.footer__inner { display: flex; flex-direction: column; gap: 80px; padding: 100px var(--pad-x); }
.footer__big {
  font-size: clamp(3.5rem, 12vw, 100px); line-height: 1; text-align: center; color: var(--rust);
}
.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 40px; border-top: 1px solid var(--border);
}
.footer__copy { font-size: 14px; color: var(--soft); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Large tablet / small desktop */
@media (max-width: 1024px) {
  .intro__left { width: 380px; }
  .culture__left { width: 440px; }
  .timeline { width: 400px; }
}

/* Tablet — stack two-column sections */
@media (max-width: 900px) {
  .intro__inner,
  .culture__inner,
  .perks__grid { flex-direction: column; align-items: stretch; gap: 40px; }
  .intro__left,
  .culture__left,
  .timeline { width: auto; }
  .culture__image { height: clamp(260px, 46vw, 360px); }
  .hero__mascot { width: 180px; height: 180px; top: -24px; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav__inner { padding-block: 20px; }
  .nav__pill { display: none; }              /* pill for lang for smal skjerm; CTA i hero dekker behovet */
  .logo__word { font-size: 26px; }

  .hero__inner { padding-top: 140px; gap: 32px; }
  .hero__mascot { top: 20px; right: var(--pad-x); width: 120px; height: 120px; }
  .hero__hook { padding: 28px; }

  .intro__inner, .who__inner, .culture__inner, .perks__inner, .apply__inner { padding-block: 72px; }
  .footer__inner { padding-block: 64px; gap: 56px; }

  .checklist__item, .perk, .note--beige { padding: 20px; }
  .note--soft { padding: 20px; }

  .form__row { flex-direction: column; gap: 20px; }
  .field--age { width: 100%; }

  .footer__bar { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Very small */
@media (max-width: 380px) {
  .hero__mascot { width: 96px; height: 96px; }
  .hero__inner { padding-top: 120px; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
