/* ─────────────────────────────────────────────────────────────────────────
   Hundgården i Vasaparken — stilmall
   Varm, parkig känsla: naturliga gröna och sandiga toner, mjuka hörn, luftigt.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --green-900: #1f3d2b;
  --green-700: #2f6b46;
  --green-500: #4a9b6e;
  --sand-100: #f7f3ea;
  --sand-200: #efe7d6;
  --bark: #5a4632;
  --ink: #233028;
  --muted: #6b7a70;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(31, 61, 43, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1100px;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--green-900); }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

a { color: var(--green-700); }

img { max-width: 100%; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }
.container--narrow { width: min(720px, 92vw); }

/* Tillgänglighet: hoppa-till-innehåll + tydlig fokusmarkering */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-900); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ── Header / nav ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-200);
}
.nav {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  color: var(--green-900); text-decoration: none;
}
.brand__mark { font-size: 1.4rem; }
.nav__links {
  list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.nav__links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--green-700); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(74, 155, 110, .25), transparent),
    linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff;
  padding: clamp(3.5rem, 10vw, 7rem) 0;
}
.hero__inner { width: min(820px, 92vw); margin-inline: auto; text-align: center; }
.hero h1 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 700; color: #cfedda; margin: 0 0 .6rem;
}
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #eaf5ee; margin: 0 auto 2rem; max-width: 38ch; }
.hero__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ── Knappar ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; font-size: 1rem; font-family: var(--font-body);
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sand-100); color: var(--green-900); box-shadow: var(--shadow); }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* På ljus bakgrund ska ghost-knappen vara grön */
.section .btn--ghost { color: var(--green-700); border-color: var(--green-500); }
.section .btn--ghost:hover { background: rgba(74,155,110,.1); }

/* ── Sektioner ──────────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: var(--sand-200); }
.section__intro { color: var(--muted); max-width: 52ch; margin-top: -.2rem; margin-bottom: 2rem; }

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.feature-list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.feature-list span { font-size: 1.3rem; }

/* ── Statistik ──────────────────────────────────────────────────────────── */
.stat-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow); text-align: center; border: 1px solid rgba(31,61,43,.06);
}
.stat-card__icon { font-size: 2rem; }
.stat-card__value {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem); color: var(--green-700);
  margin: .3rem 0 .2rem; line-height: 1;
}
.stat-card__label { color: var(--ink); font-weight: 600; }
.stat-card__year { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.source { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; font-style: italic; }

/* ── Karta / plats ──────────────────────────────────────────────────────── */
.map-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; align-items: stretch; }
.map-info address { font-style: normal; font-weight: 700; margin: .4rem 0 1rem; }
.map-info .btn { margin-top: .5rem; }
.map-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--sand-100), var(--sand-100) 14px, var(--sand-200) 14px, var(--sand-200) 28px);
  border: 2px dashed var(--green-500); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; min-height: 240px; color: var(--green-900);
}
.map-placeholder span { font-size: 2.5rem; }
.map-placeholder p { font-weight: 700; margin: .5rem 0 .2rem; }
.map-placeholder small { color: var(--muted); }

/* ── Kort / evenemang ──────────────────────────────────────────────────── */
.card-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.event-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(31,61,43,.06);
}
.event-card__tag {
  display: inline-block; background: var(--green-500); color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: .8rem;
}

/* ── Nyhetsbrevsformulär ────────────────────────────────────────────────── */
.newsletter {
  background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow); display: grid; gap: 1.1rem; border: 1px solid rgba(31,61,43,.06);
}
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field label { font-weight: 700; font-size: .95rem; }
.field .muted, .req { font-weight: 400; color: var(--muted); }
.req { color: var(--green-700); }
.field input[type="email"],
.field input[type="text"] {
  padding: .75rem .9rem; border: 2px solid var(--sand-200); border-radius: var(--radius-sm);
  font: inherit; background: var(--sand-100); color: var(--ink);
}
.field input:focus { background: #fff; border-color: var(--green-500); outline: none; }
.field input[aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }

.field--check { gap: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green-700); }

.field__error { color: #c0392b; font-size: .85rem; margin: 0; font-weight: 600; }

.form-status { margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status--ok { background: #e7f5ec; color: var(--green-900); border: 1px solid var(--green-500); }
.form-status--err { background: #fdecea; color: #922b21; border: 1px solid #e6a39a; }

#newsletter-submit:disabled { opacity: .6; cursor: progress; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--green-900); color: #dfeee5; padding: 3rem 0 1.5rem; margin-top: auto; }
.footer-grid {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h2, .site-footer h3 { color: #fff; }
.footer__brand { font-size: 1.2rem; margin-bottom: .4rem; }
.site-footer a { color: #bfe6cf; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer__gdpr { font-size: .9rem; color: #b9d4c4; }
.footer__legal { text-align: center; color: #8fb3a0; font-size: .85rem; margin: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; }

/* ── Responsivt ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .map-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav__links { gap: .8rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
