/* Lakava Supplies – tyylit. Mobiili ensin. */

:root {
  --brand: #f26a1b;
  --brand-dark: #d4580f;
  --ink: #1a1c20;
  --ink-2: #4b5057;
  --muted: #767b83;
  --bg: #ffffff;
  --bg-2: #f6f4f0;
  --line: #e6e2db;
  --frame: #ece9e3;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: 20px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(26, 28, 32, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .contact a, .site-footer a { text-decoration: underline; text-decoration-color: rgba(242, 106, 27, 0.5); text-underline-offset: 3px; }
p a:hover, .prose a:hover { text-decoration-color: var(--brand); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
.h-small { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin: 1.6em 0 0.6em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.kicker { color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 0.9em; }
.note { font-size: 0.9rem; color: var(--muted); }
.text-link { font-weight: 600; color: var(--brand); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: inherit; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-2); }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 0.95rem; }

/* ---------- ylätunniste ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { width: 150px; height: auto; }
.nav { display: none; }
.nav a { font-weight: 600; padding: 8px 4px; }
.nav a[aria-current="page"]:not(.btn) { color: var(--brand); }
.site-header__tools { display: flex; align-items: center; gap: 6px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.lang-switch--nav { display: none; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open .nav {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: 72px; padding: 12px var(--gutter) 20px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
body.nav-open .nav a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
body.nav-open .nav a.btn { margin-top: 12px; border-bottom: 0; justify-content: center; border-radius: 999px; }
@media (min-width: 900px) {
  .brand img { width: 190px; }
  .site-header__inner { height: 84px; }
  .nav-toggle { display: none; }
  .site-header__tools { display: none; }
  .nav a.lang-switch--nav { display: inline-flex; padding: 0 10px; margin-left: -8px; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav .btn { margin-left: 8px; }
}

/* ---------- osiot ---------- */
.section { padding: 56px 0; }
.section--first { padding-top: 24px; }
.section--tight { padding-top: 8px; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head--wide { max-width: 820px; margin-bottom: 40px; }
.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; margin-bottom: 20px; }
.section-head--row h2 { margin: 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section--first { padding-top: 32px; } .section--tight { padding-top: 16px; } }

.crumbs { font-size: 0.85rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { margin: 0 4px; }

/* ---------- kuvakehys: kaikki tuotekuvat samaan 4:5-kehykseen ---------- */
.frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--frame); border-radius: var(--radius);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--main { aspect-ratio: 4 / 5; }

/* ---------- hero ---------- */
.hero { padding: 24px 0 48px; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.hero__grid { display: grid; gap: 28px; }
.hero__text h1 { max-width: 14ch; }
.hero__text .lead { max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__media { position: relative; }
.frame--hero { box-shadow: var(--shadow); }
.hero__tag {
  position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 10px 14px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow);
}
.hero__tag:hover { color: var(--brand); }
@media (min-width: 900px) {
  .hero { padding: 48px 0 80px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
}

/* ---------- ruudukot ja kortit ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .frame { border-radius: 0; }
@media (max-width: 639px) { .card .frame { aspect-ratio: 1 / 1; } }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.card__body h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__body p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.card__link { margin-top: 6px; font-weight: 600; color: var(--brand); font-size: 0.95rem; }
.card--coming .frame img { opacity: .9; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 9px; border-radius: 999px; vertical-align: middle; }
h1 .badge { font-size: 0.8rem; position: relative; top: -0.4em; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

/* ---------- ominaisuudet ---------- */
.features { gap: 28px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); }
.feature__num { display: block; color: var(--brand); font-weight: 800; letter-spacing: .05em; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); }

.split { display: grid; gap: 28px; align-items: center; }
.split__text .btn { margin-top: 8px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

/* ---------- CTA-palkki ---------- */
.band { background: var(--ink); color: #fff; padding: 48px 0; }
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: rgba(255,255,255,.75); }
.band__inner { display: grid; gap: 24px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .band { padding: 64px 0; } .band__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- tuotesivu ---------- */
.product__grid { display: grid; gap: 28px; }
.product__info .lead { margin-bottom: 20px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; cursor: pointer; background: var(--frame); }
.gallery__thumb.is-active { border-color: var(--brand); }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keyfacts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.keyfacts dd { margin: 2px 0 0; font-weight: 700; }
.colors { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 14px; }
.colors li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.product__details { display: grid; gap: 36px; }
.product__details .prose h2 { font-size: 1.35rem; margin-top: 1.2em; }
.product__details .prose h2:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .product__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
  .product__media { position: sticky; top: 100px; }
  .product__details { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.specs { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.specs thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs tbody th { width: 34%; }
.specs--wide tbody th { width: auto; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.table-wrap .specs th, .table-wrap .specs td { padding: 14px 16px; }
.table-wrap tr:last-child td { border-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.prose { max-width: 72ch; }
.prose--narrow { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }

.notice { background: var(--bg-2); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; justify-items: start; max-width: 680px; }
.notice p { margin: 0; }

/* ---------- jälleenmyyjät ---------- */
.reasons { gap: 20px; }
.reason { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.reason h3 { margin-bottom: 6px; }
.reason p { margin: 0; color: var(--ink-2); }

.form-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfcac2; border-radius: var(--radius-sm); background: #fff; width: 100%; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } .form { padding: 32px; } }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #1f7a3a; }
.form__status.is-error { color: #b3261e; }
.form .note { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- yhteystiedot ---------- */
.contact { display: grid; gap: 32px; }
.contact__list { margin: 24px 0 28px; display: grid; gap: 16px; }
.contact__list dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact__list dd { margin: 2px 0 0; font-weight: 600; font-size: 1.1rem; }
.contact__aside { background: var(--bg-2); border-radius: var(--radius); padding: 28px; align-self: start; }
.contact__aside .h-small:first-child { margin-top: 0; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }

/* ---------- alatunniste ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 24px; margin-top: 0; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; font-weight: 700; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__brand img { width: 170px; margin-bottom: 16px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__nav { display: grid; gap: 8px; justify-items: start; }
.site-footer__nav a, .site-footer__contact a { text-decoration: none; color: #fff; }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--brand); }
.site-footer__small { font-size: 0.85rem; color: rgba(255,255,255,.55); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; color: rgba(255,255,255,.55); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 1fr; gap: 48px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
