@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-dark: #111d33;
  --green: #4CAF50;
  --green-dark: #388E3C;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text: #2c2c2c;
  --text-light: #666;
  --border: #e0e4ec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.logo {
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  letter-spacing: 0.05em; color: white;
}
.logo .z { color: var(--green); }

nav ul { list-style: none; display: flex; gap: 0; align-items: center; }

nav ul li { position: relative; }

nav ul li > a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0 1.1rem; height: 72px;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s, background 0.2s;
}

nav ul li > a:hover,
nav ul li.active > a { color: var(--green); background: rgba(255,255,255,0.04); }

/* dropdown arrow */
nav ul li.has-dropdown > a::after {
  content: '▾'; font-size: 0.7rem; opacity: 0.6; margin-left: 2px;
}

/* dropdown panel */
.dropdown {
  display: none;
  position: absolute; top: 72px; left: 0;
  background: white;
  min-width: 200px;
  border-top: 3px solid var(--green);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 200;
}

.dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text) !important;
  font-size: 0.88rem; font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  height: auto !important; background: transparent !important;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--light-bg) !important; color: var(--green) !important; }

nav ul li:hover .dropdown { display: block; }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 4px;
  font-weight: 600 !important;
  height: auto !important;
  margin-left: 1rem;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  margin-top: 72px;
  min-height: 52vh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0 5% 4rem;
}

.page-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
}

.page-hero-content { position: relative; }

.page-hero .breadcrumb {
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--green); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; color: white; line-height: 1.05;
}

.page-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  line-height: 1.7; max-width: 580px; margin-top: 1rem;
}

/* ── MAIN HERO (frontpage) ── */
.hero {
  margin-top: 72px; min-height: 88vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1f3a2a 100%);
  display: flex; align-items: center;
  padding: 5% 5%; position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1590418606746-018840f9cd0f?w=1600&q=80&fit=crop') center/cover no-repeat;
  opacity: 0.12;
}

.hero-content { position: relative; max-width: 680px; }

.hero-label {
  display: inline-block;
  background: var(--green); color: white;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 2px; margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; color: var(--white);
  line-height: 1.05; margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--green); }

.hero > .hero-content > p {
  font-size: 1.15rem; color: rgba(255,255,255,0.78);
  line-height: 1.7; margin-bottom: 2.5rem; max-width: 520px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green); color: white;
  padding: 0.85rem 2rem; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: white;
  padding: 0.85rem 2rem; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s, background 0.2s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--green); background: rgba(76,175,80,0.1); }

/* ── SECTION GENERAL ── */
section { padding: 5rem 5%; }

.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.1; margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.7; max-width: 560px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
}
.stat {
  padding: 2rem 3rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  flex: 1; min-width: 160px;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem; font-weight: 700; color: var(--green); line-height: 1;
}
.stat .lbl {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem;
}

/* ── YDELSER GRID (frontpage) ── */
#ydelser { background: var(--light-bg); }
.ydelser-header { text-align: center; margin-bottom: 3.5rem; }
.ydelser-header .section-sub { margin: 0 auto; }

.ydelser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.ydelse-card {
  background: white; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; display: block; color: inherit;
}
.ydelse-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.ydelse-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ydelse-body { padding: 1.5rem; border-top: 3px solid var(--green); }
.ydelse-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem;
}
.ydelse-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }

/* ── FAG SUBPAGE LAYOUT ── */
.fag-intro {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.fag-intro-text { flex: 1; min-width: 280px; }
.fag-intro-text p { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.fag-intro-img {
  flex: 1; min-width: 280px;
  border-radius: 8px; overflow: hidden;
}
.fag-intro-img img { width: 100%; display: block; border-radius: 8px; object-fit: cover; }

/* alternating sections */
.fag-section {
  padding: 5rem 5%;
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
  max-width: 100%;
}
.fag-section:nth-child(even) { background: var(--light-bg); }
.fag-section.reverse { flex-direction: row-reverse; }

.fag-text { flex: 1; min-width: 280px; max-width: 560px; }
.fag-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--navy); margin-bottom: 1rem;
}
.fag-text p { font-size: 1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 0.8rem; }

.fag-img { flex: 1; min-width: 280px; }
.fag-img img { width: 100%; border-radius: 8px; object-fit: cover; display: block; max-height: 420px; }

/* ── YDELSER SUBPAGE CARD GRID ── */
.ydelser-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 3rem auto 0;
}

/* ── UDLEJNING PAGE ── */
#udlejning {
  background: var(--navy);
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.udlejning-text { flex: 1; min-width: 280px; }
.udlejning-text .section-title { color: white; }
.udlejning-text .section-sub { color: rgba(255,255,255,0.68); }
.udlejning-features { margin: 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.feature { display: flex; align-items: flex-start; gap: 0.9rem; }
.feature-icon {
  width: 36px; height: 36px;
  background: rgba(76,175,80,0.15); border: 1.5px solid var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.feature-icon svg { width: 16px; height: 16px; fill: var(--green); }
.feature-text h4 { font-size: 0.95rem; font-weight: 600; color: white; margin-bottom: 0.2rem; }
.feature-text p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.udlejning-box {
  flex: 1; min-width: 280px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 2.5rem;
}
.price-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.price-items { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.price-items li { font-size: 0.88rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.6rem; }
.price-items li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 0.9rem; }

/* ── OM OS ── */
#omos {
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
#omos-section { padding: 5rem 5%; }
.omos-img-wrap { flex: 1; min-width: 280px; }
.omos-img-wrap img { width: 100%; border-radius: 8px; object-fit: cover; display: block; }
.omos-text { flex: 1; min-width: 280px; }
.omos-text p { font-size: 1rem; color: var(--text-light); line-height: 1.75; margin-bottom: 1rem; }

/* ── KONTAKT ── */
#kontakt { background: var(--light-bg); }
.kontakt-header { text-align: center; margin-bottom: 3.5rem; }
.team-grid {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2rem; max-width: 900px; margin: 0 auto 4rem;
}
.team-card {
  background: white; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); width: 260px; text-align: center;
}
.team-placeholder {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, var(--navy), #2d4a7a);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
}
.team-placeholder svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.15); }
.team-placeholder span { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; }
.team-info { padding: 1.2rem 1rem 1.5rem; border-top: 3px solid var(--green); }
.team-info h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.team-info a { display: block; font-size: 0.85rem; color: var(--text-light); text-decoration: none; transition: color 0.2s; margin-bottom: 0.2rem; }
.team-info a:hover { color: var(--green); }
.kontakt-box {
  background: var(--navy); border-radius: 8px; padding: 2.5rem;
  max-width: 600px; margin: 0 auto; text-align: center;
}
.kontakt-box h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; color: white; margin-bottom: 0.8rem; }
.kontakt-box p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.6; }

/* ── GALLERY ── */
.gfbtn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7); padding: 0.45rem 1.1rem; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.gfbtn:hover { background: rgba(255,255,255,0.15); color: white; }
.gfbtn-active { background: var(--green) !important; border-color: var(--green) !important; color: white !important; }

.gcard {
  break-inside: avoid; margin-bottom: 14px; border-radius: 6px; overflow: hidden;
  cursor: pointer; position: relative;
}
.gcard img { width: 100%; display: block; transition: transform 0.3s; }
.gcard:hover img { transform: scale(1.03); }

/* lightbox */
#lbOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.9); z-index: 999;
  align-items: center; justify-content: center;
}
#lbOverlay.open { display: flex; }
#lbOverlay img { max-width: 90vw; max-height: 88vh; border-radius: 4px; }
#lbClose {
  position: absolute; top: 1.5rem; right: 2rem;
  color: white; font-size: 2.5rem; cursor: pointer; line-height: 1;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-dark); padding: 3rem 5%;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: white; letter-spacing: 0.05em;
  text-decoration: none;
}
.footer-logo .z { color: var(--green); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: 0.4rem; }

.footer-col h4 { font-size: 0.78rem; color: var(--green); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.45); text-decoration: none; margin-bottom: 0.4rem; line-height: 1.6; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 5%; text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--green); padding: 4rem 5%; text-align: center;
}
.cta-strip h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); color: white; margin-bottom: 0.8rem;
}
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1rem; }
.btn-white {
  background: white; color: var(--green);
  padding: 0.85rem 2.2rem; border-radius: 4px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s; display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .fag-section { flex-direction: column !important; }
  #omos { flex-direction: column; }
  #udlejning { flex-direction: column; }
}
