@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #d9d9d9;
  color: #111;
}

.logo,
.intro-text h2,
.projects h2,
.project-overlay h3,
.footer-name {
  font-family: 'Cormorant Garamond', serif;
}

.navbar,
.hero,
.intro,
.projects,
.footer {
  padding-left: 4rem;
  padding-right: 4rem;
}

/* NAVBAR */
.navbar {
  background: #d8dac5;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active {
  text-decoration: none;
  color: #434c37;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.logo {
  color: #434c37;
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  margin: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #434c37;
}

.mobile-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a,
.mobile-menu a:link,
.mobile-menu a:visited,
.mobile-menu a:hover,
.mobile-menu a:active {
  text-decoration: none;
  color: #434c37;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

/* HERO */
.hero {
  background: linear-gradient(
    to bottom,
    #d8dac5 0%,
    #d8dac5 50%,
    #f5eede 50%,
    #f5eede 100%
  );
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transition: transform 0.5s ease;
}

.carousel-image {
  flex: 0 0 24%;
  height: 280px;
  object-fit: cover;
  border-radius: 28px;
  transition: opacity 0.5s ease;
  opacity: 0.9;
}

.carousel-image.center {
  flex: 0 0 44%;
  height: 360px;
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.75);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 50%;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.hero-button {
  background: #d8dac5;
  padding: 0.8rem 1rem;
  border: 1px solid #899476;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #434c37;
}

/* INTRO */
.intro {
  background: #f5eede;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #d8dac5;
  padding: 2rem;
  border-radius: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.intro-image {
  flex: 0 0 260px;
  width: 260px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-button {
  margin-top: 1.5rem;
  background: #f6e89f;
  border: 1px solid #899476;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  color: #434c37;
  cursor: pointer;
}

/* PROSJEKTER */
.projects {
  background: #96a080;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.projects h2 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #f8f4ec;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.12));
  color: #f8f4ec;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 0.2rem 0;
}

.project-overlay p {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  margin: 0;
}

/* FOOTER */
.footer {
  background: #d8dac5;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited,
.footer-links a:hover,
.footer-links a:active {
  text-decoration: none;
  color: #434c37;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.footer-links a:hover {
  opacity: 0.75;
}

.footer-center {
  text-align: center;
}

.footer-name {
  color: #434c37;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.footer-box {
  width: 50px;
  height: 50px;
  background: #f6e89f;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* TABLET */
@media (max-width: 1024px) {
  .navbar,
  .hero,
  .intro,
  .projects,
  .footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .logo {
    font-size: 3.2rem;
  }

  .carousel-track {
    gap: 2rem;
  }

  .carousel-image {
    flex: 0 0 30%;
    height: 220px;
  }

  .carousel-image.center {
    flex: 0 0 50%;
    height: 300px;
  }
}

/* MOBIL */
@media (max-width: 768px) {
  .navbar,
  .hero,
  .intro,
  .projects,
  .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar {
    padding-top: 1.8rem;
    padding-bottom: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 220px;
    background: #d8dac5;
    border: 1px solid #899476;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    font-size: 2.2rem;
  }

  .carousel-track {
    gap: 1rem;
  }

  .carousel-image {
    flex: 0 0 70%;
    height: 180px;
    border-radius: 20px;
  }

  .carousel-image.center {
    flex: 0 0 85%;
    height: 220px;
  }

  .carousel-btn {
    font-size: 1.3rem;
    padding: 0.35rem 0.7rem;
  }

  .hero-button {
    font-size: 1rem;
    padding: 0.8rem 1.3rem;
  }

  .intro-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  .intro-text h2 {
    font-size: 2.3rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .intro-image {
    width: 100%;
    max-width: 320px;
    height: 360px;
    margin: 0 auto;
    flex: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .projects h2 {
    font-size: 2.3rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    align-items: center;
  }

  .footer-name {
    font-size: 1.8rem;
  }
}

/* SMÅ MOBILER */
@media (max-width: 480px) {
  .navbar,
  .hero,
  .intro,
  .projects,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo {
    font-size: 2rem;
  }

  .carousel-image {
    height: 150px;
  }

  .carousel-image.center {
    height: 190px;
  }

  .intro-text h2 {
    font-size: 2rem;
  }

  .small-button,
  .hero-button {
    font-size: 0.95rem;
    padding: 0.75rem 1.1rem;
  }

  .footer-name {
    font-size: 1.5rem;
  }
}

.project-page {
  background: #f5eede;
  min-height: 100vh;
  padding: 4rem;
}

.project-detail {
  max-width: 900px;
  margin: 0 auto;
  background: #d8dac5;
  padding: 2rem;
  border-radius: 30px;
}

.project-detail h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: #434c37;
  margin-bottom: 0.5rem;
}

.project-detail p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #111;
}

.project-detail-image {
  width: 100%;
  max-width: 700px;
  height: 350px;     
  object-fit: cover;
  display: block;
  margin: 2rem auto;
  border-radius: 20px;
}

.project-detail-text {
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .project-page {
    padding: 2rem 1.5rem;
  }

  .project-detail {
    padding: 1.5rem;
  }

  .project-detail h2 {
    font-size: 2.2rem;
  }
}


.doc-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.4rem;
  background: #f6e89f;
  border: 1px solid #899476;
  border-radius: 999px;
  text-decoration: none;
  color: #434c37;
  font-size: 1rem;
  font-weight: 500;

  transition: all 0.25s ease;
}
.doc-link:hover {
  background: #eadf7a;              /* litt mørkere gul */
  transform: translateY(-2px);      /* løfter knappen */
  box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* dybde */
  cursor: pointer;
}
.doc-link:active {
  transform: translateY(0px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 2rem auto;
  max-width: 700px;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.project-detail-text {
  max-width: 650px;
  margin: 2rem auto;
}

.project-detail-text p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #2a2a2a;
}

/* FOTOGRAFISIDE */
.photo-page {
  background: #f5eede;
}

.photo-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.photo-hero-image {
  width: 100%;
  height: 65vh;
  min-height: 380px;
  max-height: 700px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.photo-hero-text {
  max-width: 520px;
  margin-top: 1.5rem;
}

.photo-hero-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  color: #434c37;
  margin-bottom: 0.5rem;
}

.photo-hero-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a2a2a;
}

.photo-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.photo-intro-text h3,
.photo-text-block h3,
.photo-gallery h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #434c37;
  margin-bottom: 0.8rem;
}

.photo-intro-text p,
.photo-text-block p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #2a2a2a;
  max-width: 60ch;
}

.photo-intro-side-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.photo-grid-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.photo-grid {
  display: grid;
  gap: 1.5rem;
}

.editorial-grid-1 {
  grid-template-columns: 1.3fr 0.9fr;
  grid-template-rows: 260px 260px;
}

.editorial-grid-1 .large {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.editorial-grid-1 .top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.editorial-grid-1 .bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.editorial-grid-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left text"
    "wide right";
  align-items: start;
}

.editorial-grid-2 .left {
  grid-area: left;
}

.editorial-grid-2 .right {
  grid-area: right;
}

.editorial-grid-2 .wide {
  grid-area: wide;
}

.photo-text-block {
  grid-area: text;
  background: #d8dac5;
  padding: 1.8rem;
  border-radius: 24px;
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  display: block;
}

.editorial-grid-2 .medium img {
  height: 360px;
}

.editorial-grid-2 .wide img {
  height: 300px;
}

.photo-quote-band {
  background: #96a080;
  margin: 1rem 0 4rem;
}

.photo-quote-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 0;
}

.photo-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  line-height: 1.3;
  color: #f8f4ec;
  max-width: 650px;
}

.photo-gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 5rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.photo-gallery-grid .photo-card img {
  height: 280px;
}

/* RESPONSIV */
@media (max-width: 1024px) {
  .photo-hero-image {
    height: 52vh;
  }

  .photo-intro,
  .photo-grid-section,
  .photo-gallery,
  .photo-quote-content,
  .photo-hero {
    max-width: 100%;
  }

  .editorial-grid-1 {
    grid-template-rows: 220px 220px;
  }

  .editorial-grid-2 .medium img {
    height: 300px;
  }

  .editorial-grid-2 .wide img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .photo-hero {
    padding-top: 2rem;
  }

  .photo-hero-image {
    height: 38vh;
    min-height: 260px;
    border-radius: 20px;
  }

  .photo-hero-text h2 {
    font-size: 2.5rem;
  }

  .photo-intro {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }

  .photo-intro-side-image img {
    height: 260px;
  }

  .editorial-grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .editorial-grid-1 .large,
  .editorial-grid-1 .top,
  .editorial-grid-1 .bottom {
    grid-column: auto;
    grid-row: auto;
  }

  .editorial-grid-1 .photo-card img {
    height: 260px;
  }

  .editorial-grid-2 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "text"
      "right"
      "wide";
  }

  .editorial-grid-2 .medium img,
  .editorial-grid-2 .wide img {
    height: 260px;
  }

  .photo-quote {
    font-size: 1.8rem;
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery-grid .photo-card img {
    height: 240px;
  }
}

.photo-hero-text {
  max-width: 520px;
  margin-top: 2rem;
  margin-left: 3rem;  /* 🔑 flytter tittelen inn */
}