/* OsloMet Padel. Farger hentet fra logoen: navy, gull og kremhvit. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B1B33;
  --ink-deep: #08142A;
  --navy: #0F274A;
  --gold: #D4AD54;
  --gold-hi: #E6C679;
  --cream: #F8E8B8;
  --paper: #F7F5EF;
  --paper-2: #EEEBE1;
  --text: #0B1B33;
  --muted: #44516A;
  --line: rgba(11, 27, 51, 0.14);
  --line-dark: rgba(248, 232, 184, 0.22);
  --on-dark: #F6F1E0;
  --on-dark-muted: rgba(246, 241, 224, 0.78);

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --header: 64px;
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 650; line-height: 1.2; }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1160px, calc(100% - 64px)); } }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow { color: var(--gold); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 650 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(248, 232, 184, 0.1); border-color: rgba(248, 232, 184, 0.45); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--navy); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 27, 51, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.nav { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
  .nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--on-dark-muted); padding: 8px 0; transition: color 0.2s var(--ease); }
  .nav a:hover { color: var(--on-dark); }
}
@media (max-width: 380px) { .brand-name { display: none; } }

section[id] { scroll-margin-top: calc(var(--header) + 16px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: 40px 0 72px;
}
.court {
  position: absolute; right: -80px; top: 24px; width: 420px; height: auto;
  color: rgba(248, 232, 184, 0.09); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; }
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 4.75rem);
  font-weight: 750; line-height: 1; letter-spacing: -0.03em;
  color: #FBF7EA; margin-bottom: 24px;
}
.hero .mark { color: var(--gold); }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--on-dark-muted); max-width: 34em; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo { position: relative; }
.hero-photo img {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 78%;
  border-radius: var(--r-md);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--gold); border-radius: var(--r-md);
  transform: translate(10px, 10px);
}
.chip {
  position: absolute; z-index: 2; left: 16px; bottom: 16px;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 72px; }
  .hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 72%; }
  .hero-photo::before { transform: translate(16px, 16px); }
  .court { right: 2%; top: 32px; width: 520px; }
}

/* ---------- Fakta ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
}
.facts li { background: var(--paper); padding: 24px 16px 24px 0; }
.facts li:nth-child(even) { padding-left: 20px; }
.fact-v { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.fact-l { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 800px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(even) { padding: 32px 24px; }
  .facts li:first-child { padding-left: 0; }
}

/* ---------- Seksjoner ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-lead { color: var(--muted); font-size: 1.125rem; margin-top: 16px; max-width: 32em; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 88px; align-items: start; }
  .split-events, .split-faq, .split-board { grid-template-columns: 4fr 7fr; }
}

.side-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (min-width: 900px) {
  .side-photo { position: sticky; top: calc(var(--header) + 32px); }
  .side-photo img { aspect-ratio: 4 / 5; }
}

.steps { list-style: none; margin-top: 32px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--navy); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.after-steps { margin: 32px 0 0; }

/* ---------- Medlemskap ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
}
.card h3 { font-size: 1.625rem; margin-bottom: 20px; }
.card p { color: var(--muted); }
.card-dark { background: var(--navy); border-color: transparent; color: var(--on-dark); }
.card-dark p { color: var(--on-dark-muted); }
.price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem) !important; line-height: 1; letter-spacing: -0.03em; color: var(--text) !important; margin-bottom: 20px !important; }
.card-dark .price { color: #FBF7EA !important; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0; margin-left: 8px; color: var(--muted); }
.card-dark .price small { color: var(--on-dark-muted); }
.tag {
  display: inline-block; margin: 0 0 16px !important;
  border: 1px solid var(--gold); color: var(--gold) !important;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.ticks { list-style: none; margin: 8px 0 32px; flex: 1; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 6px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.card-dark .ticks li::before { border-color: var(--gold); }

/* ---------- Galleri ---------- */
.gallery { background: var(--ink); color: var(--on-dark); padding: var(--section) 0; }
.gallery h2 { color: #FBF7EA; }
.g-grid { columns: 2; column-gap: 12px; }
.g { break-inside: avoid; margin-bottom: 12px; overflow: hidden; border-radius: var(--r-md); }
.g img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .g-grid {
    columns: auto; display: grid; gap: 16px;
    grid-template-columns: repeat(12, 1fr); grid-template-rows: 420px 320px;
  }
  .g { margin: 0; }
  .g img { height: 100%; object-fit: cover; }
  .g1 { grid-column: 1 / 8; }
  .g2 { grid-column: 8 / 13; }
  .g3 { grid-column: 1 / 5; }
  .g4 { grid-column: 5 / 9; }
  .g5 { grid-column: 9 / 13; }
  .g1 img { object-position: 50% 28%; }
  .g2 img { object-position: 50% 42%; }
  .g3 img { object-position: 50% 30%; }
  .g4 img { object-position: 50% 40%; }
}

/* ---------- Kalender ---------- */
.events { list-style: none; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.date { text-align: left; }
.date .d { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; }
.date .m { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info h3 { font-size: 1.25rem; margin-bottom: 4px; }
.info p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; max-width: 38em; color: var(--muted); }

/* ---------- Styret ---------- */
.people { list-style: none; display: grid; grid-template-columns: 1fr; }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.people li:last-child { border-bottom: 1px solid var(--line); }
.people .name { font-weight: 650; font-size: 1.125rem; }
.people .role { color: var(--muted); text-align: right; }

/* ---------- Samarbeid ---------- */
.cta-band { background: var(--navy); color: var(--on-dark); padding: var(--section) 0; border-top: 1px solid rgba(212, 173, 84, 0.5); }
.cta-band h2 { color: #FBF7EA; margin-bottom: 20px; }
.cta-lead { color: var(--on-dark-muted); max-width: 38em; font-size: 1.125rem; margin: 0; }
.cta-grid { display: grid; gap: 32px; align-items: center; }
.cta-action { margin: 0; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr auto; gap: 80px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); padding: 56px 0 40px; }
.foot { display: grid; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 64px; height: auto; }
.foot-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #FBF7EA; }
.foot-sub { margin: 0; font-size: 0.9375rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(246, 241, 224, 0.35); text-underline-offset: 4px; }
.foot-links a:hover { text-decoration-color: var(--gold); }
.foot-small { margin: 0; font-size: 0.875rem; max-width: 52em; }
@media (min-width: 900px) {
  .foot { grid-template-columns: 1fr auto; align-items: center; }
  .foot-small { grid-column: 1 / -1; }
}

/* ---------- Bevegelse ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

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

/* ---------- 404 ---------- */
.nf-body { background: var(--ink); }
.nf { min-height: 100vh; display: grid; place-content: start; gap: 24px; padding: 64px 0; }
.nf h1 { font-size: clamp(2.5rem, 8vw, 4rem); color: #FBF7EA; }
.nf p { margin: 0; }
