/* =========================================================
   Tensta Träff — Design System
   Värme först. Mörkblå som ankare, inte som tapet.
   ========================================================= */

:root {
  /* --- Colors ----------------------------------------- */
  --ink-blue:        #1A3D95;
  --ink-blue-deep:   #0F2A6E;
  --ink-blue-soft:   #2C57B8;

  --brick:           #B4542F;
  --brick-deep:      #8E3F1F;
  --brick-soft:      #E8C7B5;
  --brick-wash:      #F5E2D6;

  --gold:            #C9A84C;
  --gold-deep:       #A78832;
  --gold-soft:       #F2E3A8;

  --light-blue:      #E9F1FE;

  /* Warm neutral base — sajten ska kännas som ett vardagsrum */
  --cream:           #F7F1E6;
  --cream-deep:      #EDE3D0;
  --cream-soft:      #FBF7EE;
  --paper:           #FFFCF6;
  --white:           #FFFFFF;

  --ink:             #1A1C1E;
  --ink-soft:        #4A4D52;
  --ink-faint:       #8A8D92;
  --ink-line:        rgba(26, 28, 30, 0.10);

  /* --- Type ------------------------------------------- */
  --font-head:       "Poppins", system-ui, sans-serif;
  --font-body:       "Mulish", system-ui, sans-serif;
  --font-logo:       "Sora", system-ui, sans-serif;

  --t-hero:          clamp(2.5rem, 6vw, 4.75rem);
  --t-h1:            clamp(2.1rem, 4.6vw, 3.5rem);
  --t-h2:            clamp(1.75rem, 3.6vw, 2.75rem);
  --t-h3:            clamp(1.25rem, 2vw, 1.625rem);
  --t-eyebrow:       0.8125rem;
  --t-body:          1.0625rem;
  --t-body-lg:       1.1875rem;
  --t-small:         0.9375rem;
  --t-tiny:          0.8125rem;

  /* --- Spacing ---------------------------------------- */
  --pad-section:     clamp(4.5rem, 9vw, 7.5rem);
  --pad-section-sm:  clamp(3rem, 6vw, 5rem);
  --gutter:          clamp(1.25rem, 4vw, 2.5rem);
  --container:       1280px;
  --container-narrow:880px;

  --r-sm:            0.5rem;
  --r-md:            0.875rem;
  --r-lg:            1.25rem;
  --r-xl:            1.75rem;
  --r-pill:          999px;

  /* --- Motion ---------------------------------------- */
  --ease:            cubic-bezier(.2, .7, .2, 1);
  --t-fast:          150ms;
  --t-base:          280ms;
  --t-slow:          600ms;

  --shadow-sm:       0 1px 2px rgba(26,28,30,.06), 0 1px 3px rgba(26,28,30,.04);
  --shadow-md:       0 4px 12px rgba(26,28,30,.08), 0 2px 4px rgba(26,28,30,.04);
  --shadow-lg:       0 18px 40px -12px rgba(26,28,30,.18), 0 6px 14px rgba(26,28,30,.06);
  --shadow-warm:     0 18px 40px -16px rgba(180,84,47,.35), 0 6px 14px rgba(180,84,47,.10);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink-blue);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--brick);
  border-radius: 2px;
}

.lede {
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}

/* =========================================================
   Container
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }

section { padding-block: var(--pad-section); }
section.tight { padding-block: var(--pad-section-sm); }

/* Sektioner avgränsas med färg, inte linjer */
.surface-cream      { background: var(--cream); }
.surface-cream-deep { background: var(--cream-deep); }
.surface-paper      { background: var(--paper); }
.surface-light-blue { background: var(--light-blue); }
.surface-brick-wash { background: var(--brick-wash); }
.surface-ink-blue   { background: var(--ink-blue); color: var(--cream-soft); }
.surface-ink-blue h1, .surface-ink-blue h2, .surface-ink-blue h3 { color: var(--cream-soft); }
.surface-ink-blue .eyebrow { color: var(--gold-soft); }
.surface-ink-blue .eyebrow::before { background: var(--gold-soft); }
.surface-ink-blue .lede { color: rgba(255,252,246,.78); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(247, 241, 230, 0.92);
  border-bottom-color: var(--ink-line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-blue);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--gold) 0%, var(--gold) 38%, transparent 39%),
    radial-gradient(circle at 70% 70%, var(--brick) 0%, var(--brick) 42%, transparent 43%),
    var(--ink-blue);
  box-shadow: inset 0 0 0 2px var(--cream);
  flex: none;
}
.brand__name span { color: var(--brick); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
@media (min-width: 1180px) {
  .nav__link { font-size: 0.95rem; padding: 0.55rem 0.85rem; }
}
.nav__link:hover, .nav__link.is-active {
  background: var(--brick-wash);
  color: var(--brick-deep);
}
.nav__cta { margin-left: 0.4rem; }

.nav-toggle {
  margin-left: auto;
  display: none;
  background: transparent; border: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-pill);
  align-items: center; justify-content: center;
  color: var(--ink-blue);
}
.nav-toggle:hover { background: var(--brick-wash); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--ink-line);
    color: var(--ink-blue);
  }
  .nav__link:hover, .nav__link.is-active {
    background: transparent;
    color: var(--brick);
  }
  .nav__cta { margin: 1.5rem 0 0; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle.is-open { position: fixed; right: var(--gutter); top: 1rem; z-index: 60; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--brick);
  color: var(--paper);
  box-shadow: var(--shadow-warm);
}
.btn--primary:hover { background: var(--brick-deep); box-shadow: 0 22px 44px -14px rgba(180,84,47,.5); }
.btn--secondary {
  background: var(--ink-blue);
  color: var(--cream-soft);
}
.btn--secondary:hover { background: var(--ink-blue-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink-blue);
  border-color: var(--ink-blue);
}
.btn--ghost:hover { background: var(--ink-blue); color: var(--cream-soft); }
.btn--gold {
  background: var(--gold);
  color: var(--ink-blue-deep);
}
.btn--gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 1.1rem 1.85rem; font-size: 1.075rem; }
.btn--pill-icon::after {
  content: "→";
  font-size: 1.1em;
  transition: transform var(--t-base) var(--ease);
}
.btn--pill-icon:hover::after { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-blue);
  color: rgba(255,252,246,.82);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}
.site-footer h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__brand { color: var(--cream-soft); }
.site-footer__brand .brand { color: var(--cream-soft); font-size: 1.4rem; }
.site-footer__brand .brand__mark { box-shadow: inset 0 0 0 2px var(--ink-blue); }
.site-footer p { color: rgba(255,252,246,.72); line-height: 1.65; max-width: 28ch; margin-top: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.site-footer ul a {
  color: rgba(255,252,246,.78);
  transition: color var(--t-fast);
  font-size: 0.975rem;
}
.site-footer ul a:hover { color: var(--gold-soft); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,252,246,.12);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255,252,246,.55);
}

/* =========================================================
   Tags / chips / badges
   ========================================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--cream-deep);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip--brick { background: var(--brick); color: var(--paper); }
.chip--gold  { background: var(--gold); color: var(--ink-blue-deep); }
.chip--blue  { background: var(--ink-blue); color: var(--cream-soft); }
.chip--light-blue { background: var(--light-blue); color: var(--ink-blue); }
.chip--brick-wash { background: var(--brick-wash); color: var(--brick-deep); }
.chip--ghost { background: transparent; border: 1.5px solid var(--ink-line); color: var(--ink-soft); }

.chip__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   Photo placeholders (warm, art-directed)
   ========================================================= */
.photo {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center;
}
.photo--ph {
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background:
    linear-gradient(180deg, transparent 50%, rgba(26,28,30,.55) 100%),
    var(--ph-color, linear-gradient(135deg, #B4542F 0%, #C9A84C 100%));
}
.photo--ph::before {
  content: "Foto";
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(255,252,246,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,252,246,.25);
}

/* =========================================================
   Cards — base
   ========================================================= */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  aspect-ratio: 4 / 3;
  background-color: var(--cream-deep);
  background-size: cover; background-position: center;
  position: relative;
}
.card__body {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  flex: 1;
}
.card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-blue);
  letter-spacing: -0.01em;
}
.card__meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex; gap: 0.35rem 0.75rem; flex-wrap: wrap;
}
.card__footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.5rem;
}
.card__price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brick);
}
.card__price small { color: var(--ink-faint); font-weight: 500; }
.card__caption {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  padding: 0.75rem 1.5rem 0;
  border-top: 1px dashed var(--ink-line);
  margin-top: -0.25rem;
}

/* =========================================================
   Event card — date chip
   ========================================================= */
.event-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card__media {
  aspect-ratio: 5 / 4;
  background-size: cover; background-position: center;
  background-color: var(--cream-deep);
  position: relative;
}
.event-card__date {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--paper);
  color: var(--ink-blue);
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  text-align: center;
  line-height: 1;
  min-width: 3.4rem;
  box-shadow: var(--shadow-sm);
}
.event-card__date strong { display: block; font-size: 1.5rem; font-weight: 700; }
.event-card__date span   { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brick); }
.event-card__tag {
  position: absolute; top: 1rem; right: 1rem;
}
.event-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.event-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-blue);
  line-height: 1.25;
}
.event-card__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex; gap: 0.4rem 0.75rem; flex-wrap: wrap;
  margin-top: 0.3rem;
}

/* =========================================================
   Utility
   ========================================================= */
.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--auto { grid-template-columns: 1fr; }
  .grid--3.keep-2-tablet, .grid--4.keep-2-tablet { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--3.keep-2-tablet, .grid--4.keep-2-tablet { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head--center .lede { margin-inline: auto; max-width: 52ch; }

/* Two-column header: title left, lede + action right */
.section-head--split {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: 2rem;
}
.section-head--split > div:first-child { max-width: 22ch; }
.section-head--split > div:last-child  { max-width: 38ch; }
@media (max-width: 720px) {
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Pull quote */
.pull-quote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: var(--ink-blue);
  border-left: 4px solid var(--brick);
  padding: 0.5rem 0 0.5rem 1.5rem;
  max-width: 32ch;
  letter-spacing: -0.01em;
}
.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-family: var(--font-body);
  letter-spacing: 0;
}
