/* Nord Beton & Entreprise stylesheet
   Farver, typografi og layout følger outputs/design/DESIGN_BRIEF_TIL_CLAUDE_CODE.md */

:root {
  --white: #FFFFFF;
  --charcoal: #222D32;
  --gold: #D4A75D;
  --light-neutral: #F3F4F2;
  --soft-bg: #F8F9FA;
  --text-body: #242D31;
  --text-secondary: #5B6265;
  --text-secondary-dark: #D6DCDE;
  --border-light: #E2E4E3;
  --border-dark: #39444A;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-max: 1280px;
  --side-padding: 80px;
}

@media (max-width: 1100px) {
  :root { --side-padding: 48px; }
}

@media (max-width: 760px) {
  :root { --side-padding: 24px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1100px) {
  body {
    font-size: 18px;
  }
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  left: var(--side-padding);
  top: 12px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}

.brand-icon {
  width: 35px;
  height: 40px;
  flex: none;
  background-image: url("../img/nbe-logo-original.jpg");
  background-repeat: no-repeat;
  /* Udsnit af det originale logo (N-symbolet), vist via CSS. Originalfilen er ikke ændret. */
  background-size: 98.7px 213.3px;
  background-position: -30.7px -64.7px;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-line {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--charcoal);
  white-space: nowrap;
}

.brand-line.amp {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.main-nav a:not(.nav-cta) {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-body);
  padding: 12px 2px;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.main-nav a[aria-current="page"] {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  min-height: 44px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: #1a2226;
  box-shadow: 0 6px 16px rgba(34, 45, 50, 0.25);
}

.nav-arrow {
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--charcoal);
  border-top: 3px solid var(--gold);
}

.hero .container {
  display: grid;
  grid-template-columns: 53% 47%;
  align-items: stretch;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}

.hero-text {
  padding: 72px var(--side-padding) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary-dark);
}

.hero-heading {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-heading .gold {
  color: var(--gold);
  display: block;
}

.hero-heading span {
  display: block;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary-dark);
  max-width: 46ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 6px;
  min-height: 44px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #c39849;
  box-shadow: 0 10px 24px -4px rgba(212, 167, 93, 0.45);
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
  min-height: 360px;
  padding: 48px var(--side-padding) 48px 24px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  border-radius: 8px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}

.hero-media--home img {
  object-position: 70% 42%;
}

.hero-media--beton {
  align-self: center;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.hero-media--beton img {
  object-position: 65% 35%;
}

/* ---------- Info bar ---------- */

.info-bar {
  background: var(--light-neutral);
}

.info-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-bar-item {
  padding: 28px var(--side-padding) 28px 0;
  border-left: 1px solid var(--border-light);
  padding-left: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-bar-item:first-child {
  border-left: none;
  padding-left: 0;
}

/* ---------- Section rhythm ---------- */

.section {
  padding: 100px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  display: block;
  margin-bottom: 16px;
}

.eyebrow--light {
  color: var(--text-secondary-dark);
}

.section-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-body);
}

.section-heading--on-dark {
  color: var(--white);
}

.section-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  align-self: center;
}

.section-body--on-dark {
  color: var(--text-secondary-dark);
}

/* ---------- Leverancen (rows) ---------- */

.deliverables {
  border-top: 1px solid var(--border-light);
}

.deliverable-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.deliverable-row h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-body);
}

.deliverable-row p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  align-self: center;
}

.entry-row {
  text-decoration: none;
  color: inherit;
}

.entry-row:hover {
  background: var(--light-neutral);
}

.entry-row h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-arrow {
  color: var(--gold);
  font-size: 20px;
}

/* ---------- Fagområder (forside) ---------- */

.fagomrader {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.fagomrade-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.fagomrade-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.fagomrade-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.fagomrade-text h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 8px;
}

.fagomrade-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.fagomrade-card:hover .fagomrade-text h3 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

/* ---------- Samarbejdet ---------- */

.collab {
  background: var(--charcoal);
}

.collab .section-intro {
  margin-bottom: 0;
}

.collab-steps {
  display: flex;
  flex-direction: column;
}

.collab-step {
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}

.collab-step:last-child {
  border-bottom: 1px solid var(--border-dark);
}

.collab-step h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.collab-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-dark);
}

/* ---------- Om os ---------- */

.about {
  background: var(--soft-bg);
}

.about .section-intro {
  margin-bottom: 0;
}

.about-body p + p {
  margin-top: 18px;
}

/* ---------- Kontakt ---------- */

.contact {
  background: var(--gold);
  padding: 100px 0;
}

.contact a:focus-visible {
  outline-color: var(--charcoal);
}

.contact .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.contact-heading {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.contact-lede {
  font-size: 18px;
  line-height: 1.6;
  color: #3a2f18;
  max-width: 46ch;
}

.contact-list {
  border-top: 1px solid rgba(34, 45, 50, 0.25);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(34, 45, 50, 0.25);
}

.contact-row .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
}

.contact-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--soft-bg);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-body);
}

.footer-meta {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 60ch;
}

.footer-meta a {
  color: var(--text-secondary);
}

.to-top {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-body);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.to-top:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-header .container {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
  }

  .main-nav a:not(.nav-cta) {
    padding: 8px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 48px var(--side-padding) 40px;
    gap: 22px;
  }

  .hero-heading {
    font-size: 33px;
  }

  .hero-heading--compact {
    font-size: 28px;
  }

  .hero-lede {
    font-size: 16px;
    max-width: none;
  }

  .hero-media {
    min-height: 260px;
    order: 2;
    padding: 0 var(--side-padding) 40px;
  }

  .info-bar .container {
    grid-template-columns: 1fr;
  }

  .info-bar-item {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    justify-content: flex-start;
    text-align: left;
  }

  .info-bar-item:first-child {
    border-top: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }

  .section-heading {
    font-size: 30px;
  }

  .section-body {
    font-size: 16px;
  }

  .deliverable-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .fagomrader {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact {
    padding: 64px 0;
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-heading {
    font-size: 30px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 0;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (min-width: 761px) {
  #ydelser,
  #samarbejdet,
  #om-os,
  #kontakt {
    scroll-margin-top: 140px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero .container {
    grid-template-columns: 60% 40%;
  }

  .hero-heading {
    font-size: 36px;
  }

  .hero-text {
    gap: 20px;
  }

  .section-intro {
    gap: 40px;
  }
}
