/* ============================================
   Ein Dag AS — Stylesheet
   Color palette derived from company logo:
     Primary navy:   #2b3a80
     Dark navy:      #1a2557
     Mid navy:       #3d52a0
     Light accent:   #e8ecf8
     Text dark:      #1a1a2e
   ============================================ */

:root {
  --navy:         #2b3a80;
  --navy-dark:    #1a2557;
  --navy-mid:     #3d52a0;
  --navy-light:   #e8ecf8;
  --white:        #ffffff;
  --off-white:    #f5f7fc;
  --text:         #1a1a2e;
  --text-muted:   #5a6080;
  --border:       #d0d6ee;
  --radius:       6px;
  --shadow:       0 4px 18px rgba(27, 37, 87, 0.12);
  --transition:   0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-mid);
}

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  box-shadow: var(--shadow);
}

.navbar-logo {
  height: 52px;
  width: auto;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.navbar-links a:hover {
  color: var(--navy-mid);
  border-bottom-color: var(--navy-mid);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.82;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    160deg,
    rgba(27, 37, 87, 0.55) 0%,
    rgba(43, 58, 128, 0.35) 100%
  );
  color: var(--white);
  text-align: center;
  padding: 24px;
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---- Sections ---- */
.section {
  padding: 72px 0;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--navy);
  display: inline-block;
}

/* ---- Intro ---- */
.intro {
  background: var(--white);
}

.intro .container p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
  max-width: 780px;
}

.intro .container ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 16px;
  max-width: 780px;
}

.intro .container ul li {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

/* ---- Gallery ---- */
.gallery-section {
  background: var(--navy-light);
}

.gallery-lead {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(27, 37, 87, 0.22);
  border-color: var(--navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition);
}

.gallery-item:hover img {
  opacity: 0.9;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 20, 55, 0.92);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-close:hover {
  background: var(--navy-mid);
  transform: scale(1.1);
}

/* ---- Contact ---- */
.contact-section {
  background: var(--white);
}

.contact-section p {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 24px;
  text-align: center;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 14px;
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
}

.footer p {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .navbar-links {
    gap: 16px;
  }

  .hero-img {
    height: 260px;
  }

  .hero {
    max-height: 260px;
  }

  .section {
    padding: 48px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
