/* ============================================================
   ISODOOR BYGG — Trappkalkylator
   trappkalkylator.css
   Komplett sidstil inkl. header, hero, kalkylator, resultat,
   SVG, CTA, kontaktformulär och footer.
   ============================================================ */

/* ── Reset & bas ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: #F6F5F2;
  color: #1C2C3D;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── CSS-variabler ───────────────────────────────────────── */
:root {
  --ib-navy:       #1C3557;    /* Djup marinblå – primärfärg */
  --ib-navy-mid:   #274A75;    /* Lite ljusare marinblå */
  --ib-orange:     #C95F1A;    /* Rustigt orange – CTA-accent */
  --ib-orange-l:   #FBF0E8;    /* Ljus orange bakgrund */
  --ib-bg:         #F6F5F2;    /* Varm sidebakgrund */
  --ib-bg-alt:     #EDECEA;    /* Alternativ sektionsbakgrund */
  --ib-surface:    #FFFFFF;
  --ib-border:     #D9D5CE;
  --ib-text:       #1C2C3D;
  --ib-text-muted: #5A6B7A;
  --ib-green:      #2A7D4F;
  --ib-green-bg:   #EAF7F0;
  --ib-yellow:     #A05500;
  --ib-yellow-bg:  #FFF8EC;
  --ib-red:        #B82020;
  --ib-red-bg:     #FEF0F0;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 4px rgba(28,53,87,0.08);
  --shadow:        0 2px 10px rgba(28,53,87,0.11);
  --shadow-lg:     0 6px 24px rgba(28,53,87,0.15);
  --section-pad:   80px;
}

/* ── Typografi ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--ib-navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { color: var(--ib-text); }

a {
  color: var(--ib-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: #A04D14; }

/* ── Knappar ─────────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-primary {
  background: var(--ib-orange);
  color: #fff;
  border-color: var(--ib-orange);
  box-shadow: 0 2px 8px rgba(201,95,26,0.28);
}
.btn-primary:hover {
  background: #A94E14;
  border-color: #A94E14;
  box-shadow: 0 4px 14px rgba(201,95,26,0.36);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ib-navy);
  border-color: #B8C4D0;
}
.btn-outline:hover {
  background: var(--ib-bg-alt);
  border-color: var(--ib-navy);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ib-orange);
  border-color: var(--ib-orange);
  font-size: 0.82rem;
  padding: 7px 14px;
}
.btn-ghost:hover {
  background: var(--ib-orange-l);
  text-decoration: none;
}

/* ── Sektionsystem ───────────────────────────────────────── */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-inner.narrow { max-width: 680px; }

.section-lead {
  font-size: 1.02rem;
  color: var(--ib-text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── HEADER / NAV ────────────────────────────────────────── */
.site-nav {
  background: var(--ib-navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 400;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-logo:hover { color: #fff; }
.logo-icon { color: var(--ib-orange); }
.logo-text strong { font-weight: 800; }

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: #C8D8EA;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-cta-link {
  background: var(--ib-orange) !important;
  color: #fff !important;
  border-radius: 5px;
  font-weight: 700 !important;
}
.nav-cta-link:hover { background: #A94E14 !important; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #C8D8EA;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.nav-phone:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-phone-text { white-space: nowrap; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--ib-navy-mid);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0 12px;
}
.nav-mobile a {
  color: #C8D8EA;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-mobile.open { display: flex; }

/* ── Brödsmul ────────────────────────────────────────────── */
.breadcrumb {
  background: var(--ib-surface);
  border-bottom: 1px solid var(--ib-border);
}
.breadcrumb-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--ib-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-inner a { color: var(--ib-text-muted); }
.breadcrumb-inner a:hover { color: var(--ib-orange); }
.breadcrumb-inner [aria-current="page"] { font-weight: 600; color: var(--ib-navy); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--ib-navy);
  color: #fff;
  padding: 64px 20px 56px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1; }

.hero h1 {
  color: #fff;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.1rem;
  color: #C8D8EA;
  margin-bottom: 10px;
  line-height: 1.6;
  max-width: 560px;
}

.hero-sub {
  font-size: 0.95rem;
  color: #8FA8C4;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn-outline {
  color: #C8D8EA;
  border-color: rgba(200,216,234,0.5);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #C8D8EA;
  color: #fff;
}

.hero-badge {
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ── INTRO ───────────────────────────────────────────────── */
.intro-section {
  background: var(--ib-surface);
  padding: 56px 0;
  border-bottom: 1px solid var(--ib-border);
}

.intro-section h2 { margin-bottom: 16px; }
.intro-section p { color: var(--ib-text-muted); margin-bottom: 12px; }
.intro-section p:last-child { margin-bottom: 0; }

/* ── KALKYLATOR ──────────────────────────────────────────── */
.calc-section {
  background: var(--ib-bg);
  padding: var(--section-pad) 0;
}

.calc-card {
  background: var(--ib-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--ib-border);
  padding: 28px 26px;
}

.calc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.calc-card-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

/* Fält-grid: 2 kolumner på desktop */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}

.field-wrap { display: flex; flex-direction: column; gap: 5px; }
.field-wrap--full { grid-column: 1 / -1; }

.field-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ib-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.field-unit-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ib-text-muted);
  background: var(--ib-bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

.field-input,
.field-select {
  height: 50px;
  border: 1.5px solid var(--ib-border);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ib-text);
  background: #FAFAF8;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B7A' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field-input:focus,
.field-select:focus {
  border-color: var(--ib-navy);
  box-shadow: 0 0 0 3px rgba(28,53,87,0.15);
  background: #fff;
}

.field-input.is-error { border-color: var(--ib-red); }
.field-input.is-error:focus { box-shadow: 0 0 0 3px rgba(184,32,32,0.15); }

.field-hint {
  font-size: 0.74rem;
  color: var(--ib-text-muted);
  line-height: 1.4;
}

.field-error {
  font-size: 0.76rem;
  color: var(--ib-red);
  font-weight: 600;
  min-height: 16px;
}

/* Radio-knappar */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 11px 15px;
  border: 1.5px solid var(--ib-border);
  border-radius: 6px;
  background: #FAFAF8;
  flex: 1 1 auto;
  user-select: none;
  transition: border-color 0.13s, background 0.13s;
}

.radio-opt:has(input:checked) {
  border-color: var(--ib-navy);
  background: #EDF2F8;
}

.radio-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-box {
  width: 18px;
  height: 18px;
  border: 2px solid #B0BCC8;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.13s;
}

.radio-opt:has(input:checked) .radio-box {
  border-color: var(--ib-navy);
  background: var(--ib-navy);
}

.radio-opt:has(input:checked) .radio-box::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.radio-label-text { font-size: 0.88rem; font-weight: 500; }
.radio-label-text strong { font-weight: 700; }

/* Formulärknappar */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

/* ── RESULTAT ────────────────────────────────────────────── */
.results-section {
  background: var(--ib-bg-alt);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ib-border);
}

.results-section h2 { margin-bottom: 24px; }

/* Resultat-grupper */
.result-group {
  background: var(--ib-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ib-border);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.rg-title {
  background: var(--ib-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 16px 8px;
}

.rg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ib-border);
}

.rc {
  background: var(--ib-surface);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rc--accent { background: var(--ib-orange-l); }
.rc--formula { background: #F0F4FF; }
.rc--wide { grid-column: 1 / -1; }

.rc-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ib-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rc-label em { text-transform: none; font-style: normal; font-weight: 700; }

.rc-val-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.rc-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ib-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.rc-unit {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ib-text-muted);
}

.rc-note {
  font-size: 0.7rem;
  color: #9CAABB;
  font-style: italic;
}

.rc-ideal {
  font-size: 0.74rem;
  font-weight: 700;
  color: #3A4EAA;
  margin-top: 2px;
}

/* Åtgärdsknappar */
.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* ── SIDOVY / SVG ────────────────────────────────────────── */
.viz-section {
  background: var(--ib-surface);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ib-border);
}

.viz-section h2 { margin-bottom: 8px; }

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--ib-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dash {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2.5px dashed #4A7DB5;
  flex-shrink: 0;
}

.legend-beam {
  display: inline-block;
  width: 14px;
  height: 10px;
  background: rgba(201,95,26,0.2);
  border: 1.5px solid var(--ib-orange);
  flex-shrink: 0;
  border-radius: 2px;
}

.svg-frame {
  width: 100%;
  aspect-ratio: 620 / 420;
  background: #F8F8F6;
  border: 1.5px solid var(--ib-border);
  border-radius: var(--radius);
  overflow: hidden;
}

#stairSVG { width: 100%; height: 100%; }

/* ── BEDÖMNING / VARNINGAR ───────────────────────────────── */
.assessment-section {
  background: var(--ib-bg);
  padding: 48px 0;
  border-top: 1px solid var(--ib-border);
}

.assessment-section h2 { margin-bottom: 16px; }

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  border: 1.5px solid transparent;
}

.warning-icon {
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.warning-ok    { background: var(--ib-green-bg); border-color: #86EFAC; color: #145214; }
.warning-warn  { background: var(--ib-yellow-bg); border-color: #FDE68A; color: #6B3A00; }
.warning-error { background: var(--ib-red-bg); border-color: #FCA5A5; color: #7F1D1D; }

/* ── SÅ RÄKNAR VI ────────────────────────────────────────── */
.explainer-section {
  background: var(--ib-bg-alt);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ib-border);
}

.explainer-section h2 { margin-bottom: 12px; }

.formula-dl {
  display: flex;
  flex-direction: column;
}

.fd-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #E0DDD8;
  align-items: baseline;
}

.fd-row:last-child { border-bottom: none; }

.fd-row--em { padding-left: 6px; }

.fd-row--highlight {
  background: #FFFBEB;
  margin: 4px -20px;
  padding: 11px 20px;
  border-bottom: none;
  border-left: 3px solid var(--ib-orange);
  border-radius: 0 6px 6px 0;
}

.fd-row dt {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ib-text);
}

.fd-row dd {
  font-size: 0.83rem;
  color: var(--ib-text-muted);
  font-family: "SF Mono", "Consolas", monospace;
  list-style: none;
}

.fd-note {
  font-family: -apple-system, sans-serif;
  font-size: 0.76rem;
  color: var(--ib-orange);
  font-weight: 600;
}

/* ── CTA-SEKTION ─────────────────────────────────────────── */
.cta-section {
  background: var(--ib-navy);
  padding: var(--section-pad) 0;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }

.cta-section p { color: #B8CCDE; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── FÖRETAGSBLOCK ───────────────────────────────────────── */
.company-section {
  background: var(--ib-surface);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ib-border);
}

.company-section h2 { margin-bottom: 14px; }
.company-section p { color: var(--ib-text-muted); margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── KONTAKTFORMULÄR ─────────────────────────────────────── */
.contact-section {
  background: var(--ib-bg-alt);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ib-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px 60px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--ib-text-muted); margin-bottom: 24px; line-height: 1.6; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ib-text-muted);
}
.contact-detail-item svg { flex-shrink: 0; color: var(--ib-orange); }
.contact-detail-item a { color: var(--ib-navy); font-weight: 600; }

/* Formulär */
.inquiry-form {
  background: var(--ib-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ib-border);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.if-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.if-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.if-field--full { grid-column: 1 / -1; }

.if-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ib-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ib-text-muted);
}

.if-field input,
.if-field textarea {
  border: 1.5px solid var(--ib-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ib-text);
  background: #FAFAF8;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.if-field input:focus,
.if-field textarea:focus {
  border-color: var(--ib-navy);
  box-shadow: 0 0 0 3px rgba(28,53,87,0.12);
  background: #fff;
}

.inquiry-summary-field {
  font-family: "SF Mono", "Consolas", monospace !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  background: #F6F5F2 !important;
  color: #3A4F60 !important;
  resize: vertical;
}

.inquiry-summary-field:focus {
  background: #fff !important;
}

.if-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.if-privacy {
  font-size: 0.75rem;
  color: var(--ib-text-muted);
}
.if-privacy a { font-size: inherit; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ib-navy);
  color: #8FA8C4;
  padding: 48px 20px 0;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}
.footer-logo strong { font-weight: 800; }
.footer-brand p { font-size: 0.82rem; color: #7A9CB5; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-content: flex-start;
  padding-top: 4px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: #8FA8C4;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.footer-contact a {
  font-size: 0.88rem;
  color: #8FA8C4;
  text-decoration: none;
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0 20px;
}
.footer-bottom p { font-size: 0.78rem; color: #5A7A96; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ib-navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsivt ──────────────────────────────────────────── */

/* Mobil: alla fält i en kolumn */
@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 44px 16px 36px; }
  .hero-badge { display: none; }
  .hero-inner { flex-direction: column; }

  .field-grid { grid-template-columns: 1fr; }
  .field-wrap--full { grid-column: 1; }

  .rg-grid { grid-template-columns: 1fr; }
  .rc--wide { grid-column: 1; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .if-grid { grid-template-columns: 1fr; }
  .if-field--full { grid-column: 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .fd-row { grid-template-columns: 1fr; }
  .fd-row dd { padding-left: 12px; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  :root { --section-pad: 60px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-badge { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 769px) {
  .nav-burger { display: none; }
  .calc-card { padding: 36px 32px; }
  .section-inner { padding: 0 24px; }
}

/* ── Utskriftsstil ────────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .site-nav, .hero-actions, .breadcrumb,
  .form-actions, .result-actions,
  .cta-section, .company-section, .contact-section, .site-footer,
  .btn-primary, .btn-outline, .btn-ghost { display: none !important; }

  .hidden { display: block !important; }
  .results-section, .viz-section, .assessment-section { display: block !important; }

  .hero { background: #fff; padding: 20px 0; }
  .hero h1, .hero-lead, .hero-sub { color: #000; }

  .calc-section { display: none; }

  .result-group { box-shadow: none; border: 1px solid #ccc; }
  .rg-title { background: #1C3557; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rc--accent { background: #f9f9f9; }
  .rc--formula { background: #f5f5f5; }

  .viz-section { border: none; padding: 20px 0; }
  .svg-frame { border: 1px solid #ccc; }
  .viz-legend { display: none; }

  .explainer-section { background: #fff; padding: 20px 0; }
}
