:root {
  --truck-black: #0f0d0c;
  --truck-charcoal: #1f1b17;
  --truck-panel: #2a241d;
  --gold: #ffc21a;
  --gold-bright: #ffd54a;
  --gold-soft: #ffc21a;
  --ink: #f8f8f8;
  --muted: #f8f8f8;
  --line: rgba(195, 145, 60, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header-h: 84px;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--truck-black);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

a { color: var(--ink); }
a:hover { color: var(--gold-bright); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--truck-black);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 13, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 54px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--truck-charcoal);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible { background: var(--truck-panel); color: var(--gold-bright); }

.nav .lang {
  color: var(--muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 22px;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-red,
.btn-gold {
  background: var(--gold);
  color: var(--truck-black);
  border-color: var(--gold);
}
.btn-red:hover, .btn-red:focus-visible,
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--gold-bright);
  color: var(--truck-black);
  border-color: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(248, 248, 248, 0.45);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--ink); color: var(--truck-black); }

.btn-dark {
  background: var(--truck-panel);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-dark:hover,
.btn-dark:focus-visible { background: var(--gold); color: var(--truck-black); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.btn-outline:hover,
.btn-outline:focus-visible { background: var(--gold); color: var(--truck-black); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 13, 12, 0.18) 0%, rgba(15, 13, 12, 0.28) 40%, rgba(15, 13, 12, 0.92) 100%),
    url("assets/hero.jpg") center 55% / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.hero .eyebrow,
.section-kicker {
  display: block;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  max-width: 14ch;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero .lead {
  max-width: 36rem;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

section { padding: 88px 0; }


h1, h2, h3, h4 {
  color: var(--gold);
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.intro {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 40px;
}

.about {
  background:
    linear-gradient(180deg, rgba(15, 13, 12, 0.88), rgba(15, 13, 12, 0.94)),
    url("assets/yritys.jpg") center / cover no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-copy p { margin-top: 0; color: var(--muted); }

.photo-frame {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--truck-charcoal);
  border: 1px solid var(--line);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 700 / 525;
  object-fit: cover;
}

.services {
  background: var(--truck-charcoal);
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.service-grid.secondary {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.card {
  background: rgba(15, 13, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
}

.card.featured {
  background:
    linear-gradient(160deg, rgba(15, 13, 12, 0.55), rgba(15, 13, 12, 0.82)),
    url("assets/hero.jpg") center / cover no-repeat;
  color: var(--ink);
  border-color: var(--gold);
}
.card.featured p,
.card.featured .sub p { color: var(--ink); }
.card.featured h3 { color: var(--gold); }

.card > p { margin: 0 0 18px; color: var(--muted); }
.card > p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); }

.subs {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.sub {
  background: rgba(15, 13, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
}
.sub p { margin: 0; }

/* Gallery */
.gallery { background: var(--truck-black); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.gallery-item {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  background: var(--truck-charcoal);
  cursor: zoom-in;
  width: 100%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 13, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--truck-charcoal);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--gold);
  color: var(--truck-black);
}

.contact {
  background:
    linear-gradient(180deg, rgba(15, 13, 12, 0.88), rgba(15, 13, 12, 0.95)),
    url("assets/hero.jpg") center 70% / cover no-repeat;
  color: var(--ink);
}

.contact h2 { color: var(--gold); }
.about-copy .section-kicker,
.contact .section-kicker { color: var(--ink); }
.contact .intro { color: var(--ink); }

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

.contact-panel {
  max-width: none;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin: 0;
  align-self: start;
  background: rgba(31, 27, 23, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink);
  background: rgba(15, 13, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(248, 248, 248, 0.55);
}

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

.contact-form textarea { min-height: 8rem; resize: vertical; }

.contact-form .btn { justify-self: start; margin-top: 4px; cursor: pointer; }

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.form-status.is-ok {
  background: rgba(255, 194, 26, 0.16);
  border: 1px solid var(--gold);
  color: var(--ink);
}
.form-status.is-error {
  background: rgba(237, 28, 36, 0.16);
  border: 1px solid #ed1c24;
  color: var(--ink);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.contact-list a:hover { color: var(--gold-bright); }

.contact-list span {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-list .meta { font-weight: 500; font-size: 1rem; color: var(--ink); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }


.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social img { width: 22px; height: 22px; filter: invert(1) brightness(2); }

.site-footer {
  background: #090807;
  color: var(--muted);
  padding: 28px 0 36px;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

.legal { padding: 64px 0 96px; }
.legal-body {
  max-width: 48rem;
  background: var(--truck-charcoal);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 40px 48px;
  box-shadow: var(--shadow);
}
.legal-body h1 {
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.legal-body h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--gold);
}
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 1.2rem; }
.reg { margin: 0 0 24px; }
.reg strong { display: block; margin-bottom: 6px; color: var(--ink); }

@media (max-width: 900px) {
  .about-grid,
  .service-grid,
  .service-grid.secondary,
  .contact-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .legal-body { padding: 28px 22px 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(15, 13, 12, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery-item img, .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; }
}
