/* =============================================
   tyhjennys-palvelu.com – tyylit
   Paletti kuvista: tumma denim + Marimekko-oranssi ja harmaat pilkut
   (kuvista mitatut: hopeansininen denim #2A3644, oranssi tasku #DF8F43, hopeapilkut #C3CBD0, tiilenpunainen #D2462A)
   Värit vaihtuvat koko sivulta muuttamalla vain :root-muuttujia.
   ============================================= */
:root {
    --tumma:   #2A3644;   /* hopeansininen denim: header, hinnat, footer */
    --sininen: #5E6E80;   /* hopeansininen: reunat */
    --paa:     #DF8F43;   /* oranssi tasku, pohjaväri (lähikuvasta): napit, logo, reunat – kontrasti 5.9 */
    --paa-dk:  #CA6D30;   /* taskun pilkut: hover */
    --linkki:  #A3561A;   /* tumma oranssi: linkit vaalealla pohjalla, kontrasti 5.1 */
    --korostus:#F2C08A;   /* vaalea oranssi: korostusteksti tummalla pohjalla */
    --oranssi: #DF8F43;   /* tilastonumerot */
    --vaalea:  #C3CBD0;   /* hopeapilkut: teksti tummalla pohjalla, kontrasti 7.5 */
    --teksti:  #22262C;
    --harmaa:  #5A6469;   /* tumma hopea, kontrasti 6.1 */
    --tausta:  #F7F8F9;
    --tausta2: #ECEFF1;   /* vaalea hopea osio */
    --tiili:   #B04E3A;   /* tiiliskivi: Mitä tyhjennämme -numerot */
    --iloinen: #D2462A;   /* kirkas tiilenpunainen: vaihenumerot */
    --reuna:   #C9D0D4;   /* hopea reuna */
    --wa:      #25D366;
    --r:  .4rem;
    --sh: 0 1px 3px rgba(42,54,68,.08), 0 6px 18px rgba(42,54,68,.07);
    --sl: 0 12px 36px rgba(42,54,68,.16);
    --mw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Montserrat", system-ui, sans-serif; color: var(--teksti); background: var(--tausta); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; }
ul   { list-style: none; }
address { font-style: normal; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; color: var(--tumma); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.12rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }
p a, li a { color: var(--linkki); font-weight: 600; }

.container { max-width: var(--mw); margin-inline: auto; padding-inline: 1.5rem; }
.kapea     { max-width: 820px; }
.osio      { padding-block: 5rem; }
.osio-vaalea { background: var(--tausta2); }
.osio-tumma  { background: var(--tumma); color: var(--vaalea); }
.osio-tumma h2, .osio-tumma h3 { color: #fff; }
.keski     { text-align: center; }
.ingressi  { max-width: 720px; margin: 0 auto 3rem; color: var(--harmaa); font-size: 1.05rem; }
.osio-tumma .ingressi { color: var(--vaalea); }
.pieni     { font-size: .92rem; color: var(--harmaa); margin-top: 2rem; }
[id] { scroll-margin-top: 80px; }   /* kiinteä header ei peitä otsikkoa */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only-fokus:focus { position: fixed; top: .5rem; left: .5rem; width: auto; height: auto; clip: auto; z-index: 999; background: var(--paa); color: var(--tumma); padding: .5rem 1rem; }

/* ── Napit ── */
.nappi { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--r);
         font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .2s, color .2s; font-family: inherit; }
.nappi-paa   { background: var(--paa); color: var(--tumma); }
.nappi-paa:hover { background: var(--paa-dk); transform: translateY(-1px); }
.nappi-wa    { background: var(--wa); color: #fff; }
.nappi-wa:hover { filter: brightness(.93); }
.nappi-reuna { border-color: var(--vaalea); color: #fff; background: transparent; }
.nappi-reuna:hover { background: var(--vaalea); color: var(--tumma); }
.nappi-reuna-tumma { border-color: var(--tumma); color: var(--tumma); background: transparent; }
.nappi-reuna-tumma:hover { background: var(--tumma); color: #fff; }
.napit  { display: flex; flex-wrap: wrap; gap: .8rem; }
.leveä  { width: 100%; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--tumma); border-bottom: 3px solid var(--paa); }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; margin-right: auto; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.2rem; }
.logo-merkki { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paa); color: var(--tumma); font-weight: 900; }
.paanav ul { display: flex; align-items: center; gap: .2rem; }
.paanav a { display: block; padding: .5rem .8rem; color: var(--vaalea); text-decoration: none; font-weight: 500; font-size: .93rem; border-radius: var(--r); }
.paanav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.paanav .nav-cta { background: var(--paa); color: var(--tumma); font-weight: 700; margin-left: .4rem; }
.paanav .nav-cta:hover { background: var(--paa-dk); color: var(--tumma); }
.cta-puhelin { display: none; text-decoration: none; background: var(--paa); padding: .4rem .7rem; border-radius: var(--r); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; margin-inline: auto; background: var(--paa); transition: transform .25s, opacity .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--tumma); }
.hero-kuva { position: absolute; inset: 0; background: url("../images/hero-tyhjennys.jpg") center/cover no-repeat; opacity: .75; }   /* kuvan kirkkaus: 0 = piilossa, 1 = täysi */
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42,54,68,.88) 30%, rgba(42,54,68,.15) 100%); }   /* vasen tumma tekstin alle, oikea kirkas */
.hero-sisalto { position: relative; z-index: 1; padding-block: 4.5rem; max-width: 760px; margin-left: max(1.5rem, calc((100vw - var(--mw)) / 2)); }
.hero-merkki { display: inline-block; background: var(--paa); color: var(--tumma); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 2rem; margin-bottom: 1.4rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1.2rem; }
.hero h1 span { display: block; color: var(--korostus); font-size: .5em; margin-top: .6rem; font-weight: 700; }
.hero p { color: var(--vaalea); font-size: 1.12rem; margin-bottom: 2rem; }
.hero-tilastot { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-tilastot strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--oranssi); }
.hero-tilastot span { font-size: .85rem; color: var(--vaalea); }

/* ── Sisällysluettelo ── */
.sisallys { background: #fff; border-bottom: 1px solid var(--reuna); padding-block: 1.6rem; }
.sisallys h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--harmaa); margin-bottom: .8rem; }
.sisallys ol { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: .5rem; }
.sisallys li { counter-increment: s; }
.sisallys a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1.5px solid var(--reuna); border-radius: 2rem;
              text-decoration: none; color: var(--tumma); font-weight: 600; font-size: .88rem; transition: border-color .2s, background .2s; }
.sisallys a::before { content: counter(s); display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
                      background: var(--paa-dk); color: #fff; font-size: .74rem; font-weight: 800; }
.sisallys a:hover, .sisallys a:focus-visible { border-color: var(--paa); background: rgba(223,143,67,.1); outline: none; }

/* ── Palvelukortit ── */
.kortit { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; align-items: start; }   /* avattu kortti ei venytä naapureita */
.kortti { position: relative; background: #fff; border-radius: var(--r); padding: 2rem 1.75rem; box-shadow: var(--sh); border-left: 4px solid var(--paa); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.kortti:hover { transform: translateY(-4px); box-shadow: var(--sl); }
.kortti-nro { font-size: 3.4rem; font-weight: 900; color: var(--tiili); line-height: 1; margin-bottom: .7rem; letter-spacing: -.02em; }
.kortti p { color: var(--teksti); font-size: .95rem; flex: 1; }
.kortti-linkki { color: var(--linkki); font-weight: 700; text-decoration: none; font-size: .92rem; }
.kortti-linkki:hover { text-decoration: underline; }
.kortti-lisa summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.kortti-lisa summary::-webkit-details-marker { display: none; }
.kortti-lisa summary::after { content: '▾'; font-size: .9em; transition: transform .35s ease-in-out; }
.kortti-lisa[open] summary::after { transform: rotate(180deg); }
.kortti-lisa .avautuva { overflow: hidden; }
.kortti-lisa .avautuva p { margin: .8rem 0 .6rem; font-size: .93rem; color: var(--teksti); }
.kortti-lisa .avautuva a { display: inline-block; margin-bottom: .2rem; }
.faq .avautuva { overflow: hidden; }

/* ── Hinnat ── */
.hinnat { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
.hinta-kortti { position: relative; flex: 1 1 280px; max-width: 370px; background: rgba(255,255,255,.06); border: 2px solid rgba(223,143,67,.35); border-radius: var(--r); padding: 2.4rem 2rem; display: flex; flex-direction: column; }
.hinta-kortti.suosittu { border-color: var(--paa); background: rgba(223,143,67,.1); }
.suosittu-merkki { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--paa); color: var(--tumma); font-size: .78rem; font-weight: 800; padding: .25rem .9rem; border-radius: 2rem; }
.hinta-summa { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: .2rem; }
.hinta-summa small { font-size: .9rem; font-weight: 500; color: var(--vaalea); }
.hinta-kuorma { color: var(--korostus); font-weight: 700; margin-bottom: .3rem; }
.hinta-esim { color: var(--vaalea); font-size: .88rem; font-style: italic; }
.hinta-kortti ul { flex: 1; margin-bottom: 1.6rem; display: flex; flex-direction: column; gap: .45rem; }
.hinta-kortti li { font-size: .93rem; color: var(--vaalea); }
.hinta-kortti li::before { content: '✓  '; color: var(--paa); font-weight: 900; }
.hinnat-huom { margin-top: 2.2rem; color: var(--vaalea); font-size: .92rem; }
.hinnat-huom a { color: var(--korostus); }

/* ── Vaiheet ── */
.vaiheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; counter-reset: v; margin-top: 2.5rem; list-style: none; }
.vaiheet li { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 1.6rem 1.75rem 1.6rem; border-top: 4px solid var(--iloinen); }
.vaiheet li::before { counter-increment: v; content: counter(v, decimal-leading-zero); display: block; margin-bottom: .5rem;
                      color: var(--iloinen); font-weight: 900; font-size: 4.4rem; line-height: 1; letter-spacing: -.03em; }
.vaiheet p { font-size: .93rem; margin: 0; }

/* ── Kahtia-osiot ── */
.kahtia { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.kahtia > * { flex: 1 1 340px; }
.kahtia-teksti, .kahtia-ylos { align-items: flex-start; }
.kahtia-kuva img { border-radius: var(--r); box-shadow: var(--sl); width: 100%; }
/* Kuolinpesä: mini-galleria, 4 eri kokoista kuvaa */
.kp-kuvat { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; aspect-ratio: 16 / 10; }
.kp-kuvat figure { margin: 0; overflow: hidden; border-radius: var(--r); box-shadow: var(--sh); }
.kp-1 { grid-row: 1 / 3; }                /* iso vasemmalla */
.kp-2 { grid-column: 2 / 4; }             /* leveä ylhäällä oikealla */
.kp-kuvat a { display: block; height: 100%; }
.kp-kuvat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease-in-out; }
.kp-kuvat a:hover img, .kp-kuvat a:focus-visible img { transform: scale(1.05); }

/* ── Galleria ── */
.galleria { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.g-kuva { flex: 0 0 calc((100% - 3rem) / 5); min-width: 0; }
.g-kuva a { display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); border: 2px solid transparent; cursor: zoom-in; transition: border-color .2s; }
.g-kuva a:hover, .g-kuva a:focus-visible { border-color: var(--paa); outline: none; }
.g-kuva img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.g-kuva a:hover img { transform: scale(1.05); }
.g-kuva figcaption { font-size: .8rem; color: var(--teksti); margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-kuva.piilossa { display: none; }

/* ── Lightbox ── */
.lb { border: 0; padding: 0; background: rgba(42,54,68,.96); width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; }
.lb::backdrop { background: rgba(42,54,68,.95); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb figure { text-align: center; max-width: 92vw; }
.lb img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: var(--r); margin-inline: auto; }
.lb figcaption { color: var(--vaalea); margin-top: .75rem; }
.lb button { position: absolute; background: none; border: 0; color: var(--paa); cursor: pointer; font-size: 3.4rem; line-height: 1; padding: .5rem 1rem; }
.lb .lb-sulje { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--paa); color: var(--tumma); font-size: 1.3rem; font-weight: 900; }
.lb-nuoli { top: 50%; transform: translateY(-50%); }
.lb-ed { left: .25rem; } .lb-seur { right: .25rem; }

/* ── Alueet ── */
.alueet { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.alueet div { background: #fff; border-radius: var(--r); padding: 1.4rem; box-shadow: var(--sh); border-top: 3px solid var(--sininen); }
.alueet p { font-size: .9rem; margin: 0; }

/* ── Lomake ── */
.tarkistus { display: flex; flex-direction: column; gap: .55rem; margin: 1.2rem 0 1.8rem; }
.tarkistus li { font-weight: 600; color: var(--tumma); }
.tarkistus li::before { content: '✓  '; color: var(--linkki); font-weight: 900; }
.lomake-laatikko { background: #fff; border-radius: var(--r); padding: 2.2rem; box-shadow: var(--sl); border-top: 4px solid var(--paa); }
.kentta { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1 1 200px; }
.kentta-rivi { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.kentta label { font-weight: 600; font-size: .87rem; color: var(--tumma); }
.kentta input, .kentta textarea, .kentta select { width: 100%; border: 1.5px solid var(--reuna); border-radius: var(--r); padding: .7rem .9rem; font: inherit; font-size: .95rem; background: #fff; color: var(--teksti); }
.kentta input:focus, .kentta textarea:focus, .kentta select:focus { outline: none; border-color: var(--paa); box-shadow: 0 0 0 3px rgba(223,143,67,.2); }
.kentta textarea { min-height: 110px; resize: vertical; }
.valinta { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; color: var(--tumma); margin-bottom: 1.2rem; cursor: pointer; }
.valinta input { width: 1.2rem; height: 1.2rem; accent-color: var(--paa); }
.ansa { position: absolute; left: -9999px; }
.ilmoitus { padding: 1rem 1.2rem; border-radius: var(--r); font-weight: 600; }
.ilmoitus.ok { background: #dcfce7; color: #166534; }
#uusi-pyynto { margin-top: 1rem; }
[hidden] { display: none !important; }
.ilmoitus.virhe { background: #fee2e2; color: #991b1b; }

/* ── FAQ ── */
.faq { background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin-bottom: .8rem; }
.faq summary { padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 700; color: var(--tumma); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--linkki); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.4rem 1.2rem; margin: 0; }

/* ── Footer ── */
.site-footer { background: var(--tumma); color: var(--vaalea); padding-top: 3.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-grid > * { flex: 1 1 220px; }
.footer-logo { font-weight: 900; font-size: 1.25rem; color: var(--paa); }
.site-footer h2 { font-size: .95rem; color: var(--paa); margin-bottom: .8rem; }
.site-footer ul { display: flex; flex-direction: column; gap: .45rem; }
.site-footer a { color: var(--vaalea); font-weight: 500; text-decoration: none; }
.site-footer a:hover { color: var(--paa); }
.footer-copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem; margin: 0; font-size: .82rem; }

/* ── Mobiili ── */
@media (max-width: 960px) {
    .hamburger { display: flex; }
    .cta-puhelin { display: block; }
    .paanav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--tumma); padding: 1rem 1.5rem 1.5rem; border-bottom: 3px solid var(--paa); }
    .paanav.auki { display: block; }
    .paanav ul { flex-direction: column; align-items: stretch; }
    .paanav .nav-cta { margin: .5rem 0 0; text-align: center; }
    .g-kuva { flex-basis: calc((100% - 1.5rem) / 3); }
}
@media (max-width: 600px) {
    /* Sisällysluettelo puhelimessa: yksi vieritettävä rivi, pienemmät napit */
    .sisallys { padding-block: .9rem; }
    .sisallys h2 { font-size: .72rem; margin-bottom: .5rem; }
    .sisallys ol { flex-wrap: nowrap; overflow-x: auto; gap: .4rem; padding-bottom: .3rem; margin-right: -1rem; padding-right: 1rem;
                   scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
    .sisallys ol::-webkit-scrollbar { display: none; }
    .sisallys li { flex: 0 0 auto; scroll-snap-align: start; }
    .sisallys a { padding: .3rem .7rem .3rem .35rem; font-size: .8rem; gap: .35rem; white-space: nowrap; }
    .sisallys a::before { width: 1.2rem; height: 1.2rem; font-size: .66rem; }
    .kp-kuvat { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
    .kp-1 { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
    .kp-2 { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
    .kp-3, .kp-4 { aspect-ratio: 1; }
    .osio { padding-block: 3.5rem; }
    .hero { min-height: 0; }
    .hero::after { background: rgba(42,54,68,.72); }   /* puhelimessa teksti koko leveydellä -> tasainen tummennus */
    .hero-tilastot { gap: 1.5rem; }
    .napit .nappi { flex: 1 1 100%; }
    .lomake-laatikko { padding: 1.5rem; }
    .lb-nuoli { top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 480px) {
    .galleria { gap: .5rem; }
    .g-kuva { flex-basis: calc((100% - .5rem) / 2); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
