/* Homepage + catalogue + product page */

/* Hero: full-bleed press video under a navy shade (poster image if video is off) */
.hero {
  position: relative; overflow: hidden; padding: 0;
  min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center;
  background: var(--navy) url("../video/trykkeri-poster.jpg") center / cover no-repeat;
  color: var(--white);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(247,148,29,.28), transparent 55%),
    linear-gradient(90deg, rgba(7,37,74,.96) 0%, rgba(7,37,74,.9) 36%, rgba(7,37,74,.62) 72%, rgba(7,37,74,.5) 100%),
    linear-gradient(0deg, rgba(7,37,74,.5), transparent 35%);
}
.hero-inner { position: relative; padding-block: 96px; }
.hero-copy { max-width: min(640px, 52vw); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.75rem); font-weight: 700; line-height: 0.98; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .eyebrow { color: var(--accent); }
.hero .lead { font-size: 1.25rem; color: #E6E6E6; max-width: 42ch; margin: 28px 0 36px; }
.hero .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stamp { --stamp: clamp(230px, 20vw, 300px); position: absolute; left: 67%; top: 54%; width: var(--stamp); height: var(--stamp); border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-size: calc(var(--stamp) * .135); font-weight: 600; text-transform: uppercase; line-height: 1.08; transform: translate(-50%, -50%) rotate(-10deg); box-shadow: 0 20px 40px -16px rgba(0,0,0,.65); }
.hero-stamp b { display: block; margin: .02em 0 .06em; font-size: 1.6em; font-weight: 700; color: var(--navy); white-space: nowrap; }
.hero-stamp span { display: block; letter-spacing: .04em; }
.video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: var(--pill); border: 1px solid rgba(255,255,255,.45); background: rgba(7,37,74,.55);
  color: var(--white); font-weight: 700; font-size: 0.9rem; cursor: pointer; backdrop-filter: blur(4px);
}
.video-toggle:hover { background: rgba(7,37,74,.85); }
.video-toggle svg { width: 14px; height: 14px; }
@media (max-width: 960px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-inner { width: 100%; padding-block: 72px 32px; }
  .hero-copy { max-width: 640px; }
  .hero-shade { background: radial-gradient(ellipse at 100% 100%, rgba(247,148,29,.25), transparent 60%), linear-gradient(180deg, rgba(7,37,74,.92) 0%, rgba(7,37,74,.8) 55%, rgba(7,37,74,.62) 100%); }
  .hero-stamp { --stamp: 204px; position: relative; left: auto; top: auto; align-self: flex-start; margin: 0 0 72px var(--gutter); transform: rotate(-10deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } .video-toggle { display: none; } }

.facts { background: var(--navy); color: var(--white); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts .wrap > div { padding: 30px 24px 30px 0; }
.facts .wrap > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.15); }
.facts b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; text-transform: uppercase; color: var(--accent); }
.facts span { color: #D3DBE7; font-size: 1rem; }
@media (max-width: 860px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .facts .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts .wrap > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-width: 480px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .facts .wrap > div, .facts .wrap > div + div { padding-left: 0; border-left: 0; }
  .facts .wrap > div + div { border-top: 1px solid rgba(255,255,255,.15); }
}

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  position: relative; overflow: hidden; border-radius: 14px; padding: 16px 22px 24px;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(0,0,0,.5); }
.cat .cat-art { aspect-ratio: 4 / 3; margin: 0 -6px 8px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 8px; }
.cat .cat-art svg { width: 100%; height: 100%; }
.cat h3 { font-size: 1.6rem; position: relative; }
.cat p { position: relative; color: var(--muted); font-size: 1rem; }
.cat .count { position: relative; font-weight: 800; color: var(--accent-deep); }
.cat.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cat.dark p { color: #D3DBE7; } .cat.dark .count { color: var(--accent); }
.cat.orange { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.cat.orange p { color: var(--navy); } .cat.orange .count { color: var(--navy); }
@media (max-width: 1000px) { .cats { grid-template-columns: 1fr 1fr; } }
.cat .count { margin-top: auto; padding-top: 6px; }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }

.more-link { margin-top: 36px; display: flex; justify-content: center; }
.bg-paper { background: var(--paper); }

/* Calculator teaser */
.teaser { background: var(--accent); color: var(--navy); position: relative; overflow: hidden; }
.teaser .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.teaser .eyebrow { color: var(--navy); } .teaser .eyebrow::before { background: var(--navy); }
.teaser h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.teaser p { font-size: 1.125rem; color: var(--navy); margin: 22px 0 32px; max-width: 46ch; }
.teaser-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.teaser-list a { display: inline-block; padding: 8px 16px; border-radius: var(--pill); background: rgba(255,255,255,.35); color: var(--navy); text-decoration: none; font-weight: 700; }
.teaser-list a:hover { background: var(--white); color: var(--navy); }
.quick { background: var(--white); color: var(--ink); border-radius: 16px; padding: 32px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); }
.quick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.quick-head h3 { font-size: 1.6rem; }
.quick-head span { color: var(--muted); font-size: 0.95rem; }
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick { padding: 14px 8px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.pick:hover { border-color: var(--accent); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--navy); }
.quick-total { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.quick-total b { font-family: var(--f-display); font-weight: 600; font-size: 2.75rem; line-height: 1; display: block; }
.quick-total small { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.quick .btn { width: 100%; margin-top: 24px; }
@media (max-width: 900px) { .teaser .wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .picks { grid-template-columns: 1fr 1fr; } .quick { padding: 24px 20px; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 12px; padding: 36px 34px 38px; display: flex; flex-direction: column; gap: 16px; }
.service .label { color: var(--muted); }
.service h3 { font-size: 2rem; }
.service p { color: var(--ink-2); max-width: 54ch; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.service li a, .service li span { display: inline-block; font-size: 0.95rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--paper); text-decoration: none; font-weight: 600; }
.service li a:hover { border-color: var(--accent); color: var(--accent-deep); }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } .service { padding: 28px 22px 30px; } }

/* FSC band */
.fsc { background: var(--navy); color: var(--white); padding: 72px 0; }
.fsc .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.fsc-mark { width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--accent); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; color: var(--accent); }
.fsc h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.fsc p { margin-top: 10px; font-size: 1.125rem; max-width: 56ch; color: #D3DBE7; }
.fsc .btn-ghost { color: var(--white); }
@media (max-width: 860px) { .fsc .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-grid h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.about-copy { display: grid; gap: 20px; font-size: 1.125rem; color: var(--ink-2); }
.steps { margin-top: 36px; border-top: 1px solid var(--line); }
.steps div { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.steps b { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact .section-head p { color: #C4CFDE; }
.contact .eyebrow { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-list { border-top: 1px solid var(--line-dark); }
.contact-list a, .contact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.contact-list .label { color: #A9B6C8; padding-top: 4px; }
.contact-list b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; }
.contact-list a:hover b { color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 32px; }
.socials a { width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 20px; height: 20px; }
.contact .field input, .contact .field textarea, .contact .field select { background: var(--navy-deep); border-color: var(--line-dark); color: var(--white); }
.contact .form-note { color: #A9B6C8; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-list a, .contact-list div { grid-template-columns: 1fr; gap: 4px; } }

/* Catalogue page */
.filters { position: sticky; top: 88px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: thin; }
.filter { flex: none; padding: 10px 18px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap; }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.filter[aria-pressed="true"] span { color: #C4CFDE; }
.cat-block { padding: 64px 0 0; scroll-margin-top: 170px; }
.cat-block:last-child { padding-bottom: 104px; }
.cat-block header { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 3px solid var(--accent); }
.cat-block h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.cat-block header p { color: var(--muted); font-size: 1.0625rem; }
.quote-band { margin-top: 72px; background: var(--paper); border-radius: 16px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.quote-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.quote-band p { color: var(--muted); margin-top: 6px; font-size: 1.0625rem; }

/* Product page */
.product { padding: 56px 0 96px; }
.product-grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.product-art { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 36px; position: relative; }
.product-art svg { width: 100%; height: 100%; }
.product-info h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.product-info .lead { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-2); }
.product-price { margin: 28px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-price .price { font-size: 2rem; font-family: var(--f-display); font-weight: 600; }
.product-price .price small { font-family: var(--f-body); font-size: 1rem; }
.product-price .vat { color: var(--muted); font-size: 0.95rem; display: block; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 200px; }
.specs { margin-top: 32px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-weight: 700; }
.specs dd { margin: 0; font-weight: 600; }
.estimate { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #FFD3B0; font-size: 0.95rem; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-row label { font-weight: 700; }
.stepper-mini { display: inline-flex; border: 2px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.stepper-mini button { width: 44px; border: 0; background: var(--paper); font-size: 1.3rem; cursor: pointer; }
.stepper-mini input { width: 64px; border: 0; text-align: center; font-weight: 800; font-size: 1.1rem; padding: 8px 0; }
.stepper-mini input:focus { outline: none; }
.related { padding: 0 0 104px; }
.related h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 28px; }
@media (max-width: 900px) { .product-grid-2 { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .specs div { grid-template-columns: 1fr; gap: 2px; } .product-art { padding: 20px; } }
