/* Fleet Ready Logistics — styles.css */

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

:root {
  --black: #1A1A1A;
  --orange: #F5A623;
  --orange-dark: #D4891A;
  --white: #FFFFFF;
  --gray-bg: #F8F8F8;
  --text-secondary: #555555;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ===== LANGUAGE TOGGLE ===== */
body.lang-en  .es { display: none; }
body.lang-es  .en { display: none; }
body:not(.lang-en):not(.lang-es) .es { display: none; } /* default EN */

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn-orange {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-ghost-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.lang-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.hamburger:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
#mobile-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ===== NAV ===== */
#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0 5%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  transition: box-shadow 0.2s;
}
#nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

.nav-logo {
  height: 160px;
  width: 160px;
  object-fit: contain;
  margin: -25px 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--black);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

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

.lang-toggle {
  background: none;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font);
  letter-spacing: 0.03em;
}
.lang-toggle:hover {
  background: var(--black);
  color: var(--white);
}

.nav-apply { font-size: 0.9rem; padding: 10px 22px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
#mobile-menu.open { display: flex; }

#mobile-menu .mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
#mobile-menu .mobile-nav-links a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}
#mobile-menu .mobile-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#mobile-close {
  position: absolute;
  top: 20px;
  right: 5%;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--black);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/6868160/pexels-photo-6868160.jpeg?auto=compress&cs=tinysrgb&w=1800');
  background-size: cover;
  background-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.78) 50%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 5%;
  max-width: 720px;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== STATS BAR ===== */
#stats {
  background: var(--black);
  padding: 40px 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stats-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1100px;
}

.stat-item {
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTION SHARED ===== */
section { padding: 96px 5%; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ===== ABOUT ===== */
#about {
  background: var(--gray-bg);
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-wrap: pretty;
  margin-bottom: 28px;
}

.amazon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amazon-badge::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BENEFITS ===== */
#benefits {
  background: var(--white);
}

/* Benefits top: text left, image right */
.benefits-top {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.benefits-top-text { }
.benefits-top-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefits-top-image img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* Pillar icons row — centered */
.benefits-pillars {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin: 0 auto 48px;
  max-width: 1100px;
}
.pillar { display: flex; flex-direction: column; align-items: center; }
.pillar-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.pillar-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--orange);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.pillar-label {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--gray-bg);
  border-radius: 8px;
  padding: 40px;
  border-left: 4px solid var(--orange);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
#how-it-works {
  background: var(--black);
  color: var(--white);
}

#how-it-works .section-sub { color: rgba(255,255,255,0.65); }

.steps-header { max-width: 1100px; margin: 0 auto 56px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: var(--orange);
  opacity: 0.4;
}

.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ===== OPEN POSITION ===== */
#apply {
  background: var(--gray-bg);
}

.apply-inner {
  max-width: 760px;
  margin: 0 auto;
}

.job-card {
  background: var(--white);
  border-radius: 10px;
  padding: 52px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  border-top: 5px solid var(--orange);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  gap: 16px;
}

.job-title { font-size: 1.7rem; font-weight: 900; }
.job-location { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

.job-type-badge {
  background: var(--gray-bg);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.job-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.job-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-secondary);
}

.job-detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.job-requirements h4 {
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.job-requirements ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.job-requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.job-requirements li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--orange);
  color: var(--black);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.job-cta-meta p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-orange-lg {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* ===== MOBILE STICKY CTA ===== */
#mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 16px;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
}

.mobile-sticky-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 15px;
}

/* ===== FAQ ===== */
#faq {
  background: var(--white);
}

.faq-inner {
  max-width: 960px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-item {
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-item:nth-child(even) {
  padding-left: 40px;
  padding-right: 0;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.faq-q {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-wrap: pretty;
}

.faq-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.faq-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
#footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 5% 40px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 0;
}

.footer-logo { height: 56px; margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  line-height: 1.5;
}

.footer-contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-email {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-email:hover { text-decoration: underline; }

.footer-phone {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-phone:hover { color: var(--white); }

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--orange); }

.footer-links-col { padding-top: 0; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 36px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  max-width: 420px;
  text-align: right;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-apply { display: none; }
  #mobile-sticky-cta { display: block; }

  /* Logo on tablet/mobile */
  #nav { height: 72px; overflow: visible; }
  .nav-logo { height: 120px; width: 120px; margin: -24px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 280px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-5 .stat-item:nth-child(5) { grid-column: 1 / -1; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item { padding: 12px 8px; }
  /* Prevent long stat words from overflowing */
  .stat-number { font-size: clamp(1.1rem, 4.5vw, 2rem) !important; }
  .stat-label { font-size: 0.65rem; }

  .benefits-top { grid-template-columns: 1fr; gap: 32px; }
  .benefits-top-image img { max-height: 300px; }
  .benefits-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps-grid::before { display: none; }

  .job-card { padding: 36px 28px; }
  .job-card-header { flex-direction: column; }
  .job-details { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-item:nth-child(even) { padding-left: 0; border-left: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  section { padding: 60px 5%; }
  #footer { padding-bottom: 80px; }

  /* Nav: compact on phone */
  #nav { height: 64px; padding: 0 4%; overflow: visible; }
  .nav-logo { height: 104px; width: 104px; margin: -20px 0; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .faq-cta { flex-direction: column; align-items: flex-start; }
  .faq-item { padding: 28px 0; }
  .faq-item:nth-child(even) { padding-left: 0; }
  .footer-disclaimer { text-align: left; }

  #pw-gate img { width: 110px; height: 110px; }
  #pw-gate input, #pw-gate button { width: min(280px, 88vw); }

  /* Stats: compact on phone */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid-5 {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }
  .stats-grid-5 .stat-item { padding: 10px 6px; border-right: none; }
  .stats-grid-5 .stat-item:nth-child(1) { grid-column: 1 / 4; }
  .stats-grid-5 .stat-item:nth-child(2) { grid-column: 4 / 7; }
  .stats-grid-5 .stat-item:nth-child(3) { grid-column: 1 / 3; }
  .stats-grid-5 .stat-item:nth-child(4) { grid-column: 3 / 5; }
  .stats-grid-5 .stat-item:nth-child(5) { grid-column: 5 / 7; }
  .stats-grid-5 .stat-number { font-size: clamp(0.95rem, 4vw, 1.4rem) !important; }
  .stats-grid-5 .stat-label { font-size: 0.58rem; }
  #stats { padding: 20px 3%; }

  .steps-grid { grid-template-columns: 1fr; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  .job-cta { flex-direction: column; align-items: flex-start; }
  .job-cta .btn { width: 100%; text-align: center; }

  .benefit-card { padding: 24px 20px; }
  .benefits-pillars { gap: 24px; margin-top: 36px; }
  .pillar-icon { width: 56px; height: 56px; }
  .pillar-icon svg { width: 28px; height: 28px; }
  .pillar-label { font-size: 0.72rem; margin-top: 10px; }

  /* Job card tighter on phone */
  .job-card { padding: 28px 20px; }

  /* Footer logo smaller */
  .footer-logo { height: 44px; }
}
