/* =========================================
   ROOT VARIABLES
========================================= */

:root {
    --perkament: #F5F1E3;
    --perkament-donker: #ECE5D2;
    --messing: #B8860B;
    --diepbruin: #3E2723;
    --goud: #D4AF37;
    --schaduw: rgba(0,0,0,0.25);
}


/* =========================================
   BASE LAYOUT + STICKY FOOTER
========================================= */

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--perkament);
    margin-bottom: 0 !important; /* override oude template */
}

/* main groeit en duwt footer naar beneden */
main[role="main"] {
    flex: 1 0 auto;
}

/* footer altijd onderaan */
footer.footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    position: static !important;
    height: auto !important;
    line-height: normal !important;
    padding: 16px 0;
    background: var(--perkament);
    border-top: 1px solid rgba(184,134,11,0.25);
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    background-color: var(--perkament-donker);
    border-bottom: 1px solid rgba(184, 134, 11, 0.35);
    box-shadow: none;
    padding: 14px 0;
}

    .navbar .navbar-brand {
        color: var(--diepbruin) !important;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .navbar .nav-link {
        color: var(--diepbruin) !important;
        font-weight: 600;
        transition: 0.2s ease;
    }

        .navbar .nav-link:hover {
            color: var(--messing) !important;
        }

        .navbar .nav-link.active {
            color: var(--messing) !important;
            border-bottom: 2px solid var(--messing);
        }


/* =========================================
   HERO SECTION
========================================= */

.hero {
    background: var(--perkament);
    border-bottom: 8px solid var(--messing);
    padding: 60px 0 120px 0;
}

.hero-inner {
    width: min(1320px, 95vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: center;
}

/* Badge */

.hero-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-stack {
    width: 320px;
    text-align: center;
}

.badge-title {
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--messing);
    font-size: 44px;
    margin-bottom: 14px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.12);
}

.badge-img {
    width: 260px;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,0.30));
}

.badge-subtitle {
    margin-top: 16px;
    font-weight: 800;
    color: var(--diepbruin);
    font-size: 22px;
}

.badge-body {
    margin-top: 8px;
    color: rgba(62,39,35,0.88);
    font-size: 15px;
    line-height: 1.45;
}


/* =========================================
   HERO STAGE (MONITOR + PHONE + DESK)
========================================= */

.hero-stage {
    position: relative;
    isolation: isolate;
    height: 520px;
}

/* Monitor */

.monitor {
    position: absolute;
    top: 10px;
    left: 0;
    width: 860px;
    height: 470px;
    background: #202020;
    border: 10px solid #111;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    z-index: 5;
}

.device-screen {
    background: #f7f2e6;
    border-radius: 10px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Hero monitor menu */

.hero-nav {
    display: flex;
    gap: 18px;
    padding: 14px 18px;
    font-size: 14px;
    background: rgba(245,241,227,0.92);
    border-bottom: 2px solid rgba(184,134,11,0.35);
}

    .hero-nav a {
        color: var(--diepbruin);
        text-decoration: none;
        font-weight: 600;
    }

        .hero-nav a:hover {
            text-decoration: underline;
        }

/* Monitor content */

.monitor-content {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 14px;
    padding: 14px 16px 78px 16px;
}

/* Mechaniek */

.monitor-left {
    height: 310px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

    .monitor-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Clock grid */

.clock-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.clock-tile {
    background: var(--perkament); /* perkamentachtergrond */
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .clock-tile img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* volledige klok tonen */
        opacity: 0.6; /* 40% transparant */
        transition: opacity 0.3s ease;
    }
    .clock-tile:hover img {
        opacity: 1;
    }

/* Promo bar */

.hero-promo {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 54px;
    border-radius: 12px;
    background: rgba(184,134,11,0.14);
    border: 1px solid rgba(184,134,11,0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 6;
}

.promo-brand {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--messing);
    font-size: 20px;
}

.promo-sep {
    color: rgba(62,39,35,0.70);
    font-weight: 700;
    font-size: 20px;
}

.promo-text {
    color: rgba(62,39,35,0.85);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
}

/* Desk */

.desk-img {
    position: absolute;
    left: -30px;
    top: calc(10px + 470px - 10px);
    width: 880px;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,0.18));
}

/* Phone */

.phone {
    position: absolute;
    right: 0;
    top: 160px;
    width: 210px;
    height: 380px;
    border-radius: 28px;
    border: 10px solid #111;
    background: #111;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    z-index: 7;
}

.phone-screen {
    background: #f7f2e6;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}

/* Phone image mode */
.phone-screen--img {
    display: flex;
}

.phone-preview {
    width: 100%;
    height: 100%;
    object-fit: cover; /* vult mooi de phone */
    display: block;
}

.phone-top {
    padding: 10px 12px;
    font-weight: 800;
    color: var(--diepbruin);
    border-bottom: 2px solid rgba(184,134,11,0.35);
}

.phone-body {
    padding: 14px;
    color: rgba(62,39,35,0.85);
}


/* =========================================
   ADMIN SECTION
========================================= */

.admin-container {
    max-width: 1100px;
}

    .admin-container video,
    .admin-container canvas {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .admin-container .card {
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    }

    .admin-container h1,
    .admin-container h2,
    .admin-container h3 {
        color: var(--diepbruin);
        font-weight: 700;
    }

    .admin-container table {
        font-size: 0.95rem;
    }

    .admin-container .table th {
        background: rgba(184,134,11,0.08);
    }

    .admin-container .btn-outline-dark {
        border-color: rgba(0,0,0,0.4);
    }


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        height: 820px;
    }

    .monitor {
        width: 100%;
    }

    .desk-img {
        left: -5%;
        width: 110%;
        top: 520px;
    }

    .phone {
        right: 5%;
        top: 560px;
    }
}
