/* =============================================================================
   ANZU — frontpage.css
   Styles specific to the frontpage (index).
   ============================================================================= */

@import url('variables.css');

/* =============================================================================
   Frontpage-specific variables
   ============================================================================= */
:root {
    --overlay-default: 0.85;
    --overlay-hover:   0.70;
}

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

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================================================
   Fullscreen wrapper
   ============================================================================= */
.frontpage {
    width: 100vw;
    height: 100vh;
    display: flex;
    background-size: cover;
    background-position: center;
}

.frontpage::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: url('../images/frontpage_background.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: 0;
}

/* =============================================================================
   Column layout
   ============================================================================= */
.columns {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- Logo column --- */
.col-logo {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 36px;
    border-right: none;
    overflow: hidden;
}

.col-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(7, 17, 27, var(--overlay-default));
    z-index: 0;
}

.col-logo > * {
    position: relative;
    z-index: 1;
}

/* --- Navigation columns --- */
.col-nav {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 36px;
    border-right: none;
    overflow: hidden;
    transition: border-color 0.3s ease;
    gap: 10px;
}

.col-nav:last-child {
    border-right: none;
}

.col-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(7, 17, 27, var(--overlay-default));
    transition: background-color 0.3s ease;
    z-index: 0;
}

.col-nav:hover::before {
    background-color: rgba(7, 17, 27, var(--overlay-hover));
}

.col-nav > * {
    position: relative;
    z-index: 1;
}

/* =============================================================================
   Logo
   ============================================================================= */
.logo {
    font-family: var(--font-logo);
    font-size: 3.3rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-white);
    line-height: 1;
    text-decoration: none;
}

.logo-dot {
    color: var(--color-brand);
}

/* =============================================================================
   Footer links (bottom of logo column)
   ============================================================================= */
.fp-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-footer-links a {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}

.fp-footer-links a:hover {
    color: rgba(255, 255, 255, 1);
}

/* =============================================================================
   Navigation content
   ============================================================================= */
.fp-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brand);
    display: block;
}

.fp-title {
    font-family: var(--font-sans);
    font-size: clamp(1.22rem, 2.04vw, 2.21rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.col-nav:hover .fp-title {
    color: rgba(255, 255, 255, 1);
}

.fp-desc {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.col-nav:hover .fp-desc {
    color: rgba(255, 255, 255, 1);
}

/* Mobile footer — hidden on desktop */
.fp-mobile-footer {
    display: none;
}

/* =============================================================================
   Mobile (max-width: 767px)
   ============================================================================= */
@media (max-width: 767px) {
    body {
        overflow: auto;
    }

    .frontpage {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .columns {
        flex-direction: column;
        height: auto;
        flex: 1;
    }

    .col-logo {
        flex: none;
        width: 100%;
        padding: 40px 30px 24px;
        border-right: none;
        border-bottom: none;
        min-height: auto;
        justify-content: flex-start;
    }

    .logo-area {
        margin-bottom: 0;
    }

    .fp-footer-links {
        display: none;
    }

    .col-nav {
        flex: none;
        width: 100%;
        padding: 24px 30px;
        border-right: none;
        border-bottom: none;
        gap: 6px;
    }

    .fp-title {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .fp-desc {
        color: rgba(255, 255, 255, 0.7);
    }

    /* Footer links placeret i bunden på mobil som selvstændig sektion */
    .fp-mobile-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 24px 30px 40px;
        position: relative;
        z-index: 1;
    }

    .fp-mobile-footer a {
        font-family: var(--font-sans);
        font-size: 0.98rem;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: color 0.2s ease;
    }

    .fp-mobile-footer a:hover {
        color: rgba(255, 255, 255, 1);
    }
}
