/* ---------- Fonts (self-hosted copies of the original site's fonts) ---------- */
@font-face { font-family: "Rufina"; src: url("/fonts/Rufina-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rufina"; src: url("/fonts/Rufina-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/fonts/Source_Sans_Pro-normal-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/fonts/Source_Sans_Pro-normal-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("/fonts/Source_Sans_Pro-normal-700.woff") format("woff"); font-weight: 700; font-display: swap; }

/* ---------- Base ---------- */
:root {
  --yellow: hsl(60, 75%, 60%);
  --red: hsl(0, 75%, 60%);
  --text: #777;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  /* Forest background for everything below the header (the hero paints over it).
     The dark overlay keeps the text readable. */
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    #000 url("/.netlify/images?url=/img/background.png&w=1024&fm=webp") center / cover no-repeat fixed;
  color: var(--text);
  /* One typeface for all text below the header (the hero sets its own fonts). */
  font-family: "Rufina", Georgia, serif;
  font-size: 13px;
  line-height: 1.8;
}

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

a { color: #fff; }
a:hover { color: rgba(255, 255, 255, 0.6); }

/* ---------- Header / hero ---------- */
.hero {
  background: #000 url("/.netlify/images?url=/img/hero.png&w=1920&fm=webp") center / cover no-repeat;
  color: #fff;
}

@media (max-width: 768px) {
  .hero { background-image: url("/.netlify/images?url=/img/hero.png&w=750&fm=webp"); }
}

.topbar {
  position: relative;
  padding: 21px 70px;
  text-align: center;
}

.site-name,
.site-name:hover {
  color: #fff;
  font-family: "Rufina", Georgia, serif;
  font-size: 38px;
  line-height: 1.3;
  text-decoration: none;
}

.menu-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.menu-btn svg { width: 27px; fill: #fff; }

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 145px;
  max-width: 1026px;
  margin: 0 auto;
  padding: 0 10px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1.1;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title { min-height: 98px; font-size: 36px; letter-spacing: 2px; }
}

/* ---------- Slide-in menu (CSS only, opened via #valikko) ---------- */
.menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  transition: width 0.3s ease;
}

.menu:target { width: 100%; }

.menu ul { margin: 0; padding: 0; list-style: none; text-align: center; }

.menu li a {
  color: #ccc;
  font-size: 12px;
  font-weight: 300;
  text-decoration: none;
  text-transform: uppercase;
}

.menu li a.active,
.menu li a:hover { color: #fff; }

.menu-close {
  position: absolute;
  top: 20px;
  left: 10px;
  padding: 10px;
  line-height: 0;
}

.menu-close svg { width: 20px; fill: #fff; }

/* ---------- Content grid (12 columns, like the original) ---------- */
.content {
  max-width: 1066px;
  margin: 0 auto;
  padding: 78px 0;
}

@media (max-width: 1026px) {
  .content { padding-left: 10px; padding-right: 10px; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.col {
  padding: 0 1.5%;
  margin: 15px 0;
  text-align: center;
}

.col-2  { width: 16.6667%; }
.col-3  { width: 25%; }
.col-6  { width: 50%; }
.col-8  { width: 66.6667%; }
.col-10 { width: 83.3333%; }
.col-12 { width: 100%; }

.offset-1 { margin-left: 8.3333%; }
.offset-2 { margin-left: 16.6667%; }
.offset-3 { margin-left: 25%; }

.col > img { width: 100%; }

hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: #ddd;
}

/* ---------- Text blocks ---------- */
.text p { margin: 0 0 1em; }

.yellow { color: var(--yellow); }

/* No backing or shadow: the forest background shows through all content text. */
.hl { color: var(--yellow); }

.lead { font-size: 36px; line-height: 1.4; }

.body { font-size: 24px; line-height: 1.6; }

h1 {
  margin: 0 0 0.5em;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- Contacts ---------- */
.contacts { color: var(--yellow); font-style: normal; font-size: 20px; line-height: 1.6; }

.contacts p { margin: 0 0 0.8em; }

.contacts a { color: var(--yellow); text-decoration: none; }

.contacts a:hover { text-decoration: underline; }

.contacts .label { color: #fff; }

/* ---------- Brand logos ---------- */
.brands img { width: 100%; }

/* ---------- Product cards ---------- */
.products { margin-bottom: 0; }

.product { margin-bottom: 40px; }

.product > img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; margin-bottom: 15px; }

.product .brand,
.product h2,
.product .desc {
  margin: 0 0 0.6em;
  color: var(--yellow);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.product h2 { margin-bottom: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #ddd;
  padding: 45px 10px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
}

.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .col-3 { width: 50%; }
}

@media (max-width: 768px) {
  .col-8, .col-10, .col-6 { width: 100%; }
  .offset-1, .offset-2, .offset-3 { margin-left: 0; }
  .brands .col-2 { width: 25%; }
  .brands .offset-2 { margin-left: 0; }
  .lead { font-size: 28px; }
  .body { font-size: 19px; }
  h1 { font-size: 30px; }
}

@media (max-width: 500px) {
  .col-3 { width: 100%; }
  .site-name { font-size: 30px; }
  .hero-title { font-size: 28px; }
}
