/* =====================================================
   GLOBAL FONT + BASE SETTINGS
===================================================== */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a121d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.home {
    background-color: #7c9494;
    color: #f5f5f5;
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 70px;
}

body.musikk,
body.visuell,
body.prosjekter,
body.om {
    padding-top: 70px;
}


/* =====================================================
   TYPOGRAFI
===================================================== */

.intro-text a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: opacity 0.2s ease;
}

.intro-text a:hover {
    opacity: 0.6;
}
.image-caption a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: opacity 0.2s ease;
}

.image-caption a:hover {
    opacity: 0.6;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(124, 148, 148, 0.85);
    backdrop-filter: blur(6px);
}

.logo {
    color: #1a121d;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: #1a121d;
    text-decoration: none;
    font-size: 14.2px;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.nav-links a:hover,
.logo:hover {
    opacity: 0.6;
}

.hamburger {
    display: none;
}


/* =====================================================
   HERO (GLOBAL)
===================================================== */

.hero {
    width: 100%;
    height: 89vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero {
    background-image: url("../images/Thor-0358.jpg");
}

.hero-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: #c9c9c9;
    font-size: 25px;
    font-weight: 80;
    letter-spacing: 0.5px;
    max-width: 650px;
    line-height: 1.35;
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 2.0s ease forwards;
}

.quote-mark {
    font-size: 120px;
    font-weight: 200;
    line-height: 0.6;
    opacity: 0.35;
    margin-right: 10px;
    font-family: Georgia, serif;
    transform: translateY(20px);
}
.quote-body {
    background: rgba(0, 0, 0, 0.75); /* bakplate */
    padding: 20px 28px;
    border-radius: 4px;
    display: inline-block;
    position: relative; /* ← denne linjen er nøkkelen */
}

.quote-body p {
    margin: 0;
}

.quote-author {
    display: block;
    margin-top: 12px;
    font-size: 18px;
    font-style: italic;
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =====================================================
   HERO – UNDERSIDER (72vh)
===================================================== */

/* Felles høyde for alle undersider */
.hero-musikk,
.hero-visuell,
.hero-prosjekter,
.hero-om,
.hero-solo,
.hero-bluestrain,
.hero-fotograf {
    height: 82vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Individuelle hero-bilder */
.hero-musikk {
    background-image: url("../images/korpsstevne_1975_byjubileum_2660px.jpg");
}

.hero-visuell {
    background-image: url("../images/fasttrack_oppslag.jpg");
}

.hero-prosjekter {
    background-image: url("../images/Thor-0300.jpg");
}

.hero-om {
    background-image: url("../images/The_Make_It_Happens_01-4862.jpg");
}

.hero-solo {
    background-image: url("../images/thor_og_Bent_Ogna_Scene_2017_2048x1152px.jpg");
}

.hero-bluestrain {
    background-image: url("../images/bluestrain_2558px.jpg");
}
.hero-fotograf {
    background-image: url("../images/Dvalin_module_3840px.jpg");
}
.hero-illustrasjon {
    background-image: url("../illustrasjon/CCS_Inshore_FSO_2660px.jpg");
}

/* =====================================================
   HERO VIDEO (Prosjekter)
===================================================== */

.hero-video {
    position: relative;
    height: 72vh;
    overflow: hidden;

    display: flex;
    align-items: flex-end;     /* <-- plasserer teksten nederst */
    justify-content: flex-start;
    padding-bottom: 4vh;      /* <-- juster etter smak */
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-video .hero-text {
    position: relative;
    z-index: 2;
    text-align: left; /* behold typografien din */
}

/* =====================================================
   PROJECT NAVIGATION (ren "Bla til neste")
===================================================== */

.project-nav {
    width: 20%;
    margin: 100px auto 120px auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    text-align: center;
    opacity: 0;
    animation: fadeInNav 1.2s ease forwards;
}

.project-nav a {
    font-size: 15px;
    font-weight: 300;
    color: #231f20;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.project-nav a:hover {
    opacity: 1;
}

/* Fade-in */
@keyframes fadeInNav {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .site-header {
        padding: 0 20px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.28em;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: auto;
    }

    .hamburger span {
        width: 24px;
        height: 2px;
        background-color: #1a121d;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(124, 148, 148, 0.85);
        padding: 20px 30px;
        gap: 20px;
        text-align: right;
        transform: translateX(100%);
        animation: slideIn 0.35s ease forwards;
    }

    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to   { transform: translateX(0); opacity: 1; }
    }

    .hero-text {
        bottom: 40px;
        left: 20px;
        right: 20px;
        font-size: 22px;
        max-width: 90%;
    }

    .quote-mark {
        font-size: 80px;
    }

    .quote-author {
        font-size: 16px;
    }
}


/* =====================================================
   INNHOLDSELEMENTER
===================================================== */

.image-caption {
    max-width: 700px;
    margin: 20px auto 60px auto;
    padding: 0 20px;
}

.image-caption p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #1a121d;
    opacity: 0.85;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.intro-text p {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 300;
    line-height: 1.55;
    color: #1a121d;
}

.om-text {
    max-width: 800px;
    margin: 0 auto;
}
.intro-text p + p {
    margin-top: 22px;
}


/* =====================================================
   PROSJEKTER / KATEGORIER (FELLES)
===================================================== */

.music-projects,
.visual-categories,
.project-overview,
.about-section {
    background-color: #f0f4f4;
    padding: 80px 20px;
}

.music-projects h2,
.visual-categories h2,
.project-overview h2,
.about-section h2 {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #1a121d;
    text-transform: uppercase;
}


/* =====================================================
   CARD GRID (FELLES FOR MUSIKK / VISUELL / PROSJEKTER)
===================================================== */

.project-grid,
.category-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card,
.category-card {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: #1a121d;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: opacity 0.2s ease;
}

.project-card:hover,
.category-card:hover {
    opacity: 0.7;
}

.project-card h3,
.category-card h3 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
}

.project-card p,
.category-card p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.45;
    margin-bottom: 10px;
}

.project-card .more,
.category-card .more {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 300;
}

@media (max-width: 900px) {
    .project-grid,
    .category-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Klikkbar overskrift i prosjektkort (musikk) */
.project-card h3 {
    text-decoration: none;
    transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}

.project-card:hover h3 {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.85;
}
/* =====================================================
   DISABLED CARDS – DEMPER KUN TYPOGRAFI
===================================================== */

.category-card.disabled,
.project-card.disabled {
    pointer-events: none;
}

.category-card.disabled h3,
.category-card.disabled p,
.category-card.disabled .more,
.project-card.disabled h3,
.project-card.disabled p,
.project-card.disabled .more {
    opacity: 0.45;
}

/* Fjern hover-effekt */
.category-card.disabled:hover,
.project-card.disabled:hover {
    opacity: 1;
    transform: none;
}

.category-card.disabled:hover h3,
.project-card.disabled:hover h3 {
    text-decoration: none;
    opacity: 0.45;
}


/* =====================================================
   VIDEO GRID (MUSIKK UNDERSIDER)
===================================================== */

.video-grid {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.video-item {
    width: 40%;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
    border-radius: 4px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .video-grid {
        flex-direction: column;
        gap: 50px;
    }

    .video-item {
        width: 100%;
    }
}
/* =====================================================
   CATEGORY CARD – FOTO (BILDER I KORT)
===================================================== */

.category-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 12px;
}

.category-card h3 {
    text-decoration: none;
    transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}

.category-card:hover h3 {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.85;
}
/* =====================================================
   PROJECT CARD – BILDER I KORT
===================================================== */

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background-color: #7c9494;
    padding: 22px 40px 18px 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 310;
    letter-spacing: 0.12em;
    color: #1a121d;
    border-top: 1px solid #241a28;
}
@media (max-width: 700px) {
    .hero-musikk,
    .hero-visuell,
    .hero-prosjekter,
    .hero-om,
    .hero-solo,
    .hero-bluestrain,
    .hero-fotograf,
    .hero-illustrasjon {
        background-size: cover;
        background-position: left center;
        height: 50vh;
    }
}
@media (max-width: 700px) {
    .hero-fotograf {
        background-position: center center !important;
    }
}

@media (max-width: 700px) {
    .quote-body {
        background: rgba(0, 0, 0, 0.85);
        padding: 16px 22px;
    }

    .hero-text {
        font-size: 20px;
        bottom: 30px;
        color: #f0f0f0; /* ← DENNE ER NY */
    }

    .quote-mark {
        font-size: 60px;
        opacity: 0.25;
    }
}
/* Lukke-knapp i sitatboks */
.quote-body {
    position: relative;
}

.quote-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Hover-effekt (kun når man faktisk kan hovere) */
.quote-close:hover {
    opacity: 1;
}

/* Skjul knappen på desktop */
@media (min-width: 701px) {
    .quote-close {
        display: none;
    }
}
