/* ═══════════════════════════════════════════════════════════════
   LOCAL SEO ENGINE – Base Stylesheet
   Mobile-first, conversion-optimised, earthy craftsman palette
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --primary:      #2c3a25;
  --primary-dark: #1a2218;
  --primary-light:#ebede6;
  --accent:       #a07830;
  --accent-light: #fdf7ed;
  --text:         #1c1917;
  --text-muted:   #78716c;
  --border:       #d6cfc7;
  --bg:           #fafaf9;
  --bg-alt:       #f2ede5;
  --radius:       4px;
  --shadow:       0 2px 16px rgba(0,0,0,.10);
  --max-w:        900px;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-head:    'Fraunces', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

section { padding: 3rem 0; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
}

.site-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  flex-shrink: 0;
  margin-right: auto;
}

.site-logo:hover { text-decoration: none; color: var(--primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.site-nav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .15s;
}

.site-nav a:hover { color: var(--primary); text-decoration: none; }

/* Header CTA button */
.header-cta {
  font-size: .85rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: .45rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}

.header-cta:hover { background: #8a6826; text-decoration: none; }

/* Hamburger (CSS-only) */
.nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: .35rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Buttons / CTAs ─────────────────────────────────────────── */
.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
}

.cta-primary:hover { background: #8a6826; text-decoration: none; transform: translateY(-1px); }

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.25rem;
}

/* Phone as text – default (light background) */
.phone-line {
  font-size: .92rem;
  color: var(--text-muted);
}

.phone-line a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

.phone-line a:hover { color: var(--accent); text-decoration: none; }

/* Phone line on dark (hero/CTA) background */
.hero .phone-line,
.cta-section .phone-line {
  color: rgba(255,255,255,.7);
  margin-top: .5rem;
}

.hero .phone-line a,
.cta-section .phone-line a {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.4);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.hero.has-image {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,34,24,.88) 0%, rgba(44,58,37,.72) 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .6rem;
  max-width: 640px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 500px;
  margin-bottom: 0;
}

/* ── Intro ──────────────────────────────────────────────────── */
.intro { background: var(--bg); }

.intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 0;
}

/* ── Trust grid ─────────────────────────────────────────────── */
.trust { background: var(--bg-alt); padding: 2rem 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.trust-icon {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .1rem;
}

.trust-card strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.trust-card small {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Content images (small strip before CTA) ────────────────── */
.content-images {
  background: var(--bg-alt);
  padding: 2rem 0;
}

.content-thumbs {
  display: flex;
  gap: 1rem;
}

.content-thumb {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 200px;
}

.content-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Price section ──────────────────────────────────────────── */
.price { background: var(--bg); }

.price h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.price-range {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: .75rem;
  font-weight: 600;
}

.price p { color: var(--text-muted); margin-bottom: 1.25rem; max-width: 620px; }

/* ── Process ────────────────────────────────────────────────── */
.process { background: var(--bg-alt); }

.process h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.process-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.process-steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-steps li::before {
  content: counter(step);
  min-width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.process-steps li strong { display: block; font-size: .98rem; margin-bottom: .25rem; }
.process-steps li p      { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--bg); }

.faq h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.4;
}

.faq-item p {
  font-size: .92rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-benefits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  margin-bottom: 1.75rem;
  font-size: .9rem;
  opacity: .85;
}

.cta-benefits li::before {
  content: "✓ ";
  opacity: .7;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.cta-section .cta-primary {
  font-size: 1.05rem;
  padding: .9rem 2.2rem;
  background: var(--accent);
}

.cta-section .cta-primary:hover { background: #8a6826; }

/* ── Page links bar ─────────────────────────────────────────── */
.page-links {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: .85rem 0;
}

.page-links .container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-links a {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.page-links a:hover { color: var(--primary); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.55);
  padding: 2rem 0;
  font-size: .85rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,.55);
  font-weight: 500;
  transition: color .15s;
}

.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-copy { color: rgba(255,255,255,.3); }

/* ── Simple pages (om-oss, kontakt) ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.page-hero p { opacity: .9; max-width: 540px; }

.om-oss-content,
.kontakt-content { padding: 3rem 0; }

.om-oss-content h2,
.kontakt-content h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 .6rem;
}

.om-oss-content h2:first-child,
.kontakt-content h2:first-child { margin-top: 0; }

.om-oss-content p,
.kontakt-content p {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: .75rem;
}

.om-oss-content ul {
  margin: .5rem 0 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.page-cta .cta-primary  { background: var(--accent); }
.page-cta .cta-primary:hover { background: #8a6826; }
.page-cta .cta-secondary {
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
}

/* ── Contact form ───────────────────────────────────────────── */
.kontakt-info {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.kontakt-info li { margin-bottom: .4rem; }

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.form-group { display: flex; flex-direction: column; gap: .3rem; }

.kontakt-form label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

.kontakt-form input,
.kontakt-form textarea {
  padding: .65rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160,120,48,.12);
}

.kontakt-form textarea { resize: vertical; min-height: 120px; }

.kontakt-form button.cta-primary {
  align-self: flex-start;
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.kontakt-form button.cta-primary:hover { background: #8a6826; }

.back-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.back-links a { font-size: .9rem; color: var(--text-muted); }
.back-links a:hover { color: var(--primary); }

/* ── Pris page ──────────────────────────────────────────────── */
.pris-intro { background: var(--bg); }
.pris-intro p { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; }

.pris-faktorer { background: var(--bg-alt); }
.pris-faktorer h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.faktorer-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.faktorer-list li {
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.faktorer-list li strong {
  display: block;
  font-size: .98rem;
  margin-bottom: .3rem;
}

.faktorer-list li p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hamburger visible */
  .nav-burger { display: flex; }

  /* Header CTA hidden at tablet — it's in the nav */
  .header-cta { display: none; }

  /* Nav collapses */
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    z-index: 99;
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }

  /* Animate burger → X */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  .content-image { max-height: 220px; }
  .cta-benefits { flex-direction: column; align-items: center; gap: .35rem; }
}

@media (max-width: 600px) {
  .hero { padding: 2.75rem 0 2.25rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .process-steps li { flex-direction: column; gap: .5rem; }
  .cta-section { padding: 3rem 0; }
}
