/* ===== Kintamieji ===== */
:root {
  --color-primary: #1b3a5c;
  --color-primary-dark: #12263d;
  --color-accent: #d98a2b;
  --color-bg: #f7f8fa;
  --color-text: #263241;
  --color-muted: #5c6b7a;
  --color-border: #e1e5ea;
  --radius: 8px;
  --max-width: 1100px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / navigacija ===== */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
}

.logo img {
  display: block;
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

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

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.open {
    max-height: 400px;
  }

  .nav a {
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  background:
    linear-gradient(180deg, rgba(10, 18, 26, 0.35) 0%, rgba(10, 18, 26, 0.55) 55%, rgba(10, 18, 26, 0.88) 100%),
    url("/assets/img/hero-truck.jpg") center 65% / cover no-repeat;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero .container {
  padding-bottom: 64px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #ffd9a8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
  margin: 0 0 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 1.1rem;
  color: #eef2f5;
  max-width: 640px;
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  margin: 0 10px 10px 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

/* ===== Bendros sekcijos ===== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: var(--color-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-alt {
  background: #fff;
}

/* ===== Kortelės (paslaugos) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ===== Rekvizitai lentelė ===== */
.details-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.details-table tr {
  border-bottom: 1px solid var(--color-border);
}

.details-table tr:last-child {
  border-bottom: none;
}

.details-table th,
.details-table td {
  text-align: left;
  padding: 14px 18px;
}

.details-table th {
  width: 40%;
  color: var(--color-muted);
  font-weight: 600;
  background: #fafbfc;
}

.placeholder {
  color: #b7462f;
  font-style: italic;
}

/* ===== Medienos gaminiai (produktai) ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.product-gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.product-gallery img:hover {
  opacity: 0.85;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
}

.product-body p {
  color: var(--color-muted);
  flex: 1;
}

.product-price {
  font-weight: 700;
  color: var(--color-accent);
  margin: 10px 0;
}

/* ===== Gaminio specifikacijų lentelė ===== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.85rem;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--color-border);
}

.specs-table th {
  color: var(--color-muted);
  font-weight: 600;
}

.specs-table td:last-child {
  color: var(--color-accent);
  font-style: italic;
}

.lengths {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 8px 0;
}

.lengths p {
  margin: 3px 0;
}

.lengths strong {
  color: var(--color-text);
}

.product-video {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.product-video iframe,
.product-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfd8e2;
  padding: 34px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

/* ===== Mobiliesiems skirti pritaikymai ===== */
@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
    background-position: center 70%;
  }

  .hero .container {
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Rekvizitų/kontaktų lentelė - siaurame ekrane žymė ir reikšmė rodomos
     viena po kita (ne dviem stulpeliais), kad tekstas nebūtų suspaustas. */
  .details-table,
  .details-table tbody,
  .details-table tr,
  .details-table th,
  .details-table td {
    display: block;
    width: auto;
  }

  .details-table tr {
    padding: 10px 0;
  }

  .details-table th {
    padding: 0 16px;
    background: transparent;
  }

  .details-table td {
    padding: 4px 16px 12px;
  }

  /* Gaminio matmenų lentelė - leidžiama slinkti horizontaliai, kad
     matmenys ir pastabos nebūtų suspausti siaurame ekrane. */
  .specs-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
