/* Jyväskylän Viherkivi Oy — tyylit (konsepti D)
   Kivenharmaa pohja, salvianvihreät ja metsänvihreät osiot, logon vihreä toimintoväri,
   pyöristetyt kuvat ja Figtree-fontti. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --stone: #eceee8;       /* sivun pohja */
  --sage: #dfe9d7;        /* vaalea vihreä osio */
  --sage-2: #d2e0c8;
  --forest: #1f3b2b;      /* tumma osio, alatunniste */
  --forest-2: #2b4c39;
  --green: #4e9c35;       /* logon vihreä */
  --green-dark: #3c7f28;
  --green-light: #8fd16f;
  --ink: #1f2a24;
  --text: #3f4a43;
  --grey: #646363;        /* logon harmaa */
  --line: #cdd4c8;
  --white: #ffffff;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 3vw, 32px);
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--stone); }
img { display: block; max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.08; margin: 0 0 .45em; letter-spacing: -0.025em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 780; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Painikkeet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 650; line-height: 1.1; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sage); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.link { font-weight: 650; }

/* ---------- Ylätunniste ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--stone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 28px; width: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sub { list-style: none; margin: 0; }
.main-nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 560; border-radius: 999px; }
.main-nav a:hover { background: var(--sage); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--green-dark); background: var(--white); }
.main-nav .nav-cta a { background: var(--green); color: #fff; padding: 11px 20px; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--green-dark); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; padding: 10px; background: var(--white); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(31,59,43,.14); display: none; flex-direction: column; gap: 2px; }
.sub a { border-radius: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover-silta */
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.menu-btn span::before { position: absolute; top: -8px; }
.menu-btn span::after { position: absolute; top: 8px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .js .menu-btn { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav { width: 100%; padding-bottom: 20px; }
  .site-header .wrap { position: relative; }
  .js .main-nav { position: absolute; top: 100%; left: 0; right: 0; width: auto; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: var(--stone); padding: 12px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; display: none; z-index: 150; border-top: 1px solid var(--line); }
  .js.menu-open body { overflow: hidden; }
  .js.menu-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .main-nav a[aria-current="page"] { background: none; }
  .sub { position: static; display: flex; box-shadow: none; background: none; padding: 0 0 0 16px; min-width: 0; }
  .sub a { font-size: 1rem; }
  .has-sub > a::after { display: none; }
  .main-nav .nav-cta a { margin: 24px 0 0; border: 0; border-radius: 999px; text-align: center; }
}

/* ---------- Hero (etusivu) ja sivun otsikko (alasivut) ---------- */
.hero { position: relative; margin: 0 16px; border-radius: var(--r-lg); overflow: hidden; min-height: min(680px, 82vh); display: flex; align-items: flex-end; color: #fff; background: var(--forest); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,40,28,.86) 0%, rgba(20,40,28,.6) 42%, rgba(20,40,28,.08) 78%); }
.hero .inner { position: relative; z-index: 2; padding: 64px clamp(24px, 6vw, 80px); max-width: 780px; }
.hero p { font-size: 1.22rem; color: #e9efe6; max-width: 32em; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; gap: 10px 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 34px 0 0; font-weight: 560; color: #e9efe6; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.page-head { position: relative; margin: 0 16px; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; background: var(--forest); }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,40,28,.88) 0%, rgba(20,40,28,.62) 50%, rgba(20,40,28,.2) 100%); }
.page-head .inner { position: relative; z-index: 2; padding: 56px clamp(24px, 6vw, 80px) 52px; max-width: 860px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.page-head p { font-size: 1.18rem; color: #e3ebe0; margin: 0; max-width: 36em; }
.page-head a { color: #fff; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: #c9d6cc; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #eef3ec; }

@media (max-width: 760px) {
  .hero, .page-head { margin: 0 10px; border-radius: var(--r-md); }
  .hero { min-height: 600px; }
  .hero::before, .page-head::before { background: linear-gradient(0deg, rgba(20,40,28,.9) 0%, rgba(20,40,28,.6) 55%, rgba(20,40,28,.15) 100%); }
  .hero .inner { padding: 32px 22px; }
  .page-head { min-height: 320px; }
  .page-head .inner { padding: 32px 22px 30px; }
}

/* ---------- Osiot ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section--tight-top { padding-top: 0; }
.section--sage { background: var(--sage); }
.section--dark { background: var(--forest); color: #fff; }
.section--dark a { color: var(--green-light); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--text); max-width: 36em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text); }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 88px); align-items: start; }
.intro p { color: var(--text); }

/* Palvelurivit */
.row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.row + .row { margin-top: clamp(48px, 6vw, 72px); }
.row.flip .media { order: 2; }
.media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--r-lg); background: var(--sage-2); }
.ic { width: 54px; height: 54px; border-radius: 16px; background: var(--white); display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 26px; height: 26px; }
.row p { color: var(--text); max-width: 30em; }
.more-svc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; align-items: center; }
.more-svc span { font-weight: 650; margin-right: 6px; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 560; }
.chip:hover { background: var(--forest); color: #fff; }

/* Sitaatti ja luvut */
.motto { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.motto blockquote { margin: 0; font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 760; line-height: 1.08; letter-spacing: -0.03em; }
.motto blockquote em { font-style: normal; color: var(--green-light); }
.motto cite { display: block; margin-top: 20px; font-style: normal; color: #b9c9bd; }
.figures { list-style: none; margin: 0; padding: 0; }
.figures li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.18); }
.figures b { font-size: 2rem; font-weight: 780; letter-spacing: -0.02em; white-space: nowrap; }
.figures span { color: #b9c9bd; text-align: right; }

/* Aikajana */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line); }
.timeline li { position: relative; counter-increment: s; }
.timeline li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 750; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--stone); }
.section--sage .timeline li::before { box-shadow: 0 0 0 8px var(--sage); }
.timeline p { color: var(--text); margin: 0; }

/* Etusivun galleria-nosto */
.gal-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-preview a { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--sage-2); }
.gal-preview a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal-preview a:hover img { transform: scale(1.04); }

/* Kotitalousvähennys-nosto */
.kv-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.areas li { background: var(--white); padding: 7px 15px; border-radius: 999px; font-size: .95rem; font-weight: 520; }

/* Yhteystietolaatikko */
.contact-band { background: var(--sage); border-radius: var(--r-lg); margin: 0 16px; padding: clamp(48px, 7vw, 80px) 0; }
.contact-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.contact-band p { color: var(--text); }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; font-size: 1.08rem; background: var(--white); padding: 28px 32px; border-radius: var(--r-md); }
.contact-list dt { color: var(--grey); }
.contact-list dd { margin: 0; font-weight: 650; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green-dark); text-decoration: underline; }
@media (max-width: 760px) { .contact-band { margin: 0 10px; border-radius: var(--r-md); } }

/* Sisältösivut */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { max-width: 44rem; color: var(--text); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside figure { margin: 0; }
.aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); background: var(--sage-2); }
.aside figcaption { font-size: .9rem; color: var(--grey); margin-top: 8px; }
.aside-card { background: var(--forest); color: #fff; border-radius: var(--r-md); padding: 26px; }
.aside-card h3 { margin-bottom: .3em; }
.aside-card p { color: #c9d6cc; margin-bottom: 18px; }
.aside-card .tel { display: block; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; margin-top: 4px; }
.callout { background: var(--sage); border-radius: var(--r-md); padding: 24px 28px; margin: 0 0 28px; color: var(--ink); }
.callout h3 { margin-bottom: .3em; }
.callout p:last-child { margin: 0; }
.calc { width: 100%; border-collapse: collapse; margin: 16px 0 28px; background: var(--white); border-radius: var(--r-sm); overflow: hidden; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 13px 18px; text-align: left; border-bottom: 1px solid #e3e7e0; color: var(--ink); }
.calc th:last-child, .calc td:last-child { text-align: right; }
.calc tr.total td { font-weight: 750; background: var(--sage); border-bottom: 0; }
.muted { color: var(--grey); font-size: .95rem; }

/* Kumppanit */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner { background: var(--white); border-radius: var(--r-md); padding: 30px; }
.partner .role { display: inline-block; font-size: .85rem; font-weight: 650; color: var(--green-dark); background: var(--sage); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.partner h2 { font-size: 1.6rem; margin-bottom: .4em; }
.partner p { margin: 0 0 .3em; color: var(--text); }

/* Palvelukortit (palvelut-sivu) */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); }
.svc-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sage-2); transition: transform .3s; }
.svc-card .body { padding: 22px 24px 26px; }
.svc-card h2 { font-size: 1.45rem; margin-bottom: .3em; }
.svc-card p { color: var(--text); margin: 0; }
.svc-card:hover { color: var(--ink); }
.svc-card:hover h2 { color: var(--green-dark); }

/* UKK */
.faq { display: grid; gap: 10px; max-width: 54rem; }
.faq details { background: var(--white); border-radius: var(--r-sm); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 60px 20px 24px; font-weight: 650; font-size: 1.12rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8v10M8 13h10' stroke='%233c7f28' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text); max-width: 46rem; }
.faq details > div p:last-child { margin: 0; }

/* Yhteydenotto */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.people { display: grid; gap: 14px; margin-bottom: 28px; }
.person { background: var(--white); border-radius: var(--r-md); padding: 22px 26px; }
.person h3 { margin-bottom: .15em; }
.person .tel { font-size: 1.3rem; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.person .tel:hover { color: var(--green-dark); }
.person p { margin: 4px 0 0; }
address { font-style: normal; color: var(--text); }
.form { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.form h2 { font-size: 1.9rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--grey); font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--stone); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 15px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(78,156,53,.18); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--green-dark); }
.form-note { font-size: .9rem; color: var(--grey); margin-top: 14px; }

/* ---------- Galleria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--white); color: var(--ink); cursor: pointer; }
.filters button:hover { background: var(--sage-2); }
.filters button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-flow: dense; }
.g-item { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--sage-2); }
.g-item.big { grid-column: span 2; grid-row: span 2; }
.g-item[hidden] { display: none; }
.g-item a { display: block; height: 100%; color: #fff; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item a:hover img { transform: scale(1.04); }
.g-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .88rem; line-height: 1.3; font-weight: 550; background: linear-gradient(transparent, rgba(20,40,28,.82)); }
.gallery-count { color: var(--grey); margin: -10px 0 20px; font-size: .95rem; }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(15,28,20,.95); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 64px 72px 32px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; }
.lightbox p { color: #e6ede4; margin: 16px 0 0; text-align: center; min-height: 1.6em; }
.lb-btn { position: absolute; border: 0; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-next { right: 16px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; top: 28px; left: 24px; color: #b9c9bd; font-size: .9rem; }
body.lb-lock { overflow: hidden; }

/* ---------- Alatunniste ---------- */
.site-footer { background: var(--forest); color: #b9c9bd; margin-top: clamp(64px, 8vw, 100px); font-size: .95rem; }
.site-footer a { color: #eef3ec; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding: 64px 0 40px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-logo { display: inline-block; background: #fff; padding: 11px 16px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 20px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsiivisuus ---------- */
@media (max-width: 980px) {
  .article { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .svc-cards, .partners { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .intro, .row, .motto, .kv-band, .contact-band .wrap, .contact-grid, .timeline { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .media { order: 0; }
  .media img { height: 280px; border-radius: var(--r-md); }
  .timeline::before { display: none; }
  .gal-preview { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item { border-radius: 14px; }
  .svc-cards, .partners { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lightbox { padding: 60px 10px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; }
  .lightbox img { max-height: calc(100vh - 190px); }
}
@media (max-width: 520px) {
  .aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 2px; padding: 24px; }
  .contact-list dd { margin-bottom: 10px; }
}
.site-footer address { color: inherit; }
.sub a { text-align: left; }
