
/* =======================================================
   MI · VI · DE — CASES
   Indholdsfortegnelse:
   01. Variabler
   02. Reset / base
   03. Header
   04. Logo
   05. Navigation
   06. Hero
   07. Cases hero
   08. Introduktion
   09. Cases-sektion og layout
   10. Case-tekst
   11. Case-detaljer
   12. Case-links
   13. Case-billeder
   14. Før/efter-slider
   15. Slider-håndtag
   16. Footer
   17. Tablet
   18. Mobil
======================================================= */


/* =======================================================
   01. VARIABLER
======================================================= */

:root {
  --brand-color: #6f5b54;
  --cream: #f2f0eb;
  --warm-white: #f8f7f4;
  --white: #ffffff;
  --taupe: #b7a49d;
  --taupe-dark: #76544a;
  --brown: #3d2f2b;
  --brown-light: #6f5b54;
  --text: #675a55;
  --muted: #8a7b74;
  --card: #f3eee7;
  --border: rgba(61, 47, 43, 0.16);
  --light-border: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.88);
}


/* =======================================================
   02. RESET / BASE
======================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--taupe-dark);
  color: var(--white);
}


/* =======================================================
   03. HEADER
======================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  color: var(--white);
  background: transparent;
  transition:
    background-color 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(83, 38, 26, 0.216);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.navbar {
  padding-top: 15px;
  padding-bottom: 15px;
}


/* =======================================================
   04. LOGO
======================================================= */

.brand-mark {
  width: 115px;
  min-width: 115px;
  flex: 0 0 115px;
  display: grid;
  grid-template-columns: 25px 1fr;
  grid-template-rows: repeat(3, 1fr);
  column-gap: 1px;
  align-self: center;
  margin: 0;
  padding: 0;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 300;
  transition: opacity 0.2s ease;
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(3),
.brand-mark span:nth-child(5) {
  color: #f4d8cad3;
  font-weight: 1000;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4),
.brand-mark span:nth-child(6) {
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.brand-mark span:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.brand-mark span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.brand-mark span:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.brand-mark span:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.brand-mark span:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.brand-mark span:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}

.brand-mark:hover {
  opacity: 0.75;
}


/* =======================================================
   05. NAVIGATION
======================================================= */

.nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px;
  font-weight: 300;
  padding: 0.25rem 0.2rem !important;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.65;
}

.nav-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.navbar-toggler {
  background: rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.55rem;
  border-radius: 0;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.navbar-nav .nav-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  padding-right: 7px;
  margin-right: 7px;
}

.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: -5px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}


/* =======================================================
   06. HERO
======================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url("assets/baggrund.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(92, 42, 1, 0.161);
}


/* =======================================================
   07. HERO TEXT
======================================================= */

.hero-text {
  position: relative;
  z-index: 3;
  padding-top: 125px;
  color: var(--white);
}

.eyebrow {
  margin-bottom: 25px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 5.8vw, 5.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero .lead {
  max-width: 850px;
  margin: 30px auto 0;
  font-size: clamp(0.78rem, 1.05vw, 1.15rem);
  letter-spacing: 0.01em;
  line-height: 1.5;
}


/* =======================================================
   08. CASES HERO
======================================================= */

.about-page-hero {
  min-height: 390px;
  height: 390px;
}

.about-page-hero .hero-text {
  padding-top: 125px;
}


/* =======================================================
   09. INTRODUKTION — BEVARET
======================================================= */

.approach-section {
  background: #eee9e2;
  padding: 85px 45px 95px;
}

.approach-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.approach-intro {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
}

.approach-intro h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--brown);
}

.cases-intro-text {
  max-width: 760px;
  margin: 28px auto 0;
}

.cases-intro-text p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.cases-intro-text p:last-child {
  margin-bottom: 0;
}


/* =======================================================
   10. CASES SECTION — LAYOUT
======================================================= */

.cases-section {
  background: var(--warm-white);
  padding: 100px 56px 115px;
}

.cases-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.case-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 110px;
}

.case-item:last-child {
  margin-bottom: 0;
}

.case-item-reverse .case-image,
.case-item-reverse .case-text {
  order: initial;
}


/* =======================================================
   11. CASE TEXT
======================================================= */

.case-text {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.case-text h2 {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brown);
}

.case-text p:not(.section-kicker) {
  max-width: 900px;
  margin: 0 0 17px;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  color: var(--text);
}

.case-text p:last-of-type {
  margin-bottom: 0;
}


/* =======================================================
   12. CASE DETAILS
======================================================= */

.case-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.case-details span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}


/* =======================================================
   13. CASE LINK
======================================================= */

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--brown);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--brown);
  transition: gap 0.25s ease, opacity 0.25s ease;
}

.case-link span {
  font-size: 16px;
  line-height: 0;
}

.case-link:hover {
  gap: 20px;
  opacity: 0.65;
}


/* =======================================================
   14. CASE IMAGE
   Ens bredde og billedformat på Case 01 og Case 02
======================================================= */


/* CASE IMAGE — DESKTOP SCREENSHOT */

.case-image {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
}

.case-image > img,
.case-image > a > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}



/* Dekorativ ramme bag billedet */

.case-image::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--taupe);
  z-index: 0;
  pointer-events: none;
}

/* Sørger for ens billedstørrelse, uanset om billedet
   ligger direkte i .case-image eller inde i et link */

.case-image > img,
.case-image > a > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Hvis Case 01-billedet er pakket ind i et link */

.case-image > a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}


/* =======================================================
   15. BEFORE / AFTER SLIDER
======================================================= */

.before-after {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  background: var(--cream);
}

.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.after-image-wrapper {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.9);
}

.after-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}


/* =======================================================
   16. COMPARISON HANDLE
======================================================= */

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(61, 47, 43, 0.72);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-handle::before,
.comparison-handle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--white);
  border-right: 1px solid var(--white);
}

.comparison-handle::before {
  transform: rotate(-135deg);
  margin-right: -1px;
}

.comparison-handle::after {
  transform: rotate(45deg);
  margin-left: -1px;
}

.comparison-handle span {
  position: absolute;
  left: 50%;
  top: -100vh;
  width: 1px;
  height: 200vh;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  z-index: -1;
}


/* =======================================================
   17. FOOTER — BEVARET
======================================================= */

.site-footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.82);
  padding: 75px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}

.footer-brand p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.footer-heading {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column a {
  width: fit-content;
  font-size: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: opacity 0.2s ease;
}

.footer-column a:hover {
  opacity: 0.55;
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}


/* =======================================================
   18. TABLET
======================================================= */

@media (max-width: 991.98px) {

  /* Navigation */

  .navbar-collapse {
    margin-top: 15px;
    padding: 20px;
    background: rgba(61, 47, 43, 0.92);
  }

  .navbar-nav {
    align-items: flex-start !important;
    gap: 5px;
  }

  .navbar-nav .nav-item:not(:last-child) {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .navbar-nav .nav-link.active::after {
    left: 0;
    right: auto;
    width: 35px;
  }

  /* Hero */

  .hero .lead {
    max-width: 700px;
  }

  /* Introduktion */

  .approach-section {
    padding: 75px 30px 80px;
  }

  .approach-intro {
    max-width: 850px;
  }

  /* Cases */

  .cases-section {
    padding: 80px 36px 95px;
  }

  .cases-inner {
    max-width: 100%;
  }

  .case-item {
    max-width: 100%;
    gap: 30px;
    margin-bottom: 85px;
  }

  .case-text {
    max-width: 100%;
  }

  .case-text p:not(.section-kicker) {
    max-width: 100%;
  }

  .case-image {
    max-width: 100%;
  }

  .case-image::before {
    inset: 12px -12px -12px 12px;
  }

  /* Footer */

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px 35px;
    padding: 0 30px;
  }

  .footer-bottom {
    margin-right: 30px;
    margin-left: 30px;
  }
}


/* =======================================================
   19. MOBIL
======================================================= */

@media (max-width: 575.98px) {

  /* Navigation og logo */

  .navbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-mark {
    width: 105px;
    min-width: 105px;
    flex-basis: 105px;
    font-size: 15px;
  }

  /* Hero */

  .hero {
    min-height: 330px;
    height: 330px;
  }

  .about-page-hero .hero-text {
    padding-top: 105px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero .lead {
    max-width: 330px;
    margin-top: 24px;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
  }

  /* Introduktion */

  .approach-section {
    padding: 58px 22px 65px;
  }

  .approach-intro h2 {
    font-size: clamp(2.6rem, 11vw, 3.2rem);
  }

  .section-kicker {
    font-size: 10px;
    letter-spacing: 2.5px;
  }

  .cases-intro-text {
    margin-top: 22px;
  }

  .cases-intro-text p {
    font-size: 15px;
    line-height: 1.75;
  }

  /* Cases */

  .cases-section {
    padding: 62px 24px 75px;
  }

  .case-item {
    gap: 26px;
    margin-bottom: 72px;
  }

  .case-image {
    max-width: 100%;
  }

  .case-image::before {
    inset: 8px -8px -8px 8px;
  }

  .case-text {
    max-width: 100%;
  }

  .case-text h2 {
    font-size: clamp(2.5rem, 10vw, 3rem);
    margin-bottom: 17px;
  }

  .case-text p:not(.section-kicker) {
    font-size: 15px;
    line-height: 1.75;
  }

  .case-details {
    margin-top: 22px;
    padding-top: 15px;
  }

  .case-link {
    margin-top: 22px;
  }

  /* Før/efter-slider */

  .comparison-handle {
    width: 36px;
    height: 36px;
  }

  /* Footer */

  .site-footer {
    padding: 60px 22px 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
    padding: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin: 45px 0 0;
  }
}