/* ==========================================================
   Mansgrupp.org – stilmall
   Färger och typsnitt styrs av variablerna i :root nedan.
   ========================================================== */

@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2a24;          /* mörk skogsgrön – rubriker, mörka sektioner */
  --text: #2e3430;         /* brödtext */
  --muted: #5f6862;
  --bg: #f7f4ee;           /* varm sand */
  --bg-alt: #ede7dc;
  --card: #fffdf9;
  --line: #d9d1c3;
  --accent: #b4572d;       /* rost/ockra – knappar, detaljer */
  --accent-dark: #8f4220;
  --on-dark: #f3eee5;

  --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --space: clamp(4rem, 9vw, 7rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--on-dark); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: .8rem;
}
.lead { font-size: 1.22rem; color: var(--ink); }
.small { font-size: .95rem; opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; margin: 0;
}
.logo span { color: var(--accent); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: .95rem; color: var(--ink); text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav .nav-cta {
  background: var(--accent); color: #fff; padding: .45rem .95rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Knappar ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.btn {
  display: inline-block;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: 1rem; text-decoration: none;
  padding: .9rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(180, 87, 45, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(120, 150, 120, .25), transparent 60%),
    linear-gradient(100deg, rgba(22, 30, 26, .92) 0%, rgba(22, 30, 26, .72) 55%, rgba(22, 30, 26, .45) 100%),
    url("img/hero.jpg") center / cover no-repeat,
    var(--ink);
  color: var(--on-dark);
  padding: clamp(5rem, 14vw, 10rem) 0 clamp(4.5rem, 11vw, 8rem);
}
/* diskret cirkel – mansgruppen som sitter i ring */
.hero::after {
  content: ""; position: absolute; right: -8vw; top: 50%;
  width: min(56vw, 640px); aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(243, 238, 229, .14);
  box-shadow: 0 0 0 40px rgba(243, 238, 229, .03), 0 0 0 80px rgba(243, 238, 229, .025);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 46rem; margin-left: max(1.25rem, (100% - var(--wrap)) / 2); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #e9a37f; }
.hero-lead { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; letter-spacing: .02em; }
.hero .btn-ghost { color: var(--on-dark); }
.hero .btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* ---------- Sektioner ---------- */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: var(--on-dark); }
.section-dark .eyebrow { color: #e9a37f; }
.section-dark .btn-ghost { color: var(--on-dark); }
.section-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

.section-head { max-width: 48rem; margin-bottom: 2.5rem; }

.two-col { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 5fr 7fr; align-items: start; } }
#kurs .two-col { grid-template-columns: none; }
@media (min-width: 860px) { #kurs .two-col { grid-template-columns: 7fr 5fr; } }

.prose { max-width: 40rem; }

/* Höjdpunkter */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.highlights li {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.highlights strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; }

/* Checklista */
.list-title { margin-top: 3.5rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 2.5rem; }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { position: relative; padding-left: 2.2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Citat */
.quotes { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.8rem 1.6rem; position: relative;
  display: flex; flex-direction: column;
}
.quote::before {
  content: "”"; position: absolute; top: -.35rem; left: 1.3rem;
  font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--accent);
}
.quote blockquote { margin: 0 0 1.2rem; flex: 1; }
.quote figcaption {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  font-size: .85rem; color: var(--muted);
}

/* Kursfakta */
.facts { margin: 0; display: grid; gap: 0; }
.facts > div {
  display: grid; gap: .2rem 1.5rem; padding: 1rem 0;
  border-bottom: 1px solid rgba(243, 238, 229, .16);
}
.facts > div:first-child { border-top: 1px solid rgba(243, 238, 229, .16); }
@media (min-width: 600px) { .facts > div { grid-template-columns: 9rem 1fr; } }
.facts dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: #e9a37f; font-size: .95rem; padding-top: .1em; }
.facts dd { margin: 0; }

/* Callout */
.callout {
  display: grid; gap: 1.5rem 3rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.8rem, 5vw, 3.5rem);
}
@media (min-width: 860px) { .callout { grid-template-columns: 1fr auto; } }
.callout h2 { max-width: 34rem; }
.callout p:last-child { margin-bottom: 0; }

/* Personer */
.people { display: grid; gap: 1.5rem; }
.person {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.person h3 { margin-bottom: .3em; }
.person p { margin: 0; }
.avatar {
  width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .05em;
}

/* Foto */
.photo { margin: 2rem 0 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    linear-gradient(rgba(22, 30, 26, .9), rgba(22, 30, 26, .94)),
    url("img/bakgrund-footer.jpg") center / cover no-repeat,
    #161e1a; color: #c9c3b8; padding: 3.5rem 0; }
.footer-inner { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr; align-items: end; } }
.site-footer .logo { color: #fff; margin-bottom: .6rem; }
.site-footer p { max-width: 38rem; margin: 0; }
.site-footer a { color: #fff; font-family: var(--font-head); letter-spacing: .05em; font-size: 1.15rem; }
.site-footer a:hover { color: #e9a37f; }
@media (min-width: 760px) { .site-footer p:last-child { text-align: right; } }

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .header-inner { padding: .7rem 0; }
  .nav { gap: .3rem 1rem; }
  .nav a { font-size: .85rem; }
  .btn { width: 100%; text-align: center; }
}
