/* Paras Maku - renkler logodan: kırmızı şerit ve siyah çatal-kaşık */
:root {
    --puna: #D41E0B;
    --puna-kirkas: #F6220C;
    --puna-tumma: #A8180A;
    --hiili: #1C1918;
    --tumma: #3B3533;
    --harmaa: #6B6461;
    --raja: #E4DFDC;
    --pohja: #FFFFFF;
    --vaalea: #F5F2F0;
    --vihrea: #2E7A4D;

    --otsikko: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
    --teksti: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --leveys: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--teksti); font-size: 1.0625rem; line-height: 1.6; color: var(--hiili); background: var(--pohja); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--otsikko); font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.0rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--puna-kirkas); outline-offset: 2px; }

.kehys { width: 100%; max-width: var(--leveys); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.kapea { max-width: 720px; }
.osio { padding-block: clamp(3rem, 7vw, 5.5rem); }
.lounas { padding-top: clamp(2rem, 4vw, 3rem); }
.iso { font-size: 1.2rem; line-height: 1.55; }
.pieni { font-size: .92rem; color: var(--harmaa); }
.ohita { position: absolute; left: -9999px; }
.ohita:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--hiili); color: #fff; padding: .6rem 1rem; }

/* Napit */
.napit { display: flex; flex-wrap: wrap; gap: .7rem; }
.nappi { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s; }
.nappi-puna { background: var(--puna); color: #fff; }
.nappi-puna:hover { background: var(--puna-tumma); }
.nappi-valko { background: #fff; color: var(--hiili); }
.nappi-valko:hover { background: var(--vaalea); }
.nappi-tumma { background: var(--hiili); color: #fff; }
.nappi-tumma:hover { background: #000; }
.nappi-reuna { border-color: rgba(255,255,255,.75); color: #fff; }
.nappi-reuna:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Yläpalkki ja otsake */
.ylapalkki { background: var(--hiili); color: #fff; font-size: .9rem; }
.ylapalkki-ic { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; padding-block: .45rem; }
.ylapalkki a { text-decoration: none; opacity: .9; }
.ylapalkki a:hover { opacity: 1; text-decoration: underline; }
.otsake { background: #fff; border-bottom: 1px solid var(--raja); position: sticky; top: 0; z-index: 20; }
.otsake-ic { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.logo img { width: 200px; }
.valikko { display: flex; gap: .3rem; }
.valikko a { text-decoration: none; font-weight: 600; padding: .55rem .9rem; border-radius: 999px; }
.valikko a:hover { background: var(--vaalea); }
.valikko a[aria-current="page"] { background: var(--puna); color: #fff; }
.valikko-nappi { display: none; font: inherit; font-weight: 600; background: var(--hiili); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; }
@media (max-width: 760px) {
    .ylapalkki-ic a:nth-child(3) { display: none; }
    .otsake-ic { min-height: 70px; }
    .logo img { width: 160px; }
    .valikko-nappi { display: block; }
    .valikko { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; padding: .6rem 1rem 1rem; border-bottom: 1px solid var(--raja); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
    .valikko.auki { display: flex; }
    .valikko a { padding: .8rem 1rem; }
}

.ilmoitus { background: var(--puna-kirkas); color: #fff; font-weight: 600; padding-block: .7rem; text-align: center; }

/* Etusivu: kuva + tämän päivän lista */
.sankari { position: relative; color: #fff; background: var(--hiili); overflow: hidden; }
.sankari-kuva { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sankari::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,25,24,.85) 0%, rgba(28,25,24,.45) 55%, rgba(28,25,24,.2) 100%); }
.sankari-ic { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.sankari-paikka { font-weight: 600; margin-bottom: .4rem; color: #ffd9d3; }
.sankari-teksti { container-type: inline-size; }
.sankari h1 { font-size: clamp(2.1rem, 5vw, 4rem); margin-bottom: .25em; white-space: nowrap; }
/* Başlık her zaman sütun genişliğine göre boyutlanır, kelime bölünmez */
@supports (font-size: 1cqi) {
    .sankari h1 { font-size: clamp(1.9rem, 10.5cqi, 5.4rem); }
}
.sankari-aika { font-size: 1.3rem; margin-bottom: 1.6rem; }

.tanaan { background: #fff; color: var(--hiili); border-radius: 18px; padding: 1.6rem 1.6rem 1.2rem; box-shadow: 0 18px 50px rgba(0,0,0,.35); border-top: 8px solid var(--puna-kirkas); }
.tanaan h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.tanaan h2 span { display: block; font-size: .95rem; font-family: var(--teksti); font-weight: 600; color: var(--puna); letter-spacing: 0; margin-bottom: .15rem; }
.tanaan h3 { margin: 1rem 0 .3rem; font-size: 1rem; color: var(--harmaa); }
.tanaan-linkit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1rem; font-weight: 600; }
.tulosta-linkki { color: var(--puna); }
.tulosta-linkki::before { content: "⎙ "; }

/* Ruokalistat */
.ruoat { list-style: none; margin: 0; padding: 0; }
.ruoat li { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--raja); }
.ruoat li:last-child { border-bottom: 0; }
.ruoka { min-width: 0; }
.alt { display: inline-flex; gap: .25rem; padding-top: .15rem; }
.al { text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1; padding: .3rem .42rem; border-radius: 6px; background: var(--vaalea); color: var(--tumma); cursor: help; }
.al-ve { background: #e2f1e8; color: var(--vihrea); }
.selite { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .92rem; color: var(--harmaa); margin: 2rem 0; }

/* Esittely ja tiedot */
.esittely-ic, .tiedot-ic { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hinnasto { background: var(--vaalea); border-radius: 18px; padding: 1.6rem; }
.hinnasto h3 { margin-bottom: .6rem; }
.hinnat { margin: 0 0 .8rem; }
.hinnat div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #cfc7c3; }
.hinnat dt { font-weight: 500; }
.hinnat dd { margin: 0; font-family: var(--otsikko); font-weight: 800; font-size: 1.6rem; color: var(--puna); white-space: nowrap; }
.tiedot { background: var(--vaalea); }
.ajat { margin: 0; }
.ajat div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.ajat dd { margin: 0; font-weight: 600; }
.ajat.isot div { font-size: 1.3rem; padding: .7rem 0; border-bottom: 1px solid var(--raja); }

/* Lounas-sivu */
.lounas-paa { padding-top: 0; display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.tervehdys { color: var(--puna); font-weight: 600; margin-bottom: .4rem; }
.viikko { font-size: .45em; font-weight: 600; color: var(--harmaa); vertical-align: .35em; margin-left: .3rem; }
.lounasaika { font-size: 1.2rem; }
.hinnasto-kortti .hinnat dd { font-size: 1.4rem; }
.huomio { background: #fff4d6; border-left: 4px solid #e0a400; padding: .9rem 1.1rem; border-radius: 6px; }

.paivat { display: flex; gap: .5rem; overflow-x: auto; position: sticky; top: 84px; z-index: 10; background: #fff; padding: .7rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--raja); }
.paivat a { flex: 0 0 auto; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; background: var(--vaalea); font-weight: 500; white-space: nowrap; }
.paivat a span { font-weight: 700; }
.paivat a[aria-current="date"] { background: var(--puna); color: #fff; }
@media (max-width: 760px) { .paivat { top: 70px; } }

.viikko-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.paiva { border: 1px solid var(--raja); border-radius: 18px; padding: 1.4rem 1.4rem 1rem; scroll-margin-top: 160px; background: #fff; }
.paiva h2 { font-size: 1.55rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.paiva .pvm { font-family: var(--teksti); font-size: 1rem; font-weight: 500; color: var(--harmaa); letter-spacing: 0; }
.paiva h3 { margin: 1.1rem 0 .2rem; color: var(--harmaa); font-size: 1rem; }
.merkki { font-family: var(--teksti); font-size: .8rem; font-weight: 700; letter-spacing: 0; background: var(--puna); color: #fff; padding: .25rem .6rem; border-radius: 999px; }
.tanaan-paiva { border: 2px solid var(--puna); box-shadow: 0 10px 30px rgba(212,30,11,.12); }
.mennyt { opacity: .62; }
.suljettu { font-weight: 600; color: var(--puna); }
.paiva-not { background: var(--vaalea); padding: .5rem .8rem; border-radius: 8px; font-size: .95rem; }

/* Yhteystiedot */
.yhteys-ic { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.yhteys-tiedot { background: var(--vaalea); border-radius: 18px; padding: 1.6rem; }
.yhteys-tiedot h2 { font-size: 1rem; font-family: var(--teksti); font-weight: 600; color: var(--harmaa); margin: 1rem 0 .2rem; letter-spacing: 0; }
.yhteys-tiedot h2:first-child { margin-top: 0; }
.yhteys-tiedot p { font-size: 1.15rem; margin: 0; }
.lomake { display: grid; gap: 1rem; margin-top: 1.5rem; }
.rivi2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kentta label { display: block; font-weight: 600; margin-bottom: .3rem; }
.kentta input, .kentta textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #cdc5c1; border-radius: 10px; background: #fff; color: var(--hiili); }
.kentta input:focus, .kentta textarea:focus { outline: none; border-color: var(--puna); box-shadow: 0 0 0 3px rgba(212,30,11,.15); }
.lomake .nappi { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.piilo { position: absolute; left: -9999px; }
.lomake-viesti { padding: .9rem 1.1rem; border-radius: 10px; margin-top: 1rem; font-weight: 500; }
.lomake-viesti.ok { background: #e2f1e8; color: #1d5534; }
.lomake-viesti.virhe { background: #fde6e3; color: #8a1508; }
.kartta { margin-top: 3rem; aspect-ratio: 16 / 7; border-radius: 18px; overflow: hidden; background: var(--vaalea); }
.kartta iframe { width: 100%; height: 100%; border: 0; }

/* Alatunniste */
.alatunniste { background: var(--hiili); color: rgba(255,255,255,.85); padding-top: 3.5rem; font-size: .98rem; }
.alatunniste-ic { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.alatunniste h2 { font-size: 1rem; font-family: var(--teksti); font-weight: 600; color: #fff; letter-spacing: 0; }
.alatunniste a { color: #fff; text-decoration: none; }
.alatunniste a:hover { text-decoration: underline; }
.alatunniste-logo { width: 180px; margin-bottom: .8rem; }
.alatunniste .ajat div { padding: .2rem 0; }
.alatunniste-ala { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.2rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.alatunniste-ala p { margin: 0; }

.pikapalkki { display: none; }
@media (max-width: 760px) {
    .pikapalkki { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--puna); padding-bottom: env(safe-area-inset-bottom); }
    .pikapalkki a { color: #fff; text-decoration: none; text-align: center; font-weight: 600; padding: .9rem .3rem; font-size: .95rem; }
    .pikapalkki a + a { border-left: 1px solid rgba(255,255,255,.25); }
    body { padding-bottom: 56px; }
}

@media (max-width: 900px) {
    .sankari-ic, .esittely-ic, .tiedot-ic, .lounas-paa, .yhteys-ic { grid-template-columns: 1fr; }
    .alatunniste-ic { grid-template-columns: 1fr 1fr; }
    .alatunniste-ic > div:first-child { grid-column: 1 / -1; }
    .kartta { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
    .rivi2, .alatunniste-ic { grid-template-columns: 1fr; }
    .viikko-lista { grid-template-columns: 1fr; }
    .tanaan { padding: 1.3rem 1.2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.sankari-ic > *, .esittely-ic > *, .tiedot-ic > *, .lounas-paa > *, .yhteys-ic > *, .viikko-lista > * { min-width: 0; }

/* Yhteydenotto: tietosuoja-suostumus */
.suostumus { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin-top: .2rem; }
.suostumus input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--puna); }
.suostumus label { font-size: .95rem; line-height: 1.5; }
.suostumus a { color: var(--puna); text-underline-offset: .15em; }

/* Tietosuoja-sivu */
.tietosuoja h2 { font-size: 1.3rem; margin-top: 2rem; }
.tietosuoja ul { padding-left: 1.3rem; }
.tietosuoja li { margin-bottom: .3rem; }
.tietosuoja .nappi { margin-top: 1.5rem; }
