/* ===========================
   JWA Logistics – Modern Theme
   =========================== */

:root {
  --bg-main: #ffffff;
  --bg-alt: #e6eaf0;
  --bg-card: #ffffff;
  --bg-header: rgba(11, 15, 23, 0.92);
  --bg-footer: #0b0f17;

  --text-main: #0b0f17;
  --text-muted: #5b6474;
  --text-inverse: #ffffff;

  --accent: #1f6feb;
  --accent-hover: #1657c8;

  --border-subtle: #dde3ed;

  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);

  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* Layout helpers */

.page-bg {
  background: radial-gradient(circle at top left, #e6eaf0 0, transparent 55%),
    radial-gradient(circle at bottom right, #e6eaf0 0, transparent 55%),
    #ffffff;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: var(--bg-alt);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ====================
   Header / Navigation
   ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.86); /* more transparent */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.7rem;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-name {
  color: var(--text-inverse);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.88rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover,
.nav-link--active {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  margin-block: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ====================
   Buttons / Links
   ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(22, 87, 200, 0.45);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(22, 87, 200, 0.55);
}

/* Secondary hero button – outline blue on light background */
.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn--outline-dark {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--full {
  width: 100%;
}

/* ====================
   Hero – Home
   ==================== */

/* Hero with direct truck background */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: var(--text-main);
  background: url("hero-jwa-truck.jpg") center center / cover no-repeat #f4f7fb;
  overflow: hidden;
}

/* Soft overlay so text is easier to read over the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(244, 247, 251, 0.55),
    rgba(244, 247, 251, 0.45),
    rgba(255, 255, 255, 0.7)
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3.4vw, 3rem);
  margin: 0 0 0.4rem;
  color: var(--text-main);
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-subcopy {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  max-width: 32rem;
  color: var(--text-muted);
}


.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.8rem;
  font-size: 0.78rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}

.hero-meta-value {
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-side-card {
  background: rgba(11, 15, 23, 0.9);
  color: var(--text-inverse);   /* ← add this line */
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


.hero-side-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.hero-side-card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.77);
}

.hero-side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.hero-side-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.hero-side-list i {
  color: var(--accent);
  margin-top: 0.12rem;
}

/* ====================
   Cards & grids
   ==================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Dispatch / generic feature rows */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Tables (for dispatch page) */

.table-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #f5f7fb;
}

.table-row,
.table-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

.table-head {
  background: #e2e6f0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #444b58;
}

.table-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.7);
}

/* Forms */

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.form-field label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(31, 111, 235, 0.25);
  background: #f8fbff;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-status {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

/* ====================
   Footer
   ==================== */

.site-footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.3rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-company {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.footer-domain {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Footer logo + layout polish */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.footer-logo {
  height: 32px;
  max-width: 140px;
  display: block;
  width: auto !important;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.footer-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* Footer social layout */
.footer-social {
  display: flex;
  gap: 0.5rem;
}

/* The circles */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  text-decoration: none;
}

/* SVG icons inside the circles */
.social-link svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ====================
   Responsive
   ==================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    margin-top: 1.5rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: fixed;
    inset: 4rem 1.2rem auto 1.2rem;
    flex-direction: column;
    background: var(--bg-header);
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 80vh;
  }

  .hero-inner {
    padding-top: 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

/* Desktop hero spacing / balance */
@media (min-width: 1100px) {
  .hero-inner {
    gap: 2rem;                 /* was 2.5rem */
    padding: 3rem 0 4rem;      /* slightly less top padding */
  }

  /* Keep hero content from getting too wide on big monitors */
  .hero .container {
    max-width: 1120px;         /* narrower, more Crete-style */
  }
}

/* ==========================
   Page Hero (inner pages)
   ========================== */

/* Shared top section style for Dispatch, Future & Contact */
.page-hero {
  background: linear-gradient(to bottom, #f4f7fb, #ffffff);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .section-header {
  margin-bottom: 2.1rem;
}

.page-hero .section-header h2 {
  font-size: clamp(2rem, 2.6vw, 2.4rem);
}

.page-hero .section-header p {
  font-size: 0.95rem;
}

/* Layout polish on larger screens */
@media (min-width: 1000px) {
  .page-hero .split-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: flex-start;
  }

  .page-hero .card,
  .page-hero .form-card {
    box-shadow: var(--shadow-soft);
  }
}

/* Dispatch page accent */
.page-hero--dispatch .card {
  border-left: 3px solid var(--accent);
}

/* Future Plans accent */
.page-hero--future .card-grid .card:first-child {
  border-top: 3px solid var(--accent);
}

/* Contact page accent */
.page-hero--contact .form-card {
  border-top: 3px solid var(--accent);
}
