/* ============================================================
   TYPSNITT – DM Sans och DM Serif Display
   Licens: SIL Open Font License 1.1 (se /fonts/LICENSE.txt)
   Filerna ligger på egen server, inga anrop till Google Fonts.
   ============================================================ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
}

/* ============================================================
   DESIGNSYSTEM – Variabler och grundinställningar
   ============================================================ */
:root {
  --navy:     #0A1628;
  --navy-mid: #0D1F3C;
  --cobalt:   #1E3A8A;
  --blue:     #3B82F6;
  --blue-light: #60A5FA;
  --white:    #FFFFFF;
  --off-white: #F0F4FF;
  --muted:    #94A3B8;
  --border:   rgba(255,255,255,0.08);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:   12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* Förhindrar flex/grid-items från att växa utanför container */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative; /* Krävs för att overflow-x: hidden ska fungera korrekt */
}

/* Fokusringar för tillgänglighet */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TYPOGRAFI – Gemensamma stilar
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-size: 1.0625rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

/* ============================================================
   LAYOUT – Wrapper och sektionsstilar
   ============================================================ */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  overflow-x: hidden; /* Alla sektioner klipper av utskjutande dekorativt innehåll */
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

/* ============================================================
   KNAPPAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-light);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL-REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   GLASSMORPHISM KORT
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  transition: all var(--transition);
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   1. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:#F0F4FF;
  /* background: rgba(10, 22, 40, 0.85); */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 36px;
  width: auto;
  /* Fallback om logo.png saknas */
  min-width: 36px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0A1628;
  transition: all var(--transition);
}
.navbar-nav a:hover {
  color: var(--cobalt);
  background: rgba(30,58,138,0.08);
}

.navbar-cta {
  flex-shrink: 0;
}

/* Hamburger-meny */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(30,58,138,0.08); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger öppen-läge */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobil-meny */
.mobile-menu {
  display: none;
  background: rgba(10, 22, 40, 0.97);
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  transition: all var(--transition);
}
.mobile-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.mobile-menu .mobile-cta {
  margin-top: 1rem;
  padding: 0 1.25rem;
}
.mobile-menu .mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .navbar-nav, .navbar-cta { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}

/* Geometriskt diagonalt mönster via CSS */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(30, 58, 138, 0.08) 0px,
      rgba(30, 58, 138, 0.08) 1px,
      transparent 1px,
      transparent 48px
    );
  pointer-events: none;
}

/* Subtil blå glöd i bakgrunden */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(30, 58, 138, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 7vw, 6rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--blue-light);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Scroll-indikator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-indicator span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-down 2s ease-in-out infinite;
}
.scroll-arrow svg { width: 16px; height: 16px; }

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   3. FÖR FÖRETAG
   ============================================================ */
.for-foretag {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden; /* Klipper av pseudo-element som sticker utanför */
}

.for-foretag::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(30, 58, 138, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.foretag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.foretag-text p {
  margin-bottom: 2rem;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}
.feature-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================
   4. FÖR JOBBSÖKANDE
   ============================================================ */
.for-jobbsokande {
  background: var(--navy);
}

.jobbsokande-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.jobbsokande-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.125rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-light);
}
.badge::before {
  content: '✓';
  font-size: 0.75rem;
  color: var(--blue);
}

/* Stort citat-element till höger */
.jobbsokande-visual {
  position: relative;
}

.quote-block {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(10, 22, 40, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}
.quote-block::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 8rem;
  color: rgba(59, 130, 246, 0.2);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  line-height: 1;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================================
   5. KARRIÄR
   ============================================================ */
.lediga-jobb {
  background: var(--navy-mid);
}

.karriar-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.karriar-card {
  padding: 3.5rem 2.5rem;
}

.karriar-card:first-child {
  border-right: 1px solid var(--border);
}

.karriar-card h2,
.karriar-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.karriar-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

/* ============================================================
   6. OM OSS
   ============================================================ */
.om-oss {
  background: var(--navy);
}

.om-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.om-text p + p { margin-top: 1rem; }
.om-text p:last-of-type { margin-bottom: 0; }

/* Stats-räknare */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.stat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-suffix {
  color: var(--blue-light);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   7. KONTAKT
   ============================================================ */
.kontakt {
  background: var(--navy-mid);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.contact-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--cobalt), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.contact-role {
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  text-decoration: none;
}
.contact-link:hover { color: var(--blue-light); }
.contact-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ============================================================
   MEDLEM I
   ============================================================ */
.medlem-i {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.medlem-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.medlem-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.medlem-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
}

.medlem-logos img:hover {
  opacity: 1;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  background: #060E1A;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.875rem;
}
.footer-brand img { height: 30px; width: auto; }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-address {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55); /* 6.3:1 mot footerbakgrunden */
}
.footer-copy a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-copy a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

/* ============================================================
   TEXTSIDA – t.ex. integritetspolicyn
   ============================================================ */
.text-page {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
}

.text-content {
  max-width: 720px;
  margin: 0 auto;
}

.text-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.text-content h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: 3rem;
  margin-bottom: 0.875rem;
}

.text-content p {
  margin-bottom: 1.25rem;
}

.text-updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Brödtextlänkar är alltid understrukna, så de inte bara skiljs med färg */
.text-content a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.text-content a:hover {
  color: var(--white);
}

/* ============================================================
   SCROLLBAR-STIL (valfri detalj)
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cobalt); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ============================================================
   MOBILANPASSNING — 768px täcker både tablet och telefon
   ============================================================ */
@media (max-width: 768px) {

  section { padding: 3.5rem 0; overflow-x: hidden; }

  /* Typografi */
  h1 { font-size: clamp(1.9rem, 7.5vw, 3rem); word-break: break-word; overflow-wrap: break-word; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2.2rem); word-break: break-word; overflow-wrap: break-word; }

  /* Navbar */
  .navbar-nav, .navbar-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding: 3rem 0 2.5rem; }
  .hero-content { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
  .hero-lead { font-size: 1rem; max-width: 100%; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /*
    För företag: text → feature-kort → knapp
    display:contents lyfter ut .foretag-text:s barn så de alla
    blir direkta flexbarn i .foretag-grid. Knappens wrapper
    (sista .reveal i texten) får order:99 → hamnar längst ner.
  */
  .foretag-grid { display: flex; flex-direction: column; gap: 2rem; }
  .foretag-text { display: contents; }
  .foretag-text > .reveal:last-child { order: 99; }
  .feature-cards { order: 10; }
  .foretag-text .btn { width: 100%; justify-content: center; }

  /*
    För jobbsökande: text → bild → knapp
    Samma teknik: display:contents på text-diven.
  */
  .jobbsokande-grid { display: flex; flex-direction: column; gap: 2rem; }
  .jobbsokande-grid > div:first-child { display: contents; }
  .jobbsokande-grid > div:first-child > div:last-child { order: 99; }
  .jobbsokande-visual { order: 10; }
  .for-jobbsokande .btn { width: 100%; justify-content: center; }
  .jobbsokande-visual img { max-height: 280px; width: 100%; }

  /* Karriär */
  .karriar-split { grid-template-columns: 1fr; }
  .karriar-card:first-child { border-right: none; border-bottom: 1px solid var(--border); }

  /* Om oss */
  .om-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .om-grid img { max-height: 280px; width: 100%; }

  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; gap: 0.75rem; }
}

/* Extra smala telefoner (upp till 390px) */
@media (max-width: 390px) {
  section { padding: 2.75rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .glass-card, .contact-card { padding: 1.25rem; }
}
