/*
Theme Name: Malstrøm
Theme URI: https://malstrom.dk
Author: Malstrøm Film
Description: Custom tema til Malstrøm Film — filmisk, mørkt og menneskeligt design med sticky split-menu, timecode-sektioner og plads til prisberegner.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: malstrom
*/

/* ============ RESET / BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #faf7f0;
  color: #201c17;
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  margin: 0;
  color: #201c17;
  letter-spacing: -0.01em;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.mf-mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; }

.mf-section { position: relative; padding: 5.5rem 6vw; max-width: 1280px; margin: 0 auto; }
@media (max-width: 780px) { .mf-section { padding: 3.5rem 6vw; } }

.mf-timecode {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #9c4326;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  opacity: 0.9;
}
.mf-timecode::before { content: "●"; font-size: 0.55rem; }
.mf-timecode .mf-rule { flex: 1; height: 1px; background: rgba(32,28,23,0.14); }

/* ============ NAV (split menu, logo i midten) ============ */
#mf-nav {
  position: sticky; top: 0; z-index: 999;
  background: #faf7f0;
  border-bottom: 1px solid rgba(32,28,23,0.1);
  font-family: 'IBM Plex Mono', monospace;
}
#mf-nav .mf-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 6vw;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 84px;
}
#mf-nav .mf-nav-side ul { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; }
#mf-nav .mf-nav-side li { list-style: none; }
#mf-nav .mf-nav-side.mf-left ul { justify-content: flex-start; }
#mf-nav .mf-nav-side.mf-right ul { justify-content: flex-end; }
#mf-nav .mf-nav-side a {
  color: #201c17; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; position: relative; padding-bottom: 4px; white-space: nowrap;
}
#mf-nav .mf-nav-side a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 1px;
  background: #9c4326; transition: width 0.2s ease;
}
#mf-nav .mf-nav-side a:hover::after { width: 100%; }
#mf-nav .mf-nav-side li.mf-cta-item a {
  color: #faf7f0; background: #201c17; padding: 0.55rem 1.1rem; text-decoration: none;
}
#mf-nav .mf-nav-side li.mf-cta-item a::after { display: none; }
#mf-nav .mf-nav-side li.mf-cta-item a:hover { background: #9c4326; }

#mf-nav .mf-nav-logo { display: flex; justify-content: center; text-decoration: none; }
#mf-nav .mf-nav-logo img { height: 40px; width: auto; }

#mf-nav .mf-nav-burger {
  display: none; background: none; border: none; cursor: pointer; padding: 0.4rem;
  width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px;
}
#mf-nav .mf-nav-burger span { display: block; height: 1.5px; background: #201c17; width: 100%; }

@media (max-width: 820px) {
  #mf-nav .mf-nav-side { display: none; }
  #mf-nav .mf-nav-burger { display: flex; }
  #mf-nav .mf-nav-drawer {
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease; border-top: 1px solid transparent;
  }
  #mf-nav.mf-open .mf-nav-drawer { max-height: 420px; border-top: 1px solid rgba(32,28,23,0.1); }
  #mf-nav .mf-nav-drawer-inner { padding: 1.2rem 6vw 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
  #mf-nav .mf-nav-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
  #mf-nav .mf-nav-drawer a { color: #201c17; font-size: 0.9rem; text-decoration: none; }
  #mf-nav .mf-nav-drawer li.mf-cta-item a { color: #9c4326; }
}

/* ============ HERO (fuldbredde foto, som på malstrom.dk) ============ */
.mf-hero {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 4rem 6vw 5rem;
  background-image:
    linear-gradient(180deg, rgba(20,16,13,0.05) 0%, rgba(20,16,13,0.65) 100%),
    url('https://malstrom.dk/wp-content/uploads/2026/07/MAL8690-1-scaled.jpg');
  background-size: cover;
  background-position: center;
  color: #faf7f0;
  max-width: none;
}
.mf-hero h1 { color: #faf7f0; font-size: clamp(2.6rem, 6.5vw, 5.4rem); max-width: 18ch; line-height: 1.04; }
.mf-hero-sub {
  font-family: 'Newsreader', serif; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: #ece4d3; max-width: 46ch; margin-top: 1.4rem;
}
.mf-cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.mf-btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.95rem 1.6rem; border: 1px solid #faf7f0; color: #faf7f0; text-decoration: none; display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.mf-btn:hover { background: #faf7f0; color: #201c17; }
.mf-btn.mf-btn-dark { border: 1px solid #201c17; color: #201c17; }
.mf-btn.mf-btn-dark:hover { background: #201c17; color: #faf7f0; }

/* ============ "HVAD KOSTER DIN HISTORIE" — pergament-sektion ============ */
.mf-price-teaser {
  max-width: none;
  padding: 6rem 6vw;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(250,247,240,0.72), rgba(250,247,240,0.86)),
    url('https://malstrom.dk/wp-content/uploads/2026/07/pergament-baggrund-2-1024x683.png');
  background-size: cover;
  background-position: center;
}
.mf-price-teaser h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; margin: 0 auto; }
.mf-price-teaser p { max-width: 48ch; margin: 1.2rem auto 0; font-size: 1.05rem; }
.mf-price-teaser .mf-btn { margin-top: 2rem; }

/* ============ ALMINDELIGE SIDER (Film, Museer, Kontakt, osv.) ============ */
.mf-page-hero { padding-bottom: 0; }
.mf-page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; }
.mf-page-body { padding-top: 2.5rem; }
.mf-page-body p { max-width: 62ch; font-size: 1.05rem; }
.mf-page-body img { margin: 2rem 0; border-radius: 2px; }

footer.mf-foot {
  border-top: 1px solid rgba(32,28,23,0.1); padding: 1.6rem 6vw; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: #6b6152;
}
