/* ============================================================
   LEUNBACH AUTOMATION – Main Stylesheet
   ============================================================

   TABLE OF CONTENTS
   -----------------
   1. Design Tokens (custom properties)
   2. Reset & Base
   3. Layout
   4. Header & Navigation
   5. Footer
   6. Page: Front (index.html)
      6a. Hero
      6b. Specialists grid
   7. Page: Projects (projekter.html)
   8. Page: About (om.html)
      8a. About rows (text + image)
      8b. Process section
   9. Page: Contact (kontakt.html)
      9a. Contact hero
      9b. Contact content & grid
      9c. Contact people
      9d. Contact location & address
  10. Page: Competences (kompetencer.html)

   ============================================================ */


/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */

:root {
  /* Colours – backgrounds */
  --bg-dark: #94bde9;
  --bg-dark2: #456e99;
  --bg-dark3: #73b3f7;
  --bg-light: #bad3f3;
  --bg-light2: #7bb3f0;
  --bg-light3: #94bde9;

  /* Colours – text */
  --text-dark: #24303b;
  --text-dark2: #414d5a;
  --text-light: #dbe3e9;
  --text-light2: #ffffff;
  --text-black: #000;

  /* Colours – accent & detail */
  --detail1: rgba(206, 103, 6, 0.6);
  --detail2: rgba(168, 83, 3, 0.6);
  --accent: #1f7a5c;

  /* Spacing scale (8 px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 30px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;

  /* Layout */
  --content-max-width: 100%;
}


/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
}


/* ------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------ */

.page-main {
  background: var(--bg-light);
  min-height: 60vh;
  padding: var(--space-3xl) var(--space-xl);
}

.section-divider {
  border: none;
  border-top: 2px solid var(--text-dark);
  background: transparent;
  width: 80%;
  opacity: 0.6;
  margin: var(--space-sm) auto;
}

section {
  padding: var(--space-lg) 70px;
}


/* ------------------------------------------------------------
   4. HEADER & NAVIGATION
   ------------------------------------------------------------ */

.site-header {
  background: var(--bg-dark);
  position: relative;
}

.nav {
  margin: 0 auto;
  padding-left: var(--space-2xl);
  padding-right: var(--space-2xl);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 140px;
  width: auto;
  display: block;
  background-color: var(--bg-dark);
}

.nav-links {
  position: relative;
  list-style: none;
  margin: 0;
  padding-right: 0;
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: var(--space-sm) 0;
  color: var(--text-dark2);
}

.nav-links a:hover {
  color: var(--text-black);
}

.nav-links a.active {
  color: var(--text-black);
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--detail2);
  transition: left 0.3s ease, width 0.3s ease;
  pointer-events: none;
}

/* Language toggle */
.lang-toggle {
  position: absolute;
  top: var(--space-md);
  right: var(--space-2xl);
  background: transparent;
  border: 2px solid var(--text-dark2);
  color: var(--text-dark2);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
  background: var(--text-dark2);
  color: var(--bg-dark);
}


/* ------------------------------------------------------------
   5. FOOTER
   ------------------------------------------------------------ */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: var(--space-lg) 70px;
}

.footer-inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-right: 100px;
}

.footer-logo {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: var(--space-lg);
}

.site-footer h3 {
  margin-bottom: var(--space-lg);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark)
}

.site-footer p {
  margin: 0 0 var(--space-md) 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-dark2);
}

.site-footer a {
  color: var(--text-dark2);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-contact a:hover {
  transform: scale(1.08);
  color: var(--text-black);
}


/* ============================================================
   6. PAGE: FRONT (index.html)
   ============================================================ */

/* -- 6a. Hero ----------------------------------------------- */

.hero {
  position: relative;
  height: 50vh;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 0.8;
}

.hero-text {
  position: absolute;
  top: var(--space-xl);
  left: var(--space-2xl);
  max-width: 560px;
  padding: 28px;
  background: var(--detail2);
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.7;
}

/* -- 6b. Specialists grid ----------------------------------- */

.specialists {
  background: var(--bg-light);
  text-align: left;
}

.specialists h2 {
  margin-bottom: var(--space-xl);
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(40px, 6vw, 140px);
  max-width: 1600px;
  margin: 0 auto 50px auto;
}

.specialist {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  container-type: inline-size;
}

.specialist img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.4s ease;
}

.specialist:hover img {
  transform: scale(1.05);
}

.specialist span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
  font-size: 11cqw;
  background: rgba(0, 0, 0, 0.35);
}

.specialist:hover span {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light2);
}


/* ============================================================
   7. PAGE: PROJECTS (projekter.html)
   ============================================================ */

.projects-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 100%;
  background: var(--bg-light);
  padding: var(--space-xl);
}

.project-tile {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  text-decoration: none;
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-tile span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

.project-tile:hover img {
  transform: scale(1.05);
  color: var(--text-light2);
}

.project-tile:hover span {
  background: rgba(0, 0, 0, 0.55);
}


/* ============================================================
   8. PAGE: ABOUT (om.html)
   ============================================================ */

/* -- 8a. About rows (text + image) -------------------------- */

.about-section {
  max-width: 100%;
  padding: 0 var(--space-xl);
}

.about-row {
  max-width: 100%;
  margin: 0 0 var(--space-3xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-3xl);
  align-items: start;
}

.about-row.reverse {
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-3xl);
}

.about-row.reverse .about-text {
  justify-self: end;
}

.about-text h3 {
  font-size: 22px;
  margin-bottom: var(--space-lg);
}

.about-text p {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark2);
  line-height: 1.7;
  margin-top: 0px;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.about-image {
  height: 380px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
}

/* -- 8b. Process section ------------------------------------ */

.process-section {
  background: var(--detail1);
  max-width: 100%;
  margin: var(--space-3xl) 0px;
  padding: var(--space-3xl);
}

.process-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.process-item {
  text-align: center;
}

.process-item h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.process-item p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  color: var(--text-dark);
}

.process-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon svg {
  width: 100%;
  height: 100%;
}


/* ============================================================
   9. PAGE: CONTACT (kontakt.html)
   ============================================================ */

/* Three column top section */
.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-title {
  font-size: 36px;
  margin: 0 0 var(--space-lg) 0;
  color: var(--text-dark);
}

.contact-subtitle {
  font-size: 24px;
  margin: 0 0 var(--space-lg) 0;
  color: var(--text-dark);
}

.contact-intro {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark2);
  margin: 0;
}

.contact-address-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-dark2);
  margin: 0 0 var(--space-md) 0;
}

.contact-note {
  font-size: 15px;
  font-style: italic;
  color: var(--text-dark2);
  margin: 0;
}

.contact-map-col iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.contact-divider {
  border: none;
  height: 2px;
  background: var(--text-dark);
  margin: var(--space-2xl) 0;
}

/* Contact cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.contact-card {
  background: var(--detail1);
  padding: var(--space-2xl);
}

.contact-card h2 {
  font-size: 26px;
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-dark);
}

.contact-card-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark2);
  margin: 0 0 var(--space-lg) 0;
}

.contact-card-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

.contact-card-email:hover {
  text-decoration: underline;
}

/* General email */
.contact-general-email {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: var(--space-xl) 0;
}

.contact-general-email p {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark2);
  margin: 0 0 var(--space-sm) 0;
}

.contact-general-email a {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-general-email a:hover {
  transform: scale(1.08);
  color: var(--text-black);
}



/* ============================================================
   10. PAGE: COMPETENCES (kompetencer.html)
   ============================================================ */

.competences {
  background: var(--bg-light);
  max-width: 100%;
  padding: var(--space-3xl) var(--space-xl);
}

.competences h1 {
  font-size: 32px;
  margin-bottom: 50px;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.competence-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.competence-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: var(--space-md);
  transition: transform 0.4s ease, filter 0.3s ease;
  opacity: 0.9;
}

.competence-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.75);
}

.competence-item h3 {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}


/* ============================================================
   11. GALLERY PAGES (automation, specialmaskiner, robotter, udvikling)
   ============================================================ */

.gallery-section {
  max-width: 100%;
}

/* Gallery navigation (prev/next) */
.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.gallery-nav.bottom {
  margin-bottom: 0;
  margin-top: var(--space-xl);
}

.gallery-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark2);
  transition: color 0.2s ease;
}

.gallery-nav-link:hover {
  color: var(--text-black);
  transform: scale(1.08);
}

.gallery-nav-link.prev::before {
  content: "\276E";
  font-size: 14px;
}

.gallery-nav-link.next::after {
  content: "\276F";
  font-size: 14px;
}

.gallery-section h1 {
  font-size: 32px;
  margin-top: 0;
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
}

.gallery-description {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark2);
  line-height: 1.7;
  max-width: 700px;
  margin-top: 0;
  margin-bottom: var(--space-2xl);
}

.gallery-grid {
  column-count: 3;
  column-gap: var(--space-md);
  transition: opacity 0.5s ease;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}
