/* =========================================================================
   Samarbetsbolaget – delat stilblad
   Byt accentfärg på EN rad: --primary nedan.
   ========================================================================= */

:root {
  /* --- Färg: byt --primary för att testa ny accent --- */
  --primary: #8a1e2c;          /* loggans mörkröda */
  --primary-strong: #6d1622;   /* mörkare vid hover */
  --primary-wash: #f7e9e9;     /* mycket ljus röd ton (ikonplattor, CTA) */
  --accent-bright: #d42836;    /* loggans klarröda – används mycket sparsamt */

  --bg: #fbf8f5;               /* varm off-white */
  --bg-alt: #f3ece7;           /* varm sektionston */
  --card: #ffffff;
  --ink: #2b2320;              /* rubriker och brödtext */
  --muted: #6e645d;            /* dämpad text */
  --border: #e7ddd6;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(43, 35, 32, .04), 0 8px 24px rgba(43, 35, 32, .06);
  --shadow-lg: 0 12px 40px rgba(43, 35, 32, .12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-strong); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }

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

/* Fokus – tillgänglighet */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* =========================== Signaturmärke (loggans öglor) ============= */
.mark { display: inline-block; width: 30px; height: 30px; color: var(--primary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow .mark { width: 22px; height: 22px; }

/* =========================== Navigering =============================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 248, 245, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .05s ease;
}
.btn:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary-wash); color: var(--primary-strong); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 15px 32px; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }

/* =========================== Sektioner ================================ */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section--wash { background: linear-gradient(160deg, var(--primary-wash), var(--bg) 60%); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); line-height: 1.6; }

/* =========================== Hero ===================================== */
.hero { position: relative; padding: 168px 0 104px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--bg) 32%, rgba(251,248,245,.72)); }
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; }
.hero h1 span { color: var(--primary); font-style: italic; }
.hero .lead { margin: 20px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero { padding: 150px 0 72px; text-align: center; }
.page-hero .container { max-width: 800px; }
.page-hero h1 span { color: var(--primary); font-style: italic; }
.page-hero p { margin-top: 14px; }

/* =========================== Kort-rutnät ============================== */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(138,30,44,.35); }
.card h3 { margin-bottom: 10px; }
.card-desc { color: var(--muted); }

.chip {
  width: 60px; height: 60px; border-radius: 18px; background: var(--primary-wash);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--primary);
}
.chip svg { width: 30px; height: 30px; }

.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; margin-top: 6px; }
.card-link .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.card-link:hover .ico { transform: translateX(3px); }

/* Badge (GRATIS / Kommer snart) */
.badge { position: absolute; top: 18px; right: 18px; font-size: .78rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; }
.badge--free { background: #1a7a44; color: #fff; }
.badge--soon { background: var(--primary); color: #fff; }
.card.pos { position: relative; overflow: hidden; }

/* =========================== CTA-block =============================== */
.cta {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--primary-wash), rgba(255,255,255,.4));
  border: 1px solid rgba(138,30,44,.2); border-radius: var(--radius-lg);
  padding: 64px 40px;
}
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; }

/* =========================== Tjänste-block ========================== */
.service { border: 3px solid var(--primary); border-radius: 40px; padding: 44px; background: var(--card); margin-bottom: 48px; transition: box-shadow .25s ease; }
.service:hover { box-shadow: var(--shadow-lg); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.service-media { aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; border: 4px solid rgba(138,30,44,.18); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service.rev .service-media { order: 2; }
.service h2 { margin-bottom: 12px; }
.service-tagline { font-weight: 600; font-size: 1.12rem; margin-bottom: 10px; }
.service-desc { color: var(--muted); margin-bottom: 22px; }

/* =========================== Läs mer (native details) =============== */
.more { margin: 4px 0 24px; }
.more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; padding: 6px 0;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary .chev { width: 20px; height: 20px; transition: transform .2s ease; }
.more[open] > summary .chev { transform: rotate(180deg); }
.more .label-close { display: none; }
.more[open] .label-open { display: none; }
.more[open] .label-close { display: inline; }
.more-body { margin-top: 20px; padding: 26px; background: var(--bg-alt); border-radius: var(--radius); }
.more-body > *:last-child { margin-bottom: 0; }
.more-body h4 { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 22px 0 10px; }
.more-body h4 .dot { color: var(--primary); }
.more-body ul, .more-body ol { padding-left: 0; list-style: none; margin: 0 0 12px; }
.more-body li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); }
.more-body ul li::before { content: "•"; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }
.more-body ol { counter-reset: step; }
.more-body ol > li { padding-left: 0; margin-bottom: 14px; color: var(--muted); }
.more-body ol > li strong { color: var(--ink); }
.more-body .sub { font-size: .95rem; }
.more-body .callout { background: var(--primary-wash); border-left: 4px solid var(--primary); border-radius: 8px; padding: 18px 20px; }
.more-body em { color: var(--ink); }

/* =========================== Team (Vi är) ========================== */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 980px; margin: 0 auto; }
.person { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.person-photo { height: 280px; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-body { padding: 34px; }
.person .role { color: var(--primary); font-weight: 600; margin: 4px 0 16px; }
.person-intro { color: var(--muted); }
.contact-lines { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--border); }
.contact-lines a { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; }
.contact-lines a:hover { color: var(--primary); }
.contact-lines svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.tag { background: var(--primary-wash); color: var(--primary); font-size: .85rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; }

.panel { background: var(--card); border: 1px solid rgba(138,30,44,.14); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.panel--center { text-align: center; }

/* =========================== Referenser ============================ */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1040px; margin: 0 auto; }
.quote-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); transition: box-shadow .25s ease, transform .25s ease; }
.quote-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.quote-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-wash); display: grid; place-items: center; color: var(--primary); margin-bottom: 18px; }
.quote-mark svg { width: 28px; height: 28px; }
.quote-text { font-style: italic; color: var(--muted); margin-bottom: 20px; }
.quote-by { padding-top: 16px; border-top: 1px solid var(--border); }
.quote-by strong { color: var(--ink); }
.quote-by span { display: block; font-size: .9rem; color: var(--muted); }

.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.client { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; font-size: .9rem; transition: border-color .2s ease, background .2s ease; }
.client:hover { border-color: var(--primary); background: var(--primary-wash); }

/* =========================== Kontakt ============================== */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; max-width: 1040px; margin: 0 auto; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(138,30,44,.14); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; margin-bottom: 14px; }
.info-row:last-child { margin-bottom: 0; }
.info-row svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 3px; }
.info-row .lbl { font-size: .82rem; color: var(--muted); margin-bottom: 2px; }

/* =========================== Footer =============================== */
.footer { background: var(--card); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 36px; padding: 56px 0 0; }
.footer h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.footer p, .footer a { color: var(--muted); font-size: .94rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.footer-bottom { text-align: center; padding: 30px 0; margin-top: 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

/* =========================== Responsivt =========================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; padding: 16px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-2, .team, .quote-grid, .contact-layout { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 26px; }
  .service.rev .service-media { order: 0; }
  .service-media { max-width: 340px; margin: 0 auto; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 68px 0; }
  .hero { padding: 140px 0 76px; }
}

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