/* ══════════════════════════════════════════════
   MEDLEMSSIDA — Sommarteatern Ystad
   Delar designspråk med sommarteaternystad.com
══════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --line: rgba(20, 20, 20, 0.08);
  --text: #161616;
  --muted: rgba(22, 22, 22, 0.72);
  --muted-2: rgba(22, 22, 22, 0.5);

  /* Brand */
  --gold: #c9a84c;
  --gold-light: #e0bb65;
  --crimson: #8b1a2e;
  --crimson-deep: #5e0f1e;
  --purple-dark: #0e0421;
  --purple-mid: #1c0938;
  --blue: #1c2a5c;
  --blue-deep: #0a0f28;
  --green: #1a4a28;
  --green-deep: #06110a;

  --max: 1280px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  --shadow-dark: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   TOP BAR — enkel navigering på undersidor
══════════════════════════════════════════════ */

.topbar {
  background: var(--purple-dark);
  padding: 16px 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo { height: 40px; width: auto; }

.topbar-title {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s, color 0.2s;
}

.topbar-back:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ══════════════════════════════════════════════
   HERO (startsida)
══════════════════════════════════════════════ */

.hero-section {
  position: relative;
  padding: 72px 0 56px;
  background:
    linear-gradient(160deg, rgba(14,4,33,0.90) 0%, rgba(28,9,56,0.86) 55%, rgba(94,15,30,0.88) 130%),
    url('../images/accent-hero.jpg') center 32% / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.hero-logo {
  width: min(140px, 32vw);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5)) drop-shadow(0 0 40px rgba(201,168,76,0.25));
}

.hero-kicker {
  display: block;
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 460px;
  font-size: 15px;
  color: rgba(255,255,255,0.68);
}

/* ══════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════ */

.section { padding: 56px 0; }

.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }

.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: #7c7c7c;
}

h1.page-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 8px;
}

/* ══════════════════════════════════════════════
   SIDHUVUD MED STÄMNINGSBILD (helbredd, skugga + text ovanpå)
══════════════════════════════════════════════ */

.page-hero {
  position: relative;
  padding: 64px 0 40px;
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14,4,33,0.92) 0%, rgba(28,9,56,0.86) 55%, rgba(94,15,30,0.88) 130%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .section-kicker { color: rgba(255,255,255,0.68); }

.page-hero .page-title {
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}

.page-hero .page-lead {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
}

@media (max-width: 719px) {
  .page-hero { padding: 48px 0 32px; }
}

/* ══════════════════════════════════════════════
   INFO-KORT (Ledare & Kontakt m.fl.)
══════════════════════════════════════════════ */

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.info-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.info-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.info-card p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   FÖRMÅNS-KORT
══════════════════════════════════════════════ */

.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.benefit-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

.benefit-card-icon--purple { background: rgba(91,42,134,0.10); color: #7c3fb0; }

.benefit-card-title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.benefit-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.benefit-card p:last-of-type { margin-bottom: 0; }

.benefit-card-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 6px 0 4px;
}

/* ══════════════════════════════════════════════
   LÄNK-GRID (bento-liknande knappar)
══════════════════════════════════════════════ */

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.link-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-dark);
}

.link-tile:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 24px 64px rgba(0,0,0,0.30); }

.link-tile--wide { grid-column: span 3; min-height: 150px; }
.link-tile--half { grid-column: span 3; }

@media (min-width: 720px) {
  .link-tile--half { grid-column: span 1; }
}

.link-tile-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  position: relative;
}

.link-tile--oliver .link-tile-inner {
  background: linear-gradient(135deg, var(--crimson) 0%, #3a0a16 60%, #1a0520 100%);
}
.link-tile--lilla .link-tile-inner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}
.link-tile--schema .link-tile-inner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.link-tile--cafe .link-tile-inner {
  background: linear-gradient(135deg, #5a4010 0%, #281800 100%);
}
.link-tile--tickets .link-tile-inner {
  background: linear-gradient(135deg, #1c2a5c 0%, #0a0f28 100%);
}
.link-tile--formaner .link-tile-inner {
  background: linear-gradient(135deg, #5b2a86 0%, #1f0a38 100%);
}
.link-tile--reklam .link-tile-inner {
  background: linear-gradient(135deg, #4338CA 0%, #151046 100%);
}

.link-tile-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.link-tile-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.link-tile-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.link-tile-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,0.55);
  transition: transform 0.2s, color 0.2s;
}

.link-tile:hover .link-tile-arrow { transform: translate(3px,-3px); color: #fff; }

.link-tile.is-disabled { opacity: 0.6; cursor: default; }
.link-tile.is-disabled:hover { transform: none; box-shadow: var(--shadow-dark); }

/* ══════════════════════════════════════════════
   RESURS-KORT (dokumentlänkar på innehållssidor)
══════════════════════════════════════════════ */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 40px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  border-color: rgba(201,168,76,0.4);
}

.resource-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--crimson);
}

.resource-body { flex: 1; min-width: 0; }

.resource-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.resource-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted-2);
}

.resource-go {
  flex-shrink: 0;
  color: var(--muted-2);
  transition: transform 0.18s, color 0.18s;
}

.resource-card:hover .resource-go { transform: translateX(3px); color: var(--crimson); }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-gold { background: var(--gold); color: #1a1000; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.45); }

.btn-crimson { background: var(--crimson); color: #fff; }
.btn-crimson:hover { background: #a01f35; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,26,46,0.4); }

.btn-dark { background: var(--purple-dark); color: #fff; }
.btn-dark:hover { background: var(--purple-mid); transform: translateY(-2px); }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   NOTICE / PLACEHOLDER
══════════════════════════════════════════════ */

.notice {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.notice-info {
  background: #fff7e6;
  border: 1px solid #f0d999;
  color: #7a5c00;
}

/* ══════════════════════════════════════════════
   KOMMER SNART
══════════════════════════════════════════════ */

.coming-soon {
  text-align: center;
  padding: 90px 0;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--crimson);
  background: rgba(139,26,46,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

.site-footer {
  background: linear-gradient(160deg, #0c0c14 0%, #111118 60%, #08080f 100%);
  color: #fff;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-doc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-doc-body { flex: 1; min-width: 200px; }

.footer-doc-title { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.footer-doc-desc { font-size: 13px; color: rgba(255,255,255,0.55); margin: 0; }

.footer-links-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.footer-link-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-link-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.40);
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 719px) {
  .link-grid { grid-template-columns: 1fr; }
  .link-tile--wide { grid-column: span 1; }
  .topbar-title { display: none; }

  /* Kompakt hero — allt (header + snabblänkar) ska rymmas i första vyn */
  .hero-section { padding: 24px 0 18px; }
  .hero-logo { width: 56px; margin: 0 auto 8px; }
  .hero-kicker { font-size: 10px; margin-bottom: 2px; }
  .hero-title { font-size: 28px; }
  .hero-sub { display: none; }

  .section--home-links { padding: 14px 0 24px; }
  .section--home-links .section-head { margin-bottom: 10px; }
  .section--home-links .section-kicker { display: none; }
  .section--home-links h2 { font-size: 18px; letter-spacing: -0.02em; }

  /* Snabblänkar som kompakta rader istället för stora kort */
  .link-grid { gap: 8px; }
  .link-tile, .link-tile--wide, .link-tile--half { min-height: 0; }

  .link-tile-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    gap: 12px;
  }

  .link-tile-tag { display: none; }
  .link-tile-title { font-size: 15px; margin: 0; line-height: 1.2; }
  .link-tile-desc { display: none; }

  .link-tile-arrow {
    position: static;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }
}
