/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fafafa;
    color: #111;
    line-height: 1.5;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
}
/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 70px;
    background: white;
    border-bottom: 1px solid #ddd;
}

/* Logo teksti */
header h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

/* NAV */
nav a {
    text-decoration: none;
    margin-left: 35px;
    color: #444;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #000;
}

/* HERO SECTION */
section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 70px;
    gap: 60px;
}

/* IMAGE */
section img {
    width: 100%;
    max-width: 600px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-style: groove;
}

/* TEXT AREA */
section div:last-child {
    max-width: 520px;
}

/* TITLE */
h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
}


p {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
}


#Lisaa {
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    background: #b8ff2e;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#Lisaa:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

#extra-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#extra-text.show {
    max-height: 500px; 
}                               

footer {
    border-top: 2px solid #ddd;
    padding: 40px 70px;
    background: #fafafa;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-left {
    flex: 1;
}

/* Ylhäällä 2 logoa vierekkäin */
.top-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;

}

.main-logo {
    height: 80px;
}

.eu-logo {
    height: 80px;
}

/* Partners otsikko */
.partners-title {
    margin-bottom: 10px;
    font-size: 20px;
    color: #000;
}

/* 6 partner logoa gridissä */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 30px;
    padding: 35px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);

    align-items: center;
    justify-items: center;
}

.partner-logos img {
    width: 100%;
    max-width: 170px;
    height: 90px;
    object-fit: contain;

    transition: transform 0.25s ease;
}

.partner-logos img:hover {
    transform: scale(1.05);
}

/* Oikea puoli */
.footer-right {
    flex: 1;
    max-width: 600px;
}

.footer-right p {
    font-size: 13px;
    color: #555;
    margin: 5px 0;
    line-height: 1.5;
}

.footer-right strong {
    color: #111;
    font-size: 20px;
}

/* About the project otsikko */
.about-title {
    margin-bottom: 15px;
    font-size: 18px;
    color: #2E7D32;
    font-weight: 700;
}

/* Projektin tiedot laatikkoon */
.project-info-box {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 200px; /* Sama korkeus kuin partner-logos */
}

.project-info-box p {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {

    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
        text-align: center;
    }

    
    nav a {
        margin-left: 0;
        margin-right: 15px;
        font-size: 16px;
    }

    
    section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }

   
    h1 {
        font-size: 36px;
    }

    p {
        font-size: 16px;
        margin-bottom: 25px;
    }

   
    section img {
        max-width: 100%;
        border-radius: 15px;
    }

    
    button {
        width: 100%;
        max-width: 300px;
        padding: 16px;
        font-size: 16px;
    }

    /* FOOTER MOBILE */
    footer {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .top-logos {
        flex-direction: column;
        gap: 15px;
        
    }

    .main-logo,
    .eu-logo {
        height: 55px;
    }

    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center;
    }

    .partner-logos img {
        height: 65px;
        width: 100%;
        max-width: 120px;
    }

    .footer-right {
        max-width: 100%;
    }
}


@media (max-width: 480px) {

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }

    header {
        padding: 15px;
    }

    nav a {
        display: inline-block;
        margin: 8px;
    }

    section {
        padding: 30px 15px;
    }

    /* FOOTER PIENILLE NÄYTÖILLE */
    footer {
        padding: 25px 15px;
    }

    .partner-logos {
        grid-template-columns: 1fr;
    }

    .partner-logos img {
        height: 60px;
    }

    .footer-right p {
        font-size: 12px;
    }
}/* =========================
   RESPONSIVE IMPROVEMENTS
   ========================= */

/* Large tablets / small laptops */
@media (max-width: 1100px) {

    header {
        padding: 22px 40px;
    }

    section {
        gap: 40px;
        padding: 60px 40px;
    }

    h1 {
        font-size: 44px;
    }

    section img {
        max-width: 100%;
    }

    footer {
        padding: 35px 40px;
    }

    .footer-content {
        gap: 35px;
    }

    .partner-logos {
        gap: 15px;
    }
}

/* Tablets */
@media (max-width: 900px) {

    header {
        padding: 20px 30px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin: 0;
    }

    section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 30px;
        gap: 35px;
    }

    section div:last-child {
        max-width: 100%;
        margin: 0 auto;
    }

    section img {
        margin: 0 auto;
        display: block;
        max-width: 650px;
        width: 100%;
    }

    h1 {
        font-size: 40px;
    }

    p {
        font-size: 17px;
    }

    #Lisaa {
        width: auto;
        min-width: 220px;
    }

    footer {
        padding: 35px 30px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        max-width: 100%;
    }

    .top-logos {
        justify-content: center;
        flex-wrap: wrap;
    }

    .partner-logos {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .partner-logos img {
        width: 100%;
        max-width: 110px;
        height: 70px;
        justify-self: center;
    }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
        padding: 18px 20px;
        text-align: center;
    }

    .logo-text {
        font-size: 20px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 15px;
    }

    section {
        padding: 40px 20px;
        gap: 30px;
    }

    h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    p {
        font-size: 16px;
        margin-bottom: 22px;
    }

    section img {
        border-radius: 20px;
    }

    #Lisaa {
        width: 100%;
        max-width: 320px;
        padding: 15px;
        font-size: 16px;
    }

    footer {
        padding: 30px 20px;
    }

    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones */
@media (max-width: 480px) {

    header {
        padding: 15px;
    }

    .logo-text {
        font-size: 18px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 14px;
        margin: 0;
    }

    section {
        padding: 30px 15px;
    }

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }

    section img {
        border-radius: 14px;
    }

    footer {
        padding: 25px 15px;
    }

    .top-logos {
        gap: 12px;
    }

    .main-logo,
    .eu-logo {
        height: 50px;
    }

    .partner-logos {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .partner-logos img {
        max-width: 140px;
        height: 60px;
    }

    .footer-right p {
        font-size: 12px;
    }
}

/* Very small phones */
@media (max-width: 360px) {

    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    nav a {
        font-size: 13px;
    }

    #Lisaa {
        font-size: 15px;
        padding: 14px;
    }

    .partner-logos img {
        max-width: 120px;
    }
}