/*---------YLEISET TYYLIT , KAIKILLE SIVUILLE YHTEISET ASETUKSET------------------- */
body {
    background-color: #ffffff;
    color: #1C1C1C;
    font-family: 'Lato', sans-serif;
    font-size: 18px; /*LEIPÄTEKSTIN KOKO*/
    font-weight: 300; 
    margin: 0;
    line-height: 1.6;
}
/* OTSIKOIDEN JA LOGON FONTTI*/
h1, h2, .logo {
    font-family: 'Playfair Display', serif;
}

/*---------------- HEADER ELI YLÄOSA JA NAVIGAATIO (YLÄPALKIN VALIKKO)-------------------*/
header {
    padding: 0.8rem 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #BFBFBF;
    position: sticky; /*TÄÄ PITÄÄ VALIKON NÄYTÖN YLÄREUNASSA KUN SIVUA RULLAILEE*/
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

.header-content {
    margin-bottom: 0.75rem;
}
/*LOGON TYYLIT*/
.logo, .logo:visited {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    color: #000000 !important;
}

.tagline {
    font-size: 18px;
    margin: 0;
    color: #1C1C1C;
}

/* NAVIGAATION LINKIT*/
nav {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

nav a {
    font-family: 'Playfair Display', serif;
    color: #1C1C1C !important;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: 0.3s;
}
/* AKTIIVISEN SIVUN ALLEVIIVAUS NAVISSA*/
nav a.active {
    border-bottom: 2px solid #000;
}

/* ------------------------ETUSIVU INDEX.HTML HERO OSIO--------------------- */

.hero-split {
    display: flex;
    min-height: 85vh;
    background-color: #000000;
    color: #ffffff;
}
/*ETUSIVUN TAUSTAKUVA*/
.hero-image {
    flex: 3.5;
    position: relative;
    display: flex;
    align-items: center; 
    justify-content: center;
    background-color: #000000;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.15);
    /* MASK HÄIVYTTÄÄ REUNAT */
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
    mask-image: radial-gradient(circle, black 30%, transparent 85%);
}
/*ETUSIVUN TEKSTIALUE*/
.hero-text {
    flex: 1;
    padding: 5% 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h2 {
    font-size: 28px;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 18px;
    color: #BFBFBF;
}

/* LOMAKE */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input, .contact-form textarea {
    background: transparent;
    border: 1px solid #bfbfbf;
    padding: 12px;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
}

/* NAPIT */
.btn-white {
    background-color: #ffffff;
    color: #000000;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
}



/*-------------------------ETUSIVUN 3 KUVAA JOTKA RINNAKKAIN---------------------------*/

/* Tämä tekee kuvista ruudukon (3 rinnakkain) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px; /* Väli kuvien välillä */
    padding: 20px;
    background-color: #ffffff;
}

/* Tää määrittää miltä yksittäinen kuva näyttää */
.portfolio-item {
    aspect-ratio: 1/1; /* Tekee kuvasta neliön */
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 100%;       
    object-fit: cover;        
    filter: grayscale(100%);  /* Tekee mustavalkoiseksi */
    transition: 0.5s ease;    /* Pehmeä efekti hiirellä */
    display: block;          
}
/* Tää palauttaa värit, kun hiiri viedää kuvan päällä */
.portfolio-item:hover img {
    filter: grayscale(0%);
    transform: scale(0.99); 
}
/* HERO TEKSTI */
.hero-text {
    flex: 1;
    padding: 5% 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem; /* Lisää automaattisen välin tekstien ja nappien välille */
}
.hero-text h1 {
    font-size: 36px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.location {
    margin: 1rem 0 2rem 0; 
    font-size: 18px;
    color: #BFBFBF;
}

/* NAPIT  */
.hero-buttons {
    display: flex;
    flex-direction: column; /* Napit päällekkäin */
    gap: 15px; /* Väli nappien välillä */
    max-width: 300px; 
    width: 100%;
}

.btn-white, .btn-outline {
    display: block; 
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #1C1C1C;
    color: #ffffff;
    border-color: #BFBFBF;
}

/* KONTAKTISIVUN RUNKO - Musta tausta */
.contact-page {
    background-color: #000000;
    color: #ffffff;
}
/* ------------------------FOOTER ELI ALAPALKKI, COPYRIGHT JA SOME-------------------*/
footer {
    padding: 1rem 5%; 
    border-top: 1px solid #ffffff;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;     
    gap: 0.5rem;            
}.footer-copyright p {
   margin: 0;
    color: #1C1C1C;           /* Sama musta ku leipätekstissä */
    font-size: 18px;          
    font-family: 'Lato', sans-serif;
    font-weight: 300;         
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-socials img {
    width: 20px; 
    height: 20px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.footer-socials img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}
/* YLÄOSA (Info ja Kartta) */
.contact-top {
    display: flex;
    flex-direction: row; /* Varmistaa että on vierekkäin */
    align-items: center; /* Keskittää pystysuunnassa */
    justify-content: space-between; /* Levittää ne reunoihin */
    min-height: 60vh;
    background-color: #000000;
    padding: 0 5%; 
    gap: 40px;
    box-sizing: border-box;
}

.contact-info {
    text-align:left;
    flex: 1;
    padding: 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h1 {
    font-size: 36px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-info p {
    color: #BFBFBF; /* Vaaleanharmaa teksti */
    margin-bottom: 1rem;
}

.info-details strong {
    color: #ffffff;
}

.contact-map {
    flex: 1.5;
    background-color: #1C1C1C;
    height: 350px;
    width: 100%;
    border: 1px solid #1C1C1C;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.contact-map iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ALAOSA (Lomake) */
.contact-bottom {
    background-color: #000000;
    padding: 5% 0 8% 0;
}

.contact-split {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 60px;
    align-items: flex-start;
}

.contact-text-side {
    flex: 1;
}

.contact-text-side h2 {
    font-size: 28px;
    margin-bottom: 1.5rem;
}

.contact-text-side p {
    color: #BFBFBF;
}

.contact-form-side {
    flex: 1.5;
    width: 100%;
}

/* LOMAKKEEN KENTÄT */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: #1C1C1C; /* harmaa tausta kentille */
    border: 1px solid #BFBFBF;
    padding: 18px;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    box-sizing: border-box;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #ffffff;
    background: #1a1a1a;
    outline: none;
}

/* GALLERIA-SIVUN TYYLIT */
.gallery-page {
    background-color: #ffffff;
    padding-bottom: 50px;
}

.gallery-intro {
    text-align: center;
    padding: 60px 5% 40px 5%;
}

.gallery-intro h1 {
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.gallery-intro p {
    font-size: 18px;
    color: #BFBFBF;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-full {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Automaattinen rivitys */
}

/* ---------------------STUDIO-SIVU STUDIO.HTML TYYLIT, ARTISTIT, BIO-TEKSTIT JA STUDION KUVAT--------------*/
.studio-page {
    background-color: #000000;
    color: #ffffff;
}
/*STUDION ESITTELY TEKSTI*/
.studio-hero {
    padding: 60px 10%;
    text-align: center;
    background-color: #000000; /* Täysin musta */
}

.studio-intro-text h1 {
    font-size: 36px;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.studio-intro-text p {
    font-size: 19px;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    color: #bfbfbf;
}

.studio-details {
    display: flex;
    gap: 40px;
    padding: 40px 10%;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-box {
    flex: 1;
    text-align: center; /* TÄMÄ KESKITTÄÄ SEKÄ OTSIKON ETTÄ TEKSTIN */
}

.detail-box h2 {
    font-size: 28px;
    border-bottom: 1px solid #BFBFBF; 
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.detail-box p {
    color: #bfbfbf;
    line-height: 1.6;
}

.studio-image-wide {
    padding: 0 5% 100px 5%; 
}
/*studion kuva studio sivulla*/
.studio-placeholder-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Tää pitää kuvan oikeessa suhteessa */
    background-color: #1C1C1C;
    background-image: url('studio.png');
    background-size: cover;
    background-position: center;
    border-radius: 2px;

}
/*PAINIKE STUDIOKUVAN YLÄPUOLELLA*/
.studio-cta {
    display: flex;
    justify-content: center; /* Keskittää napin vaakasuunnassa */
    padding: 20px 0 40px 0; 
    background-color: #000000; /* Varmistaa että tausta pysyy mustana */
}

.studio-cta .btn-black {
    width: auto;             /* Estää nappia venymästä koko sivun levyiseksi */
    min-width: 250px;        
    padding: 15px 40px;
}
/*STUDIO-SIVUN ARTISTIT-OTSIKON KESKITYS */
.studio-page h1 {
    text-align: center;      /* Keskittää tekstin */
    width: 100%;             
    display: block;
    margin: 0px 0 0px 0;
    font-size: 36px;         
        letter-spacing: 3px;
}

/*------------PAINIKKEET----------*/

.btn-black:hover {
    background-color: #ffffff;
    color: #000000;
}
/* MUSTA PAINIKE */
.btn-black {
    display: inline-block;
    width: 100%; 
    padding: 18px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    border: 1px solid #ffffff; /* Ohut valkoinen reunus mustalla pohjalla */
    cursor: pointer;
    transition: 0.3s ease;
}
/* OUTLINE PAINIKE (Artistit) */
.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid #ffffff;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}
/* -------ARTISTIT OSIO-------- */
.artists-section {
    padding: 60px 5% 100px 5%;
    background-color: #000000;
}

.artists-grid {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch; /* Tää pakottaa kortit venymään samanpituisiksi */
}

.artist-card {
    flex: 1; /* Molemmat kortit vie saman verran tilaa */
    display: flex;
    flex-direction: column;
}
/*ARTISTIN PÄÄKUVA*/
.artist-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 20px;
    overflow: hidden;
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tää pitää sisällään nimen, bion ja gallerian */
.artist-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1; 
}

.artist-style {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.artist-name {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Bio-tekstin tasaus */
.artist-bio {
    font-size: 18px;
    min-height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BFBFBF; 
    margin-bottom: 20px;
}

/* TYÖNÄYTTEET ( 4 PIENTÄ KUVAA )  */
.artist-work-samples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    margin-top: auto; 
}

.sample-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.sample-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.4s;
}

.sample-img img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Painike */
.artist-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.artist-actions .btn-outline {
    width: fit-content;
}
/*------------------------------------------MOBIILIOPTIMOINTI---------------------------------------------------*/

    
    
/* ISOT PUHELIMET JA TABLETIT  */
@media (max-width: 900px) {
    .contact-top, .contact-split {
        flex-direction: column;
    }
    .contact-map {
        width: 100%;
        height: 350px;
        -webkit-mask-image: none;
    }
}
/*PERUS PUHELIMET JA TABLETIT*/
@media (max-width: 768px) {
    
    /* 1. HEADER & NAVIGAATIO */
    header {
        padding: 1.5rem 5%;
        align-items: center; /* Keskitetään logo mobiilissa */
        text-align: center;
    }

    .logo {
        font-size: 28px; 
    }

    nav {
        gap: 15px;
        flex-wrap: wrap; /* Linkit hyppää uudelle riville, jos ei mahdu */
        justify-content: center;
        margin-top: 15px;
    }

    nav a {
        font-size: 18px; 
    }

    /* 2. HERO-OSIO (Etusivu & Ota yhteyttä) */
    .hero-split, .contact-top, .contact-split {
        flex-direction: column; /* Pinoo asiat päällekkäin */
        min-height: auto;
    }
.hero-split { flex-direction: column; }
    .hero-image img { width: 100%; }

    .hero-image {
        width: 100%;
        height: 350px; /* Kiinteä korkeus kuvalle mobiilissa */
        order: -1;
    }

    .hero-text, .contact-info, .contact-text-side {
        padding: 3rem 10%;
        text-align: center;
        align-items: center; /* Keskittää tekstit ja napit */
    }

    .hero-text h1 {
        font-size: 36px;
    }

    /* 3. NAPIT */
    .hero-buttons {
        max-width: 100%; /* Napit täyttävät leveyden */
        width: 100%;
    }

    /* 4. GALLERIA JA STUDIO */
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Kaksi kuvaa rinnakkain mobiilissa */
        gap: 5px;
        padding: 5px;
    }

    .gallery-intro {
        padding: 40px 5% 20px 5%;
    }
    .gallery-intro h1 {
        font-size: 36px;
    }

    .studio-details {
        flex-direction: column;
        padding: 40px 10%;
    }
    .studio-hero {
        padding: 40px 5%;
    }
    .studio-intro-text h1 {
        font-size: 36px;
    }
    /* 5. LOMAKE */
    .form-row {
        flex-direction: column; /* Nimi ja sähköposti päällekkäin */
        gap: 15px;
    }
    /*KARTTA*/
    .contact-map {
        width: 100%;
        height: 250px;
        -webkit-mask-image: none; /* ei maskia mobiiliin */
    }
    /*ARTISTIT STUDIO.HTML*/
    .artists-grid {
        flex-direction: column; /* Kortit allekkain puhelimella */
    }
    
    .artist-work-samples {
        grid-template-columns: repeat(2, 1fr); /* 2x2 ruudukko puhelimella */
    }
}
/* puhelimet pienellä näytöllä */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr; /* Vain yksi kuva kerrallaan */
    }
    
    .logo {
        font-size: 24px;
    }
}