/* ==========================================================================
1. :ROOT (CSS CUSTOM PROPERTIES)
========================================================================== */
:root {
    --bg-primary: #0E0E0E;
    --bg-secondary: #171717;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #F5F5F5;
    --text-secondary: #C7C7C7;
    --text-muted: #8D8D8D;
    --accent: #A96A38;
    --accent-hover: #C98549;
    --border-color: rgba(255, 255, 255, 0.08);

    --font-heading: "Oswald", sans-serif;
    --font-body: "Inter", sans-serif;

    --fs-h1: clamp(2.3rem, 6vw + 1rem, 4.5rem);
    --fs-h2: clamp(1.75rem, 3.5vw + 1rem, 3rem);
    --fs-h3: clamp(1.25rem, 2vw + 1rem, 1.75rem);
    --fs-body: 1.125rem;
    --fs-small: 0.875rem;

    --section-spacing: clamp(4rem, 8vw + 2rem, 8rem);
    --container-max-width: 1200px;
    --content-max-width: 68ch;
    --transition-fast: 250ms ease;
}

/* ==========================================================================
2. RESET & BASE
========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; background: transparent; border: none; color: inherit; }

*:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }

/* ==========================================================================
3. LAYOUT SYSTEM
========================================================================== */
.section-layout {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) minmax(0, var(--container-max-width)) minmax(24px, 1fr);
    padding-block: var(--section-spacing);
}

.section-layout__content { grid-column: 2; }

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-lead { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 16px; max-width: var(--content-max-width); }
.section-body { color: var(--text-muted); max-width: var(--content-max-width); }

/* ==========================================================================
4. KNAPPER (BUTTONS)
========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: var(--fs-small);
    text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--primary { background-color: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(169, 106, 56, 0.2); }

.btn--secondary { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: var(--text-primary); }
.btn--secondary:hover { border-color: var(--text-primary); background-color: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.btn--small { padding: 10px 20px; font-size: 0.8rem; }

/* ==========================================================================
5. HEADER / NAVIGATION
========================================================================== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 88px; z-index: 1000;
    display: flex; align-items: center; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header__container { width: 100%; max-width: var(--container-max-width); margin: 0 auto; padding-inline: 32px; display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: flex; align-items: center; }
.header__logo-img { height: 56px; width: auto; object-fit: contain; }
.header__menu { display: flex; gap: 40px; }
.header__link { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); position: relative; padding-block: 8px; transition: color var(--transition-fast); }
.header__link:hover { color: var(--accent); }
.header__toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; cursor: pointer; z-index: 1100; }
.header__toggle-bar { width: 100%; height: 3px; background-color: var(--text-primary); border-radius: 2px; transition: transform var(--transition-fast), opacity var(--transition-fast); }

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile slide-in nav panel */
.mobile-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 340px);
    background-color: var(--bg-secondary); border-left: 1px solid var(--border-color);
    z-index: 1050; transform: translateX(100%); transition: transform 320ms ease;
    padding-top: 88px; overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__nav { display: flex; flex-direction: column; padding: 32px; gap: 8px; }
.mobile-nav__menu { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav__link {
    display: block; padding: 16px 4px; font-family: var(--font-heading); font-size: 1.15rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-secondary); border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}
.mobile-nav__link:hover, .mobile-nav__link:active { color: var(--accent); }
.mobile-nav__cta { width: 100%; }

.mobile-nav__backdrop {
    position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040; opacity: 0; visibility: hidden; transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.mobile-nav__backdrop.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* ==========================================================================
6. HERO
========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.hero__container {
    width: 100%;
    max-width: var(--container-max-width);
    padding-inline: 32px;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #C98549;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 24px;
    max-width: 20ch;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.hero__lead {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 44px;
    max-width: 70ch;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
7. INTRO
========================================================================== */
.intro__container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.intro__image-wrapper { position: relative; width: 100%; max-width: none; align-self: start; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); }
.intro__image { width: 100%; height: auto; object-fit: cover; filter: grayscale(20%); transition: filter var(--transition-fast); }
.intro__image-wrapper:hover .intro__image { filter: grayscale(0%); }

/* ==========================================================================
8. HIGHLIGHTS
========================================================================== */
.highlights { background-color: var(--bg-secondary); }
.highlights__header { text-align: center; margin-bottom: 64px; }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { background-color: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border-color); backdrop-filter: blur(8px); transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); border-color: rgba(169, 106, 56, 0.3); }
.card__icon { color: var(--accent); margin-bottom: 24px; display: inline-block; }
.card__title { font-family: var(--font-heading); font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.card__text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
9. BANDMEDLEMMER
========================================================================== */
.members__header { text-align: center; margin-bottom: 80px; }
.members__list { display: flex; flex-direction: column; gap: 120px; }
.member { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.member:nth-child(even) .member__image-wrapper { grid-column: 2; }
.member:nth-child(even) .member__content { grid-column: 1; grid-row: 1; }
.member__image-wrapper { position: relative; width: 100%; max-width: 420px; align-self: start; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); aspect-ratio: 1 / 1; }
.member__image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); transition: filter var(--transition-fast), transform var(--transition-fast); border-radius: 20px; }
.member:hover .member__image { filter: grayscale(0%); transform: scale(1.02); }
.member__role { font-size: var(--fs-small); color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display: block; margin-bottom: 8px; }
.member__name { font-family: var(--font-heading); font-size: var(--fs-h2); text-transform: uppercase; margin-bottom: 24px; line-height: 1; }
.member__bio { color: var(--text-secondary); max-width: 55ch; }

/* ==========================================================================
10. KONTAKTFORMULAR
========================================================================== */
.contact { background-color: var(--bg-secondary); }
.contact__header { text-align: center; margin-bottom: 48px; }
.contact__lead { margin-inline: auto; max-width: var(--content-max-width); color: var(--text-secondary); margin-bottom: 32px;}

.contact__form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.contact__form-group { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.contact__label { font-size: var(--fs-small); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact__input { width: 100%; padding: 16px 20px; background-color: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.contact__input:focus { outline: none; border-color: var(--accent); background-color: rgba(255, 255, 255, 0.05); }
.contact__input--textarea { resize: vertical; min-height: 140px; }
.contact__submit { width: 100%; padding: 18px; font-size: 1rem; margin-top: 8px; }

/* Skjuler honeypot-feltet visuelt, men holder det tilgængeligt for bots */
.honeypot-field {
    position: absolute;
    left: -5000px;
}

/* Stilarter for formularbeskeder (succes/fejl) */
#form-message {
    padding: 16px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    display: none; /* Skjult som standard */
}

#form-message.form-message--success {
    background-color: rgba(26, 135, 84, 0.2);
    color: #1AF093;
    display: block;
}

#form-message.form-message--error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #FF5C5C;
    display: block;
}

/* ==========================================================================
11. FOOTER
========================================================================== */
.footer { border-top: 1px solid var(--border-color); background-color: var(--bg-primary); padding-top: 60px; padding-bottom: 40px; }
.footer__container { max-width: var(--container-max-width); margin: 0 auto; padding-inline: 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 40px; }
.footer__logo-img { height: 48px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer__text { color: var(--text-muted); font-size: 0.95rem; max-width: 35ch; }
.footer__title { font-family: var(--font-heading); font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; color: var(--text-primary); }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__link { color: var(--text-muted); font-size: 0.95rem; transition: color var(--transition-fast); }
.footer__link:hover { color: var(--accent); }
.footer__address { font-style: normal; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.footer__bottom { max-width: var(--container-max-width); margin: 0 auto; padding-inline: 32px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.04); text-align: center; font-size: var(--fs-small); color: var(--text-muted); }

/* ==========================================================================
12. RESPONSIVITET
========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero__video { display: none; }
}

@media (max-width: 767px) {
    .section-layout { padding-inline: 24px; }
    .hero { min-height: auto; padding-top: 140px; padding-bottom: 80px; }
    .hero__actions { flex-direction: column; width: 100%; gap: 12px; }
    .hero__actions .btn { width: 100%; }
    .intro__container, .highlights__grid, .member, .footer__container { grid-template-columns: 1fr; }
    .member:nth-child(even) .member__image-wrapper { grid-column: 1; }
    .member:nth-child(even) .member__content { grid-column: 1; grid-row: 2; }
    .footer__container { gap: 40px; }

    .header__nav, .header__actions { display: none; }
    .header__toggle { display: flex; }
    .header__container { padding-inline: 20px; }
}

@media (min-width: 768px) {
    .mobile-nav, .mobile-nav__backdrop { display: none; }
}