body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #000;
  background-color: #fff;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: #000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0.5rem clamp(1rem, 4vw, 2rem);
  border-bottom: 3px solid #f2f2f2;
  z-index: 4000;
}
.navbar .logo {
  font-weight: 700;
  font-size: 1.1rem;
}
.navbar .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.navbar .nav-links li {
  display: block;
}
.navbar .nav-links a {
  padding: 0.25rem 0;
}
.navbar .nav-links a.active {
  font-weight: 700;
  text-decoration: underline;
}
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 4001;
  padding: 0.25rem 0.5rem;
}
.navbar .nav-links a:hover {
  text-decoration: underline;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.hero {
  position: relative;
  width: 100%;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero .opening {
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.hero .opening-tagline {
  font-size: 1rem;
  font-style: italic;
}

/* CODE FOR ALIGNMENT OF INTRO TEXT ON INDEX.HTML */

.intro-text {
  background: #fff;
  padding-block: clamp(2rem, 4vw, 5rem);
  padding-bottom: 2rem;
}

.intro-text .content {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem); /* jevn sidepadding på alle skjermer */
}

/* Hvis du ønsker litt ekstra innrykk på større skjermer, gjør det her */
@media (min-width: 900px) {
  .intro-text .content { padding-inline-start: 3.5rem; }
}

/* Tekststil */
.intro-text .opening {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.75;
  color: #222;
  margin-bottom: 1rem;
}

/* legg avstand mellom avsnitt automatisk */
.intro-text .content p + p { margin-top: 1rem; }

.intro-text .opening-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
}

#hero-home {
  height: 100vh;
  background-image: url("images2/denali1.jpg");
}
#hero-about {
  height: 50vh;
  background-image: url("images2/Leirvassbu.cool.look1.jpg");
}
#hero-work {
  height: 50vh;
  background-image: url("images2/work1.jpg");
}
#hero-values {
  height: 50vh;
  background-image: url("images2/ibiza.esVedra1.jpg");
}
#hero-gallery {
  height: 50vh;
  background-image: url("images2/bryllup2.jpg");
}

.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.content section {
  margin-bottom: 2rem;
}
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.content p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.section-photo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0 1rem;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.values-list li {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}
.values-list strong {
  font-weight: 700;
}
.values-conclusion {
  text-align: center;
  margin: 2rem 0 1rem;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

footer {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}
footer p {
  margin: 0.2rem;
  font-size: 0.9rem;
}

/* Footer CTA Panel */
.footer-cta-wrap {
  max-width: 1100px;
  margin: 40px auto 70px;
  padding: 0 1rem;
}
.footer-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #f9fafb;
  border-radius: 26px;
  padding: 26px 28px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}
.footer-cta h2 {
  margin: 0 0 6px 0;
  font-size: clamp(20px, 2.6vw, 28px);
}
.footer-cta p {
  margin: 0;
  color: #e0e7ff;
}
.footer-cta .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn-pill {
  display: inline-block;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn-pill:hover {
  filter: brightness(0.97);
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .footer-cta-wrap {
    margin: 28px auto 56px;
  }
}

@media (max-width: 1150px) {
  .nav-toggle {
    display: block;
    position: absolute;
    left: -9999px;
  }
  .nav-toggle-label {
    display: block;
  }
  .navbar .nav-links {
    display: none !important;
    position: fixed;
    top: 56px;
    right: 12px;
    left: auto;
    width: max-content;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    text-align: left;
    padding: 6px 0;
    gap: 0;
    z-index: 4000;
    overflow: hidden;
  }
  .navbar .nav-links li {
    white-space: nowrap;
    margin: 0;
  }
  .navbar .nav-links a {
    display: block;
    padding: 12px 16px;
  }
  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    display: flex !important;
  }
}

/* The code below here is for the gallery */

/* Layout helpers */
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Chips (filters) */
.gallery-controls { display:flex; flex-wrap:wrap; gap:.5rem; padding:2rem 0 1rem; }
.chip {
  border:1px solid #e5e7eb; padding:.5rem .9rem; border-radius:999px;
  background:#fff; cursor:pointer; font-size:.9rem;
}
.chip.is-active { background:#000; color:#fff; border-color:#000; }

/* Grid */
.gallery-grid {
  display:grid; gap:12px; padding:1rem 0 3rem;
  grid-template-columns: repeat(12, 1fr);
}
.gallery-grid .card {
  grid-column: span 12;
  background:#fff; border-radius:16px; overflow:hidden;
  border:1px solid #eee;
}
@media (min-width: 600px)   { .gallery-grid .card { grid-column: span 6; } }
@media (min-width: 1000px)  { .gallery-grid .card { grid-column: span 3; } }

/* Card image preserves ratio without CLS */
.gallery-grid .card a { display:block; }
.gallery-grid .card img {
  width:100%; height:auto; display:block;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .25s ease;
}
.gallery-grid .card:hover img { transform: scale(1.02); }
.gallery-grid figcaption {
  font-size:.9rem; padding:.75rem .9rem 1rem; color:#444;
}

/* Lightbox */
.lightbox {
  position: fixed; inset:0; background: rgba(0,0,0,.92);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition: opacity .2s ease;
  padding: 1.5rem;
}
.lightbox.open { opacity:1; pointer-events:auto; }
.lb-figure { max-width: min(1200px, 96vw); width:100%; }
.lb-figure img { width:100%; height:auto; display:block; border-radius: 10px; }
.lb-figure figcaption { color:#e5e7eb; font-size:.95rem; margin-top:.75rem; text-align:center; }

.lb-close, .lb-prev, .lb-next {
  position: absolute; top: 16px; background: transparent; color: #fff;
  border: none; font-size: 2rem; line-height: 1; cursor: pointer; padding:.25rem .5rem;
}
.lb-close { right: 16px; }
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  font-size: 2rem; background: rgba(255,255,255,.08);
  border-radius: 10px; padding: .5rem .75rem;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.15); }

/* Hero tweak for Gallery */
#hero-gallery .hero-content h1 { letter-spacing: .02em; }





/* Vertical Timeline */
.timeline {
  margin-top: 1rem; 
  position: relative;
  background: #fff;
  padding-block: clamp(2rem, 4vw, 5rem);
}


.timeline h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.timeline-wrapper {
  position: relative;
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid #ddd;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
}

.timeline-year {
  font-weight: 700;
  color: #000;
  margin-bottom: 0.2rem;
}

.timeline-content {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.timeline .content {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Optional subtle hover effect */
.timeline-item:hover .timeline-content {
  color: #000;
  transform: translateX(2px);
  transition: all 0.2s ease;
}

@media (min-width: 900px) {
  .timeline .content {
    padding-inline-start: 3.5rem;
  }
}



