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

:root {
  --off-white: #F5F0E8;
  --sage: #7A9E8E;
  --okker: #C8873F;
  --forest: #2D4A3E;
  --earth: #3D2B1F;
  --cream: #F5F0E8;
  --max-width: 1400px;
  --pad: 5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.85;
  color: var(--off-white);
  background: var(--earth);
}

/* CONTAINER – centers content on wide screens */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.4s;
}

nav.scrolled { background: rgba(45,74,62,0.97); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--okker);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--okker); }
.nav-links a.active { color: var(--okker); }

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.2em 2.4em;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary { background: var(--okker); color: var(--earth); }
.btn-primary:hover { background: var(--off-white); color: var(--earth); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--off-white); border: 2px solid var(--off-white); }
.btn-outline:hover { background: var(--off-white); color: var(--earth); transform: translateY(-2px); }
.btn-dark { background: transparent; color: var(--earth); border: 2px solid var(--earth); }
.btn-dark:hover { background: var(--earth); color: var(--off-white); transform: translateY(-2px); }

/* SECTIONS – full width background, inner content centered */
section {
  width: 100%;
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem var(--pad);
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--okker);
  margin-bottom: 1.5rem;
  display: block;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
h3 { font-size: 1.4rem; letter-spacing: 0.06em; }

/* PAGE HERO – full bleed image with overlay */
.page-hero {
  min-height: 65vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

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

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,0.92) 0%, rgba(45,74,62,0.6) 60%, rgba(45,74,62,0.3) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 10rem var(--pad) 5rem;
}

/* DIVIDERS */
.divider {
  height: 1px;
  background: rgba(245,240,232,0.12);
  max-width: var(--max-width);
  margin: 0 auto;
}

.divider-dark {
  height: 1px;
  background: rgba(61,43,31,0.12);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* FOOTER */
footer { width: 100%; background: var(--earth); border-top: 1px solid rgba(245,240,232,0.1); }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--pad);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo { font-size: 2rem; margin-bottom: 1rem; display: block; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--okker);
  margin-bottom: 1.2rem;
}

.footer-col p, .footer-col a {
  font-size: 1rem;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  display: block;
  line-height: 2.2;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--off-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.08);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.05em;
}

/* NEWSLETTER */
.newsletter-form { display: flex; margin-top: 1rem; }

.newsletter-form input {
  flex: 1;
  padding: 0.9em 1.2em;
  background: rgba(245,240,232,0.08);
  border: 1px solid rgba(245,240,232,0.2);
  border-right: none;
  color: var(--off-white);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(245,240,232,0.3); }

.newsletter-form button {
  padding: 0.9em 1.4em;
  background: var(--okker);
  border: none;
  color: var(--earth);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--off-white); }

/* INSTAGRAM */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}

.instagram-link:hover { color: var(--okker); }
.instagram-link svg { width: 22px; height: 22px; fill: currentColor; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  :root { --pad: 3rem; }
}

@media (max-width: 900px) {
  :root { --pad: 2rem; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* SIMPLE HERO – no flexbox, just padding pushes content down */
.simple-hero {
  background: var(--forest);
  min-height: 50vh;
}

.simple-hero .section-inner {
  padding-top: 12rem;
  padding-bottom: 5rem;
}

/* ================================================
   MOBIL – komplet responsiv opsætning
   ================================================ */

/* Hamburger kun synlig på mobil */
.hamburger { display: none; }

/* Mobile menu skjult på desktop */
.mobile-menu { display: none; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; text-align: left; }
.grid-2-center { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; text-align: left; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 3rem; }

/* Billede helpers */
.img-portrait { aspect-ratio: 3/4; }
.img-landscape { aspect-ratio: 4/3; }

@media (max-width: 768px) {

  html, body { overflow-x: hidden; width: 100%; }

  /* Nav */
  .nav-inner { padding: 1rem 1.5rem; }
  .logo { font-size: 1.3rem; }
  .nav-links { display: none !important; }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--off-white); }

  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--forest);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }
  .mobile-menu.open { display: flex !important; }
  .mobile-menu a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
  }
  .mobile-menu .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--off-white);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
  }

  /* Section padding */
  .section-inner {
    padding: 3rem 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Grid til enkeltkolonne */
  .grid-2,
  .grid-2-center,
  .grid-3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2rem !important;
    width: 100% !important;
  }

  /* Sticky off */
  .sticky-col { position: static !important; }

  /* Billeder */
  .img-portrait {
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    max-height: 260px !important;
    overflow: hidden;
  }
  .img-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
  }
  .img-landscape {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
    max-height: 220px !important;
    overflow: hidden;
  }
  .img-landscape img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Typografi – eksplicit venstrejustering */
  h1, h2, h3, p, .section-label {
    text-align: left !important;
  }

  h1 { font-size: clamp(1.9rem, 7vw, 2.8rem) !important; }
  h2 { font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important; }
  h3 { font-size: 1.1rem !important; }
  p { line-height: 1.7 !important; font-size: 1rem !important; }

  /* Knapper – fuld bredde */
  .btn {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Priskort */
  .price-card { padding: 1.5rem !important; }

  /* Footer */
  .footer-inner { padding: 2.5rem 1.5rem !important; }
  .footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
  }

  /* Cookie */
  .cookie-banner { padding: 1.2rem 1.5rem; flex-direction: column; gap: 1rem; }
  .cookie-buttons { width: 100%; }

  /* Citat */
  .quote-block { padding-left: 1rem !important; margin-top: 0 !important; }

  /* Dividers */
  .divider, .divider-dark { margin: 0 !important; }

  /* Hero min-height */
  section[style*="min-height:85vh"] { min-height: 100svh !important; }
  section[style*="min-height:50vh"] { min-height: auto !important; padding-top: 0 !important; }

  /* Bredde-loft på max-width elementer */
  div[style*="max-width:720px"],
  div[style*="max-width:760px"],
  div[style*="max-width:500px"] {
    max-width: 100% !important;
  }

}

/* Force left align on grid children everywhere */
.grid-2-center > div,
.grid-2 > div,
.grid-3 > div {
  text-align: left;
  width: 100%;
}

/* Global link color override */
a { color: inherit; }
a:visited { color: inherit; }
a.logo, a.logo:visited { color: var(--okker) !important; }

@media (max-width: 768px) {
  /* Hard override for any remaining centering */
  .section-inner * {
    text-align: left !important;
  }
  /* But keep buttons centered */
  .btn {
    text-align: center !important;
  }
  /* And footer bottom links */
  .footer-bottom {
    text-align: left !important;
  }
}
