/* ═══════════════════════════════════════════════
   Anders Langballe – style.css
   Palette: navy/guld, fonte: Playfair Display + Inter
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

/* ── CSS Custom Properties ── */
:root {
  --color-dark:       #0d1b2a;
  --color-navy:       #1b2d44;
  --color-navy-mid:   #243850;
  --color-gold:       #c9a227;
  --color-gold-dark:  #a8861f;
  --color-cream:      #f5f2ed;
  --color-white:      #ffffff;
  --color-text:       #1a1a2e;
  --color-text-muted: #5a6a7a;
  --color-border:     #e0dbd3;

  --section-pad: 96px;
  --max-width: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 6px 40px rgba(13, 27, 42, 0.13);
  --transition: all 0.22s ease;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: inherit;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn--gold:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn--dark:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Section helpers ── */
.section { padding: var(--section-pad) 0; }
.section--cream { background: var(--color-cream); }
.section--white { background: var(--color-white); }
.section--dark  { background: var(--color-dark); color: var(--color-white); }

.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.section__label--light {
  color: rgba(201, 162, 39, 0.85);
}

.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section__header h2 { margin-top: 8px; }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.navbar__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  transition: color 0.3s ease;
}
#navbar.scrolled .navbar__logo { color: var(--color-dark); }

.navbar__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.navbar__links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar__links a:hover { color: var(--color-white); background: rgba(255,255,255,0.1); }
#navbar.scrolled .navbar__links a { color: var(--color-text-muted); }
#navbar.scrolled .navbar__links a:hover { color: var(--color-dark); background: var(--color-cream); }

.navbar__cta { padding: 10px 20px; font-size: 0.85rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--color-dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════════
   MOBILMENU
   ═══════════════════════════════════════════════ */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#mobile-menu ul a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--color-white);
  padding: 8px 0;
  transition: color 0.2s ease;
}
#mobile-menu ul a:hover { color: var(--color-gold); }

.mobile-menu__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.mobile-menu__close:hover { opacity: 1; }


/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark);
  background-image:
    linear-gradient(165deg, rgba(13, 27, 42, 0.92) 0%, rgba(27, 45, 68, 0.85) 60%, rgba(13, 27, 42, 0.95) 100%),
    url('https://www.anderslangballe.com/wp-content/uploads/2026/03/FV-2026-Clement.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1fr 52%;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero__media img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  mask-image:
    linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}


/* ═══════════════════════════════════════════════
   OM (ABOUT)
   ═══════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 560px;
}

.about__text h2 {
  margin: 10px 0 24px;
  color: var(--color-dark);
}
.about__text p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}
.about__text .btn { margin-top: 16px; }


/* ═══════════════════════════════════════════════
   YDELSER
   ═══════════════════════════════════════════════ */
.ydelser__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ydelse-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.ydelse-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

.ydelse-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-gold);
}
.ydelse-card__icon svg { width: 26px; height: 26px; }

.ydelse-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.ydelse-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.ydelse-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}
.ydelse-card__link:hover {
  color: var(--color-gold);
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════
   FORFRA
   ═══════════════════════════════════════════════ */
.forfra__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.forfra__image img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}

.forfra__text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-white);
  margin: 10px 0 24px;
}
.forfra__text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.8;
}
.forfra__ambassador {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin: 20px 0 32px !important;
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.65) !important;
}
.forfra__ambassador strong { color: var(--color-gold); }


/* ═══════════════════════════════════════════════
   KONTAKT
   ═══════════════════════════════════════════════ */
.kontakt__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.kontakt__info h2 {
  color: var(--color-dark);
  margin: 10px 0 16px;
}
.kontakt__intro {
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.kontakt__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kontakt__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.kontakt__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
}
.kontakt__list a, .kontakt__list li > span:not(.kontakt__icon) {
  font-size: 0.95rem;
  color: var(--color-text);
  padding-top: 12px;
  line-height: 1.5;
}
.kontakt__list a:hover { color: var(--color-gold-dark); }

.kontakt__social h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--color-dark);
  margin: 10px 0 28px;
}

.social__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.social__link:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.15);
  transform: translateX(4px);
}
.social__link svg { flex-shrink: 0; color: var(--color-gold); }


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.footer__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}
.footer__tagline {
  font-size: 0.8rem;
  font-style: italic;
}

.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}
.footer__social a:hover { color: var(--color-gold); }

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE – 900px
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .navbar__links, .navbar__cta { display: none; }
  .hamburger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
  }
  .hero__media { width: 100%; }
  .hero__media img { width: 100%; height: 280px; max-height: none; object-fit: cover; object-position: center top; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image img { max-height: 380px; }

  .ydelser__grid { grid-template-columns: 1fr; }

  .forfra__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .forfra__image img { max-width: 240px; }

  .kontakt__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE – 640px
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-pad: 56px; }

  .hero__inner { padding-top: 88px; padding-bottom: 56px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { align-items: center; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE – 480px (small phones)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }

  .ydelse-card { padding: 24px 20px; }

  .ydelse-card__link { display: inline-block; padding: 10px 0; }

  .forfra__image img { max-width: 180px; }

  .kontakt__list a,
  .kontakt__list li > span:not(.kontakt__icon) { font-size: 0.875rem; }

  .hero__media img {
    mask-image:
      linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
  }
}
