/* ============================================
   JAP Trucking — Main Stylesheet
   style.css
   ============================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1f3c;
  --navy-mid: #162d52;
  --navy-light: #1e3d6e;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --accent: #ADD8E6;
  --text-muted: #6b7a91;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* add this */
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 70px;
  background: rgba(13, 31, 60, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,168,75,0.2);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
#home {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #b0bec5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── To swap in your real truck photo, replace .hero-bg-placeholder
      with: <img src="images/truck.jpg" style="width:100%;height:100%;object-fit:cover;">
      and remove the .hero-bg-placeholder block below ── */
.hero-bg-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #c9d6df 0%, #8fa8c0 50%, #6b8caa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.truck-icon { opacity: 0.18; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,31,60,0.72) 0%,
    rgba(13,31,60,0.55) 50%,
    rgba(13,31,60,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 30px;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid rgba(200,168,75,0.4);
  padding: 6px 16px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .hero-eyebrow {
    margin-top: 70px; /* matches navbar height */
  }
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title span { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent);
  padding: 14px 36px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: #dbbf5e; transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-hint svg { opacity: 0.5; }

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
section { padding: 100px 60px; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 20px;
}
.section-divider {
  width: 48px; height: 3px;
  background: var(--accent);
  margin-bottom: 28px;
}

/* ============================================
   ABOUT
   ============================================ */
#about { background: var(--off-white); }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  font-weight: 300;
  color: #3d4f66;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 28px 24px;
  border-radius: 2px;
}
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 400;
}

/* ============================================
   SERVICES
   ============================================ */
#services { background: var(--white); }

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: background 0.25s;
  cursor: default;
}
.service-card:hover { background: var(--navy); }
.service-card:hover .service-name,
.service-card:hover .service-desc { color: var(--white); }
.service-card:hover .service-icon { color: var(--accent); }
.service-card:hover .service-num { color: rgba(255,255,255,0.15); }

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.service-icon {
  font-size: 2rem;
  color: var(--navy-light);
  transition: color 0.25s;
}
.service-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--off-white);
  line-height: 1;
  transition: color 0.25s;
}
.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  transition: color 0.25s;
}
.service-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  transition: color 0.25s;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  background: var(--navy);
  text-align: center;
}
#contact .section-label { color: var(--accent); }
#contact .section-title { color: var(--white); }
#contact .section-divider { margin: 0 auto 28px; }

.contact-note {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-placeholder {
  max-width: 600px;
  margin: 0 auto;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 60px 40px;
  color: rgba(255,255,255,0.3);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #08111f;
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-logo span { color: var(--accent); opacity: 0.7; }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  section { padding: 70px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 24px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px;
    gap: 20px;
    border-top: 1px solid rgba(200,168,75,0.2);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* Response messages */
#formResponse {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 16px;
  border-radius: 3px;
  display: none;
}
#formResponse:not(:empty) { display: block; }
 
.form-success {
  background: rgba(30, 160, 90, 0.15);
  border: 1px solid rgba(30, 160, 90, 0.35);
  color: #5cd98a;
}
.form-error {
  background: rgba(192, 32, 30, 0.15);
  border: 1px solid rgba(192, 32, 30, 0.35);
  color: #f07070;
}
 
/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-btn { width: 100%; text-align: center; }
}

/* ============================================
   CONTACT FORM
   ============================================ */
   .contact-inner {
    max-width: 640px;
    margin: 0 auto;
  }
  
  .contact-header {
    margin-bottom: 40px;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  
  label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
  }
  
  input, textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    padding: 12px 16px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
  }
  
  input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.25);
  }
  
  input:focus, textarea:focus {
    border-color: var(--accent);
  }
  
  textarea {
    resize: vertical;
    min-height: 130px;
  }
  
  .form-btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--accent);
    border: none;
    padding: 14px 40px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  
  .form-btn:hover {
    background: #9ac8d8;
    transform: translateY(-2px);
  }
  
  .form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  @media (max-width: 640px) {
    .form-group {
      width: 100%;
    }
  }