/* Matedecor Oy – sivuston tyylit */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }

:root {
  --dark: #151515;
  --dark-2: #1e1e1e;
  --nav-bg: #f7f7f9;
  --light-bg: #f8f8fa;
  --accent: #b08a5e;
  --text: #777777;
  --text-strong: #555555;
  --heading: #151515;
  --line: #e6e6ea;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); color: var(--heading); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }
strong, b { color: var(--text-strong); font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Yläpalkki ---------- */
.topbar { background: var(--dark); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.topbar .logo img { width: 172px; height: 172px; }
.topbar-right { display: flex; align-items: center; gap: 96px; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #3a3a3a; border-radius: 50%; color: #fff; }
.social a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.social svg { width: 12px; height: 12px; fill: currentColor; }
.phone { display: flex; align-items: center; gap: 18px; color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 600; white-space: nowrap; }
.phone:hover { color: #fff; text-decoration: none; }
.phone svg { width: 38px; height: 38px; stroke: var(--accent); fill: none; stroke-width: 1.3; }

/* ---------- Navigaatio ---------- */
.navbar { background: var(--nav-bg); position: relative; z-index: 20; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a { color: var(--heading); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 6px; padding: 24px 0; }
.menu a:hover, .menu a[aria-current="page"], .menu .is-active > a { color: var(--accent); text-decoration: none; }
.menu .chev { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.submenu { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: -20px; top: 100%; min-width: 290px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.menu li:hover > .submenu, .menu li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 8px 20px; text-transform: none; font-size: 14px; }
.cta { display: inline-block; border: 1px solid var(--heading); color: var(--heading); font-size: 13px; font-weight: 600; text-transform: uppercase; padding: 11px 28px; letter-spacing: .02em; white-space: nowrap; }
.cta:hover { background: var(--heading); color: #fff; text-decoration: none; }
.menu-toggle { display: none; width: 68px; height: 64px; border: 1px solid var(--heading); background: transparent; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 34px; height: 1.5px; background: var(--heading); margin: 7px auto; }

/* ---------- Sivun otsake ja murupolku ---------- */
.page-head { padding-top: 40px; }
.page-head h1 { font-size: 32px; margin-bottom: 10px; }
.crumbs { background: var(--light-bg); font-size: 12px; padding: 10px 14px; color: var(--text-strong); margin-bottom: 36px; }
.crumbs a { color: #999; }

/* ---------- Sisältölohkot ---------- */
main { display: block; }
.section { padding-bottom: 48px; }
.hero-img { margin-top: 10px; }
.hero-img img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; }

/* Etusivun diaesitys */
.slideshow { position: relative; aspect-ratio: 1 / 1.03; overflow: hidden; background: #eee; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slideshow .slide.is-active { opacity: 1; z-index: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow .dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slideshow .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; }
.slideshow .dot.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .slideshow .slide { transition: none; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: start; padding: 0 12px; }
.grid-2.wide-left { grid-template-columns: 2fr 1fr; gap: 40px; }
.grid-2.center { align-items: center; }
.text h2 { font-size: 20px; font-weight: 400; margin-bottom: .5em; }
.text h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--text-strong); margin: 0; line-height: 1.9; }
.text ul { margin: 0 0 1.2em; padding-left: 32px; }
.text li { margin-bottom: 6px; }
.text .lead-strong { color: var(--text-strong); font-weight: 700; }
.text a.ext { color: #3b5bdb; text-decoration: underline; }
.muted-list li { color: #999; }
.muted-list li strong { color: #999; }
.stack { display: grid; gap: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 608px; margin-left: 12px; margin-top: 16px; }
.centered-img { max-width: 594px; margin: 16px auto 0; }
.brand-badge { width: 56px; margin: 12px auto 0; border-radius: 50%; }
.cta-line { text-align: right; font-family: var(--serif); font-size: 22px; font-weight: 600; margin-top: 30px; }
.cta-line a { color: var(--heading); }
.price-block { font-size: 13px; padding: 0 12px; }
.price-block p { margin-bottom: .9em; }

/* Videon lataus vasta klikkauksesta (ei YouTube-yhteyttä ennen klikkausta) */
.video { position: relative; max-width: 1140px; margin: 40px 12px 24px; aspect-ratio: 16/9; background: #222 center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.video button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; background: none; border: 0; color: #fff; font: 500 14px var(--sans); cursor: pointer; }
.video button .play { width: 68px; height: 48px; border-radius: 12px; background: #ff0033; display: grid; place-items: center; }
.video button .play svg { width: 22px; height: 22px; fill: #fff; }
.video small { position: absolute; z-index: 1; bottom: 12px; left: 16px; right: 16px; color: #ddd; font-size: 11px; text-align: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* ---------- Tumma bannerikuva (Tarinamme, Yhteystiedot) ---------- */
.banner { background: linear-gradient(rgba(22,28,38,.62), rgba(22,28,38,.62)), #3b4450 url("/images/hero-tausta.webp") center/cover no-repeat; min-height: 400px; display: grid; place-items: center; }
.banner h1 { color: #fff; font-size: 72px; font-weight: 700; margin: 0; text-align: center; padding: 0 16px; }
.band { background: var(--light-bg); padding: 90px 0 80px; }
.eyebrow { display: flex; align-items: center; gap: 18px; color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 50px; height: 1px; background: var(--accent); }
.band h2 { font-size: 46px; font-weight: 700; line-height: 1.1; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story .text p { font-size: 13.5px; line-height: 1.75; }

/* ---------- Yhteystiedot ja lomake ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 530px; gap: 60px; align-items: start; }
.contact-card { background: var(--dark); color: #fff; display: grid; grid-template-columns: 1fr 1fr; padding: 30px 30px; text-align: center; }
.contact-card > div { padding: 30px 10px; }
.contact-card > div + div { border-left: 1px solid #2a2a2a; }
.contact-card .ic { width: 84px; height: 84px; border-radius: 50%; background: #262626; display: grid; place-items: center; margin: 0 auto 30px; }
.contact-card .ic svg { width: 38px; height: 38px; stroke: var(--accent); fill: none; stroke-width: 1.3; }
.contact-card h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.contact-card p, .contact-card a { color: #fff; font-size: 15px; margin: 0; }

.form { margin-top: 34px; display: grid; gap: 16px; max-width: 560px; }
.form label, .form legend { display: block; color: var(--heading); font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; border: 1px solid #d9d9de; background: #fff; font: 15px var(--sans); color: var(--heading); padding: 12px 14px; border-radius: 0; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form .choices { display: grid; gap: 6px; }
.form .choices label { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text-strong); margin: 0; font-size: 14px; cursor: pointer; }
.form .choices input { width: 18px; height: 18px; accent-color: var(--accent); }
.form .req { color: var(--accent); }
.form .note { font-size: 12.5px; line-height: 1.6; color: var(--text); margin: 0; }
.form button { justify-self: start; background: var(--heading); color: #fff; border: 1px solid var(--heading); font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .02em; padding: 14px 34px; cursor: pointer; }
.form button:hover { background: var(--accent); border-color: var(--accent); }
.form button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; padding: 12px 14px; display: none; }
.form-status.ok { display: block; background: #eef6ee; color: #2d5f2e; }
.form-status.err { display: block; background: #fbeeee; color: #8a2a2a; }

/* ---------- Tekstisivut (tietosuojaseloste) ---------- */
.doc { max-width: 780px; padding-bottom: 60px; }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text-strong); font-size: 15px; line-height: 1.75; }
.doc ul { padding-left: 22px; }

/* ---------- Alatunniste ---------- */
.footer { background: var(--dark); color: #fff; padding-top: 100px; }
.footer-top { display: grid; grid-template-columns: 305px 1fr; gap: 60px; align-items: start; }
.footer-card { background: var(--dark-2); padding: 42px 30px 50px; text-align: center; font-size: 14px; line-height: 1.9; }
.footer-card img { width: 145px; height: 145px; margin: 0 auto 36px; }
.footer h2 { color: #fff; font-size: 20px; font-weight: 400; display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--accent); margin: 38px 0 20px; min-width: 170px; }
.footer ul.contacts { list-style: none; padding: 0; margin: 0; }
.footer ul.contacts li { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.footer ul.contacts svg { width: 13px; height: 13px; fill: var(--accent); flex: none; }
.footer a { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 80px 0 30px; font-size: 13px; flex-wrap: wrap; }
.footer-bottom .legal { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-bottom .legal a { color: #bbb; }
.footer .social a { width: 36px; height: 36px; }

/* ---------- Mobiili ---------- */
@media (max-width: 1020px) {
  .menu { gap: 18px; }
  .menu a { font-size: 13px; }
  .topbar-right { gap: 40px; }
}
@media (max-width: 900px) {
  .topbar .wrap { flex-direction: column; gap: 26px; padding-top: 36px; padding-bottom: 34px; }
  .topbar .logo img { width: 280px; height: 280px; max-width: 70vw; max-height: 70vw; }
  .topbar-right { flex-direction: column; gap: 26px; }
  .topbar .social a { width: 50px; height: 50px; }
  .topbar .social svg { width: 18px; height: 18px; }
  .phone { font-size: 26px; gap: 30px; }
  .phone svg { width: 50px; height: 50px; }
  .navbar .wrap { min-height: 0; padding-top: 20px; padding-bottom: 20px; gap: 16px; flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .nav-actions { display: flex; align-items: center; margin-left: auto; }
  .cta { font-size: 18px; padding: 14px 28px; text-align: center; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .navbar.open .menu { display: flex; }
  .menu a { padding: 13px 0; font-size: 15px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 16px; min-width: 0; }
  .submenu a { padding: 8px 0; }
  .grid-2, .grid-2.wide-left, .story, .contact-grid { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .pair { margin-left: 0; }
  .banner { min-height: 240px; }
  .banner h1 { font-size: 46px; }
  .band { padding: 56px 0; }
  .band h2 { font-size: 36px; }
  .contact-card { grid-template-columns: 1fr; padding: 10px 24px; }
  .contact-card > div + div { border-left: 0; border-top: 1px solid #2a2a2a; }
  .footer { padding-top: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 10px; }
  .footer-card { max-width: 360px; }
  .video { margin: 30px 0 20px; }
  .price-block { padding: 0; }
  .cta-line { text-align: left; }
}
@media (max-width: 480px) {
  .cta { font-size: 16px; padding: 12px 20px; }
  .menu-toggle { width: 60px; height: 56px; }
  .page-head h1 { font-size: 28px; }
  .contact-card > div { padding: 26px 0; }
}
