/* Hunden & Du – varm, grön, jordnära. Ingen JavaScript, inga ramverk.
   Endast brett stödda CSS-funktioner (custom properties, flex, grid, clamp). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #244238;
  --forest-deep: #1a3129;
  --moss: #5f7a5a;
  --sage: #dfe6d6;
  --sand: #e9dfc9;
  --sand-light: #f3ecdd;
  --cream: #faf8f3;
  --terra: #b95e45;
  --terra-dark: #9a4a34;
  --ink: #20302a;
  --ink-soft: #46554e;
  --line: #d8cfbb;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius: 10px;
  --radius-small: 10px;
  --wrap: 1120px;
  --text: 42rem;
  --shadow: 0 1px 3px rgba(32, 48, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

p, ul, ol { margin: 0 0 1.1em; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--terra-dark); }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--text); }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.35rem); color: var(--ink-soft); }
.eyebrow {
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss); font-weight: 600; margin-bottom: .8em;
}
.plain { list-style: none; padding: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; }

.preview-notice {
  margin: 0; padding: .45rem 1.25rem; text-align: center;
  background: var(--sand); color: var(--ink); font-size: .9rem;
}

/* ── Knappar ── */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; text-align: center;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  line-height: 1.3; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); color: #fff; }
.btn-secondary { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-secondary:hover { background: var(--forest); color: #fff; }
.btn-small { padding: .55rem 1.1rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ── Sidhuvud ── */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--forest); }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.main-nav { flex: 1 1 auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; justify-content: flex-end; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: 1rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--forest); border-bottom-color: var(--sand); }
.main-nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--terra); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-by { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .header-call { margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav ul { flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; padding-bottom: .3rem; }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 1rem 0 0; margin: 0 0 0; font-size: .92rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--moss); }

/* ── Sektioner ── */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-foot { margin-top: 1.2rem; }
.section-sand { background: var(--sand-light); }
.section-sage { background: var(--sage); }
.section-forest { background: var(--forest); color: #eef2ea; }
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest a { color: #fff; }
.section-head { max-width: var(--text); margin-bottom: 2.2rem; }

/* Hero */
.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-photo { max-width: 400px; }
.hero-photo img { border-radius: var(--radius); }
.hero-note { font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .hero-photo { justify-self: end; }
}
@media (max-width: 859px) { .hero-photo { margin: 0 auto; width: 70%; } }

/* Tjänstelista */
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .service-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 0; } }
.service-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .service-list li { border-bottom: 0; border-top: 3px solid var(--forest); padding-top: 1rem; } }
.service-list h3 { margin-bottom: .3em; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a:hover { text-decoration: underline; }
.service-list p { color: var(--ink-soft); margin: 0; }

/* Kort */
.cards { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 600; }
.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--forest); }

/* Två kolumner */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split-reverse > :first-child { order: 2; } }
.rounded-photo img { border-radius: var(--radius); }
@media (max-width: 859px) { .hide-small { display: none; } }

/* Situationer */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-size: 1rem; }

/* Steg */
.steps { list-style: none; padding: 0; display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-bottom: .8rem;
  background: var(--forest); color: #fff; font-family: var(--serif); font-size: 1.2rem;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Värderingar */
.values { display: grid; gap: 1.2rem 2rem; list-style: none; padding: 0; }
@media (min-width: 760px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { padding-left: 1.6rem; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; top: .6em; width: .65rem; height: .65rem; border-radius: 50%; background: var(--terra); }
.values strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--forest); font-size: 1.15rem; }
.section-forest .values strong { color: #fff; }

/* Innehållssidor */
.page-intro { padding: clamp(2rem, 6vw, 3.5rem) 0 1rem; }
.content { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.content h2 { margin-top: 1.8em; }
.content ul { padding-left: 1.3rem; }
.content li { margin-bottom: .4em; }

.notice {
  border-left: 5px solid var(--terra); background: #fff; border-radius: var(--radius-small);
  padding: 1.1rem 1.3rem; margin: 2rem 0; box-shadow: var(--shadow);
}
.notice p:last-child { margin-bottom: 0; }
.notice-title { font-weight: 700; color: var(--terra-dark); margin-bottom: .3em; }

/* FAQ – svaren finns alltid i HTML, <details> kräver ingen JavaScript */
.faq-item { background: #fff; border-radius: var(--radius-small); margin-bottom: .8rem; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 600; color: var(--forest);
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.3rem; top: .9rem; font-size: 1.5rem; line-height: 1; color: var(--terra); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 1.3rem 1.1rem; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* Kontakt */
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-line { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 .3em; }
.contact-line a { text-decoration: none; }
.contact-label { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); font-weight: 600; margin: 1.2rem 0 .2rem; }

/* CTA-band */
.cta-band { background: var(--forest); color: #eef2ea; padding: clamp(2.8rem, 7vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn-secondary { border-color: #eef2ea; color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--forest); }

/* Sidfot */
.site-footer { background: var(--forest-deep); color: #cfd9cf; font-size: 1rem; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: .4em; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: .5em; }
.footer-grid li { margin-bottom: .35em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.2rem; font-size: .92rem; }
.footer-bottom p { margin-bottom: .4em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header nav, .cta-band, .skip-link, .preview-notice { display: none; }
}
