/* Kyrre Profil AS — redesign
   Palett hentet fra deres egen logo/CSS:
   korall #F55139, krem #EBE7D9, charcoal #1E1F22 */

:root {
  --brand: #f55139;
  --brand-deep: #d83c22;
  --brand-soft: #fbe3dc;
  --ink: #1e1f22;
  --ink-soft: #4a4843;
  --muted: #7c776e;
  --paper: #fbf8f1;
  --paper-2: #f3ede0;
  --cream: #ebe7d9;
  --line: #e6ddcb;
  --white: #ffffff;
  --dark: #1c1d20;
  --dark-2: #25262a;

  --shadow-sm: 0 2px 8px rgba(30, 31, 34, .06);
  --shadow-md: 0 12px 30px rgba(30, 31, 34, .10);
  --shadow-lg: 0 30px 70px rgba(216, 60, 34, .14);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;

  --container: 1180px;
  --pad: clamp(1.15rem, 5vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 8.5rem);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.06; letter-spacing: -.02em; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(1.95rem, 0.7rem + 5vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 0.9rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.4rem); letter-spacing: -.01em; }

.brand-word { color: var(--brand); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(216, 60, 34, .28); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(216, 60, 34, .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.1rem 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(251, 248, 241, .97);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(30, 31, 34, .05);
  padding: .7rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { height: clamp(18px, 5vw, 26px); width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.nav-link {
  font-weight: 500; font-size: .98rem; color: var(--ink-soft); position: relative; padding: .25rem 0;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--brand); transition: width .25s ease;
}
.nav a.nav-link:hover { color: var(--ink); }
.nav a.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(8rem, 16vw, 11rem); padding-bottom: var(--section); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin: 1.4rem 0 1.5rem; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-soft); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta { display: flex; gap: 1.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-size: 1.6rem; letter-spacing: -.02em; }
.hero-meta span { font-size: .85rem; color: var(--muted); }

/* hero visual: catalog collage */
.hero-visual { position: relative; }
.stack {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1rem; align-items: stretch;
}
.stack-card {
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg); background: var(--white); border: 6px solid #fff;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-1 { grid-column: 1; grid-row: 1 / span 2; align-self: center; aspect-ratio: 4/5; }
.stack-2 { grid-column: 2; grid-row: 1; transform: rotate(1.5deg); }
.stack-3 { grid-column: 2; grid-row: 2; transform: rotate(-1.5deg); }
.hero-badge {
  position: absolute; z-index: 4; left: -8px; bottom: -16px;
  background: var(--ink); color: var(--cream); border-radius: var(--r-sm);
  padding: .7rem 1.1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem;
}
.hero-badge b { color: var(--brand); font-size: 1.15rem; }

.deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.deco-ring { width: 230px; height: 230px; border: 2px solid var(--brand); opacity: .25; right: -60px; top: 4%; }
.deco-dot { width: 90px; height: 90px; background: var(--brand-soft); left: -40px; bottom: 12%; }

/* ---------- Brand strip ---------- */
.brands { border-block: 1px solid var(--line); background: var(--paper-2); }
.brands-inner { padding: 1.6rem 0; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.brands-label { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.brands-list { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; justify-content: center; }
.brands-list span { font-weight: 600; color: var(--ink-soft); letter-spacing: -.01em; opacity: .8; }

/* ---------- Sections ---------- */
section.block { padding-block: var(--section); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 1rem 0 .9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.2rem 2rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 1.4rem;
}
.service-ico svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .7rem; }
.service-card p { color: var(--ink-soft); font-size: .98rem; }

/* offer chips */
.offer { background: var(--cream); }
.offer .section-head { margin-bottom: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.3rem; font-weight: 600; color: var(--ink); font-size: 1rem;
  display: inline-flex; align-items: center; gap: .55rem; transition: .25s;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.chip:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* about / stats — drenched dark */
.about { background: var(--dark); color: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about h2 { color: #fff; margin-bottom: 1.2rem; }
.about p { color: #cfc9bd; font-size: 1.08rem; }
.about .eyebrow { color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
  background: var(--dark-2); border: 1px solid #34353a; border-radius: var(--r-md); padding: 1.6rem;
}
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand); letter-spacing: -.03em; }
.stat span { color: #b9b3a7; font-size: .92rem; }

/* catalogs preview */
.cat-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.7rem, 2vw, 1.2rem); }
.cat-cover {
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white);
  border: 1px solid var(--line); aspect-ratio: 3/4; transition: transform .3s ease, box-shadow .3s ease;
}
.cat-cover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-cta { margin-top: 2.6rem; display: flex; justify-content: center; }

/* contact */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.8rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
}
.contact-item .ci-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.contact-item .ci-ico svg { width: 22px; height: 22px; }
.contact-item small { color: var(--muted); display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-item b { font-size: 1.08rem; font-weight: 600; }
.contact-card {
  background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.contact-card h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8rem; }
.contact-card p { color: rgba(255,255,255,.9); margin-bottom: 1.6rem; }
.contact-card .btn-light { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9bd; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #34353a; }
.footer-logo { height: 30px; width: auto; margin-bottom: 1.2rem; }
.footer-top p { font-size: .95rem; max-width: 22rem; }
.footer-col h4 { color: var(--cream); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: #cfc9bd; font-size: .98rem; margin-bottom: .55rem; transition: color .2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: .88rem; color: #8d877c; }
.footer-bottom a { color: var(--cream); }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Kataloger page ---------- */
.page-hero { padding-top: clamp(8.5rem, 16vw, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 38rem; margin-top: 1rem; }
.cat-section { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.cat-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .8rem; }
.cat-section h2::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--brand); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.7rem, 1.6vw, 1.2rem); }
.cat-item { display: block; }
.cat-item .cover {
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white);
  border: 1px solid var(--line); aspect-ratio: 3/4; transition: transform .3s ease, box-shadow .3s ease; position: relative;
}
.cat-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-item .cover::after {
  content: "Åpne katalog"; position: absolute; inset: 0; background: rgba(28,29,32,.55); color: #fff;
  display: grid; place-items: center; font-weight: 600; opacity: 0; transition: opacity .3s ease;
}
.cat-item:hover .cover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-item:hover .cover::after { opacity: 1; }
.cat-item .cap { margin-top: .7rem; font-weight: 600; font-size: .95rem; }
.cat-item .cap span { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }

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

/* ---------- Responsive ---------- */
.hero { overflow: hidden; }
.hero-grid > *, .about-grid > *, .contact-grid > *, .footer-top > *,
.services-grid > *, .stats > * { min-width: 0; }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-preview-grid { grid-template-columns: repeat(2, 1fr); }

  /* Off-canvas nav */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--paper); flex-direction: column; align-items: stretch; justify-content: center;
    padding: 2rem 2rem; gap: 1.5rem; transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -20px 0 60px rgba(30,31,34,.18); z-index: 60;
  }
  .nav .nav-link { font-size: 1.2rem; padding: .35rem 0; }
  .nav .btn { width: 100%; padding-block: .95rem; }
  .nav.open { transform: none; }
  .nav-toggle { display: block; z-index: 61; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero { padding-top: 6.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 1.1rem 1.5rem; margin-top: 2.2rem; }
  .hero-meta b { font-size: 1.45rem; }
  .deco { display: none; }
  .service-card { padding: 1.8rem 1.5rem; }
  .contact-card { padding: 1.8rem 1.5rem; }
  .stat { padding: 1.3rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cat-item .cover::after { content: "Åpne"; }
}

@media (max-width: 380px) {
  .hero-meta { gap: 1rem 1.2rem; }
  .chip { padding: .6rem 1.05rem; font-size: .95rem; }
}
