/*
Theme Name: Havehuset
Theme URI: https://www.havehuset.dk
Author: Lars Ole Larsen
Author URI: https://www.havehuset.dk
Description: Et minimalistisk og naturinspireret tema til sommerhusudlejning ved Sunds Sø. Jordnære farver, store naturbilleder og ro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: havehuset
Tags: nature, minimal, full-width, custom-header, custom-menu, featured-images
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  /* Jordnære farver */
  --color-bark:       #3b2f2f;
  --color-moss:       #4a5c3f;
  --color-sand:       #d4c9b0;
  --color-fog:        #f0ece3;
  --color-white:      #faf8f4;
  --color-dusk:       #1e2a1e;

  /* Tekst */
  --color-text:       #2c2420;
  --color-text-muted: #6b5f52;
  --color-text-light: #9e8e7e;

  /* Typografi */
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration:   0.4s;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-bark);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-bottom: var(--space-sm);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--duration) var(--ease),
              padding var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(59, 47, 47, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
  transition: opacity var(--duration) var(--ease);
}

.site-logo__text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-white);
  letter-spacing: 0.05em;
  transition: color var(--duration) var(--ease);
}

.site-header.scrolled .site-logo__text {
  color: var(--color-bark);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.9);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-sand);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.main-nav a:hover::after,
.main-nav a.current-menu-item::after {
  transform: scaleX(1);
}

.site-header.scrolled .main-nav a {
  color: var(--color-text-muted);
}

.site-header.scrolled .main-nav a::after {
  background: var(--color-moss);
}

/* Kontakt knap */
.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bark) !important;
  background: var(--color-sand);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease) !important;
  white-space: nowrap;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-moss);
  color: var(--color-white) !important;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--duration) var(--ease);
}

.site-header.scrolled .menu-toggle span {
  background: var(--color-bark);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dusk);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-sand);
  transition: color var(--duration) var(--ease);
}

.mobile-nav a:hover {
  color: var(--color-white);
}

.mobile-nav .nav-cta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  background: var(--color-moss);
  color: var(--color-white) !important;
  margin-top: 1rem;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-moss);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.85;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 42, 30, 0.85) 0%,
    rgba(30, 42, 30, 0.2) 50%,
    rgba(30, 42, 30, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-sand);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(3rem, 8vw, 7rem);
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  color: rgba(240, 236, 227, 0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 48ch;
  margin-bottom: 2.5rem;
  font-family: var(--font-sans);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bark);
  background: var(--color-sand);
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              gap var(--duration) var(--ease);
}

.hero__cta:hover {
  background: var(--color-white);
  gap: 1.25rem;
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Hero video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1s ease;
}

.hero__fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: opacity 1.5s ease;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero__scroll span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 227, 0.6);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(240,236,227,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* =====================================================
   INTRO SECTION
   ===================================================== */
.section-intro {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.intro-text .section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intro-text .section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-moss);
}

.intro-text h2 {
  margin-bottom: 1.5rem;
}

.intro-text p {
  margin-bottom: 1rem;
  max-width: 55ch;
}

.intro-image {
  position: relative;
}

.intro-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

/* =====================================================
   RAMME-SYSTEM — fælles for intro-billede og kort
   ===================================================== */

.hh-frame {
  position: relative;
  display: block;
}

/* Sørg for at billede/iframe fylder inden i rammen */
.hh-frame img,
.hh-frame iframe {
  display: block;
  width: 100%;
}

/* --- TYPE 1: Hjørne (nederst til venstre) --- */
.hh-frame--corner {
  margin-bottom: 1.8rem;
  margin-left: 1.8rem;
}

.hh-frame--corner::after {
  content: '';
  position: absolute;
  bottom: -1.4rem;
  left: -1.4rem;
  width: 55%;
  aspect-ratio: 1;
  border-style: solid;
  border-color: var(--hh-frame-color, var(--color-sand));
  border-width: var(--hh-frame-width, 2px);
  border-radius: 2px;
  z-index: -1;
  pointer-events: none;
}

/* --- TYPE 2: Kant rundt om --- */
.hh-frame--border {
  padding: var(--hh-frame-padding, 10px);
  border-style: solid;
  border-color: var(--hh-frame-color, var(--color-sand));
  border-width: var(--hh-frame-width, 2px);
  border-radius: 3px;
  background: var(--color-fog);
}

/* Gammel accent — skjules */
.intro-image__accent {
  display: none;
}

/* =====================================================
   FEATURES / HIGHLIGHTS
   ===================================================== */
.section-features {
  padding: var(--space-xl) 0;
  background: var(--color-fog);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-header .section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-header .section-label::before,
.section-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-moss);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  margin-inline: auto;
  max-width: 55ch;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--color-white);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: background var(--duration) var(--ease);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-moss);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  background: var(--color-fog);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-moss);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  max-width: none;
  margin-bottom: 0;
}

/* =====================================================
   FULL-WIDTH IMAGE BREAK
   ===================================================== */
.section-image-break {
  height: 60vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.section-image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.8s var(--ease);
}

.section-image-break:hover img {
  transform: scale(1.02);
}

.section-image-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 30, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image-break__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--color-white);
  text-align: center;
  max-width: 20ch;
  line-height: 1.3;
  padding: 0 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* =====================================================
   PRAKTISK INFO
   ===================================================== */
.section-info {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.info-list {
  margin-top: 2rem;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-sand);
  font-family: var(--font-sans);
  color: var(--color-text-muted);
}

.info-list li::before {
  content: '—';
  color: var(--color-moss);
  flex-shrink: 0;
  font-size: 0.8em;
}

.info-map {
  aspect-ratio: 4/3;
  background: var(--color-fog);
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.info-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =====================================================
   KONTAKT
   ===================================================== */
.section-contact {
  padding: var(--space-xl) 0;
  background: var(--color-dusk);
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a5c3f' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.contact-text .section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-text .section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-sand);
}

.contact-text h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-text p {
  color: rgba(240, 236, 227, 0.7);
  margin-bottom: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(74, 92, 63, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-sand);
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-item__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.2rem;
}

.contact-item__value {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-white);
}

.contact-item__value a {
  color: var(--color-sand);
  transition: color var(--duration) var(--ease);
}

.contact-item__value a:hover {
  color: var(--color-white);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 201, 176, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  transition: all var(--duration) var(--ease);
}

.social-link:hover {
  background: var(--color-moss);
  border-color: var(--color-moss);
  color: var(--color-white);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-bark);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(212, 201, 176, 0.5);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(212, 201, 176, 0.5);
  transition: color var(--duration) var(--ease);
}

.footer-nav a:hover {
  color: var(--color-sand);
}

/* =====================================================
   INNER PAGES
   ===================================================== */
.page-hero {
  height: 50vh;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: flex-end; /* overrides via Customizer CSS */
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 42, 30, 0.8) 0%,
    rgba(30, 42, 30, 0.2) 60%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
  padding-top: 2rem;
  /* Arver width/margin fra .container — flugter med sidetekst */
}

.page-hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 720px;
  width: 100%;
}

.page-content {
  padding: var(--space-xl) 0;
}

.entry-content {
  max-width: 720px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

/* Billede galleri */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity var(--duration) var(--ease);
}

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

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .intro-grid,
  .info-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .intro-image__accent {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================
   WORDPRESS SPECIFICS
   ===================================================== */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =====================================================
   HERO — Ken Burns zoom ved load
   ===================================================== */
.hero__bg img,
.hero__video {
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0);  }
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bark);
  background: var(--color-sand);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.contact-cta:hover {
  background: var(--color-white);
  color: var(--color-bark);
  text-decoration: none;
}

/* =====================================================
   UTILITY KLASSER
   ===================================================== */

.intro-text__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin-top: .5rem;
  border-bottom: 1px solid var(--color-moss);
  padding-bottom: 2px;
  transition: opacity var(--duration) var(--ease);
}
.intro-text__link:hover { opacity: 0.7; }

.info-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-bark);
  background: var(--color-sand);
  padding: 1rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.info-cta:hover {
  background: var(--color-moss);
  color: var(--color-white);
  text-decoration: none;
}

.info-cta--outline {
  background: transparent;
  border: 2px solid var(--color-sand);
  color: var(--color-text);
}
.info-cta--outline:hover {
  background: var(--color-sand);
  color: var(--color-bark);
}

.info-cta--link {
  background: none;
  padding: 0;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--color-moss);
  border-radius: 0;
  color: var(--color-moss);
  font-size: .85rem;
}
.info-cta--link:hover {
  background: none;
  color: var(--color-bark);
  border-bottom-color: var(--color-bark);
}

.section-label--left {
  justify-content: flex-start;
}
.section-label--left::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-moss);
}
.section-label--left::after { display: none; }

/* =====================================================
   VANDMÆRKE-MØNSTRE — lette baggrunde
   ===================================================== */

/* Bølger under intro */
.section-intro {
  position: relative;
  overflow: hidden;
}

.section-intro::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath d='M0 40 Q150 10 300 40 Q450 70 600 40 Q750 10 900 40 Q1050 70 1200 40 L1200 80 L0 80 Z' fill='%23f0ece3' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 1200px 80px;
  background-repeat: repeat-x;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   MOBILMENU — baggrundsbillede
   ===================================================== */
.mobile-nav__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.mobile-nav > a,
.mobile-nav > li,
.mobile-nav > ul {
  position: relative;
  z-index: 1;
}

/* =====================================================
   LUFT MELLEM SEKTIONER
   ===================================================== */
.section-intro,
.section-features,
.section-info,
.section-contact { padding: calc(var(--space-xl) * 1.2) 0; }

/* =====================================================
   PAGE-HERO VIDEO
   ===================================================== */
.page-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1s ease;
}

#page-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: opacity 1.5s ease;
}
