/* ============================================================
   tradfallningboras.se — shared styles
   Mobile-first, system fonts, no external requests
   ============================================================ */

:root {
  --white: #ffffff;
  --ink: #0f1f17;
  --forest: #14532d;
  --forest-dark: #0f3d22;
  --leaf: #166534;
  --leaf-soft: #f0fdf4;
  --leaf-line: #bbf7d0;
  --cta: #ea580c;
  --cta-hover: #c2410c;
  --cta-soft: #fff7ed;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --shadow-sm: 0 1px 2px rgba(15, 31, 23, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 31, 23, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1080px;
  --narrow: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--forest-dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-700); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; color: var(--gray-700); }
li { margin-bottom: 0.3em; }
strong { color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: var(--narrow);
  margin: 0 auto;
}

/* ----- Header ----- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a:hover { color: var(--forest); }
.nav .btn { font-size: 0.9rem; padding: 9px 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--forest);
  margin: 4px 0;
}

@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
    gap: 14px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
  .nav .btn { width: 100%; text-align: center; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  line-height: 1.2;
  min-height: 46px;
}
.btn-primary {
  background: var(--cta);
  color: var(--white);
}
.btn-primary:hover { background: var(--cta-hover); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--leaf-soft); color: var(--forest-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(180deg, var(--leaf-soft) 0%, var(--white) 100%);
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--leaf-line);
}
.hero-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 28px;
  box-shadow: 0 8px 30px rgba(15,31,23,0.12);
  display: block;
}
@media (max-width: 720px) {
  .hero-image { max-height: 240px; }
}
.eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--leaf-line);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 14px; }
.hero .lead {
  font-size: 1.2rem;
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 28px;
}
.hero .btn-row { margin-bottom: 18px; }
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--gray-600);
  font-size: 0.93rem;
}
.hero-trust span::before {
  content: "✓";
  color: var(--leaf);
  font-weight: 800;
  margin-right: 6px;
}

/* ----- Sections ----- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-leaf {
  background: var(--leaf-soft);
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-600);
}

/* ----- Grid + cards ----- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card h3 {
  margin-top: 0;
  color: var(--forest);
}
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--leaf);
}
.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--leaf-soft);
  color: var(--leaf);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ----- Steps ----- */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--gray-600); }

/* ----- Areas list ----- */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
}
.areas li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.93rem;
  color: var(--gray-700);
  margin: 0;
}

/* ----- CTA banner ----- */
.cta-banner {
  background: var(--forest);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-row { justify-content: center; }

/* ----- FAQ ----- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq details[open] {
  border-color: var(--leaf);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--leaf);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p,
.faq details > ul { margin-top: 12px; color: var(--gray-700); }

/* ----- Pricing factors ----- */
.factors {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.factors li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 14px 18px;
  border-radius: var(--radius);
}
.factors li strong {
  color: var(--forest);
  display: block;
  margin-bottom: 2px;
}

/* ----- Form ----- */
.form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form-row {
  margin-bottom: 16px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-row-2 .form-row { margin-bottom: 16px; }
  .form { padding: 22px 18px; }
}
.form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.form .req { color: var(--cta); }
.form .hint {
  display: block;
  font-size: 0.83rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(22,101,52,0.18);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.form .consent input { margin-top: 3px; flex: none; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}
.form .btn { margin-top: 4px; }

/* ----- Callout ----- */
.callout {
  background: var(--leaf-soft);
  border-left: 4px solid var(--leaf);
  padding: 18px 22px;
  border-radius: 8px;
  color: var(--gray-700);
}
.callout strong { color: var(--forest); }

/* ----- Breadcrumb ----- */
.crumbs {
  font-size: 0.9rem;
  color: var(--gray-500);
  padding: 16px 0 0;
}
.crumbs a { color: var(--gray-600); text-decoration: none; }
.crumbs a:hover { color: var(--forest); }
.crumbs span[aria-current] { color: var(--forest); font-weight: 600; }

/* ----- Footer ----- */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 44px 0 28px;
  color: var(--gray-600);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  margin: 0 0 12px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 6px; }
.footer-grid a {
  color: var(--gray-600);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--forest); text-decoration: underline; }
.footer-disclaimer {
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
  font-size: 0.83rem;
  color: var(--gray-500);
  line-height: 1.55;
}
.footer-bottom {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--gray-500);
}

/* ----- Cookies banner ----- */
.cookies {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 35px rgba(15, 31, 23, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  z-index: 100;
  display: none;
  font-size: 0.93rem;
  color: var(--gray-700);
}
.cookies.is-visible { display: block; }
.cookies h2 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--forest);
}
.cookies p { margin: 0 0 12px; }
.cookies-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookies-actions .btn { padding: 9px 16px; font-size: 0.92rem; min-height: 0; }
.cookies-link { color: var(--leaf); }
@media (max-width: 520px) {
  .cookies { padding: 16px 18px; }
  .cookies-actions .btn { flex: 1; }
}

/* ----- Related pages footer (above main footer) ----- */
.related {
  background: var(--gray-50);
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
}
.related h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--forest);
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.related-list a {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.related-list a:hover {
  border-color: var(--leaf);
  color: var(--forest-dark);
}

/* ----- Article / content prose ----- */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p,
.prose li { font-size: 1rem; line-height: 1.7; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}
.prose th {
  background: var(--leaf-soft);
  color: var(--forest);
  font-weight: 600;
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.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;
}
