/* SBU – Svensen Bygg & Utleie
   Layout og uttrykk basert på Squish-templaten:
   hvit flate, tynne rammer, avrundede kort, sorte pill-knapper,
   små kursiv-serif seksjonsetiketter. */

:root {
  --ink: #141414;
  --ink-soft: #5c5a56;
  --paper: #ffffff;
  --mist: #f5f4f1;
  --line: #e7e5e0;
  --card-r: 22px;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typografi ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

.label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.sec-head p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }

/* ---------- knapper ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.light:hover { background: var(--mist); }

.arrow-link { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link svg { transition: transform .15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid transparent;
}
header.site.scrolled { border-bottom-color: var(--line); }
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: #333; }
.nav-links a:hover { color: #000; }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- hero (bilde i full bredde, uten ramme) ---------- */
.hero { padding: 0; }
.hero-inner {
  position: relative; overflow: hidden;
  height: 100vh; height: min(100vh, 1000px); height: min(100dvh, 1000px);
  display: flex; align-items: center;
  background: #1b2027;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 0;
}
.hero-inner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,14,20,.5) 0%, rgba(10,14,20,.12) 42%, rgba(8,10,16,.22) 62%, rgba(6,8,12,.6) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%; max-width: 640px;
  margin: 0 auto 0 max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  padding-top: 60px; color: #fff;
}
.hero-content h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 650; text-wrap: balance; }
.hero-content p { font-size: 17px; max-width: 420px; opacity: .94; margin-top: 18px; }
.hero-btns { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-btns .btn { background: #fff; color: var(--ink); }
.hero-btns .btn:hover { background: var(--mist); }
.hero-btns .btn.ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-btns .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-topnav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }

/* ---------- generell seksjon ---------- */
section { padding: 96px 0; }
section.tight { padding-top: 64px; }

/* ---------- inngangskort (bygg / utleie) ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.entry-card {
  border: 1px solid var(--line); border-radius: var(--card-r);
  padding: 22px; background: #fff;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -22px rgba(0,0,0,.22); }
.entry-card .thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: var(--mist); }
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-card h3 { font-size: 22px; }
.entry-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.entry-cta { text-align: center; margin-top: 36px; }

/* ---------- om / statskort ---------- */
.about-card {
  background: var(--mist); border-radius: 28px; padding: 26px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px;
}
.about-photo { border-radius: 18px; overflow: hidden; min-height: 380px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { padding: 18px 10px; display: flex; flex-direction: column; }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 420px; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.about-feats h4 { font-size: 16px; margin-bottom: 6px; }
.about-feats p { font-size: 14px; color: var(--ink-soft); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: auto; padding-top: 34px; }
.stat b { font-size: clamp(34px, 4vw, 46px); font-weight: 650; letter-spacing: -0.02em; display: block; line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-soft); display: block; margin-top: 8px; }
.stat .tag { display: inline-block; margin-top: 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: #fff; color: var(--ink); }

/* ---------- strø-kort (dekor) ---------- */
.scatter { display: flex; justify-content: center; gap: 26px; padding: 10px 0 0; }
.scatter .card {
  width: 132px; height: 132px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; padding: 8px;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.25);
}
.scatter .card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.scatter .card:nth-child(1) { transform: rotate(-7deg) translateY(10px); }
.scatter .card:nth-child(2) { transform: rotate(3deg); }
.scatter .card:nth-child(3) { transform: rotate(8deg) translateY(12px); }

/* ---------- slik jobber vi ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step em { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 15px; }
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* ---------- prosjekt-accordion ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split-photo { position: relative; border-radius: var(--card-r); overflow: hidden; aspect-ratio: 4/3.4; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- før/etter-sammenligning (hover-slider) ---------- */
.compare { position: absolute; inset: 0; overflow: hidden; cursor: ew-resize; touch-action: none; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.compare-after-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  border-left: 2px solid rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.compare-handle::after {
  content: ""; position: absolute; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.compare-handle svg { position: relative; z-index: 1; color: var(--ink); }
.compare-label {
  position: absolute; bottom: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(20,20,20,.6);
  padding: 5px 12px; border-radius: 999px; pointer-events: none;
}
.compare-label-left { left: 14px; }
.compare-label-right { right: 14px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 2px; font-weight: 600; font-size: 17px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--ink-soft); }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding: 0 2px 18px; color: var(--ink-soft); font-size: 15px; }
.acc .acc-body li { padding: 4px 0 4px 22px; position: relative; }
.acc .acc-body li::before { content: "✓"; position: absolute; left: 0; font-size: 13px; color: var(--ink); }

/* ---------- produkter ---------- */
.product-card {
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.2fr; margin-bottom: 22px; background: #fff;
}
.product-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.product-copy h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.product-copy p { color: var(--ink-soft); font-size: 15px; max-width: 400px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.chip { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink-soft); }
.product-img { aspect-ratio: 16/10; min-height: 340px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- tjenester ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.feat svg { width: 26px; height: 26px; margin-bottom: 12px; }
.feat h4 { font-size: 16px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--ink-soft); }

/* ---------- leieelementer ---------- */
.rent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rent-card {
  border: 1px solid var(--line); border-radius: var(--card-r); padding: 18px;
  display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rent-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgba(0,0,0,.2); }
.rent-card .thumb { width: 150px; height: 120px; border-radius: 14px; overflow: hidden; background: var(--mist); }
.rent-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rent-card .tag { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--ink-soft); display: inline-block; margin-bottom: 8px; }
.rent-card h4 { font-size: 17px; margin-bottom: 4px; }
.rent-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- feedback ---------- */
.quote-card {
  background: var(--mist); border-radius: 28px; padding: 26px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: center;
}
.quote-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 1/1.05; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-copy { padding: 10px 20px 10px 0; }
.stars { color: #111; letter-spacing: 3px; font-size: 14px; margin-bottom: 18px; }
blockquote { font-size: clamp(20px, 2.6vw, 27px); font-weight: 550; letter-spacing: -0.01em; line-height: 1.3; }
.quote-who { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.quote-who b { color: var(--ink); display: block; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; font-weight: 600; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 16px; font-size: 14px; color: var(--ink-soft); }
.faq-group-label {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase;
  letter-spacing: .06em; margin: 32px 0 12px;
}
.faq-group-label:first-child { margin-top: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 110px 0; }
.cta h2 { font-size: clamp(34px, 5vw, 52px); }
.cta .btn { margin-top: 28px; }

/* ---------- footer (blueprint-linjer mellom kolonnene, som målelinjer på en tegning) ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px; font-size: 14px; color: var(--ink-soft);
  background: #fff;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; column-gap: 32px; }
.foot-grid > div { position: relative; }
.foot-grid > div:not(:first-child) { border-left: 1px solid var(--line); padding-left: 32px; }
.foot-grid > div:not(:first-child)::before {
  content: ""; position: absolute; left: -5px; top: -14px; width: 9px; height: 9px;
  background:
    linear-gradient(var(--line), var(--line)) center / 1px 9px no-repeat,
    linear-gradient(var(--line), var(--line)) center / 9px 1px no-repeat;
}
.foot-grid > div:not(:first-child)::after {
  content: ""; position: absolute; left: -5px; bottom: -14px; width: 9px; height: 9px;
  background:
    linear-gradient(var(--line), var(--line)) center / 1px 9px no-repeat,
    linear-gradient(var(--line), var(--line)) center / 9px 1px no-repeat;
}
.foot-grid h5 { font-size: 13px; color: var(--ink); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- galleri (produkt-detaljsider) ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery-grid figure { border-radius: var(--card-r); overflow: hidden; margin: 0; aspect-ratio: 4/3.2; }
.gallery-grid figure.wide { grid-column: span 2; aspect-ratio: 16/8; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid figcaption { display: none; }

/* ---------- undersider ---------- */
.page-hero { padding: 10px 10px 0; }
.page-hero-inner {
  position: relative; border-radius: 26px; overflow: hidden;
  min-height: 46vh; display: flex; align-items: flex-end;
}
.page-hero-inner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.page-hero-content { position: relative; z-index: 2; color: #fff; padding: 48px 56px; }
.page-hero-content h1 { font-size: clamp(36px, 5vw, 56px); }
.page-hero-content p { max-width: 480px; margin-top: 12px; opacity: .95; }

/* ---------- responsivt ---------- */
@media (max-width: 940px) {
  .hero-content { max-width: 560px; margin: 0; padding: 60px 32px 0; }
  .about-card, .split, .quote-card { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-img { min-height: 260px; order: -1; }
  .steps, .steps-5 { grid-template-columns: 1fr; gap: 30px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .rent-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-grid > div:nth-child(3) { border-left: none; padding-left: 0; }
  .foot-grid > div:nth-child(3)::before,
  .foot-grid > div:nth-child(3)::after { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .entry-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .stat-row, .about-feats { grid-template-columns: 1fr; }
  .rent-card { grid-template-columns: 1fr; }
  .rent-card .thumb { width: 100%; height: 170px; }
  .scatter .card { width: 100px; height: 100px; }
  .hero-content { padding: 48px 24px 0; }
  .page-hero-content { padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .foot-grid > div:not(:first-child) { border-left: none; padding-left: 0; }
  .foot-grid > div:not(:first-child)::before,
  .foot-grid > div:not(:first-child)::after { display: none; }
}
