:root {
    --bg-dark: #050505;
    --bg-darker: #020202;
    --text-light: #f5f3e9;
    --accent: #b89460;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* -------------------------------------------------
   TOP-BAR (logga + hamburgare)
-------------------------------------------------- */

.top-bar {
    position: relative;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: flex-start; /* position för Lundagjuteriet överst */
}

.brand {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-left: 2.5rem; /* Skjuter texten åt vänster */
}

.menu-toggle {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.menu-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* -------------------------------------------------
   MOBILMENY (under top-bar)
-------------------------------------------------- */

.mobile-nav {
    display: none;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mobile-nav a {
    display: block;
    padding: 0.15rem 0;
}

.mobile-nav.open {
    display: block;
}

/* -------------------------------------------------
   HERO
-------------------------------------------------- */

.hero {
    min-height: 70vh;
    background-image: url("slaget_vid_lund.png");
    background-size: cover;
    background-position: top center; /* visa mer av ryttaren */
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 20%,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.7)
    );
}

.hero-inner {
    position: absolute;
    top: 65%;
    left: 72%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0;
}

.hero-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,243,233,0.8);
}

/* -------------------------------------------------
   DESKTOPMENY (under hero)
-------------------------------------------------- */

.desktop-nav {
    display: none; /* mobil först */
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-nav a {
    position: relative;
    padding-bottom: 0.25rem;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease-out;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* -------------------------------------------------
   GEMENSAMT FÖR LI + SUBMENYER
-------------------------------------------------- */

.desktop-nav li,
.mobile-nav li {
    position: relative;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.25rem;
    display: none;
}

.submenu.open {
    display: block;
}

/* -------------------------------------------------
   SUBMENY – DESKTOP (dropdown)
-------------------------------------------------- */

@media (min-width: 900px) {
    .desktop-nav .has-submenu {
        position: relative;
    }

    .desktop-nav .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #000;
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 0.5rem 0.75rem;
        min-width: 180px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.6);
        z-index: 500;
    }

    .desktop-nav .submenu li {
        margin-bottom: 0.25rem;
    }

    .desktop-nav .submenu a {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Visa dropdown på hover */
    .desktop-nav .has-submenu:hover > .submenu {
        display: block;
    }

    .desktop-nav .submenu-toggle {
        background: none;
        border: none;
        color: var(--text-light);
        margin-left: 0.2rem;
        font-size: 0.8rem;
        cursor: pointer;
    }
}

/* -------------------------------------------------
   SUBMENY – MOBIL (vecklas ut)
-------------------------------------------------- */

@media (max-width: 899px) {
    .mobile-nav .has-submenu > a {
        display: inline-block;
        margin-right: 0.35rem;
    }

    .mobile-nav .submenu-toggle {
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 0.85rem;
        cursor: pointer;
    }

    .mobile-nav .submenu {
        padding-left: 1rem;
        padding-top: 0.25rem;
    }

    .mobile-nav .submenu li a {
        font-size: 0.9rem;
    }
}

/* -------------------------------------------------
   SIDINNEHÅLL
-------------------------------------------------- */

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

section {
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
}

section:first-of-type {
    border-top: none;
    padding-top: 0;
}

h2 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

p {
    margin-bottom: 0.9rem;
    font-size: 0.98rem;
}

/* -------------------------------------------------
   BREAKPOINTS / JUSTERINGAR
-------------------------------------------------- */

@media (min-width: 900px) {
    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .top-bar-inner {
        justify-content: flex-start;
    }

    .desktop-nav {
        display: block;
    }

    .hero {
        min-height: 75vh;
    }
     
    .brand {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-title {
        letter-spacing: 0.15em;
    }
}

/* --- Tvinga rätt visning för undermenyer --- */

/* Undermeny ska vara dold som standard */
.submenu {
    display: none !important;
}

/* Visa undermeny när JS öppnar den (mobil/desktop) */
.submenu.open {
    display: block !important;
}


@media (min-width: 601px) and (max-width: 900px) {
    .hero-inner {
        top: auto;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 1.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    
    .hero {
        min-height: 40vh; /* tidigare ~70vh */
        background-position: center top;
    }
    
    .hero-inner {
        top: 18%;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        padding: 0 1rem;
        display: none; /* döljs på små skärmar */
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        letter-spacing: 0.15em;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }
}



