/* ==========================================================================
   Sambostäder — designsystem
   Palett: havregrynslinne, skogsgrön bläck, lergods-accent
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 660px;
  --content-default: 980px;
  --content-wide: 1320px;

  --font-display: 'Cabinet Grotesk', 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
}

:root,
[data-theme='light'] {
  --color-bg: #f1efe6;
  --color-surface: #f8f6ef;
  --color-surface-2: #fcfbf7;
  --color-surface-offset: #e8e5d9;
  --color-surface-offset-2: #ded9ca;
  --color-divider: #ddd9cb;
  --color-border: #cec9b8;

  --color-text: #1e2a22;
  --color-text-muted: #62695d;
  --color-text-faint: #9a9c8f;
  --color-text-inverse: #f6f4ec;

  --color-primary: #2c4433;
  --color-primary-hover: #223528;
  --color-primary-highlight: #d9e0d5;

  --color-accent: #2f8a72;
  --color-accent-hover: #266f5c;
  --color-accent-highlight: #d5e7e0;

  --color-brand-teal: #5cae98;
  --color-brand-grey: #8b8f86;

  --shadow-sm: 0 1px 2px oklch(0.25 0.02 120 / 0.07);
  --shadow-md: 0 6px 20px oklch(0.25 0.02 120 / 0.09);
  --shadow-lg: 0 20px 50px oklch(0.25 0.02 120 / 0.14);

  --header-bg: rgba(241, 239, 230, 0.86);
}

[data-theme='dark'] {
  --color-bg: #151814;
  --color-surface: #1b1f1a;
  --color-surface-2: #20241e;
  --color-surface-offset: #1e221c;
  --color-surface-offset-2: #262a23;
  --color-divider: #272b24;
  --color-border: #3b4038;

  --color-text: #ddddd3;
  --color-text-muted: #8e9288;
  --color-text-faint: #626659;
  --color-text-inverse: #151814;

  --color-primary: #9dbfa4;
  --color-primary-hover: #b7d2bc;
  --color-primary-highlight: #2a352c;

  --color-accent: #6cbfa5;
  --color-accent-hover: #8bd2bb;
  --color-accent-highlight: #223330;

  --color-brand-teal: #6cbfa5;
  --color-brand-grey: #c3c8bd;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 20px 50px rgb(0 0 0 / 0.5);

  --header-bg: rgba(21, 24, 20, 0.86);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    opacity var(--transition-interactive);
}

ul[role='list'] {
  list-style: none;
}

::selection {
  background: var(--color-accent-highlight);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 900px) {
  .wrap {
    padding-inline: var(--space-10);
  }
}

.narrow {
  max-width: var(--content-narrow);
}
.default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-5);
  display: block;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 40ch;
}

.body-copy p + p {
  margin-top: var(--space-5);
}
.body-copy p {
  max-width: 68ch;
  color: var(--color-text-muted);
}
.body-copy h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fdfaf7;
}
[data-theme='dark'] .btn--primary {
  color: #1a1310;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-text);
  background: var(--color-surface-offset);
}

.btn--light {
  background: rgba(252, 251, 247, 0.94);
  color: #1e2a22;
}
.btn--light:hover {
  background: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}
.link-arrow svg {
  transition: transform var(--transition-interactive);
}
.link-arrow:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 250ms ease,
    background 250ms ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--color-divider);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand__logo {
  display: block;
  height: 19px;
  width: auto;
  flex-shrink: 0;
}
.brand__logo .logo-sam {
  fill: var(--color-brand-teal);
}
.brand__logo .logo-bost {
  fill: var(--color-brand-grey);
}
[data-theme='dark'] .brand__logo .logo-bost {
  fill: #b6bab0;
}
.site-footer .brand__logo {
  height: 22px;
}
.mobile-nav .brand__logo {
  height: 18px;
}
@media (max-width: 699px) {
  .brand__logo { height: 17px; }
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--color-text);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.icon-btn:hover {
  background: var(--color-surface-offset);
}

.header__cta {
  display: none;
}

@media (min-width: 1080px) {
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
}

/* mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-bg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  transform: translateY(-100%);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-nav:not(.is-open) {
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
}
.mobile-nav__links a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  display: block;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

/* ---------- hero ---------- */
.hero {
  padding-block: var(--space-6) var(--space-12);
}
.hero__frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(600px, 82vh, 780px);
  display: flex;
  align-items: flex-end;
}
.hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgba(17, 24, 19, 0.9) 0%,
      rgba(17, 24, 19, 0.68) 34%,
      rgba(17, 24, 19, 0.28) 62%,
      rgba(17, 24, 19, 0.06) 88%
    ),
    linear-gradient(to right, rgba(17, 24, 19, 0.5) 0%, rgba(17, 24, 19, 0) 62%);
}
.hero__content {
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  max-width: 760px;
  color: #f7f5ee;
}
.hero__content .eyebrow {
  color: #e6d0bd;
}
.hero__title {
  font-size: var(--text-3xl);
  color: #fbf9f3;
  margin-bottom: var(--space-6);
}
.hero__title em {
  font-style: normal;
  color: #a8dcc7;
}
.hero__text {
  font-size: var(--text-lg);
  max-width: 44ch;
  color: rgba(249, 247, 241, 0.94);
  margin-bottom: var(--space-8);
}

@media (max-width: 699px) {
  .hero__frame {
    min-height: 640px;
  }
  .page-hero__figure,
  .split__media {
    aspect-ratio: 4 / 3 !important;
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* page hero (inner pages) */
.page-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-10);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  max-width: 24ch;
}
.page-hero__figure {
  margin-top: clamp(var(--space-8), 5vw, var(--space-16));
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.page-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- split ---------- */
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-text {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--reverse .split__media {
    order: 2;
  }
}
.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface-offset);
}
.split__media--wide {
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__body h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.split__body p {
  color: var(--color-text-muted);
  max-width: 52ch;
}
.split__body p + p {
  margin-top: var(--space-5);
}
.split__body .btn,
.split__body .link-arrow {
  margin-top: var(--space-8);
}

/* ---------- section head ---------- */
.section-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}
.section-head h2 {
  font-size: var(--text-xl);
  max-width: 22ch;
}
.section-head p {
  color: var(--color-text-muted);
  max-width: 46ch;
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  gap: var(--space-8);
  list-style: none;
  counter-reset: p;
}
@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pillars li {
  counter-increment: p;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.pillars li::before {
  content: '0' counter(p);
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.pillars h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.pillars p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- projects ---------- */
.projects {
  display: grid;
  gap: var(--space-10);
  list-style: none;
}
@media (min-width: 800px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
.project {
  display: flex;
  flex-direction: column;
}
.project__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-5);
  background: var(--color-surface-offset);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.project:hover .project__media img {
  transform: scale(1.04);
}
.project__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.tag {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}
[data-theme='dark'] .tag {
  color: var(--color-primary);
}
.project h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.project p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.project__facts {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.project__facts li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.project__facts span:first-child {
  color: var(--color-text-faint);
}
.project__facts span:last-child {
  font-weight: 700;
}

/* ---------- band (dark green) ---------- */
.band {
  background: var(--color-primary);
  color: #f2f1e7;
}
[data-theme='dark'] .band {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.band h2 {
  color: inherit;
}
.band .eyebrow {
  color: #cbb39d;
}
[data-theme='dark'] .band .eyebrow {
  color: var(--color-accent);
}
.band p {
  color: rgba(242, 241, 231, 0.78);
}
[data-theme='dark'] .band p {
  color: var(--color-text-muted);
}
.band .btn--ghost {
  border-color: rgba(242, 241, 231, 0.4);
  color: #f2f1e7;
}
.band .btn--ghost:hover {
  background: rgba(242, 241, 231, 0.1);
  border-color: #f2f1e7;
}
[data-theme='dark'] .band .btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  gap: var(--space-8);
  list-style: none;
}
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats li {
  border-top: 1px solid rgba(242, 241, 231, 0.28);
  padding-top: var(--space-5);
}
[data-theme='dark'] .stats li {
  border-color: var(--color-border);
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.stats span {
  font-size: var(--text-sm);
  opacity: 0.75;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: var(--space-8);
  list-style: none;
  counter-reset: s;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  counter-increment: s;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fdfaf7;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-5);
}
[data-theme='dark'] .steps li::before {
  color: #1a1310;
}
.steps h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.steps p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  gap: var(--space-6);
  list-style: none;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.card__icon {
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

/* ---------- quote ---------- */
.quote {
  max-width: 30ch;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
}

/* ---------- form ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-highlight);
}
.field--row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .field--row {
    grid-template-columns: 1fr 1fr;
  }
}
.checkbox {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.form-success {
  display: none;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.form-success.is-visible {
  display: block;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1fr;
  }
}
.contact-block + .contact-block {
  margin-top: var(--space-10);
}
.contact-block h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.contact-block p,
.contact-block a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact-block a:hover {
  color: var(--color-accent);
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  aspect-ratio: 16 / 10;
  margin-top: var(--space-8);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-card {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.map-card svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-card__label {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.map-card__label strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
}
.map-card__label span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- partners ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
}
.partners li {
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-20) var(--space-10);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.site-footer a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
}
.site-footer a:hover {
  color: var(--color-text);
}
.footer-about p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 34ch;
  margin-top: var(--space-5);
}
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- automatiskt svar (intresseanmälan) ---------- */
.autoreply {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.autoreply[hidden] {
  display: none;
}
.autoreply__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.autoreply__badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-highlight);
  border-radius: var(--radius-full);
  padding: 0.4em 0.85em;
}
.autoreply__ref {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}
.autoreply h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
}
.autoreply > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 52ch;
}
.autoreply__list {
  margin: var(--space-7) 0 var(--space-6);
  display: grid;
  gap: 0;
}
.autoreply__list > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-divider);
}
.autoreply__list dt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.autoreply__list dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: right;
}
.autoreply__foot {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
  margin-bottom: var(--space-6);
}

/* ---------- karta ---------- */
.map-embed {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.map-embed__img {
  display: block;
  overflow: hidden;
}
.map-embed__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1680 / 700;
  object-fit: cover;
  transition: transform var(--transition-interactive);
}
.map-embed__img:hover img {
  transform: scale(1.03);
}

@media (max-width: 699px) {
  .map-embed__img img {
    aspect-ratio: 4 / 3;
    object-position: 50% 50%;
  }
}
