/* Scandinavian Sport Management - visningsversion. Mobil först. */
:root {
  --navy: #0a1838;
  --navy-2: #13298a;
  --navy-3: #112552;
  --red: #e30019;
  --red-dark: #b80014;
  --ice: #eef3f8;
  --white: #ffffff;
  --ink: #0a1838;
  --muted: #55647d;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 24, 56, 0.12);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Rubriker */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(44px, 12vw, 128px); }
h2 { font-size: clamp(34px, 7vw, 64px); }
h3 { font-size: clamp(24px, 4vw, 30px); line-height: 1.05; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.red { color: var(--red); }
.lead { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; max-width: 40ch; }

/* Knappar */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 14px 22px; border: 2px solid transparent; border-radius: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sidhuvud */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 100px; height: auto; }
.nav { display: none; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; opacity: .85;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px; border: 2px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--white); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 14px); width: min(320px, calc(100vw - 2 * var(--gutter)));
  background: var(--navy); border: 1px solid var(--line); padding: 10px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.menu-panel a {
  display: block; padding: 12px 20px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
}
.menu-panel a:hover { background: var(--navy-3); }
.menu-panel .sub { font-size: 16px; padding-left: 34px; opacity: .8; }

@media (min-width: 960px) {
  .site-header .wrap { height: 84px; }
  .brand img { width: 118px; }
  .nav { display: flex; align-items: center; gap: 30px; }
  .menu { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: clamp(24px, 5svh, 72px) 0 0;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  display: flex; flex-direction: column;
}
.hero > .hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero > .wrap:last-child { flex: none; }
.hero::before, .hero::after {
  /* isens markeringar, ritade i CSS */
  content: ""; position: absolute; pointer-events: none;
  border: 2px solid rgba(255,255,255,.06); border-radius: 50%;
}
.hero::before { width: 620px; height: 620px; right: -260px; top: -180px; }
.hero::after { width: 220px; height: 220px; right: -60px; top: 20px; border-color: rgba(227,0,25,.22); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, min(10vw, 11svh), 112px); max-width: 18ch; margin-bottom: clamp(14px, 2.6svh, 28px); }
.hero .eyebrow { margin-bottom: clamp(12px, 2svh, 20px); }
.hero .lead { color: rgba(255,255,255,.86); margin-bottom: clamp(18px, 3svh, 32px); }

.team-row {
  position: relative; z-index: 1;
  margin-top: clamp(24px, 5svh, 64px); padding-bottom: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
  gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.team-row::-webkit-scrollbar { display: none; }
.tile {
  position: relative; scroll-snap-align: start; text-decoration: none;
  height: clamp(118px, calc(100svh - 640px), 300px); overflow: hidden; background: var(--navy-3);
}
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img {
  object-fit: cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transition: filter .4s, transform .6s;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,24,56,0) 45%, rgba(10,24,56,.92) 100%);
}
.tile:hover img { filter: none; transform: scale(1.03); }
.tile-text { position: absolute; left: 14px; right: 10px; bottom: 14px; z-index: 1; }
.tile-role { font-size: 12px !important; }
.tile-role { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); font-family: var(--display); font-weight: 600; }
.tile-name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); text-transform: uppercase; line-height: 1.05; }
.tile.contain img { object-fit: cover; }
@media (min-width: 640px) { .team-row { grid-auto-columns: 34%; } }
@media (min-width: 960px) {
  .hero { min-height: calc(100vh - 85px); min-height: calc(100svh - 85px); }
  .team-row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .tile { height: clamp(150px, 24svh, 340px); }
}

/* Nyckeltal */
.figures { background: var(--red); color: var(--white); }
.figures .wrap { display: grid; grid-template-columns: 1fr; }
.figure { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.figure:last-child { border-bottom: 0; }
.figure-num { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 14vw, 104px); line-height: .9; display: block; }
.figure-label { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-top: 8px; max-width: 26ch; }
@media (min-width: 760px) {
  .figures .wrap { grid-template-columns: repeat(3, 1fr); }
  .figure { padding: 40px 28px 40px 0; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.25); }
  .figure + .figure { padding-left: 28px; }
  .figure:last-child { border-right: 0; }
}

/* Sektioner */
.section { padding: 72px 0; }
.section-ice { background: var(--ice); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { color: var(--ink); margin-bottom: 14px; }
.section-navy .section-head p { color: rgba(255,255,255,.75); }
@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 56px; }
}

/* Tjänster */
.services { display: grid; gap: 2px; background: var(--line-dark); border: 2px solid var(--line-dark); }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--white); padding: 28px 24px 26px; text-decoration: none;
  transition: background .25s, color .25s;
  min-height: 250px;
}
.service-num { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--red); letter-spacing: .1em; }
.service h3 { margin: 0; }
.service p { color: var(--muted); margin: 0; flex: 1; font-size: 16px; }
.service .more { font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; }
.service:hover { background: var(--navy); color: var(--white); }
.service:hover p { color: rgba(255,255,255,.78); }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } .service { min-height: 340px; } .services-3 { grid-template-columns: repeat(3, 1fr); } }

/* Bild och text */
.split { display: grid; gap: 36px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; left: -12px; bottom: -12px; width: 40%; height: 40%;
  border-left: 6px solid var(--red); border-bottom: 6px solid var(--red); pointer-events: none;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* SICO */
.sico { display: grid; gap: 36px; align-items: center; }
.sico-mark {
  background: var(--white); aspect-ratio: 16 / 10; display: grid; place-items: center;
  padding: 12%; box-shadow: 0 1px 0 var(--line-dark), 0 24px 48px -28px rgba(10,24,56,.35);
  position: relative;
}
.sico-mark::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--navy-2); }
.sico-mark img { width: 320px; max-width: 100%; }
.sico-text h2 { max-width: 16ch; }
.sico-text p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 46ch; }
@media (min-width: 900px) { .sico { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.link-arrow {
  display: inline-flex; gap: 8px; align-items: center; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--red); padding-bottom: 4px;
}
.link-arrow:hover .arrow { transform: translate(2px, -2px); }
.link-arrow .arrow { transition: transform .2s; }

/* Uppmaning */
.cta { background: var(--navy-2); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); }
.cta .wrap { position: relative; display: grid; gap: 28px; }
.cta h2 { margin: 0; max-width: 14ch; }
.cta-contact { font-size: 18px; }
.cta-contact a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.cta-contact a:hover { border-color: var(--white); }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta { padding: 104px 0; } }

/* Undersidor */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(255,255,255,.07); }
.page-hero h1 { font-size: clamp(42px, 9vw, 96px); max-width: 14ch; margin: 0; position: relative; z-index: 1; }
.page-hero .eyebrow, .page-hero .lead { position: relative; z-index: 1; }
.page-hero .lead { color: rgba(255,255,255,.86); margin: 24px 0 0; max-width: 52ch; }
@media (min-width: 960px) { .page-hero { padding: 104px 0 88px; } }

.prose { max-width: 68ch; }
.prose-cols { max-width: none; display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .prose-cols { grid-template-columns: 1fr 1fr; } }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.person-feature { display: grid; gap: 32px; align-items: center; }
.person-feature img { width: 100%; max-width: 360px; aspect-ratio: 3 / 4; object-fit: cover; }
.person-feature h2 { margin-bottom: 18px; }
.person-feature p:not(.eyebrow) { font-size: clamp(18px, 2.2vw, 21px); max-width: 44ch; margin-bottom: 28px; }
@media (min-width: 860px) { .person-feature { grid-template-columns: 360px 1fr; gap: 72px; } }
.prose p { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.65; }
.prose .big { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; text-transform: none; letter-spacing: 0; margin-bottom: 28px; }
.prose a:not(.btn) { color: var(--navy-2); }

.content-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .content-grid { grid-template-columns: 1.6fr 1fr; gap: 80px; } }
.aside-card { background: var(--ice); padding: 28px; align-self: start; }
.aside-card h2 { font-size: 30px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.aside-card li a:hover { color: var(--red); }

.person-mini { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.person-mini img { width: 96px; height: 128px; object-fit: cover; }
.person-mini strong { display: block; font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.person-mini span { color: var(--muted); font-size: 15px; }

/* Team */
.people { display: grid; gap: 28px; }
.person { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line-dark); scroll-margin-top: 100px; }
.person-photo { background: var(--navy-3); aspect-ratio: 4 / 3; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.person-photo.photo-top img { object-position: center 18%; }
.person-photo.monogram { display: grid; place-items: center; min-height: 260px; background: var(--navy); }
.person-photo.monogram span { font-family: var(--display); font-weight: 700; font-size: 72px; color: var(--white); letter-spacing: .04em; }
.person-body { padding: 26px 24px 28px; }
.person-role { font-family: var(--display); font-weight: 600; color: var(--red); letter-spacing: .12em; text-transform: uppercase; font-size: 15px; margin-bottom: 6px; display: block; }
.person h2 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 16px; }
.person-bio p { color: #2b3a55; }
.person-meta { list-style: none; margin: 20px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 6px; font-size: 16px; }
.person-meta span { color: var(--muted); display: inline-block; min-width: 84px; }
.person-meta a { text-decoration: none; border-bottom: 1px solid var(--line-dark); word-break: break-word; }
.person-meta a:hover { border-color: var(--red); }
@media (min-width: 860px) {
  .person { grid-template-columns: 340px 1fr; }
  .person-photo { aspect-ratio: auto; min-height: 100%; }
  .person-body { padding: 40px 44px; }
}

/* Sidfot */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
.footer-grid h2 { font-size: 18px; letter-spacing: .14em; color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { width: 136px; margin-bottom: 18px; }
.footer-brand p { margin: 0; line-height: 1.7; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.6); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }

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

/* Låga skärmar: hela toppsektionen ska rymmas ovanför vecket */
@media (min-width: 960px) and (max-height: 780px) {
  .hero .lead { font-size: 18px; }
}
