/* =============================================
   Kierratys-Nouto – Tyylitiedosto v6
   Paletti: #06382D #155332 #DEE2B1 #FFD500 #D1A505
   ============================================= */

:root {
    --p:      #FFD500;
    --p-dk:   #D1A505;
    --p-txt:  #8c8b8b;
    --acc:    #155332;
    --bg:     #f8fafc;
    --pinta:  #ffffff;
    --txt:    #06382D;
    --li-palveulu:#3A3A3A ; 
    --muted:  #ffffff;
    --time:  #3A3A3A ;
    --reuna:  #DEE2B1;
    --ok:     #155332;
    --err:    #dc2626;
    --faq-p:  #06382D;
    --nappi-radius:.55rem 1.69rem;
    --fo: "Montserrat", sans-serif;
    --fp: "Montserrat", sans-serif;
    --ft: "Montserrat", sans-serif;
    --r:  0.75rem;
    --rl: 1.25rem;
    --sh: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --sl: 0 8px 32px rgba(0,0,0,.12);
    --mw: 1200px;

    --bgImage-hero: url("https://kierratys-nouto.fi/images/kierratys-nouto-ja-kuljetus.jpg");
    --bgImage-ajankohtaista: url("https://kierratys-nouto.fi/images/kierratys-nouto-ja-kuljetus.jpg");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--ft); color: var(--txt); background: var(--bg); line-height: 1.6;
        animation: fadeIn 0.6s ease; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
address { font-style: normal; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--fo); line-height: 1.15; font-weight: 900; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); color: white; text-shadow: 1px 2px 5px rgba(0,0,0,.4); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

.container { max-width: var(--mw); margin-inline: auto; padding-inline: 1.5rem; }
.osio      { padding-block: 5rem; }

/* ============================================
   HEADER + HAMBURGER
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #155332;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #06382D;
}
.site-header .container {
    display: flex; align-items: center; gap: 1rem; height: 70px;
}
.logo {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--fo); font-weight: 800; font-size: 1.3rem;
    color: #FFD500; flex-shrink: 0;
    margin-right: auto; text-shadow: 1px 1px 2px rgba(0,0,0,.3);
}
.paanav { display: flex; }
.paanav > ul { display: flex; align-items: center; gap: .25rem; }
.paanav a {
    display: block; padding: .5rem .85rem; border-radius: .5rem;
    font-weight: 500; font-size: .95rem; color: #DEE2B1;
    transition: background .15s, color .15s; white-space: nowrap;
}
.paanav a:hover,
.paanav a[aria-current="page"] { background: rgba(255,255,255,.15); color: #FFD500; }

.on-dropdown { position: relative; }
.dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background:#155332; border: 1px solid var(--reuna);
    border-radius: var(--r); box-shadow: var(--sl);
    min-width: 210px; padding: .5rem; z-index: 200;
}
.on-dropdown:hover .dropdown,
.on-dropdown:focus-within .dropdown { display: flex; flex-direction: column; gap: .25rem; }

.cta-puhelin {
    display: flex; align-items: center; gap: .4rem;
    background: #FFD500; color: #06382D;
    padding: .5rem 1.1rem; border-radius:.13rem .55rem;
    font-weight: 700; font-size: .9rem;
    transition: background .2s; flex-shrink: 0; white-space: nowrap;
}
.cta-puhelin:hover { background: #D1A505; }

.hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 40px; height: 40px;
    background: none; border: none; cursor: pointer; padding: .5rem;
    border-radius: var(--r); transition: background .15s; order: 3;
}
.hamburger:hover { background: rgba(255,255,255,.15); }
.hamburger-viiva {
    display: block; width: 22px; height: 2px;
    background: #DEE2B1; border-radius: 2px;
    transition: transform .25s, opacity .25s; transform-origin: center;
}
.hamburger[aria-expanded="true"] .hamburger-viiva:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-viiva:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .hamburger-viiva:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */ 
.hero {
    min-height: 60vh;
    background-image:  url("https://kierratys-nouto.fi/images/kierratys-nouto-ja-kuljetus.png");
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 5rem 2rem 4rem;
}
.hero .container { display: flex; flex-direction: column; align-items: flex-start; max-width: 680px; }
.hero-eyebrow {0
    display: inline-block; color: #FFD500;
    font-size: .85rem; font-weight: 600; padding: .3rem .9rem;
    border-radius: 2rem; margin-bottom: 1rem;
}
.hero h1     { margin-bottom: 1.25rem; }
.korostus    { color: #FFD500; }
.hero-kuvaus { font-size: 1.2rem; color: white; margin-bottom: 2rem; font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,.5); }
.hero-napit  { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-tilastot { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-tilastot span   { display: flex; flex-direction: column; }
.hero-tilastot strong { font-family: var(--fo); font-size: 1.75rem; font-weight: 800; color: #FFD500; }
.hero-tilastot em     { font-style: normal; font-size: .85rem; color: #DEE2B1; }

/* ============================================
   NAPIT
   ============================================ */
.nappi {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.5rem;  border-radius:var(--nappi-radius); /* border-radius:.13rem .55rem;*/
    font-weight: 700; font-size: .95rem;
    border: 2px solid transparent; transition: all .2s; cursor: pointer; text-decoration: none;
    
}
.nappi-ensisijainen { background: #FFD500; color: #06382D; }
.nappi-ensisijainen:hover { background: #D1A505; transform: translateY(-1px); }
.nappi-kehys { border-color: #FFD500; color: #155332; }
.nappi-kehys:hover { background: #FFD500; color: #06382D; }
.nappi-pieni { padding: .5rem 1.1rem; font-size: 1.13rem;  }
.nappi-pieni:hover { background: #FFD500; color: #06382D; }
.nappi-iso   { padding: 1rem 2rem; font-size: 1.05rem; }

/* ============================================
   OSIO OTSIKOT
   ============================================ */
.osio > .container > h2 { text-align: center; margin-bottom: .75rem; }
.osio-kuvaus { text-align: center; color: #3A3A3A b; margin-bottom: 3rem; font-size:1.13rem; }
.osio-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.osio-linkki { color: #155332; font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* ============================================
   PALVELUT
   ============================================ */
.palvelut-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.palvelu-kortti {
    background: var(--pinta); border: 1px solid var(--reuna);
    border-top: 3px solid #FFD500;
    border-radius: var(--rl); padding: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
    flex: 1 1 280px; max-width: 380px;
    transition: box-shadow .2s, transform .2s;
}
.palvelu-kortti:hover { box-shadow: var(--sl); transform: translateY(-3px); }
.palvelu-ikoni { font-size: 2.5rem; margin: 0; }
.palvelu-ikoni > img { filter: drop-shadow(0px 1px 1px rgba(0,0,0,.25)); transition: transform 0.3s ease, filter 0.3s ease; }
.palvelu-kortti:hover .palvelu-ikoni > img { transform: scale(1.15) rotate(8deg); filter: drop-shadow(0px 4px 12px rgba(0,0,0,.2)); }
.palvelu-sisaltaa { display: flex; flex-direction: column; gap: .35rem; font-weight:bold; }
.palvelu-sisaltaa li { font-size: .9rem; color: var(--li-palveulu); }
.palvelu-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--reuna); }
.hinta { font-weight: 700; color: #D1A505; font-size: 1.69rem; }
.aika  { font-size: .85rem; color: #64748b; }

/* ============================================
   MIKSI ME
   ============================================ */
.miksi-osio { background: #06382D; color: #fff; }
.miksi-osio h2 { color: #FFD500; }
.miksi-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-bottom: 3rem; }
.miksi-kortti {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r); padding: 1.75rem;
    flex: 1 1 200px; max-width: 260px;
    display: flex; flex-direction: column; gap: .75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.miksi-kortti:hover { transform: translateY(-5px); box-shadow: var(--sl); background: rgba(255,255,255,.1); }
.miksi-ikoni     { font-size: 2rem; margin: 0; transition: transform 0.3s ease; }
.miksi-kortti:hover .miksi-ikoni { transform: scale(1.2) rotate(8deg); }
.miksi-kortti h3 { color: #FFD500; font-size: 1rem; }
.miksi-kortti p  { color: #DEE2B1; font-size: .93rem; }
.miksi-cta {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--rl); padding: 2.5rem; text-align: center;
    max-width: 480px; margin-inline: auto;
}
.miksi-cta h3  { color: #FFD500; font-size: 1.4rem; margin-bottom: .75rem; }
.miksi-cta > p { color: #DEE2B1; margin-bottom: 1.5rem; }
.miksi-napit   { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.miksi-cta .nappi-kehys { border-color: rgba(255,255,255,.3); color: #fff; }
.miksi-cta .nappi-kehys:hover { background: #FFD500; color: #06382D; border-color: #FFD500; }

/* ============================================
   FAQ
   ============================================ */
.faq-osio { background: #f1f5f9; }
.faq-flex { display: flex; flex-direction: column; gap: .75rem; max-width: 780px; margin-inline: auto; }
.faq-kohta { background: var(--pinta); border: 1px solid var(--reuna); border-radius: var(--r); overflow: hidden; }
.faq-kohta details summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; cursor: pointer; list-style: none; gap: 1rem;
    transition: background 0.2s ease;
}
.faq-kohta details summary:hover { background: #f8fafc; }
.faq-kohta details summary::-webkit-details-marker { display: none; }
.faq-kohta h3  { font-size: 1rem; font-weight: 600; flex: 1; color: #06382D; }
.faq-nuoli     { font-size: 1.4rem; color: #D1A505; transition: transform .2s; flex-shrink: 0; }
.faq-kohta details[open] .faq-nuoli  { transform: rotate(45deg); }
.faq-kohta details[open] summary     { border-bottom: 1px solid var(--reuna); }
.faq-vastaus   { padding: 0 1.5rem 1.25rem; color: var(--faq-p); }
.faq-kohta details[open] summary ~ * { animation: aukea 0.3s ease; }
@keyframes aukea {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BLOGI
   ============================================ */
.blogi-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.blogi-flex-iso { flex-direction: row; max-width: 77%%; margin-inline: auto; }
.blogi-kortti {
    background: var(--pinta); border: 1px solid var(--reuna);
    border-left: 4px solid #FFD500;
    border-radius: var(--rl); padding: 1.75rem;
    display: flex; flex-direction: column; gap: .75rem;
    flex: 1 1 280px; transition: box-shadow .2s, transform .2s;
}
.blogi-kortti:hover { box-shadow: var(--sl); transform: translateY(-2px); }
.blogi-kortti header { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.blogi-kortti time   { font-size: .82rem; color: #64748b; font-weight: 600; }
.tagit { display: flex; gap: .35rem; flex-wrap: wrap; }
.tagi  { font-size: .75rem; background: #DEE2B1; color: #06382D; padding: .15rem .6rem; border-radius: 2rem; font-weight: 600; }
.blogi-kortti h2, .blogi-kortti h3 { font-size: 1.05rem; color: #06382D; }
.blogi-kortti a:hover { color: #D1A505; }
.blogi-kortti > p { color: #64748b; font-size: .93rem; }
.lue-lisaa { color: #155332; font-weight: 600; font-size: .9rem; }
.lue-lisaa:hover { color: #D1A505; }

/* ============================================
   ARTIKKELI
   ============================================ */
.artikkeli-sisalto p  { color: #06382D; margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; }
.artikkeli-sisalto h2 { margin-top: 2rem; margin-bottom: .75rem; color: #155332; }
.artikkeli-sisalto h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: #155332; }
.artikkeli-sisalto ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.artikkeli-sisalto li { margin-bottom: .4rem; color: #06382D; }

/* ============================================
   SIVUN HERO (alasivut)
   ============================================ */
.sivu-hero {
    background-color: rgba(21,83,50, .26);
    background-image: var(--bgImage-ajankohtaista);
    background-blend-mode: multiply;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding-block: 3.5rem 3rem;
    border-bottom: 3px solid #FFD500;
}
.sivu-hero .container { display: flex; flex-direction: column; gap: .75rem; }
.sivu-hero h1 { margin: 0; }
.sivu-hero p  { color: #DEE2B1; font-size: 1.05rem; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { padding: .75rem 1.5rem; max-width: var(--mw); margin-inline: auto; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb a    { color: #155332; font-size: .85rem; font-weight: 600; }
.breadcrumb span { font-size: .85rem; color: #64748b; }
.sep { color: var(--reuna); font-size: .85rem; padding-inline: .15rem; }

/* ============================================
   PALVELUT TÄYSI
   ============================================ */
.palvelut-full-flex  { display: flex; flex-direction: column; }
.palvelu-full        { padding-block: 2.5rem; }
.palvelu-full-header { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.palvelu-ikoni-iso   { font-size: 3.5rem; margin: 0; }
.palvelu-hinta-aika  { color: #D1A505; font-weight: 600; margin-top: .25rem; }
.palvelu-kuvaus      { color: #64748b; font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 680px; }
.palvelu-full section { margin-bottom: 1.5rem; }
.palvelu-full section h3 { font-size: 1rem; margin-bottom: .75rem; color: #155332; }
.palvelu-full section ul { display: flex; flex-direction: column; gap: .4rem; }
.palvelu-full section li { color: #64748b; }
.palvelu-full footer { margin-top: 1.5rem; }
hr { border: none; border-top: 1px solid var(--reuna); }

/* ============================================
   HINNAT
   ============================================ */
.hinnat-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-bottom: 3rem; }
.hinta-kortti {
    background: var(--pinta); border: 2px solid var(--reuna); border-radius: var(--rl);
    padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
    flex: 1 1 240px; max-width: 320px; position: relative;
}
.hinta-kortti.suosittu { border-color: #FFD500; box-shadow: 0 0 0 4px rgba(255,213,0,.2); }
.suosio-merkki {
    position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
    background: #FFD500; color: #06382D; font-size: .8rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 2rem; white-space: nowrap; margin: 0;
}
.hinta-numero { display: flex; align-items: baseline; gap: .5rem; }
.summa  { font-family: var(--fo); font-size: 2.5rem; font-weight: 800; color: #D1A505; }
.alkaen { font-size: .85rem; color: #64748b; }
.hinta-kohdat { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.hinta-kohdat li { font-size: .9rem; color: #64748b; }
.hinta-kortti footer { margin-top: auto; }
.hinta-kortti footer .nappi { width: 100%; justify-content: center; }
.hinnat-huomio { background: #f0fdf4; border: 1px solid #DEE2B1; border-radius: var(--r); padding: 1.75rem; }
.hinnat-huomio h2 { font-size: 1.15rem; margin-bottom: .75rem; text-align: left; color: #155332; }
.hinnat-huomio li { color: #64748b; font-size: .93rem; margin-bottom: .4rem; padding-left: 1.1rem; position: relative; }
.hinnat-huomio li::before { content: '•'; position: absolute; left: 0; color: #155332; }

/* ============================================
   YHTEYSTIEDOT
   ============================================ */
.yhteys-flex { display: flex; gap: 4rem; flex-wrap: wrap; align-items: flex-start; }
.yhteys-flex > section { flex: 1 1 280px; }
.yhteys-flex h3 { margin-bottom: 1.5rem; color: #155332; }
.yhteys-lista { display: flex; flex-direction: column; gap: 1.25rem; }
.yhteys-lista li { display: flex; gap: 1rem; align-items: flex-start; }
.yhteys-lista li > span { font-size: 1.5rem; flex-shrink: 0; }
.yhteys-lista strong { display: block; font-size: .85rem; color: #64748b; margin-bottom: .2rem; }
.yhteys-lista a { color: #155332; font-weight: 600; }
.lomake-lista { display: flex; flex-direction: column; gap: 1.25rem; }
.lomake-lista label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: #06382D; }
.lomake-lista abbr  { text-decoration: none; color: var(--err); }
.lomake-lista input,
.lomake-lista textarea {
    width: 100%; border: 1.5px solid var(--reuna); border-radius: .5rem;
    padding: .75rem 1rem; font-family: var(--ft); font-size: 1rem;
    color: var(--txt); background: var(--pinta); transition: border-color .15s;
}
.lomake-lista input:focus,
.lomake-lista textarea:focus { outline: none; border-color: #FFD500; box-shadow: 0 0 0 3px rgba(255,213,0,.2); }
.ilmoitus { padding: 1rem 1.25rem; border-radius: var(--r); font-weight: 500; margin-bottom: 1.5rem; }
.ilmoitus-ok    { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ilmoitus-virhe { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #06382D; color: #DEE2B1; padding-top: 4rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 3rem; padding-bottom: 3rem; }
.footer-yritys { flex: 2 1 220px; }
.site-footer nav,
.site-footer section { flex: 1 1 140px; }
.footer-logo { font-family: var(--fo); font-size: 1.2rem; font-weight: 800; color: #FFD500; margin-bottom: .75rem; }
.site-footer h2      { font-family: var(--fo); color: #FFD500; font-size: .9rem; margin-bottom: 1rem; }
.site-footer nav ul  { display: flex; flex-direction: column; gap: .5rem; }
.site-footer a       { font-size: .9rem; transition: color .15s; color: #DEE2B1; }
.site-footer a:hover { color: #FFD500; }
.site-footer address ul { display: flex; flex-direction: column; gap: .6rem; }
.site-footer address li { display: flex; gap: .5rem; font-size: .9rem; }
.site-footer address a  { color: #FFD500; }
.footer-copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.25rem; font-size: .82rem; color: #DEE2B1; }

/* ============================================
   MOBIILI
   ============================================ */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .cta-puhelin .puhelin-teksti { display: none; }
    .paanav {
        display: none; position: absolute;
        top: 70px; left: 0; right: 0;
        background: #155332;
        border-bottom: 1px solid #06382D;
        box-shadow: var(--sl);
        padding: 1rem 1.5rem 1.5rem; z-index: 99;
    }
    .paanav.auki { display: block; }
    .paanav > ul { flex-direction: column; gap: .25rem; }
    .paanav > ul > li > a { font-size: 1.05rem; padding: .75rem 1rem; border-radius: var(--r); color: #DEE2B1; }
    .paanav > ul > li > a:hover { background: rgba(255,255,255,.1); color: #FFD500; }
    .dropdown {
        position: static; display: none; flex-direction: column;
        box-shadow: none; border: none;
        border-left: 2px solid rgba(255,255,255,.2);
        border-radius: 0; margin-left: 1rem; padding: .25rem 0;
        background: transparent;
    }
    .dropdown-auki > .dropdown { display: flex; }
    .dropdown a { padding: .5rem 1rem; font-size: .95rem; color: #DEE2B1; border-radius: var(--r); }
    .dropdown a:hover { background: rgba(255,255,255,.1); color: #FFD500; }

    .site-header .container { position: relative; flex-wrap: wrap; }
   
}

@media (max-width: 426px) {
    .hero-napit     { flex-direction: column; }
    .miksi-flex     { flex-direction: column; }
    .miksi-kortti   { max-width: 100%; }
    .palvelu-kortti { max-width: 100%; }
    .hinta-kortti   { max-width: 100%; }
    .yhteys-flex    { flex-direction: column; gap: 2.5rem; }
    .site-footer .container { flex-direction: column; gap: 2rem; }
 
}
