/* ============================================
   TRAINING DAY: shared styles (mobile-first)
   ============================================ */

:root {
  /* Brand colour tokens live in theme-dark.css. Legacy duplicates removed Sep 2026. */
  --cave: #172026;
  --sea: #469db4;
  --rock: #686772;
  --rock-tint: rgba(104, 103, 114, 0.18);
  --sunrise: #f8d878;

  --font-heading: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --font-body:    'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  --section-y: 64px;
  --gutter: 24px;
  --container: 1280px;
}

@media (min-width: 720px) {
  :root { --section-y: 112px; --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 144px; --gutter: 48px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mountain);
  color: var(--cave);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--cave);
  line-height: 1.02;
}
h1 { font-size: clamp(40px, 9vw, 88px); }
h2 { font-size: clamp(32px, 6vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.025em; }

.lead {
  font-size: clamp(17px, 1.25vw, 19px);
  color: var(--cave);
  line-height: 1.5;
  max-width: 56ch;
}
.muted { color: var(--rock); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-y) 0; }

/* ============================================
   ACCESSIBILITY: skip-to-content link
   ============================================ */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 9999;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 18px;
  font-family: var(--sans, system-ui);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--accent, #469db4);
  outline-offset: 3px;
}

/* ============================================
   NAVBAR
   ============================================ */
[data-component="navbar"] { display: contents; }
.nav {
  position: relative;
  z-index: 50;
  background: var(--mountain);
  transition: box-shadow 220ms ease;
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--rock-tint);
}
.nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 0 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
  min-height: 64px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; padding: 14px 0;}
.nav__logo svg { display: block; }
.nav__links {
  display: none;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--cave);
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--sea); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--cave);
}
.nav .nav__cta-desktop { display: none; }
.nav__hamburger {
  display: inline-flex;
  border: 0;
  width: 64px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--mountain);
  background: var(--cave);
  align-self: stretch;
  padding: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--mountain);
  position: relative;
}
.nav__hamburger span::before,
.nav__hamburger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--mountain);
}
.nav__hamburger span::before { top: -7px; }
.nav__hamburger span::after  { top: 7px; }

.nav__mobile {
  border-top: 1px solid var(--rock-tint);
  padding: 8px var(--gutter) 20px;
}
.nav__mobile ul {
  list-style: none;
  padding: 0; margin: 0;
}
.nav__mobile a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--cave);
  border-bottom: 1px solid var(--rock-tint);
}
.nav__mobile li:last-child a { border-bottom: 0; }

@media (min-width: 960px) {
  .nav__inner { padding-left: var(--gutter); padding-right: var(--gutter); align-items: center; }
  .nav__logo { padding: 18px 0; }
  .nav__links { display: flex; }
  .nav .nav__cta-desktop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--cave);
    border: 1px solid var(--cave);
    border-radius: 0;
    padding: 12px 22px;
    margin-left: 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    align-self: center;
    transition: background 180ms ease, color 180ms ease;
    text-decoration: none;
  }
  .nav .nav__cta-desktop:hover { background: var(--cave); color: var(--mountain); }
  .nav__hamburger { display: none; }
  .nav__mobile { display: none; }
}

/* ============================================
   BUTTONS (used sparingly for primary actions only)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 24px;
  min-height: 48px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--solid {
  background: var(--cave);
  color: var(--mountain);
  border-color: var(--cave);
}
.btn--solid:hover { background: #0d161b; }
.btn--outline {
  background: transparent;
  color: var(--cave);
  border-color: var(--cave);
}
.btn--outline:hover { background: var(--cave); color: var(--mountain); }
.btn--lg { padding: 16px 28px; font-size: 16px; min-height: 52px; }

/* ============================================
   LINK STYLE (the only link decoration we use)
   ============================================ */
.link, a.link {
  color: var(--sea);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.link:hover, a.link:hover { border-bottom-color: var(--sea); }

.under-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cave);
  border-bottom: 1px solid var(--cave);
  padding-bottom: 4px;
  transition: color 160ms ease, border-color 160ms ease;
}
.under-link:hover { color: var(--sea); border-color: var(--sea); }
.under-link svg { transition: transform 220ms ease; }
.under-link:hover svg { transform: translateX(3px); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--mountain);
  padding: 56px 0 32px;
  border-top: 1px solid var(--rock-tint);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: flex-start;
}
.footer__brand .tagline {
  margin-top: 12px;
  max-width: 32ch;
  color: var(--rock);
  font-size: 15px;
  line-height: 1.5;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  color: var(--rock);
  font-size: 16px;
}
.footer__links a:hover { color: var(--cave); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rock-tint);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--rock);
  font-size: 14px;
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 56px;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--rock);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--rock-tint);
  color: var(--cave);
  outline: none;
  transition: border-color 160ms ease;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--cave); }
.form-field textarea { min-height: 140px; resize: vertical; }
.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--rock);
  line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--cave);
  flex-shrink: 0;
}

/* ============================================
   CONTACT (used on Hjem + Online Coaching)
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
.contact-info__row { display: flex; flex-direction: column; gap: 2px; }
.contact-info__label { font-size: 14px; color: var(--rock); }
.contact-info__value { font-size: 17px; color: var(--cave); }

@media (min-width: 900px) {
  /* Fixed widths, not fractions. 1.2fr/1fr gave the two-row info aside a 549px
     column, so the gap between form and footer read as a hole. Trailing space now
     sits at the container edge, where it reads as margin. */
  .contact-grid { grid-template-columns: minmax(0, 620px) minmax(0, 300px); gap: 72px; justify-content: start; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cave);
  outline-offset: 3px;
}

/* ============================================
   BOLD HERO (shared)
   ============================================ */
.bold-hero {
  position: relative;
  padding: 0;
  min-height: 78vh;
  overflow: hidden;
  background: var(--mountain);
  border-bottom: 1px solid var(--rock-tint);
}
.bold-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1581009146145-b5ef050c2e1e?w=2000&q=80&auto=format&fit=crop&sat=-100');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.95;
}
.bold-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Soft left wash so the headline stays on white */
    linear-gradient(90deg, var(--mountain) 0%, rgba(255,255,255,0.92) 20%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.15) 70%, rgba(255,255,255,0) 100%),
    /* Light top + bottom fade into the page */
    linear-gradient(180deg, var(--mountain) 0%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 80%, var(--mountain) 100%);
  pointer-events: none;
}
.bold-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 78vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 64px 0 32px;
}
.bold-hero__display {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: clamp(40px, 13vw, 180px);
  line-height: 0.92;
  margin: 0;
  color: var(--cave);
  align-self: start;
  word-break: break-word;
  hyphens: auto;
}
.bold-hero__display span { display: block; }
.bold-hero__foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  padding-top: 40px;
}
.bold-hero__sub-block {
  max-width: 44ch;
  justify-self: start;
}
.bold-hero__sub {
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--cave);
  line-height: 1.45;
  margin: 0 0 18px;
}

@media (min-width: 720px) {
  .bold-hero__foot { grid-template-columns: 1fr 1fr; }
  .bold-hero__sub-block { justify-self: end; }
}
@media (min-width: 960px) {
  .bold-hero { min-height: 84vh; }
  .bold-hero__inner { min-height: 84vh; padding: 80px 0 48px; }
  .bold-hero__sub-block { max-width: 36ch; }
}
