/* =========================================================
   Elmera Tolkservice AB — 2026
   Delad stilmall för startsidan och jobbsidan (jobb/)
   ========================================================= */

:root {
  --cream: #f4f0e7;
  --cream-deep: #ece6d8;
  --card: #ffffff;
  --field: #efe9dc;
  --field-border: #e2dac8;
  --green: #88b04b;
  --green-dark: #91bc50;
  --green-soft: #e7eede;
  --green-line: #cdd9bf;
  --ink: #2b2b24;
  --muted: #877f6c;
  --req: #b0552f;

  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  /* Definitionen kommer från 1px-ramar, inte från mjuka skuggor. */
  --edge: #e0d9c7;
  --edge-strong: #cdc4ac;
  --shadow: 0 1px 2px rgba(28, 27, 20, .05), 0 8px 24px -18px rgba(28, 27, 20, .25);
  --shadow-sm: 0 1px 2px rgba(28, 27, 20, .04);
  --shadow-lg: 0 1px 3px rgba(28, 27, 20, .06), 0 18px 40px -28px rgba(28, 27, 20, .3);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.req { color: var(--req); }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--green); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-weight: 700; transition: top .2s ease;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .94rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; letter-spacing: -.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-green {
  background: var(--green); color: #fff; padding: 12px 22px;
  border-color: var(--green-dark);
  box-shadow: 0 1px 2px rgba(28,27,20,.14), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-green:hover { background: var(--green-dark); }
.btn-green:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--card); color: var(--ink); padding: 12px 20px;
  border-color: var(--edge); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--cream-deep); border-color: var(--edge-strong); }
.btn-ghost:active { transform: translateY(1px); }
.btn-light {
  background: rgba(255,255,255,.1); color: #fff; padding: 12px 22px;
  border-color: rgba(255,255,255,.32);
}
.btn-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.btn-white { background: #fff; color: var(--green-dark); padding: 12px 22px; border-color: #fff; }
.btn-white:hover { background: var(--green-soft); border-color: var(--green-soft); }
.btn-sm { padding: 8px 16px; font-size: .87rem; }

/* ---------- Ikoner ---------- */
/* Enfärgade linjeikoner – ärver färg via currentColor, ingen emoji. */
.icon {
  width: 22px; height: 22px; flex: 0 0 auto; display: block;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico { color: var(--green); }
.ico .icon { width: 24px; height: 24px; }
.svc .ico .icon { width: 26px; height: 26px; }
.perk .icon, .hero-chip .icon { width: 16px; height: 16px; stroke-width: 2.1; color: var(--green); }
.perk { align-items: center; }
.hero-chip .icon { margin-right: 2px; }
.quote-card .hands .icon { width: 46px; height: 46px; stroke-width: 1.6; color: rgba(255,255,255,.55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.stuck {
  background: rgba(244, 240, 231, .85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--edge);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { line-height: 1; display: block; }
.logo .name { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.16em; color: var(--ink); }
.logo .sub { font-size: 0.58rem; letter-spacing: 0.32em; color: var(--muted); margin-top: 4px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 7px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: .9rem;
  color: var(--muted); transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--cream-deep); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--cream-deep); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--edge);
  cursor: pointer; place-items: center;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .25s ease, background .25s ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, top .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none; padding: 0 0 18px;
}
.mobile-nav.open { display: block; }
.mobile-nav .panel {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow); display: grid; gap: 2px;
}
.mobile-nav a {
  padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.mobile-nav a:hover { background: var(--green-soft); }
.mobile-nav .btn { margin-top: 8px; width: 100%; }

@media (max-width: 940px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .burger { display: grid; }
}
@media (max-width: 560px) {
  .header-cta { gap: 8px; }
  .header-cta .btn-green { padding: 10px 16px; font-size: .86rem; }
  .logo .name { font-size: 1.3rem; letter-spacing: .13em; }
  .logo .sub { font-size: .52rem; letter-spacing: .26em; }
}
@media (max-width: 360px) {
  .header-cta .btn-green { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 26px 0 10px; position: relative; }
.hero-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 62px) clamp(24px, 5vw, 58px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center;
  background-image: radial-gradient(120% 80% at 82% -10%, rgba(79,108,58,.09), transparent 60%);
}
/* Djupet kommer från den radiella gradienten på .hero-card – inga dekorcirklar. */
.hero-copy { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500; color: var(--green-dark);
  background: var(--green-soft); border: 1px solid var(--green-line);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px; letter-spacing: -.01em;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(79,108,58,.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,108,58,.5); }
  70% { box-shadow: 0 0 0 10px rgba(79,108,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,108,58,0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.08; max-width: 17ch;
}
.hero h1 .accent { color: var(--green); }
.hero .lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); max-width: 52ch; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.perk {
  display: inline-flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 500;
  background: var(--cream); border: 1px solid var(--edge); padding: 7px 13px; border-radius: var(--radius-sm);
}

/* Hero visual — signing hand mark */
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-orb {
  width: min(330px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(155deg, var(--green-dark), var(--green));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 40px 70px -34px rgba(61,85,48,.85);
  position: relative; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
.hero-orb .sign {
  width: 54%; height: auto; color: #fff;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.28));
}
.hero-orb .ring {
  position: absolute; inset: -18px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.35); animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.hero-chip {
  position: absolute; background: var(--card); border: 1px solid var(--edge); border-radius: 10px;
  padding: 10px 14px; box-shadow: var(--shadow); font-weight: 600; font-size: .86rem;
  display: flex; align-items: center; gap: 9px; color: var(--ink);
}
.hero-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.hero-chip.c1 { left: -6%; top: 14%; animation: float 6s ease-in-out infinite .4s; }
.hero-chip.c2 { right: -4%; bottom: 16%; animation: float 6.5s ease-in-out infinite .9s; }

@media (max-width: 940px) {
  .hero-card { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .hero-orb { width: min(240px, 70%); }
  .hero-chip.c1 { left: 0; }
  .hero-chip.c2 { right: 0; }
  .hero h1 { max-width: none; }
}
@media (max-width: 560px) {
  .hero-chip { display: none; }
}

/* ---------- Stats strip ---------- */
.stats { padding: 34px 0 10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px;
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat .num { font-size: 1.6rem; }
  .stat .lbl { font-size: .85rem; }
}
.stat {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.stat:hover { border-color: var(--green-line); box-shadow: var(--shadow); }
.stat .num { font-size: 1.9rem; font-weight: 700; color: var(--green); letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .93rem; margin-top: 8px; }

/* ---------- Generic block ---------- */
section.block { padding: 74px 0 10px; }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: -.01em;
  font-weight: 500; color: var(--green); margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch;
}
.sec-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-top: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap; }

/* ---------- Om oss ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: stretch; margin-top: 40px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.owner-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.owner-card .photo {
  border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); aspect-ratio: 4/5;
}
.owner-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.owner-card .meta { padding: 22px 14px 10px; }
.owner-card .meta .name { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.owner-card .meta .role { color: var(--green); font-weight: 600; font-size: .94rem; margin-top: 5px; }

.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text .card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 28px 28px; box-shadow: var(--shadow-sm);
}
.about-text p + p { margin-top: 14px; }
.about-text p { color: var(--muted); font-size: 1.02rem; }
.about-text .card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.value-list { list-style: none; display: grid; gap: 14px; margin-top: 4px; }
.value-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1.0rem; }
.value-list .check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--green); color: #fff; margin-top: 3px;
}

/* ---------- Tjänster ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 40px; }
.svc {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.svc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at 100% 0%, rgba(79,108,58,.07), transparent 60%);
  transition: opacity .3s ease;
}
.svc:hover { transform: translateY(-3px); border-color: var(--green-line); box-shadow: var(--shadow); }
.svc:hover::after { opacity: 1; }
.svc > * { position: relative; z-index: 1; }
.svc .ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line); margin-bottom: 18px;
}
.svc h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 9px; }
.svc p { color: var(--muted); font-size: .98rem; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 20px; }
.svc .tag {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; color: var(--green-dark);
  background: var(--green-soft); border: 1px solid var(--green-line);
  padding: 4px 9px; border-radius: 6px;
}

.mode-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
@media (max-width: 760px) { .mode-split { grid-template-columns: 1fr; } }
.mode {
  border-radius: var(--radius); padding: 26px 26px; box-shadow: var(--shadow-sm);
  background: var(--card); border: 1px solid var(--edge);
  display: flex; gap: 18px; align-items: flex-start;
}
.mode .ico {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line);
}
.mode h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.mode p { color: var(--muted); font-size: .95rem; }

/* ---------- Process ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  margin-top: 40px; counter-reset: stp;
}
.step-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--green-line); box-shadow: var(--shadow); }
.step-card .num {
  counter-increment: stp; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green);
  font-family: var(--mono); font-weight: 500; font-size: .95rem; margin-bottom: 16px;
}
.step-card .num::before { content: counter(stp); }
.step-card h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; margin-top: 40px;
}
.member {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.member:hover { transform: translateY(-3px); border-color: var(--green-line); box-shadow: var(--shadow); }
.member .photo {
  border-radius: 10px; overflow: hidden; background: var(--cream-deep); aspect-ratio: 4/5;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.member:hover .photo img { transform: scale(1.05); }
.member .name { font-weight: 600; font-size: .97rem; letter-spacing: -.01em; margin: 14px 4px 4px; }
.member .role { color: var(--muted); font-size: .86rem; margin: 0 4px 10px; }

.team-note {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 22px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.team-note .ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line); flex: 0 0 auto;
}
.team-note h4 { font-size: 1.05rem; font-weight: 700; }
.team-note p { color: var(--muted); font-size: .94rem; }

/* ---------- Quote ---------- */
.quote-card {
  border-radius: var(--radius-lg); padding: clamp(30px, 4.5vw, 48px); color: #fff;
  margin-top: 74px; background: var(--green-dark);
  background-image: radial-gradient(90% 120% at 88% 0%, rgba(255,255,255,.1), transparent 55%);
  border: 1px solid var(--green-dark); position: relative; overflow: hidden;
}
.quote-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 110% at 92% 100%, rgba(255,255,255,.09), transparent 55%);
}
.quote-card .hands { position: relative; z-index: 1; }
.quote-card .q {
  font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.3;
  margin: 20px 0 22px; max-width: 24ch; position: relative; z-index: 1;
}
.quote-card .who { position: relative; z-index: 1; }
.quote-card .who .name { font-weight: 700; }
.quote-card .who .meta { color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 40px; border-radius: var(--radius-lg); padding: clamp(30px, 4.5vw, 48px);
  background: var(--green-dark);
  background-image: radial-gradient(80% 130% at 12% 0%, rgba(255,255,255,.1), transparent 55%);
  color: #fff; border: 1px solid var(--green-dark); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 130% at 4% 100%, rgba(255,255,255,.08), transparent 55%);
}
.cta-band .txt { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 12px; max-width: 46ch; }
.cta-band .acts { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-col { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .info-col { position: static; } }
.info-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
}
.info-card .label {
  font-family: var(--mono); font-size: .74rem; color: var(--muted); font-weight: 500;
}
.info-item { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.info-item .ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line);
}
.info-item .k { font-size: .82rem; color: var(--muted); }
.info-item .v { font-weight: 700; font-size: 1.02rem; }
.info-item a.v:hover { color: var(--green); }

/* Form */
.form-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow);
}
.form-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.form-head .ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line);
}
.form-head h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.form-head p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 9px; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 7px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--edge); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder { color: #a79e8a; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(79,108,58,.15);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--req); background: #fbf1ec;
}
textarea { resize: vertical; min-height: 130px; }
input[type="date"] { min-height: 52px; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.pills { display: flex; flex-wrap: wrap; gap: 11px; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill-opt span {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .9rem; background: var(--card);
  border: 1px solid var(--edge); cursor: pointer; transition: all .15s ease;
}
.pill-opt span::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--green-line); background: #fff; transition: all .2s ease;
}
.pill-opt input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.pill-opt input:checked + span::before { border-color: var(--green); box-shadow: inset 0 0 0 3px var(--green); }
.pill-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(79,108,58,.15); }
.pills[aria-invalid="true"] .pill-opt span { border-color: var(--req); background: #fbf1ec; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--field-border);
}
.form-foot .note { color: var(--muted); font-size: .88rem; flex: 1 1 240px; }

.alert {
  display: none; border-radius: var(--radius-sm); padding: 16px 20px; font-weight: 600;
  margin-top: 20px; font-size: .96rem;
}
.alert.show { display: block; animation: pop .35s ease; }
.alert.ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green-line); }
.alert.err { background: #fbf1ec; color: var(--req); border: 1px solid #e6c4b2; }
@keyframes pop { from { transform: scale(.98); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--edge); padding: 46px 0 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 32px;
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }
.foot-grid p { color: var(--muted); font-size: .95rem; margin-top: 14px; max-width: 40ch; }
.foot-grid h4 { font-family: var(--mono); font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.foot-links { list-style: none; display: grid; gap: 9px; }
.foot-links a { color: var(--ink); font-size: .96rem; font-weight: 500; }
.foot-links a:hover { color: var(--green); }
.foot-bar {
  border-top: 1px solid var(--field-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  color: var(--muted); font-size: .9rem;
}
.foot-bar a { color: var(--green); font-weight: 600; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--green-dark); cursor: pointer;
  background: var(--green); color: #fff; font-size: 1.05rem; display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-dark); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Jobbsidan (/jobb) — ansökningsformulär
   ========================================================= */

/* Ikoner inuti knappar och bockar */
.btn .icon { width: 18px; height: 18px; }
.value-list .check .icon { width: 14px; height: 14px; stroke-width: 3; }
.submit-note .icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--green); }

/* ---------- Ankare till ansökan ---------- */
.apply-anchor { text-align: center; padding: 74px 0 6px; }
.apply-anchor .eyebrow { margin-bottom: 10px; }
.apply-anchor h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.15;
}
.apply-anchor .sec-sub { text-align: center; }

/* ---------- Layout: sidomeny + formulär ---------- */
.layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 34px;
  align-items: start; padding: 34px 0 20px;
}
@media (max-width: 940px) { .layout { grid-template-columns: 1fr; gap: 24px; } }

.sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 940px) { .sidebar { position: static; } }

.side-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.side-card .label { font-family: var(--mono); font-size: .74rem; color: var(--muted); font-weight: 500; }
.side-card .role { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; margin: 10px 0 8px; }
.side-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Stegindikator ---------- */
.steps-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.steps { list-style: none; display: flex; flex-direction: column; }
.steps li {
  display: flex; align-items: center; gap: 14px; padding: 9px 0;
  color: var(--muted); font-weight: 500; font-size: .96rem; position: relative;
  transition: color .25s ease;
}
.steps li .n {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; font-weight: 500;
  border: 1px solid var(--edge); color: var(--muted); background: var(--card);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.steps li:not(:last-child) .n::after {
  content: ""; position: absolute; left: 13.5px; top: 38px;
  width: 1px; height: 18px; background: var(--edge);
}
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active .n { background: var(--green); border-color: var(--green-dark); color: #fff; }
.steps li.done .n { background: var(--green-soft); border-color: var(--green-line); color: var(--green-dark); }

/* ---------- Formulärsektioner ---------- */
.form-col { display: flex; flex-direction: column; gap: 22px; }
.sec {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
@media (max-width: 560px) { .sec { padding: 26px 22px; } }

.sec-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.sec-head .n {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: .95rem;
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green);
}
.sec-head h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.sec-head p { color: var(--muted); font-size: .95rem; margin-top: 3px; }

/* ---------- Kryssrutor som knappar ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 11px; }
.seg .opt { position: relative; }
.seg .opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg .opt span {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .9rem; background: var(--card);
  border: 1px solid var(--edge); cursor: pointer;
  transition: all .15s ease; user-select: none;
}
.seg .opt span:hover { border-color: var(--edge-strong); }
.seg .opt input:checked + span {
  background: var(--green-soft); border-color: var(--green); color: var(--green-dark);
}
.seg .opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79,108,58,.15); }

/* ---------- Snabbval ---------- */
.quick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quick .q-label { color: var(--muted); font-size: .9rem; }
.chip {
  border: 1px solid var(--edge); background: var(--card); border-radius: var(--radius-sm);
  padding: 7px 14px; font-weight: 500; font-size: .87rem; cursor: pointer;
  color: var(--ink); transition: all .15s ease;
}
.chip:hover { border-color: var(--green-line); background: var(--cream-deep); }
.chip.on { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }

/* ---------- Skicka-rad ---------- */
.submit-bar {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 22px 32px; box-shadow: var(--shadow-sm); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
@media (max-width: 560px) { .submit-bar { padding: 22px; } }
.submit-note { color: var(--muted); font-size: .88rem; flex: 1 1 260px; }

/* Jobbsidan: fyra kort på rad i "Varför Elmera" */
#varfor .svc-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

/* Jobbsidan: citatkortet ligger bredvid listan, inte som avslutning */
#rollen .about-grid { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) { #rollen .about-grid { grid-template-columns: 1fr; } }
