:root {
  --bg: #2a2a2a;
  --card: #222222;
  --ink: #e5e5e5;
  --muted: #9b9b9b;

  --brand: #ffffff;
  --brand-2: #1f5d82;

  --line: #2e2e2e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    Helvetica, Arial, sans-serif;
}

/* Keep content above any background decorations */
body { position: relative; }

header, main, footer {
  position: relative;
  z-index: 2;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Branding */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ✅ Added: Logo circle to match your theme */
.logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #111;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.moon-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.name { font-weight: 700; }
.tag { font-size: 12px; color: var(--muted); }

/* Nav */
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #111;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
  border: 0;
  cursor: pointer;
}
.btn:hover { opacity: .9; }
.btn.big { padding: 14px 18px; }
.btn.full { width: 100%; text-align: center; }

/* Hero (HOME) */
.hero {
  position: relative;
  padding: 96px 0 64px;
  background:
    linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)),
    url("assets/truck-bg.png") center right no-repeat;
  background-size: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

/* Sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section.alt {
  background: #1e1e1e;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

/* Layout */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Boxes */
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.box h3 { margin-top: 0; }

.contact-box div { margin: 8px 0; }

.small { color: var(--muted); }
.tiny { color: var(--muted); font-size: 12px; }

/* Forms */
label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  background: #1c1c1c;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-top: 6px;
}

textarea { min-height: 120px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: #1c1c1c;
}

/* ✅ Application page: form + truck side-by-side */
.application-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.application-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;

  /* 🔆 Brightness */
  filter: brightness(3) contrast(2.8);

  /* smoother look */
  image-rendering: auto;
}

.application-image {
  transform: translateX(-50px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }

  .hero {
    background-position: center;
    background-size: cover;
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .application-image img {
    max-height: 320px;
    margin-top: 20px;
  }

  .application-image {
    transform: none;
  }
}