/* Bergsjöns Vägledningscenter — calm, light, one accent colour.
   System fonts only: no third-party requests, fast on phones. */
:root {
  --accent: #2d6a64;
  --accent-dark: #1f4f4a;
  --accent-soft: #e6f0ee;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #1d2422;
  --muted: #4f5b58;
  --line: #dde3e0;
  --focus: #c27a2c;
  --radius: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

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

.wrap {
  width: min(1040px, 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(720px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: none;
}

.header-cta {
  display: none;
}

@media (min-width: 720px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--accent-soft) 100%);
  padding: 56px 0 64px;
}

.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    padding: 88px 0 96px;
  }
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.illustration {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

/* Sections */
section {
  padding: 64px 0;
}

@media (min-width: 860px) {
  section {
    padding: 88px 0;
  }
}

.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

/* "What we want to do" */
.goals {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .goals {
    grid-template-columns: 1fr 1fr;
  }
}

.goals li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.goals .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.goals .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.goals p {
  margin: 0;
  color: var(--muted);
}

/* Petition form */
.petition {
  background: var(--accent-soft);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-top: 28px;
  box-shadow: 0 20px 40px -32px rgba(29, 36, 34, 0.45);
}

@media (min-width: 720px) {
  .form-card {
    padding: 36px;
  }
}

.counter {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.field {
  margin-bottom: 22px;
}

.field > label,
.field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

.req {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.hint {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input[type='text'],
input[type='email'] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #b9c4c0;
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

input[type='text']:focus,
input[type='email']:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(45, 106, 100, 0.2);
  outline-offset: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.choice input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}

.choices {
  display: grid;
  gap: 2px;
}

.consent {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-error {
  display: none;
  background: #fdf0ee;
  border: 1px solid #f0c5bd;
  color: #7d2a1d;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.form-error.on {
  display: block;
}

[aria-invalid='true'] {
  border-color: #b4412f !important;
}

/* Honeypot: off-screen for people, still filled in by bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--muted);
  padding-bottom: 8px;
}

/* Contact */
.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.contact-box a {
  font-weight: 700;
  word-break: break-all;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e7ecea;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.site-footer a {
  color: #fff;
}

/* Simple pages (tack, integritetspolicy, 404) */
.page {
  padding: 56px 0 80px;
}

.page h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 8px;
}

.thanks {
  text-align: center;
  padding: 80px 0;
}

.thanks .check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.thanks .check svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* fixes: later rules win over .btn / .counter / .field > label */
.btn.header-cta {
  display: none;
}

@media (min-width: 720px) {
  .btn.header-cta {
    display: inline-flex;
  }
}

.counter[hidden] {
  display: none;
}

.field > label.choice {
  font-weight: 400;
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .goals .goal-wide {
    grid-column: 1 / -1;
  }
}
