/* ============================================================
   LANTZ ARKITEKTER — Stylesheet
   Exact copy of original design from source/duda
   ============================================================ */

:root {
  --primary:   #215a6e;
  --text:      #333333;
  --muted:     #646363;
  --link:      #463939;
  --white:     #ffffff;
  --bg:        #ffffff;
  --border:    #d1d1d1;
  --footer-bg: #272a2f;
  --sans: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  --max-w: 960px;
  --nav-h: 94px;
  --row-pad: 40px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul   { list-style: none; }
p    { margin-bottom: 0.75em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; }
h2   { font-size: 24px; color: var(--primary); margin-bottom: 0.5em; }
h3   { font-size: 20px; font-weight: 700; margin-bottom: 0.35em; }
h4   { font-size: 18px; font-weight: 700; margin-bottom: 0.5em; }
hr   { border: none; border-top: 2px solid var(--border); margin: 12px 0; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--row-pad);
}

/* ════════════════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: rgba(0,0,0,.25) 0 3px 11px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo {
  flex-shrink: 0;
  margin-right: auto;
}
.logo img { height: 50px; width: auto; display: block; }

/* Desktop Nav */
.main-nav { display: flex; align-items: stretch; }
.main-nav > ul {
  display: flex;
  align-items: stretch;
  list-style: none;
}
.main-nav > ul > .nav-item { position: relative; display: flex; align-items: center; }

/* Slash dividers between top-level items */
.main-nav > ul > .nav-item + .nav-item::before {
  content: '/';
  color: var(--muted);
  font-size: 15px;
  align-self: center;
}

.main-nav > ul > .nav-item > a {
  display: flex;
  align-items: center;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  height: 100%;
}
.main-nav > ul > .nav-item > a:hover,
.main-nav > ul > .nav-item > a.active { color: var(--primary); text-decoration: none; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 15px;
  min-width: 200px;
  background: #faf9f9;
  border-top: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  list-style: none;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.dropdown li a {
  display: block;
  padding: 12px 15px;
  font-size: 15px;
  color: #585858;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--primary); text-decoration: none; }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > .nav-item { display: block; }
  .main-nav > ul > .nav-item::before { display: none; }
  .main-nav > ul > .nav-item > a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    height: auto;
  }
  .main-nav > ul > .nav-item > a:hover { color: var(--white); }

  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    display: none;
    margin-left: 1rem;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.1); }
  .dropdown li a:hover { color: var(--white); }
}

/* Sticky header spacer */
.header-spacer { height: var(--nav-h); }

/* ════════════════════════════════════════════════════════════
   HOME HERO IMAGE
   ════════════════════════════════════════════════════════════ */
.hero-image {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 1920 / 627; /* natural 1920×936 reduced 33% in height */
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ════════════════════════════════════════════════════════════
   HOME INTRO TEXT
   ════════════════════════════════════════════════════════════ */
.home-intro {
  padding: 48px var(--row-pad);
  text-align: center;
  background: var(--white);
}
.home-intro h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.home-intro p {
  font-size: 16px;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 0.75em;
  line-height: 1.6;
}
.home-intro p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════
   PROFILE SECTION (home)
   ════════════════════════════════════════════════════════════ */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.profile-image-col {
  position: relative;
  background-size: cover;
  background-position: 50% 50%;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: stretch;
}
.profile-image-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.profile-image-col img {
  position: relative;
  z-index: 1;
  display: block;
  width: 457px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  margin: 100px 0 100px auto;
}

.profile-text-col {
  background: var(--primary);
  padding: 80px 40px 100px 80px;
  display: flex;
  align-items: center;
}
.profile-text-col p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1em;
}
.profile-text-col p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .profile-section { grid-template-columns: 1fr; }
  .profile-image-col { min-height: 300px; }
  .profile-image-col img { margin: 60px auto; }
  .profile-text-col { padding: 48px 24px; }
}

/* ════════════════════════════════════════════════════════════
   PROJECTS GRID (home)
   ════════════════════════════════════════════════════════════ */
.projects-section { padding: 48px 0; }

.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-project img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.home-project h3 {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  text-align: center;
  padding: 8px 0 4px;
}
.home-project h3 a { color: var(--link); text-decoration: none; }
.home-project h3 a:hover { color: var(--primary); text-decoration: underline; }

@media (max-width: 640px) {
  .home-projects-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   GENERIC SECTION
   ════════════════════════════════════════════════════════════ */
.section { padding: 40px 0; }

/* ════════════════════════════════════════════════════════════
   PROJECT LAYOUT (pladehallen, sigurdsgade) — full bleed
   ════════════════════════════════════════════════════════════ */
.project-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 700px;
}

.project-left {
  padding: 60px 60px 60px 80px;
}

.project-left-inner {
  max-width: 560px;
}

.project-left h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.project-left p { line-height: 1.6; color: var(--text); margin-bottom: 0.85em; }
.project-left p:last-child { margin-bottom: 0; }

.project-facts { margin-top: 20px; line-height: 1.7; font-size: 15px; color: var(--text); }
.project-facts b { font-weight: 700; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 28px;
  padding: 0 60px 60px 80px;
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
@media (max-width: 767px) {
  .project-gallery { padding: 16px 24px 40px; }
}

.project-right {
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-left { padding: 40px 24px; }
  .project-left-inner { max-width: 100%; }
  .project-right { min-height: 300px; }
}

/* ════════════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  background: none;
  border: none;
  color: #fff;
  font-size: 60px;
  line-height: 1;
  cursor: pointer;
  padding: 0 20px;
  opacity: 0.7;
  user-select: none;
  flex-shrink: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-family: var(--sans);
}

/* ════════════════════════════════════════════════════════════
   TIDLIGERE PROJEKTER
   ════════════════════════════════════════════════════════════ */
.tp-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 32px;
}

.tp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px 0;
}
.tp-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.tp-content hr { margin-bottom: 12px; }
.tp-facts { font-size: 15px; color: var(--text); line-height: 1.75; }
.tp-facts b { font-weight: 700; }

.tp-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.tp-divider { border: none; border-top: 2px solid var(--border); margin: 0; }

@media (max-width: 640px) {
  .tp-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   CV
   ════════════════════════════════════════════════════════════ */
.cv-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 40px;
}
.cv-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.cv-content {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--row-pad);
}

.cv-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cv-title-hr { margin-bottom: 24px; }

.cv-name {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.cv-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 28px;
}

.cv-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 24px;
}

.cv-two-col {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 8px;
  margin-bottom: 16px;
}
.cv-years { font-size: 15px; color: var(--text); line-height: 1.6; }
.cv-descriptions { font-size: 15px; color: var(--text); line-height: 1.6; }

.cv-tasks { font-size: 15px; color: var(--text); line-height: 1.7; }
.cv-tasks b { font-weight: 700; }
.cv-tasks .task-block { margin-bottom: 1em; }

@media (max-width: 640px) {
  .cv-gallery { grid-template-columns: repeat(2, 1fr); }
  .cv-two-col { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   KONTAKT
   ════════════════════════════════════════════════════════════ */
.kontakt-hero {
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
}

.kontakt-content {
  padding: 48px var(--row-pad);
  max-width: var(--max-w);
  margin-inline: auto;
}
.kontakt-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.kontakt-content p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 0.5em; }
.kontakt-content a { color: var(--link); }
.kontakt-content a:hover { color: var(--primary); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  padding: 40px var(--row-pad) 16px;
}

.footer-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col div {
  font-size: 14px;
  color: #fff;
  line-height: 1.8;
  margin: 0;
}
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

/* LinkedIn icon */
.social-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  margin-top: 8px;
}
.social-linkedin:hover { background: rgba(255,255,255,0.1); }
.social-linkedin svg { display: block; }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  text-align: center;
  font-size: 14px;
  color: #cbcbcb;
}
.footer-bottom a { color: #cbcbcb; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
