/* Sandnes IBK – redesign. Palett: sort + klubbgul (Pantone 3945 C) + hvit */
:root {
  --ink: #0D0D0F;
  --ink-2: #1A1A1F;
  --neon: #F3E500;
  --white: #FFFFFF;
  --paper: #F4F4F1;
  --line: #E3E3DF;
  --muted: #5E5E66;
  --muted-dark: #A9A9B2;
  --radius: 14px;
  --header-h: 76px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(42px, 8vw, 104px); }
h2 { font-size: clamp(34px, 5.2vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.05; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 780px; }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.section--ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--neon); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.section--ink .lead { color: var(--muted-dark); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { margin: 0; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--neon { background: var(--neon); color: var(--ink); }
.btn--neon:hover { background: var(--white); }
.btn--ink { background: var(--ink); color: var(--neon); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--neon); }
.arrow { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: block; flex: none; }
.logo img { height: clamp(40px, 9vw, 52px); width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.main-nav a {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--neon); box-shadow: inset 0 -3px 0 var(--ink); }
.nav-cta { min-height: 46px; padding: 0 22px; font-size: 17px; }
.menu-btn {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--neon); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }

/* Mobil-skuff */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 400px); z-index: 80;
  background: var(--ink); color: var(--white);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; padding: 24px 28px 36px; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-top { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.drawer-close { width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--neon); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer nav a[aria-current="page"] { color: var(--neon); }
.drawer .btn { margin-top: 28px; width: 100%; }
.drawer-contact { margin-top: 28px; color: var(--muted-dark); font-size: 16px; }
.drawer-contact a { color: var(--white); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* Hero (forside) */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,15,.92) 0%, rgba(13,13,15,.7) 45%, rgba(13,13,15,.15) 100%), linear-gradient(0deg, rgba(13,13,15,.75) 0%, rgba(13,13,15,0) 45%); }
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 11ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--neon); }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Kampdag-bånd */
.matchday { background: var(--neon); color: var(--ink); padding: clamp(40px, 5vw, 56px) 0; }
.matchday-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.matchday h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.matchday h2 small { display: block; font-size: 0.5em; letter-spacing: .12em; margin-bottom: 6px; }
.prices { display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; flex-direction: column; }
.prices b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.prices span { font-size: 14px; font-weight: 600; }

/* Snarveier */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.shortcut {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 190px; padding: 28px; border-radius: var(--radius);
  background: var(--paper); text-decoration: none; transition: background .25s, color .25s, transform .25s;
}
.shortcut:hover { background: var(--ink); color: var(--white); transform: translateY(-4px); }
.shortcut:hover .shortcut-ico { background: var(--neon); color: var(--ink); }
.shortcut h3 { margin: 0 0 6px; }
.shortcut p { margin: 0; font-size: 15px; color: var(--muted); }
.shortcut:hover p { color: var(--muted-dark); }
.shortcut-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--neon); display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.shortcut-ico svg { width: 22px; height: 22px; }

/* Nyhetskort */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.tag {
  position: absolute; left: 14px; top: 14px;
  background: var(--neon); color: var(--ink); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px;
}
.card h3 { margin: 18px 0 0; font-size: clamp(22px, 2vw, 26px); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--neon); text-underline-offset: 4px; }

/* Fakta */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.14); margin-top: clamp(40px, 6vw, 72px); }
.fact { padding: 32px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.fact b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 80px); line-height: 1; color: var(--neon); }
.fact span { color: var(--muted-dark); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
blockquote.quote {
  margin: 32px 0 0; padding: 0 0 0 22px; border-left: 4px solid var(--neon);
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; text-transform: uppercase;
}
blockquote.quote cite { display: block; margin-top: 10px; font-family: var(--body); font-style: normal; font-weight: 500; font-size: 15px; text-transform: none; color: var(--muted-dark); }

/* Grasrot */
.grasrot { display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: center; background: var(--paper); border-radius: 24px; padding: clamp(32px, 5vw, 64px); }
.grasrot img { height: 52px; width: auto; margin-bottom: 22px; }
.grasrot h2 { font-size: clamp(30px, 4vw, 48px); }
.grasrot p { margin: 0; color: var(--muted); max-width: 560px; }
.grasrot .actions { display: flex; flex-direction: column; gap: 12px; }

/* Sponsorer */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.sponsor {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 5 / 2.4; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s, transform .2s;
}
a.sponsor:hover { border-color: var(--ink); transform: translateY(-3px); }
.sponsor img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* Sosiale */
.social { display: flex; gap: 12px; }
.social a { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--white); transition: background .2s, color .2s; }
.social a:hover { background: var(--neon); color: var(--ink); }
.social svg { width: 22px; height: 22px; }
.social--light a { background: var(--ink); color: var(--neon); }

/* Undersider */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 7vw, 92px); max-width: 14ch; }
.page-hero .lead { color: rgba(255,255,255,.75); margin: 0; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border: 3px solid var(--neon); border-radius: 50%; opacity: .5; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose figure { margin: 36px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose blockquote { margin: 28px 0; padding-left: 22px; border-left: 4px solid var(--neon); font-size: 21px; font-weight: 500; }
.prose a { text-decoration-color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.box { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); min-width: 0; }
.box--ink { background: var(--ink); color: var(--white); }
.box h3 { margin-bottom: 14px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box .btn { margin-top: 10px; }

/* Treningstider */
.hall { margin-bottom: clamp(48px, 6vw, 72px); }
.hall h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(30px, 4vw, 44px); }
.hall h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 3px var(--ink); flex: none; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.day { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.day h3 { font-size: 22px; margin-bottom: 14px; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.day li time { font-weight: 700; font-variant-numeric: tabular-nums; }
.age-table { width: 100%; border-collapse: collapse; }
.age-table td { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.age-table td:first-child { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--neon); width: 90px; }

/* Kontakt */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.box--ink .contact-list li { border-color: rgba(255,255,255,.14); }
.contact-list li span:first-child { color: var(--muted); }
.box--ink .contact-list li span:first-child { color: var(--muted-dark); }
.contact-list a { font-weight: 600; }
.big-link { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; text-decoration: none; display: inline-block; line-height: 1.1; word-break: break-word; }
.big-link:hover { color: var(--neon); }
.files { list-style: none; padding: 0; margin: 0; }
.files li { border-top: 1px solid var(--line); }
.files a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; font-weight: 600; }
.files a:hover { text-decoration: underline; }
.files small { color: var(--muted); font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 14px; padding: 12px 16px; margin-bottom: 22px; }
.footer-logo img { height: 52px; width: auto; }
.site-footer h4 { color: var(--white); font-size: 20px; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--white); }
.site-footer a:hover { color: var(--neon); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

/* Cookie-banner */
.cookies {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(400px, calc(100vw - 32px));
  background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.28);
  padding: 24px; font-size: 15px; line-height: 1.5; max-height: calc(100vh - 32px); overflow-y: auto;
}
.cookies h2 { font-size: 24px; margin-bottom: 10px; }
.cookies p { margin: 0 0 8px; color: var(--muted); }
.cookies a { color: var(--ink); }
.cookies-actions { display: grid; gap: 10px; margin: 18px 0 10px; }
.cookies .btn { min-height: 46px; font-size: 16px; width: 100%; }
.cookies-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 10px 0 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.cookies-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.cookies-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cookies-panel { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.cookies-cat { display: flex; gap: 10px; align-items: flex-start; }
.cookies-cat input { margin-top: 5px; accent-color: var(--ink); }
.cookies-cat strong { display: block; }
.cookies-more { background: none; border: 0; padding: 0; margin: 8px 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink); }
.cookies-defs { list-style: none; padding: 12px; margin: 0 0 10px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.cookies-defs p { margin: 0; }
.cookies-defs .n { font-weight: 700; color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Responsiv */
@media (max-width: 1080px) {
  .site-header .main-nav, .site-header .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .matchday-inner { grid-template-columns: 1fr; }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .grid-2, .footer-grid, .grasrot { grid-template-columns: 1fr; }
  .split-img { order: -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16.5px; }
  .hero { min-height: 86vh; }
  .hero::after { background: rgba(13,13,15,.72); }
  .hero-media img { object-position: 58% 50%; }
  .hero-ctas .btn { width: 100%; }
  .news { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 26px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .prices { gap: 18px 28px; }
  .matchday .btn { width: 100%; }
  .grasrot .btn { width: 100%; }
  .sponsors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day li { grid-template-columns: 100px 1fr; }
  .page-hero::after { display: none; }
  .cookies { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 20px; }
}
