/* ==========================================================================
   Huonekalut Netistä — recreated template
   Palette: #00619a (dark blue) · #0077C2 · #59a5f5 (light blue) · #00BFFF (bright)
   Fonts:   Barlow (headings/UI) · Roboto (body)
   ========================================================================== */

:root {
  --blue-dark: #00619a;
  --blue-mid: #0077C2;
  --blue-light: #59a5f5;
  --blue-bright: #00BFFF;
  --text: #0e0e0f;
  --text-muted: #4a4d52;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e3e8ee;
  --footer-bg: #ededed;
  --shadow: 0 6px 24px rgba(0, 97, 154, 0.10);
  --radius: 10px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Barlow", sans-serif;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand img { height: 38px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue-dark);
  background: var(--bg-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--blue-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.btn-store {
  display: inline-flex;
  align-items: center;
  background: var(--blue-bright);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-store:hover,
.btn-store:focus-visible {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 46, 74, 0.82) 0%, rgba(0, 97, 154, 0.55) 55%, rgba(0, 97, 154, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  max-width: 640px;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 14px;
  font-family: "Barlow", sans-serif;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.btn-primary {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 30px;
  background: var(--blue-bright);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-mid);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */

.categories {
  padding: 72px 0 56px;
}

.categories h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--blue-dark);
}

.section-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 17px;
}

.cat-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--blue-dark);
  margin-bottom: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cat-ico svg { width: 28px; height: 28px; }

.cat-name {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
}

.cat-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
}

.cat-card:hover .cat-ico,
.cat-card:focus-visible .cat-ico {
  background: var(--blue-dark);
  color: #fff;
}

.cat-card:hover .cat-name,
.cat-card:focus-visible .cat-name { color: var(--blue-dark); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  padding: 64px 0 80px;
  background: var(--bg-soft);
}

.about h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-dark);
  max-width: 860px;
}

.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.about-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.about-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--blue-bright);
  display: inline-block;
}

.about-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--text);
  padding: 0 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 24px;
}

.footer-brand-name {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-about p {
  font-size: 14px;
  color: var(--text);
  max-width: 320px;
}

.footer-col h4 {
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #000;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  padding-top: 18px;
}

.copyright {
  font-size: 14px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Static pages (legal, about, contact)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-mid));
  color: #fff;
  padding: 44px 0 40px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.static-page {
  max-width: 880px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.static-page .lead {
  font-size: 18px;
  color: var(--text-muted);
}

.static-page h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--blue-dark);
  margin: 36px 0 12px;
}

.static-page h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.static-page p,
.static-page li { font-size: 15.5px; }

.static-page ul,
.static-page ol {
  padding-left: 22px;
  margin: 12px 0;
  display: grid;
  gap: 6px;
}

.static-page a { color: var(--blue-mid); }

.info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-bright);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 16px 0;
}

.static-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.static-page th,
.static-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.static-page th {
  background: var(--bg-soft);
  font-family: "Barlow", sans-serif;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 10px 0;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.faq details[open] summary { border-bottom: 1px solid var(--border); }

.faq details p {
  padding: 12px 16px;
  font-size: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-form label {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 6px;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue-light);
  border-color: var(--blue-light);
}

.contact-form .btn-primary {
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Story sections (intro copy)
   -------------------------------------------------------------------------- */

.story {
  padding: 56px 0;
}

.story-tint {
  background: var(--bg-soft);
}

.story .container { max-width: 880px; }

.story h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
}


/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  padding: 64px 0;
  background: var(--bg-soft);
}

.steps h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-dark);
}

.steps-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ section
   -------------------------------------------------------------------------- */

.faq-section {
  padding: 64px 0 72px;
}

.faq-wrap {
  max-width: 880px;
}

.faq-wrap > h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.faq-section details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 10px 0;
  background: #fff;
}

.faq-section summary {
  cursor: pointer;
  padding: 16px 18px;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.faq-section details[open] summary { border-bottom: 1px solid var(--border); }

.faq-section details p {
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Hub pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-img { padding: 56px 0 48px; }

.page-hero-img .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-img .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 46, 74, 0.88) 0%, rgba(0, 97, 154, 0.72) 60%, rgba(0, 97, 154, 0.45) 100%);
}

.page-hero-img .container {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero-img h1 { font-size: clamp(28px, 4vw, 42px); }

.page-hero-sub {
  margin-top: 8px;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.leaf-list {
  list-style: none !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 20px;
}

.leaf-list li {
  padding: 8px 12px 8px 30px;
  position: relative;
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 14.5px;
}

.leaf-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-bright);
}

.tip-box { border-left-color: var(--blue-light); }

.story p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 1.05em;
  text-wrap: pretty;
}

.leaf-content p { margin-bottom: 1.05em; }

.static-page .lead { text-wrap: pretty; }

/* Products (leaf pages) */
.products {
  padding: 40px 0 8px;
}

.products-wrap { max-width: 880px; }

.products h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--blue-dark);
}

.products-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.product-list {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: var(--bg-soft); }

.p-rank {
  flex: 0 0 26px;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  color: var(--text-muted);
}

.p-name {
  flex: 1;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}

.product-row:hover .p-name { color: var(--blue-dark); }

.p-price {
  flex: 0 0 auto;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-dark);
  white-space: nowrap;
}

.p-cta {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-mid);
  white-space: nowrap;
}

.leaf-content { padding-top: 40px; }

.leaf-links { padding: 0 0 56px; }

.leaf-links .container { max-width: 880px; }

.ctx-link {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  color: var(--blue-mid);
  text-decoration: none;
}
.ctx-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .product-row { flex-wrap: wrap; row-gap: 2px; }
  .p-name { flex-basis: calc(100% - 40px); }
  .p-price { margin-left: 40px; }
}

.hub-chain {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hub-chain .btn-primary { margin-top: 0; }

.hub-chain-secondary {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  color: var(--blue-mid);
  text-decoration: none;
}
.hub-chain-secondary:hover { text-decoration: underline; }
/* Sources & HTML sitemap */
.sources {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

.sources a { color: var(--blue-mid); }
.sources a:hover { text-decoration: underline; }

.sitemap-page h2 { margin-top: 32px; }

.sitemap-page h2 a { color: var(--blue-dark); text-decoration: none; }
.sitemap-page h2 a:hover { text-decoration: underline; }

.sm-list {
  list-style: none !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 20px;
}

.sm-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  font-size: 14.5px;
}

.sm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue-light);
}

.sm-list a { color: var(--blue-mid); text-decoration: none; }
.sm-list a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Scroll to top
   -------------------------------------------------------------------------- */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue-bright);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.scroll-top:hover { background: var(--blue-mid); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 14px;
  }

  .main-nav a {
    display: block;
    padding: 12px 8px;
    border-radius: 6px;
  }

  .hero { min-height: 420px; }

  .btn-store {
    font-size: 14px;
    padding: 10px 14px;
  }

  .brand img { height: 32px; }

  .header-inner { gap: 12px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
  }

  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .btn-store {
    font-size: 13px;
    padding: 9px 11px;
  }

  .brand img { height: 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

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