@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #e2e8f0;
    background: linear-gradient(180deg, #3b0a0a 0%, #1a0a0a 40%, #050505 100%);
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 60px;
    box-sizing: border-box;
    border-bottom: 2px solid #d4b85b;
}

nav .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .nav-logo { width: 40px; }

nav .nav-title {
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(90deg, #d4b85b, #ffe066, #fff8c2, #ffe066, #d4b85b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LINKS */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffe066;
}

/* HAMBURGER */
.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 20px;
        right: 0;
        background: rgba(0,0,0,0.9);
        width: 160px;
        padding: 10px 0;
        border-radius: 0 0 6px 6px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* =========================
   PAGE OFFSET
========================= */
body {
    margin: 0;
    padding-top: 60px;
}

/* =========================
   HEADER
========================= */
header {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* TAUSTA (ylaosa) */
.header-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: contrast(1.05) saturate(1.1);
    z-index: 0;
}

/* =========================
   ILMOITUSTAULU WIDGET
========================= */
.header-board {
    position: absolute;
    right: 20px;
    top: 20px;

    width: 42%;
    height: calc(100% - 40px);

    display: flex;
    flex-direction: column;

    background: rgba(15, 15, 15, 0.35);
    backdrop-filter: blur(10px);

    border: 2px solid rgba(212, 184, 91, 0.9);
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);

    overflow: hidden;

    z-index: 2;

    transition: all 0.3s ease;
}

/* HEADER PALKKI */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 10px;

    color: #ffe066;
    font-weight: bold;

    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(212, 184, 91, 0.5);
}

.board-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* KUVA (ei cropata -> näkyy kokonaan) */
.board-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0,0,0,0.25);
}

/* MINIMIZED */
.header-board.minimized {
    width: 220px;
    height: 40px !important;
}

.header-board.minimized .board-image {
    display: none;
}

/* LOGO */
.header-logo-container {
    position: absolute;
    top: 100px;
    left: 100px;
    z-index: 3;
}

.header-logo {
    width: 140px;
    max-width: 25vw;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    header {
        height: 250px;
    }

    .header-board {
        width: 55%;
        right: 10px;
        top: 10px;
        height: calc(100% - 20px);
    }

    .header-logo-container {
        top: 60px;
        left: 20px;
    }

    .header-logo {
        width: 80px;
    }
}

/* =========================
   HERO
========================= */
.hero {
    padding: 40px;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    background: url("pictures/hero.jpeg") center/cover no-repeat;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 90vh;
    position: relative;
}

.hero-overlay {
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 10px;
}

/* =========================
   CONTENT
========================= */
.content {
    padding: 40px;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}

/* =========================
   CAROUSEL
========================= */
.carousel {
    position: relative;
    max-width: 700px;
    margin: auto;
}

.carousel img {
    width: 100%;
    border-radius: 10px;
}

/* DOTS */
.dots {
    text-align: center;
    margin-top: 10px;
}

.dots span {
    height: 10px;
    width: 10px;
    margin: 5px;
    display: inline-block;
    background: gray;
    border-radius: 50%;
    cursor: pointer;
}

.dots .active {
    background: #22c55e;
}

/* SOCIAL */
.socials a {
    font-size: 30px;
    margin: 10px;
    color: white;
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
}

/* CONTACT */
#contact {
    background: url("pictures/tausta.jpeg") center/cover no-repeat;
    color: #333;
}

/* ANIMAATIO */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact {
    position: relative;
}

/* oikean reunan laatikko */
.contact-box {
    position: absolute;
    right: 20px;
    top: 20px;

    width: 280px;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);

    border: 2px solid rgba(212, 184, 91, 0.9);
    border-radius: 12px;

    padding: 15px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.contact-box h3 {
    margin: 0;
    color: #ffe066;
}

.contact-box textarea {
    width: 100%;
    height: 100px;
    resize: none;

    border-radius: 8px;
    border: none;
    padding: 8px;

    font-family: Arial;
}

.contact-box button {
    background: #d4b85b;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.contact-box button:hover {
    background: #ffe066;
}

/* mobiili */
@media (max-width: 600px) {
    .contact-box {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}
@media (max-width: 600px) {

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 20px;
        align-items: flex-start;
    }

    .hero-overlay {
        padding: 15px;
        width: 100%;
        margin-top: 60px;
        font-size: 0.95rem;
    }

    .hero-overlay h2 {
        font-size: 1.2rem;
    }

    .hero-overlay h3 {
        font-size: 1rem;
    }
}