/* Megatrans (Florin SRL) — Faithful 2012 Industrial Logistics Stylesheet */
:root {
  --bg-page: #1a1a1a;
  --bg-frame: #242424;
  --bg-main: #f5f5f7;
  --sidebar-bg: #383838;
  --sidebar-hover: #484848;
  --sidebar-active: #222222;
  --text-dark: #1f2328;
  --text-muted: #57606a;
  --text-light: #ffffff;
  --accent-gold: #e6a100;
  --accent-red: #c53030;
  --border: #444444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 20px 10px;
  background: var(--bg-page) url('/img/header_truck.png') no-repeat center top fixed;
  background-size: cover;
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.site-container {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-main);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

/* Masthead */
.masthead {
  background: #111111;
  position: relative;
  border-bottom: 3px solid var(--accent-gold);
}

.banner {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  color: var(--text-light);
  text-align: center;
  padding: 0 20px;
}

.logo-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(230, 161, 0, 0.4);
}

.tagline {
  margin: 6px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Layout */
.main-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 520px;
}

/* Sidebar */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid #2b2b2b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: block;
  padding: 13px 20px;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
  padding-left: 24px;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--accent-gold);
  border-left: 4px solid var(--accent-gold);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.sj-credit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.credit-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #888888;
}

.sj-credit img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Content Area */
.content-area {
  padding: 28px 32px;
  background: #ffffff;
}

.content-section {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

.content-section h2 {
  font-size: 1.4rem;
  color: #111111;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 6px;
  margin-top: 0;
  margin-bottom: 18px;
}

/* Feature Box */
.feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.feature-media {
  background: #000000;
  padding: 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.feature-quote blockquote {
  margin: 0 0 12px;
  font-style: italic;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.5;
}

.truck-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #555555;
  border-top: 1px solid #e1e4e8;
  padding-top: 10px;
}

.body-text p {
  font-size: 0.96rem;
  color: #333333;
  margin-bottom: 14px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-top: 3px solid var(--sidebar-bg);
  padding: 18px;
  border-radius: 3px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #222222;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-callout {
  background: #fff8e6;
  border: 1px solid #ffd666;
  padding: 16px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.price-callout p {
  margin: 0;
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-gold);
  color: #111111;
}

/* Fleet */
.fleet-box {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  padding: 18px;
  border-radius: 4px;
}

.fleet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.fleet-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
  color: #444444;
}

.fleet-box li {
  margin-bottom: 6px;
}

/* Archive */
.archive-gallery {
  text-align: center;
  background: #111111;
  padding: 16px;
  border-radius: 4px;
}

.archive-preview-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #444444;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* Contact */
.contact-card {
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  padding: 20px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card h3 {
  margin: 0 0 10px;
  color: #111111;
}

.contact-card p {
  margin: 4px 0;
  font-size: 0.92rem;
}

.contact-card a {
  color: #0066cc;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.archive-note small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Footer */
.site-footer {
  background: #111111;
  color: #888888;
  font-size: 0.78rem;
  padding: 14px 24px;
  border-top: 1px solid #222222;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #aaaaaa;
}

@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #2b2b2b;
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-item {
    padding: 10px 14px;
    border-bottom: none;
  }

  .feature-box,
  .fleet-box,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
