:root {
  --navy: #1B2436;
  --navy-deep: #131A28;
  --gold: #D9A566;
  --gold-soft: #E8C596;
  --ivory: #F3ECE0;
  --charcoal: #2C2A28;
  --wine: #5C2A2E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
}

h1, h2, h3, .serif {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

a { color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Skip link for keyboard/screen reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* NAV */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 32px 0;
}
nav.solid {
  position: relative;
  background: var(--navy);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logotype { display: inline-flex; }
.logotype img {
  height: 125px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-color: var(--gold); }

/* HERO (homepage) */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding-top: 150px;
  padding-bottom: 64px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow {
  color: var(--gold-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 34ch;
}
.hero-copy h1 {
  color: var(--ivory);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero-copy p.lede {
  color: #C9CFDB;
  font-size: 1.1rem;
  max-width: 42ch;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 0.98rem;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: 'Public Sans', sans-serif;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 560px;
  border-radius: 3px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.96);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(27,36,54,0.35) 22%, rgba(27,36,54,0) 55%);
}
.hero-image .caption {
  position: absolute;
  bottom: 18px;
  right: 18px;
  color: rgba(243,236,224,0.75);
  font-size: 0.78rem;
  z-index: 2;
  text-align: right;
}

/* PAGE HEADER (inner pages) */
.page-header {
  background: var(--navy);
  padding: 200px 0 88px;
  position: relative;
}
.page-header .kicker { color: var(--gold-soft); }
.page-header h1 {
  color: var(--ivory);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  max-width: 20ch;
  margin: 14px 0 22px;
}
.page-header p.lede {
  color: #C9CFDB;
  font-size: 1.08rem;
  max-width: 56ch;
}

/* GENERIC SECTIONS */
.section-light { background: var(--ivory); padding: 100px 0; }
.section-dark { background: var(--navy-deep); color: var(--ivory); padding: 100px 0; }
.section-mid { background: #EAE2D2; padding: 100px 0; }

.kicker {
  color: var(--wine);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-dark .kicker { color: var(--gold-soft); }

h2.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 22px;
  max-width: 20ch;
}
.section-dark h2.section-title { color: var(--ivory); }

/* TWO COLUMN with image */
.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1.15fr 0.85fr; }
.two-col.reverse figure { order: 2; }
.two-col figure img {
  width: 100%;
  display: block;
  box-shadow: 0 24px 48px -20px rgba(44,42,40,0.35);
}
.two-col p {
  max-width: 56ch;
  margin-bottom: 18px;
  color: #4a4744;
}
.section-dark .two-col p { color: #C9CFDB; }
.two-col p:last-of-type { margin-bottom: 0; }

/* STEPS (installation, genuinely sequential) */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.step { border-top: 2px solid var(--gold); padding-top: 20px; }
.step .num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: #4a4744; font-size: 0.96rem; }

/* SPEC TABLES — fixed layout so column 1 and column 2 line up
   across all three tables on the Produkt page */
table.spec {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.95rem;
}
table.spec caption {
  text-align: left;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
  caption-side: top;
}
table.spec th, table.spec td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(44,42,40,0.12);
}
table.spec th:first-child,
table.spec td:first-child { width: 260px; padding-left: 0; }
table.spec th { font-weight: 600; color: var(--wine); font-size: 0.82rem; }
.spec-group { margin-bottom: 48px; }
.spec-group:last-child { margin-bottom: 0; }

/* DOWNLOAD LIST */
.download-list { list-style: none; margin-top: 24px; }
.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(44,42,40,0.12);
}
.section-dark .download-list li { border-bottom: 1px solid rgba(243,236,224,0.15); }
.download-list .file-name { font-family: 'Fraunces', serif; font-size: 1.05rem; }
.download-list .file-meta { font-size: 0.85rem; color: #7a746c; }
.section-dark .download-list .file-meta { color: #9CA5B5; }
.download-list a.dl {
  text-decoration: none;
  color: var(--wine);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-dark .download-list a.dl { color: var(--gold); border-color: var(--gold); }

/* REFERENCE LIST (homepage teaser) */
.ref-list { list-style: none; border-top: 1px solid rgba(243,236,224,0.15); }
.ref-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(243,236,224,0.15);
}
.ref-list .ref-name { font-family: 'Fraunces', serif; font-size: 1.35rem; }
.ref-list .ref-place { color: #9CA5B5; font-size: 0.95rem; text-align: right; }
.ref-more { margin-top: 44px; }
.ref-more a {
  text-decoration: none;
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* REFERENCE EDITORIAL ENTRIES (referenser page) */
.ref-entry {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(44,42,40,0.12);
}
.ref-entry:first-of-type { padding-top: 0; }
.ref-entry:last-of-type { border-bottom: none; padding-bottom: 0; }
.ref-entry.text-only { grid-template-columns: 1fr; max-width: 62ch; }
.ref-entry .images { display: grid; gap: 14px; }
.ref-entry .images.two { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.ref-entry .images.two img { height: 100%; object-fit: cover; }
.ref-entry img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 24px 48px -20px rgba(44,42,40,0.3);
}
.ref-entry h3 { font-size: 1.6rem; margin-bottom: 8px; }
.ref-entry .place { color: var(--wine); font-size: 0.92rem; margin-bottom: 18px; }
.ref-entry p { color: #4a4744; max-width: 52ch; }

/* VIDEO */
.video-frame {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.5);
}
.video-frame video { width: 100%; display: block; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-card {
  background: rgba(44,42,40,0.03);
  border: 1px solid rgba(44,42,40,0.12);
  padding: 40px;
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.contact-card p { color: #4a4744; margin-bottom: 24px; max-width: 42ch; }
.contact-info .label {
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 6px;
}
.contact-info .label:first-child { margin-top: 0; }
.contact-info p { margin-bottom: 4px; color: #4a4744; }

/* FOOTER */
footer { background: var(--navy); color: #9CA5B5; padding: 56px 0; font-size: 0.9rem; }
footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer img { height: 72px; opacity: 0.85; }
footer .foot-links { display: flex; gap: 24px; list-style: none; }
footer .foot-links a { text-decoration: none; color: #9CA5B5; }
footer .foot-links a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-image { min-height: 320px; order: -1; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col figure, .two-col.reverse figure { order: -1; max-width: 320px; }
  .nav-links { gap: 22px; font-size: 0.85rem; }
  .steps { grid-template-columns: 1fr; }
  .ref-entry, .ref-entry.text-only { grid-template-columns: 1fr; padding: 48px 0; }
  .ref-entry .images.two { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-header { padding: 150px 0 64px; }
  footer .container { flex-direction: column; align-items: flex-start; }
  table.spec th:first-child, table.spec td:first-child { width: 55%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
