﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: #F79128;
    background: #FFFFFF;
}

/* OIKEA MUUTTUJA-SYNTAXI */
:root {
    --header-h: clamp(56px, 7vw, 80px); /* max-arvo */
}

/* HEADER */
.header {
    width: 100%;
    height: var(--header-h);     
    padding: 0 32px;
    background: #000000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Brändi: logo + nimi */
.brand {
    display: inline-flex;
    align-items: center;  /* keskittää logon JA nimen */
    gap: 12px;
}

/* LOGO – skaalaa automaattisesti headerin korkuiseksi */
.brand-mark {
    height: calc(var(--header-h) - 8px);  /* hiukan pienempi kuin header */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nimi */
.brand-name {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 900;
    color: #F79128;
    white-space: nowrap;
}

/* NAVIGATION */
.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: #F79128;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #fff;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #FFFFFF;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* HAMBURGER PIILOTUS DESKTOPILLE */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* HEADER-KUVA */
.headerkuva img {
    display: block;
    width: 100%;
    height: auto;
}

/* SISÄLTÖ */
.content {
    display: flex;
    width: 100%;
    padding: 20px 3%;
    gap: 30px;


max-width: 1200px;      /* kavenna tähän haluamasi leveys */
    margin: 0 auto;         /* keskittää */

}

.text-column,
.image-column {
    flex: 1;
color: #000000;
  
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 0px;

}

/* ========================= */
/*       MOBIILINÄKYMÄ       */
/* ========================= */

@media (max-width: 900px) {

    .nav {
        display: none;
        flex-direction: column;
        background: #000000;
        position: absolute;
        top: var(--header-h);
        right: 20px;
        padding: 20px;
        border-radius: 8px;
        z-index: 100;
    }

    .hamburger {
        display: block;
    }

    .content {
        flex-direction: column;
    }

    .brand-mark {
        height: 48px;        /* mobiilissa sopiva koko */
    }

    .brand-name {
        white-space: normal;
        font-size: 1.3rem;
    }
}

/* Desktop-varmistus */
@media (min-width: 901px) {
    .hamburger {
        display: none !important;
    }
}


/* TAPAHTUMAKALENTERI */
.events {
    width: 100%;
    max-width: 900px;          /* leveys */
    margin: 40px auto 80px auto;  /* keskitys sivulle */
    padding: 20px 30px;
    background: #fff7e6;       /* kevyt sävy */
    border-left: 6px solid #FF8811;
    border-radius: 8px;
}

.events-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #000;
}

/* Yksittäinen tapahtuma */
.event-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.event-item:last-child {
    border-bottom: none;
}

/* Päivämäärä vasemmalla */
.event-date {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 95px;
    color: #000;
}

/* Nimi ja kuvaus */
.event-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.event-desc {
    font-size: 1rem;
    color: #333;
    margin-top: 4px;
}

/* Mobiilinäkymä */
@media (max-width: 700px) {
    .event-item {
        flex-direction: column;
        gap: 4px;
    }
    .event-date {
        font-size: 1rem;
    }
}

