/*
Theme Name: Viikemi
Theme URI: https://viikemi.com/
Author: Viikemi
Author URI: https://viikemi.com/
Description: Fast, responsive and SEO-ready corporate theme for Viikemi, Baltic sales and distribution.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: viikemi
*/

:root {
  --orange: #ff5a14;
  --black: #080808;
  --text: #141414;
  --muted: #5e5e5e;
  --line: #e4e4e4;
  --soft: #f7f7f7;
  --white: #ffffff;
  --max: 1180px;
  --header: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: 176px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange); border-bottom-color: var(--orange); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-cta:hover, .header-cta:focus-visible { background: #e84b09; }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--black);
  color: #fff;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  background: linear-gradient(90deg, #fff 0%, #fff 35%, #f4f4f4 100%);
  overflow: hidden;
}
.hero-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px 64px 0;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(58px, 7.2vw, 92px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero h1 span { display: block; color: var(--orange); }
.hero-copy p {
  max-width: 420px;
  margin: 0;
  color: #333;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--black);
  background: #fff;
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--orange); border-color: var(--orange); }
.button-primary:hover, .button-primary:focus-visible { background: #e84b09; border-color: #e84b09; }
.button-dark { background: var(--black); color: #fff; border-color: var(--black); }
.hero-map {
  min-width: 0;
  min-height: 500px;
  position: relative;
}
.hero-map::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 18%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.8) 35%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hero-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trust-strip { background: #050505; color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  min-height: 180px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 30px 26px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.trust-item:last-child { border-right: 0; }
.line-icon {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.trust-item h2 {
  margin: 2px 0 8px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}
.trust-item p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.5; }

.section { padding: 58px 0; }
.section-soft { background: #fafafa; }
.section-layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 180px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.outline-link:hover, .outline-link:focus-visible { background: var(--orange); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1.46 / 1; object-fit: cover; filter: grayscale(100%); }
.product-card-body { position: relative; min-height: 114px; padding: 16px 42px 16px 16px; }
.product-card h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.05; text-transform: uppercase; }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.42; }
.product-arrow { position: absolute; top: 18px; right: 14px; color: var(--orange); font-size: 23px; line-height: 1; }

.services-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-item {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.service-item .line-icon { width: 40px; height: 40px; }
.service-item h3 { margin: 0; font-size: 14px; line-height: 1.25; }

.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.industry-item {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border-left: 1px solid var(--line);
  padding: 16px 8px;
}
.industry-item:first-child { border-left: 0; }
.industry-item .line-icon { width: 47px; height: 47px; }
.industry-item h3 { margin: 0; font-size: 12px; line-height: 1.25; }

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.about-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; filter: grayscale(100%); }
.about-content { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(34px, 5vw, 78px); }
.about-content h2 { margin: 0 0 20px; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.about-content p { max-width: 620px; margin: 0 0 15px; color: #404040; font-size: 16px; }
.about-content .text-link {
  align-self: flex-start;
  margin-top: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact { padding: 70px 0; background: #f4f4f4; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 40px; align-items: start; }
.contact-copy h2 { margin: 0 0 16px; font-size: clamp(42px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; }
.contact-copy p { max-width: 430px; margin: 0 0 22px; color: #444; font-size: 17px; }
.contact-list { display: grid; gap: 8px; margin: 22px 0; }
.contact-list a { font-weight: 700; }
.form-panel { padding: 28px; background: #fff; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form label { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 800; }
.inquiry-form small { color: var(--muted); font-weight: 400; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: #fff;
  color: #111;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus { outline: 2px solid rgba(255,90,20,.16); border-color: var(--orange); }
.inquiry-form textarea { min-height: 138px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-bottom: 18px; padding: 13px 15px; font-weight: 700; }
.form-notice.success { background: #eef9f0; color: #146a25; }
.form-notice.error { background: #fff0f0; color: #9c1b1b; }

.site-footer { background: #050505; color: #fff; padding: 42px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.1fr 1fr; gap: 30px; }
.footer-logo img { width: 172px; }
.footer-brand p { max-width: 235px; margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer h2 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 7px; color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--orange); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.5); font-size: 12px; }

.entry-wrap { width: min(860px, calc(100% - 40px)); margin: 70px auto; }
.entry-title { font-size: clamp(42px, 6vw, 70px); line-height: 1; }
.entry-content img { height: auto; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }

@media (max-width: 1080px) {
  .main-nav ul { gap: 18px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-item:nth-child(4) { border-left: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; padding: 14px 20px 20px; }
  .main-nav li + li { margin-top: 4px; }
  .main-nav a { width: 100%; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 0 24px; }
  .hero-map { min-height: 390px; }
  .hero-map::before { width: 100%; height: 16%; inset: 0 0 auto; background: linear-gradient(180deg, #fff, rgba(255,255,255,0)); }
  .section-layout { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-image img { min-height: 320px; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 26px)); }
  .site-logo img { width: 145px; }
  .hero h1 { font-size: 58px; }
  .hero-copy p { font-size: 18px; }
  .hero-actions { gap: 10px; }
  .button { width: 100%; }
  .hero-map { min-height: 320px; }
  .trust-grid, .product-grid, .service-grid, .industry-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .trust-item:last-child { border-bottom: 0; }
  .industry-item { border-left: 0; border-bottom: 1px solid var(--line); }
  .about-content { padding: 42px 22px; }
  .form-panel { padding: 20px; }
}
