/* ================================================================
   JJ National Transport LLC — styles.css
   ===== EDIT: Colors defined as CSS variables below =====
================================================================ */

/* ----------------------------------------------------------------
   CSS Variables / Design Tokens
---------------------------------------------------------------- */
:root {
  /* ===== EDIT: Brand colors ===== */
  --navy:       #0d1f4a;
  --navy-dark:  #071232;
  --navy-mid:   #1a2e5a;
  --red:        #c0392b;
  --red-hover:  #a93226;
  --white:      #ffffff;
  --gray-50:    #f4f6f9;
  --gray-100:   #e8ecf2;
  --gray-300:   #c8d0e0;
  --gray-500:   #6b7a99;
  --gray-700:   #3a4561;
  --gray-900:   #1a2035;

  /* Typography */
  --font-sans:  'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-size-base: 1rem;

  /* Spacing */
  --section-gap: 5rem;
  --container-max: 1200px;
  --container-pad: 1.5rem;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13,31,74,0.08);
  --shadow-md: 0 4px 24px rgba(13,31,74,0.13);
  --shadow-lg: 0 8px 40px rgba(13,31,74,0.18);
  --shadow-card: 0 2px 16px rgba(13,31,74,0.10);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ----------------------------------------------------------------
   Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----------------------------------------------------------------
   Utility: Container
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ----------------------------------------------------------------
   Utility: Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 4px 16px rgba(192,57,43,0.30);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 6px 24px rgba(192,57,43,0.40);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.9rem 2.25rem; font-size: 1.05rem; }

/* ----------------------------------------------------------------
   Section Shared Styles
---------------------------------------------------------------- */
.section {
  padding-block: var(--section-gap);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-tag--light { color: var(--gray-300); }

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
}

.section-sub--light { color: var(--gray-300); }

/* ----------------------------------------------------------------
   HEADER / NAV
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.logo-jj {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover { background: rgba(255,255,255,0.1); }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* Open state */
.nav-toggle.open .hamburger       { background: transparent; }
.nav-toggle.open .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Dark gradient + trucking-feel background */
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy-mid)  40%,
    #1e3060         70%,
    #0a1528         100%
  );
  overflow: hidden;
}

/* Subtle diagonal stripe texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.018) 60px,
    rgba(255,255,255,0.018) 62px
  );
  pointer-events: none;
}

/* Red accent bar on the left */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--red);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(26,46,90,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 8rem 6rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.13;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------
   SERVICES
---------------------------------------------------------------- */
.services {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--red);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
.about {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-graphic {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
}

.truck-svg {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.about-badge {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.badge-num {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.badge-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content p {
  color: var(--gray-500);
  line-height: 1.75;
}

.highlight {
  color: var(--red);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.about-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.97rem;
}

.pillar-icon {
  color: var(--red);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ----------------------------------------------------------------
   WHY CHOOSE US
---------------------------------------------------------------- */
.why-us {
  background: var(--navy-dark);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(255,255,255,0.025) 79px,
    rgba(255,255,255,0.025) 80px
  );
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.why-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.why-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   QUOTE FORM
---------------------------------------------------------------- */
.quote-section {
  background: var(--gray-50);
}

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin-inline: auto;
  border: 1px solid var(--gray-100);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group--full {
  grid-column: 1 / -1;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.required { color: var(--red); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,31,74,0.08);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.83rem;
  color: var(--gray-500);
}

/* Success message */
.form-success {
  text-align: center;
  padding: 2rem;
  display: none;
}

.form-success h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------------
   CONTACT
---------------------------------------------------------------- */
.contact-section {
  background: var(--white);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.contact-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-inline: auto;
  margin-bottom: 1rem;
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.contact-link {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-all;
  transition: color var(--transition);
}

a.contact-link:hover { color: var(--red); }

.contact-note {
  font-size: 0.83rem;
  color: var(--gray-500);
  margin-top: 0.3rem;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  padding-block: 2.5rem;
  border-top: 3px solid var(--red);
}

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

.footer-tagline {
  font-size: 0.83rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.footer-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.footer-legal {
  text-align: right;
  font-size: 0.83rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.footer-domain {
  color: var(--gray-300);
  transition: color var(--transition);
}

.footer-domain:hover { color: var(--white); }

/* ----------------------------------------------------------------
   SCROLL REVEAL ANIMATION
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   RESPONSIVE — Tablet
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual { order: -1; }

  .about-graphic { padding: 2rem 1.5rem 1.5rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal { text-align: left; }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Mobile
---------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --section-gap: 3.5rem; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .hero-content { padding-block: 7rem 5rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }

  .quote-form {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .why-grid,
  .services-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-nav { justify-content: flex-start; }

  .about-badge {
    top: -1rem;
    right: -0.75rem;
    width: 75px;
    height: 75px;
  }

  .badge-num { font-size: 1.2rem; }
}

/* ----------------------------------------------------------------
   Focus visible accessibility
---------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   Reduced motion
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
