/* =========================================================
   G. Nordbys Sykkel & Sport
   Rolig og lettlest: stor tekst, høy kontrast, store knapper
   og få valg. Laget for en kundegruppe som er litt eldre.

   Logoblå:  #0255A7  (knapper, lenker, ikoner – 7,3:1 mot hvitt)
   Mørkblå:  #01407E  (hover)
   Marine:   #0B2340  (overskrifter, toppstripe, bunntekst)
   Tekst:    #1B2430
   Dempet:   #475467  (brødtekst nr. 2 – 7,7:1 mot hvitt)
   Isblå:    #EEF4FB  (annenhver seksjon)
   Gul:      #FFD23F  (små uthevinger, med marine tekst)
   ========================================================= */

:root {
  --blue: #0255a7;
  --blue-dark: #01407e;
  --blue-soft: #dce9f8;
  --navy: #0b2340;
  --text: #1b2430;
  --muted: #475467;
  --line: #d3deea;
  --tint: #eef4fb;
  --white: #ffffff;
  --yellow: #ffd23f;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 35, 64, 0.06), 0 8px 24px rgba(11, 35, 64, 0.08);

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Flaten bak siden er mørk som toppstripa og bunnteksten, så det ikke blinker hvitt når man drar forbi kanten på mobil. */
html { background: var(--navy); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* Lenker i tekst er alltid understreket, så de er lette å kjenne igjen. */
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--white); font-weight: 700;
  padding: 12px 20px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--container); margin: 0 auto; padding-left: 28px; padding-right: 28px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); letter-spacing: -0.005em; }
h3 { font-size: 1.45rem; font-weight: 700; }

.i { width: 1.1em; height: 1.1em; flex: none; }

.kicker { font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 18px; max-width: 36em; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 24px;
  border-radius: 12px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .i { width: 22px; height: 22px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--tint); color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.icon-bubble {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-bubble .i { width: 26px; height: 26px; }

/* ---------- Toppstripe ---------- */
.topbar { background: var(--navy); color: #e3ebf5; font-size: 16px; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 28px; padding-top: 6px; padding-bottom: 6px; }
.topbar-inner > * { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.topbar .i { width: 18px; height: 18px; color: #8fbcf0; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--yellow); text-decoration: underline; }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }

/* ---------- Toppmeny ---------- */
.site-header { position: relative; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 100px; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { height: 70px; width: auto; }
.main-nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none;
}
.nav-links a:hover { background: var(--tint); color: var(--blue-dark); }
.nav-links a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 10px 10px 0 0; }
.nav-call { flex: none; }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 16px; border-radius: 12px;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font: 700 1.05rem var(--font-body); cursor: pointer;
}
.nav-toggle .i { width: 24px; height: 24px; }

@media (max-width: 1060px) {
  .nav { min-height: 84px; gap: 12px; }
  .brand img { height: 58px; }
  .nav-call { padding: 10px 16px; min-height: 52px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 35, 64, 0.14);
    padding: 6px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 12px; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); background: var(--tint); border-radius: 0; }
}
/* Toppstripa viser telefonnummeret på små skjermer, så knappen trengs ikke der. */
@media (max-width: 600px) {
  .nav-call { display: none; }
  .brand img { height: 50px; }
}

/* ---------- Seksjoner ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .lede { margin-top: 14px; }

/* ---------- Forside: toppfelt ---------- */
.hero { background: var(--tint); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--line); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.info-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; margin-top: 52px; }
.info-card {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.info-card h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 4px; }
.info-card p { font-size: 1.1rem; }
.info-card p + p { margin-top: 4px; }
.big-link { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.info-card strong, .nw { white-space: nowrap; }

@media (max-width: 960px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .info-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .info-card { flex-direction: row; gap: 16px; }
}

/* ---------- Kort ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}
.card h3 { margin-top: 18px; }
.card > h3:first-child { margin-top: 0; }
.card-logo { display: flex; align-items: flex-end; height: 62px; }
.card-logo img { width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; }
.card p { color: var(--muted); margin-top: 8px; }
.card p:last-of-type { flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; }
.more .i { width: 20px; height: 20px; }
.card .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.more):hover { border-color: var(--blue); }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Bilde og tekst side om side ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--line); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text > p:not(.kicker):not(.lede):not(.promise) { margin-top: 16px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .i { width: 24px; height: 24px; color: var(--blue); margin-top: 3px; }
.check-list.two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 600px) { .check-list.two { grid-template-columns: 1fr; } }

.promise {
  display: flex; gap: 14px; align-items: center;
  background: var(--yellow); color: var(--navy);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 26px;
  font-weight: 700; font-size: 1.15rem; line-height: 1.4;
}
.promise .i { width: 30px; height: 30px; }

/* ---------- Priser ---------- */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow); }
.price-card h3 { display: flex; align-items: center; gap: 12px; }
.price-card h3 .i { color: var(--blue); width: 28px; height: 28px; }
.price-list { margin-top: 10px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.price-list li:last-child { border-bottom: 0; }
.price-list .price { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); white-space: nowrap; }
.price-note { margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--navy); color: var(--muted); font-size: 1rem; }
@media (max-width: 520px) { .price-card { padding: 24px 22px; } }

/* ---------- Steg ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.steps .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
}
.steps h3 { margin-top: 16px; }
.steps p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Merker ---------- */
.brand-row { display: flex; flex-wrap: wrap; gap: 16px; }
.brand-row li {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  min-height: 112px; padding: 20px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.brand-row img, .brand-links img { width: auto; max-width: 100%; object-fit: contain; }
.logo-trek { height: 24px; }
.logo-kalkhoff { height: 24px; }
.logo-focus { height: 30px; }
.logo-merida { height: 62px; }
.logo-dbs { height: 30px; }
@media (max-width: 960px) { .brand-row { justify-content: center; } .brand-row li { flex: 0 0 calc((100% - 32px) / 3); } }
@media (max-width: 600px) { .brand-row li { flex-basis: calc((100% - 16px) / 2); min-height: 96px; } }

/* ---------- Undersider ---------- */
.page-head { background: var(--tint); padding: 56px 0 52px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16em; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--navy); font-weight: 700; text-decoration: none;
}
.jump a:hover { border-color: var(--blue); color: var(--blue); }
[id] { scroll-margin-top: 20px; }

.brand-links { display: grid; gap: 14px; margin-top: 26px; }
.brand-links li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.brand-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.brand-links a .i { width: 18px; height: 18px; }

.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.feature-card h3 { margin-top: 18px; }
.feature-card p { color: var(--muted); margin-top: 10px; }

.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 36px; box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-box p { color: var(--muted); margin-top: 6px; }
.cta-box .btn-row { margin-top: 0; }

/* ---------- Om oss ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start; }
.prose p { font-size: 1.1rem; line-height: 1.7; }
.prose p + p { margin-top: 18px; }
.prose .quote {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 1.9rem); line-height: 1.3;
  color: var(--navy); border-left: 5px solid var(--yellow); padding-left: 22px; margin-bottom: 28px;
}
.facts-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow); }
.facts-card h2 { font-size: 1.6rem; }
.facts-card dl { margin: 10px 0 0; }
.facts-card dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-card dt { font-weight: 700; color: var(--muted); font-size: 1rem; }
.facts-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Kontakt ---------- */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list .label { display: block; font-weight: 700; color: var(--muted); font-size: 1rem; }
.contact-list .value { display: block; font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.contact-list a.value { color: var(--blue); }
.contact-list .sub { display: block; margin-top: 6px; }
.contact-list > li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.hours { border-collapse: collapse; margin-top: 4px; font-size: 1.15rem; }
.hours th { text-align: left; font-weight: 400; padding: 4px 28px 4px 0; }
.hours td { font-weight: 700; color: var(--navy); padding: 4px 0; white-space: nowrap; }


@media (max-width: 560px) { .contact-card { padding: 24px 20px; } }

/* ---------- Personvern ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 24px; margin-top: 12px; }
.legal li + li { margin-top: 6px; }
.legal .updated { margin-top: 44px; padding-top: 16px; border-top: 2px solid var(--navy); color: var(--muted); font-size: 1rem; }

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 110px; }

/* ---------- Bunntekst ---------- */
.site-footer { background: var(--navy); color: #dfe7f1; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 84px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 22em; font-family: var(--font-head); font-style: italic; color: #c9d6e6; }
.site-footer h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: #9cc6f3; margin-bottom: 10px; letter-spacing: 0.01em; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid p, .footer-grid a { display: block; font-size: 1.05rem; }
.footer-grid a { padding: 4px 0; overflow-wrap: anywhere; }
.footer-grid p + a { margin-top: 6px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px; padding-bottom: 28px;
  font-size: 0.95rem; color: #b8c7d9;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.footer-bottom a { display: inline-block; padding: 6px 0; color: #e3ebf5; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

@media (max-width: 700px) {
  body { font-size: 18px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 60px 0; }
  .page-head { padding: 40px 0; }
  .btn-row .btn { width: 100%; }
  .cta-box { padding: 26px 22px; }
}
