:root {
  --bg: #0b0f16;
  --panel: #101827;
  --text: #eef2ff;
  --muted: #b7c0d6;
  --card: #0f172a;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #22c55e;
  --accent-2: #16a34a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keeps anchored sections visible under sticky header */
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 22, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #07130b;
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

/* Better accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.8);
  outline-offset: 2px;
  border-radius: 10px;
}

/* HERO */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(34, 197, 94, 0.15), transparent 60%),
    radial-gradient(700px 350px at 80% 20%, rgba(99, 102, 241, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.hero p {
  margin: 0 auto 18px;
  color: var(--muted);
  max-width: 650px;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SECTIONS */
.section {
  padding: 56px 0;
}

.section.light {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-top: 1px solid var(--border);
}

h2 {
  text-align: center;
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.center {
  text-align: center;
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

/* GRID + CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

/* Contact page grid (2 columns on desktop) */
.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.65);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* PRICING LIST */
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 18px auto 0;
  max-width: 520px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.pricing-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

/* FORM */
.quote-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quote-form textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(183, 192, 214, 0.75);
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.form-note {
  text-align: center;
  color: var(--muted);
  margin: 14px 0 0;
}

/* FOOTER */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

/* HERO GRAPHIC (pure CSS, lightweight) */
.hero-graphic {
  width: 170px;
  height: 90px;
  margin: 0 auto 18px;
  position: relative;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.35));
  animation: floaty 3.2s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.truck {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 110px;
  height: 46px;
  animation: truck-nudge 2.6s ease-in-out infinite;
}

@keyframes truck-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.truck .cab {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 36px;
  height: 24px;
  border-radius: 10px 6px 8px 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}

.truck .bed {
  position: absolute;
  left: 34px;
  bottom: 10px;
  width: 74px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}

.truck .wheel {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
}

.truck .wheel::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(34,197,94,0.25);
}

.truck .wheel.w1 { left: 18px; }
.truck .wheel.w2 { left: 78px; }

.box {
  position: absolute;
  right: 16px;
  bottom: 22px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(34,197,94,0.18);
  border: 1px solid rgba(34,197,94,0.35);
  animation: box-bounce 2.2s ease-in-out infinite;
}

.box.b2 {
  right: 42px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  opacity: 0.9;
  animation-delay: 0.25s;
}

@keyframes box-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}

/* HAMBURGER + MOBILE MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  display: block;
}

/* Dropdown container (hidden by default) */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 22, 0.92);
  backdrop-filter: blur(10px);
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.04);
}

/* When open */
.mobile-menu.open {
  display: block;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.logo-one {
  color: var(--text);
  font-size: 1.1rem;
}

.logo-way {
  color: var(--accent);
  font-size: 1.1rem;
}

.logo-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transform: translateY(-1px);
}

.logo-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-left: 4px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }

  /* Contact page: force single column */
  .contact-grid { grid-template-columns: 1fr; }

  /* Prevent iPhone zoom + improve form spacing */
  .quote-form input,
  .quote-form textarea {
    font-size: 16px;
  }

  /* Full-width form button on mobile */
  .quote-form .btn {
    width: 100%;
  }

  .nav-links { display: none; }

  .hamburger {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu a {
    padding: 15px 16px;
  }

  .logo-mark {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    line-height: 1.1;
  }

  .logo-one,
  .logo-way {
    font-size: 0.95rem;
  }

  .logo-arrow {
    font-size: 1rem;
  }

  .logo-sub {
    font-size: 0.5rem;
    letter-spacing: 1px;
    margin-left: 0;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
