* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: linear-gradient(90deg, #01040a 0%, #0b1a33 35%, #162a52 70%, #1e2a4a 100%);
    min-height: 100vh;
    font-family: 'Georgia', serif;
    color: white;
}

/* ─── HEADER ─── */
.site-header {
    height: 100px;
    background: linear-gradient(90deg, #01040a 0%, #0b1a33 35%, #162a52 70%, #1e2a4a 100%);
    width: 100%;
}
.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}
.logo img { height: 150px; width: auto; margin-left: -35px; }
.nav-links a {
    color: #C8A96A;
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
}
.nav-links a:hover { opacity: 0.7; }
.nav-links a.active { border-bottom: 1px solid #C8A96A; padding-bottom: 2px; }

/* ─── PAGE HEADER ─── */
.page-header {
    text-align: center;
    padding: 80px 24px 60px;
}
.page-header .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #bfa98a;
    margin-bottom: 16px;
}
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: white;
    line-height: 1.2;
}
.page-header p {
    margin-top: 16px;
    font-size: 1rem;
    color: #aaaaaa;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.divider {
    width: 48px;
    height: 2px;
    background: #bfa98a;
    margin: 24px auto 0;
}

/* ─── SERVICES MAIN ─── */
.services-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

/* ─── TOP THREE COLUMNS ─── */
.sections-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

/* ─── SERVICE GROUP ─── */
.service-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(191,169,138,0.25);
    margin-bottom: 4px;
}
.group-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #bfa98a;
}

.cards-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ─── SERVICE CARD ─── */
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 1.7rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Korttien koko, kaikki saman kokoisia */
    height: 260px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    overflow: hidden;
}
.service-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(200,169,106,0.3);
    transform: translateY(-3px);
}

.card-icon { width: 36px; height: 36px; color: #C8A96A; flex-shrink: 0; }
.card-icon svg { width: 100%; height: 100%; }

.card-title {
    font-size: 1.05rem;
    font-weight: normal;
    color: white;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.card-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    flex: 1;
    overflow: hidden;
    /* clamp to 3 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #bfa98a;
    text-decoration: none;
    flex-shrink: 0;
    margin-top: auto;
    transition: opacity 0.2s, gap 0.25s;
    width: fit-content;
}
.card-link:hover { opacity: 0.7; gap: 10px; }

/* ─── MUUT ASIAT */
.muut-asiat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.muut-asiat-row .group-header {
    grid-column: 1 / -1;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(191,169,138,0.25);
    margin-bottom: 0;
}

.muut-asiat-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: calc(66.66% - 0.5rem);
}

.muut-asiat-cards .service-card {
    height: 220px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
    background: linear-gradient(90deg, #01040a 0%, #0b1a33 35%, #162a52 70%, #1e2a4a 100%);
    border-top: 1px solid rgba(200,169,106,0.25);
    font-family: 'Georgia', serif;
    color: hsl(35, 29%, 65%);
    width: 100%;
}

/* YLÄOSA */
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;                 
    max-width: 1150px;
    margin: 0 auto;
    padding: 5px 5px;        
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}

/* LOGO */
.footer-logo {
    height: 160px;             
    margin-bottom: 10px;
    margin-left: -75px; 
    margin-top: 20px;       
}
.tal-logo {
    height: 100px;
    margin-bottom:10px;
    width: auto;
    margin-top: 30px;
}



/* TEKSTI */
.footer-section p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 30px;
}

/* LINKIT */
.footer-section a {
    display: block;
    text-decoration: none;
    color: hsl(35, 29%, 65%);  
    font-size: 0.8rem;
    margin-bottom: 4px;
    margin-top: 30px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #C8A96A;             
}

/* ALARIVI */
.footer-bottom {
    text-align: center;
    padding: 10px;             
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.7rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .sections-wrapper { grid-template-columns: 1fr; }
    .muut-asiat-row { grid-template-columns: 1fr; }
    .muut-asiat-cards { max-width: 100%; grid-template-columns: 1fr 1fr; }
    .services-main { padding: 0 20px 60px; }
    .service-card { height: auto; min-height: 200px; }
    .muut-asiat-cards .service-card { height: auto; min-height: 200px; }
}
@media (max-width: 480px) {
    .muut-asiat-cards { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-header .eyebrow { opacity: 0; animation: fadeUp 0.8s ease forwards 0.1s; }
.page-header h1       { opacity: 0; animation: fadeUp 0.8s ease forwards 0.25s; }
.page-header p        { opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s; }
.divider              { opacity: 0; animation: fadeUp 0.8s ease forwards 0.55s; }

.service-group:nth-child(1) { opacity: 0; animation: fadeUp 0.8s ease forwards 0.55s; }
.service-group:nth-child(2) { opacity: 0; animation: fadeUp 0.8s ease forwards 0.7s; }
.service-group:nth-child(3) { opacity: 0; animation: fadeUp 0.8s ease forwards 0.85s; }
.muut-asiat-row             { opacity: 0; animation: fadeUp 0.8s ease forwards 1s; }

/* HAMPPARIMENYY */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #C8A96A;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

/* TABLETTI */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        margin-top: 0;
        min-height: auto;
    }

    .hero-left {
        padding: 60px 40px 40px 40px;
    }

    .hero-right {
        max-height: 420px;
    }

    .section-about {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 80px 40px;
    }

    .cta-inner {
        padding: 70px 40px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 16px 0;
    }

    .header-inner {
        padding: 0 20px;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo img {
        height: 90px;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 15px;
    }

    .hero-left {
        padding: 40px 20px 30px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .hero-right {
        max-height: 320px;
    }

    .section-about {
        padding: 60px 20px;
        gap: 36px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .pat-rivi {
        gap: 14px;
        padding: 16px 0;
    }

    .pat-tagit {
        flex-wrap: wrap;
    }

    .cta-inner {
        padding: 60px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .footer-logo {
        height: 100px;
        margin-left: 0;
        margin-top: 0;
    }

    .tal-logo {
        height: 70px;
        margin-top: 10px;
    }

    .footer-section p,
    .footer-section a {
        margin-top: 10px;
    }
}