/* ReliningVäst — shared stylesheet
   Brand: water-blue primary + amber CTA accent.
   Mobile-first, zero external fonts. */

:root {
  --primary: #14517a;
  --primary-dark: #0d3b5c;
  --primary-light: #2a7aa8;
  --accent: #e8841a;
  --accent-dark: #c66c0e;
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-alt: #eef3f7;
  --text: #1a2530;
  --text-soft: #4a5a6a;
  --text-mute: #6e7a86;
  --border: #d8dfe5;
  --success: #2d7a4a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 50, 0.06);
  --shadow: 0 2px 8px rgba(20, 35, 50, 0.08);
  --shadow-lg: 0 8px 24px rgba(20, 35, 50, 0.12);
  --max: 1080px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--primary-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.5em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0.3em 0; }

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

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 1.25rem; }

main { padding-bottom: 4rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.brand-name { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--primary); }
.nav .btn { color: var(--surface); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav .btn { margin-top: 0.5rem; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 0 3.5rem;
}
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

/* Sections */
section { padding: 2.5rem 0; }
section h2 { margin-top: 0; }

.section-alt { background: var(--surface-alt); }

/* Hero with side visual */
.hero-split { padding-bottom: 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-visual img {
  width: 100%;
  height: auto;
  max-width: 520px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-visual { order: 2; }
  .hero-visual img { max-width: 420px; }
}

/* Diagram / figure */
.diagram {
  margin: 1.8rem 0 2rem;
  text-align: center;
}
.diagram img {
  width: 100%;
  height: auto;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.diagram figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mute);
  font-style: italic;
}

/* Service icons */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--surface-alt);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 0.9rem;
}
.service-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}
.service-card { display: flex; flex-direction: column; }
.service-card h3 { margin-top: 0; }
.service-card .card-link { margin-top: auto; }

/* Cards */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.05s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-top: 0; color: var(--primary-dark); }
.card p { color: var(--text-soft); margin-bottom: 0.8rem; }
.card a.card-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.card a.card-link:hover { text-decoration: underline; }

/* Step list */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 1.2rem 3rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.steps li h4 { margin: 0 0 0.3rem; color: var(--primary-dark); }
.steps li p { margin: 0; color: var(--text-soft); }

/* Factor list (price page etc.) */
.factors {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.2rem;
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.factors ul { margin: 0; padding-left: 1.1rem; }
.factors li { margin: 0.45rem 0; }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--primary-dark);
}
.compare tr:nth-child(even) td { background: rgba(238, 243, 247, 0.4); }

/* FAQ */
.faq { margin: 1.5rem 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.6rem 0;
  background: var(--surface);
  transition: box-shadow 0.15s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.8rem 0 0; color: var(--text-soft); }

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form .field { margin-bottom: 1rem; }
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form .required::after {
  content: " *";
  color: var(--accent-dark);
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  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(--primary);
  box-shadow: 0 0 0 3px rgba(20, 81, 122, 0.12);
}
.form textarea { resize: vertical; min-height: 110px; }
.form .checkbox-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.form .checkbox-field input { margin-top: 0.2rem; flex-shrink: 0; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Disclaimer */
.disclaimer {
  border-left: 3px solid var(--primary);
  background: var(--surface-alt);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 2rem 0 1rem;
}
.disclaimer strong { color: var(--primary-dark); }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  gap: 0.5rem;
  z-index: 40;
  box-shadow: 0 -2px 12px rgba(20, 35, 50, 0.1);
}
.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.sticky-cta .sticky-phone {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.sticky-cta .sticky-offert {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.6rem; font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.35rem 0; }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Page header (non-hero pages) */
.page-header {
  background: var(--surface-alt);
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin: 0; }
.page-header p.lead { color: var(--text-soft); margin: 0.5rem 0 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0.5rem 0 0.8rem;
}
.breadcrumb a { color: var(--text-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* Trust strip */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.trust-item span { font-size: 0.88rem; color: var(--text-soft); }

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.1rem; color: var(--text-soft); }
.note { color: var(--text-mute); font-size: 0.88rem; }

/* Print */
@media print {
  .sticky-cta, .nav-toggle, .nav { display: none !important; }
  .hero { background: none; color: var(--text); }
  .hero h1 { color: var(--primary-dark); }
}
