/* =========================================
   1. MUUTTUJAT JA PERUSASETUKSET
   ========================================= */
:root {
    --primary-color: #0F3D29;    /* Tummanvihreä */
    --bg-color: #EDE7D9;         /* Beige tausta */
    --accent-color: #CC6A4A;     /* Kupari/Tiili */
    --text-dark: #1a1a1a;
    --white: #ffffff;
    --off-white: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. NAVIGAATIO JA HEADER
   ========================================= */
header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-links li a:hover, 
.nav-links li a.active-link {
    color: var(--accent-color);
}

.active-link {
    border-bottom: 2px solid var(--accent-color);
}

.social-links a {
    color: var(--primary-color);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* HAMBURGER MENU (Mobiiliin) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* =========================================
   3. HERO-BANNERIT
   ========================================= */
.hero {
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.sub-hero {
    height: 400px;
}

.hero-overlay {
    background: rgba(15, 61, 41, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* =========================================
   4. ETUSIVUN PALVELUKORTIT
   ========================================= */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 20px;
}

.service-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* =========================================
   5. MARKKINOINTISIVUN ERITYISTYYLIT
   ========================================= */
.intro-card {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.m-card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.m-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--accent-color);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.m-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* =========================================
   6. SUOSITTELUT (Testimonials)
   ========================================= */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.testimonial-item {
    text-align: center;
    font-style: italic;
}

.testimonial-item span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
    font-style: normal;
}

/* =========================================
   7. YHTEYSTIETO-OSIO JA LOMAKE
   ========================================= */
.contact-section {
    padding: 100px 0;
}

.contact-box {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.contact-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
}

.cta-banner {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.85rem;
    background: var(--white);
}

/* =========================================
   9. MOBIILIOPTIMOINTI (Media Queries)
   ========================================= */
@media (max-width: 960px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .social-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .intro-card {
        padding: 30px 20px;
    }

    /* Hamburger-animaatio X-merkiksi */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }


}

/* TOIMEKSIANTAJAT SIVU */
.client-row {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.client-main {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.client-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.client-info {
    flex: 1;
}

.client-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.embed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 2px dashed #ccc;
    height: 200px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

.embed-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.embed-placeholder:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .client-main {
        flex-direction: column;
        text-align: center;
    }
    .embed-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    padding: 60px 0 40px 0;
    background: var(--white);
    border-top: 1px solid #eee;
    text-align: center;
    line-height: 1.8;
    color: #666;
}

.footer-content p {
    margin-bottom: 5px;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* YHTEYSTIEDOT-SIVUN TYYLIT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: -80px; /* Nostetaan kortteja hieman ylöspäin */
    position: relative;
    z-index: 10;
}

.contact-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-card i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-card a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.social-grid {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-grid a {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.social-grid a:hover {
    color: var(--accent-color);
}

/* Mobiiliasettelu yhteystiedot-sivulle */
@media (max-width: 960px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

/* TOIMEKSIANTAJAT SIVUN UPOTUSKORJAUKSET */
.embed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.embed-slot {
    width: 100%;
    min-height: 500px; /* Nostetaan minimikorkeutta, jotta pystyvideot mahtuvat */
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

/* Pakotetaan Instagram-upotus täyttämään slotti */
.embed-slot .instagram-media {
    min-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Pakotetaan TikTok-upotus täyttämään slotti */
.embed-slot .tiktok-embed {
    width: 100% !important;
    margin: 0 !important;
}

/* Pakotetaan YouTube (iframe) täyttämään slotti */
.embed-slot iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px;
    border: none;
}

.artist-social-links {
    margin-top: 20px;
    display: flex;
    gap: 18px;
}

.artist-social-links a {
    font-size: 1.6rem;
    color: #222;
    transition: transform 0.2s ease, color 0.2s ease;
}

.artist-social-links a:hover {
    transform: scale(1.15);
    color: #000;
}


@media (max-width: 960px) {
    .embed-grid {
        grid-template-columns: 1fr; /* Mobiilissa yksi kerrallaan allekkain */
    }
    .embed-slot {
        min-height: auto; /* Annetaan sisällön määrittää korkeus mobiilissa */
    }
}

@media (max-width: 768px) {
    .artist-social-links {
        justify-content: center;
    }
}

.lang-switch {
    font-weight: bold;
    color: #ffcc00; /* Voit käyttää logosi keltaista/kultaa korostuksena */
}

/* =========================================
   10. NAV-DROPDOWN (Toimeksiantajat)
   Klikattava dropdown, toimii myös mobiilivalikossa
   ========================================= */
.nav-item.dropdown {
    position: relative;
}

/* Tehdään buttonista linkin näköinen */
.nav-links .nav-link.dropdown-toggle {
    background: none;
    border: 0;
    font: inherit;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 15px;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-links .nav-link.dropdown-toggle:hover,
.nav-links .nav-link.dropdown-toggle[aria-expanded="true"] {
    color: var(--accent-color);
}

.nav-links .nav-link.dropdown-toggle::after {
    content: "▾";
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.9em;
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1100;

    display: none;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px 0;

    background: var(--white);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.nav-item.dropdown.is-open > .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: rgba(0,0,0,0.06);
    color: var(--accent-color);
    outline: none;
}

/* Mobiilimenu (sama breakpoint kuin muussa navissa) */
@media (max-width: 960px) {
    .nav-links .nav-link.dropdown-toggle {
        margin: 0;        /* mobiilissa linkit ovat keskellä ilman sivumarginaaleja */
        padding: 0;
    }

    .dropdown-menu {
        position: static;  /* dropdown aukeaa listan sisään */
        top: auto;
        left: auto;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
        margin-top: 10px;
        background: transparent;
    }

    .nav-item.dropdown.is-open > .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 0;
        color: var(--primary-color);
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background: transparent;
    }
}
