/*
Theme Name: EMLO Transportation
Description: Custom lean 5-page theme for EMLO Transportation LLC — carrier + back-office services for owner-operators.
Author: EMLO Transportation
Version: 3.0.0
Text Domain: emlo
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --ink: #0B1F3A;
  --ink-deep: #071527;
  --amber: #FF5B14;
  --amber-deep: #C74710;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --grey-ink: #48566A;
  --grey-lede: #C9D3DE;
  --line: #DEE3E9;
  --tint: #FCF3E9;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 12px;
  --max: 1120px;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.4rem); }
p { margin: 0 0 1em; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(3.25rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.25rem) 0; }
.section--ink { background: var(--ink); color: var(--grey-lede); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: var(--grey-lede); }
.section--amber { background: var(--amber); color: #402408; }
.section--amber h1, .section--amber h2, .section--amber h3 { color: #2C1400; }
.section--amber p { color: #4A2C10; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(11,31,58,0.16); }
.btn--amber { background: var(--amber); color: #171008; }
.btn--amber:hover { background: var(--amber-deep); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-deep); }
.btn--outline-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(11,31,58,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.site-logo img { max-height: 44px; width: auto; display: block; }

.primary-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5em 0.8em;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.primary-nav__toggle .bar { display: block; width: 20px; height: 2px; background: var(--ink); margin: 3px 0; }

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(7,21,39,0.08);
}
.primary-nav.is-open { display: block; }
.primary-nav ul { display: flex; flex-direction: column; padding: 0.5rem 0; }
.primary-nav a {
  display: block;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid var(--paper);
}
.primary-nav a:not(.btn):hover { background: var(--paper); text-decoration: none; }
.primary-nav .btn { margin: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1rem; justify-content: center; }

@media (min-width: 768px) {
  .primary-nav__toggle { display: none; }
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: static;
    border: none;
    box-shadow: none;
    background: none;
  }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 1.75rem; }
  .primary-nav a { padding: 0; border-top: none; font-size: 0.92rem; }
  .primary-nav .btn { margin: 0; padding: 0.6em 1.2em; font-size: 0.9rem; }
  .site-header__bar { gap: 2rem; }
}

/* ==========================================================================
   TRUST BADGE — clean pill, used in the hero and on the Freight page
   ========================================================================== */
.placard {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
}
.placard .dot { color: rgba(255,255,255,0.5); }

/* ==========================================================================
   HERO — full-bleed real photography, not an illustrated panel
   ========================================================================== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero__inner { width: 100%; padding: 2.5rem 0 2.75rem; }
.hero__copy { max-width: 46ch; }
.hero__lede { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--grey-lede); max-width: 40ch; }
.hero .placard { margin-bottom: 1.1rem; }
@media (min-width: 768px) { .hero { min-height: 560px; } }

/* Trust strip — real capabilities, not invented stats */
.trust-strip { background: var(--ink); }
.trust-strip__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.5rem 0;
}
.trust-stat { display: flex; align-items: center; gap: 0.75rem; text-align: left; }
.trust-stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--amber); line-height: 1.2; }
.trust-stat span { font-size: 0.78rem; color: var(--grey-lede); letter-spacing: 0.01em; }
.trust-stat__icon { display: block; flex-shrink: 0; width: 30px; height: 30px; color: var(--amber); }
.trust-stat__icon svg { width: 100%; height: 100%; display: block; }

/* Pay stats — big figures for the driver posting, more prominent than trust-stat */
.pay-stats { display: grid; gap: 1.75rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .pay-stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.pay-stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.75rem); color: var(--amber-deep); line-height: 1; margin-bottom: 0.35em; }
.pay-stat span { color: var(--grey-ink); font-size: 0.92rem; }

.accent-tick {
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--amber);
  margin-bottom: 0.9rem;
}

/* ==========================================================================
   TEASERS (Home: Freight / Services)
   ========================================================================== */
.teasers { display: grid; gap: clamp(1.5rem, 4vw, 2rem); }
@media (min-width: 768px) { .teasers { grid-template-columns: 1fr 1fr; } }
.teaser {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.4rem);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(11,31,58,0.06);
}
.teaser__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber-deep);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.6em;
}
.teaser h3 { margin-bottom: 0.4em; }
.teaser p { color: var(--grey-ink); }
.teaser a.more { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.teaser a.more:hover { color: var(--amber-deep); }

/* ==========================================================================
   SERVICES — manifest list (order is meaningful, so numbering is earned)
   ========================================================================== */
.manifest { border-top: 1px solid var(--line); }
.manifest-row {
  display: flex;
  gap: clamp(1.1rem, 3vw, 1.75rem);
  padding: clamp(1.4rem, 3.5vw, 1.85rem) 0;
  border-bottom: 1px solid var(--line);
}
.manifest-row__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #B7C0CC;
  width: 2.2rem;
  flex-shrink: 0;
}
.manifest-row__body h3 { font-size: 1.05rem; margin-bottom: 0.35em; display: flex; align-items: center; gap: 0.55rem; }
.manifest-row__body p { color: var(--grey-ink); margin-bottom: 0; font-size: 0.98rem; }
.manifest-row__icon { width: 19px; height: 19px; color: var(--grey-ink); flex-shrink: 0; opacity: 0.8; }
.manifest-row__icon svg { width: 100%; height: 100%; }
.manifest-row--lead .manifest-row__icon { color: var(--amber); opacity: 1; width: 22px; height: 22px; }

.manifest-row--lead {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2rem);
  box-shadow: 0 2px 10px rgba(11,31,58,0.07);
}
.manifest-row--lead .manifest-row__num { color: var(--amber); }
.manifest-row--lead .manifest-row__body h3 { font-size: 1.2rem; }
.manifest-tag {
  display: inline-block;
  background: #FCE3D2;
  color: var(--amber-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.5em;
}

.pain-headline { max-width: 40ch; }

.manifest-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}
.manifest-close p { color: var(--ink); margin: 0; font-size: 1.02rem; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.step p { color: var(--grey-ink); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding: clamp(1.4rem, 3.5vw, 1.75rem) 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.35em; }
.faq-item p { color: var(--grey-ink); margin: 0; font-size: 0.98rem; }

/* ==========================================================================
   PHOTO — full-width real photography, clean presentation
   ========================================================================== */
.photo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.75rem 0;
  box-shadow: 0 2px 10px rgba(11,31,58,0.08);
}
.photo-frame img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.photo-frame:hover img { transform: scale(1.045); }

/* Media row — pairs a photo with text side by side instead of floating alone */
.media-row { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 800px) { .media-row { grid-template-columns: 1fr 1fr; } }
.media-row .photo-frame { margin: 0; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--amber-deep);
  background: var(--tint);
  border-radius: var(--radius);
  color: var(--amber-deep);
  text-align: center;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.photo-placeholder__icon { width: 88px; opacity: 0.5; }
.photo-placeholder__icon svg { width: 100%; height: auto; }
.photo-placeholder__label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; max-width: 28ch; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-content { max-width: 66ch; }
.about-content p { font-size: 1.02rem; color: var(--grey-ink); }

.about-lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--ink);
  font-weight: 500;
  max-width: 52ch;
}

.about-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .about-layout { grid-template-columns: 1.6fr 1fr; } }

.quote-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.quote-card p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
  max-width: none;
}
.quote-card span { display: block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--grey-lede); }

.pull-quote-band { background: var(--ink); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--white);
  max-width: 30ch;
  margin: 0 0 1.1rem;
}
.pull-quote__attr { display: block; font-size: 0.85rem; color: var(--grey-lede); }

.value-list { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .value-list { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; } }
@media (min-width: 640px) { .value-list--3col { grid-template-columns: repeat(3, 1fr); } }
.value-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.value-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FCE3D2;
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}
.value-item__icon svg { width: 100%; height: 100%; display: block; }
.value-item p { margin: 0; font-size: 0.98rem; color: var(--grey-ink); padding-top: 0.4rem; }

.leader-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 2px 8px rgba(11,31,58,0.06);
}
@media (min-width: 640px) { .leader-card { grid-template-columns: 140px 1fr; } }
.leader-card .photo-placeholder { margin: 0; aspect-ratio: 1 / 1; }
.leader-card .photo-placeholder__icon { width: 48px; }
.leader-card h3 { margin-bottom: 0.2em; }
.leader-card .leader-title { color: var(--amber-deep); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6em; display: block; }
.leader-card p { color: var(--grey-ink); margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 2px 8px rgba(11,31,58,0.06);
}
.contact-info dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.9rem; margin-top: 1.25rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.2em 0 0; color: var(--grey-ink); font-size: 1.02rem; }
.contact-info dd a { color: var(--ink); font-weight: 600; }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35em; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus { background: var(--white); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; top: -9999px; }
.form-field input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85em 0.9em;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* Job listings */
.job-list { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .job-list { grid-template-columns: 1fr 1fr; } }
.job-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(11,31,58,0.06);
  display: flex;
  flex-direction: column;
}
.job-card h2 { font-size: 1.3rem; margin-bottom: 0.5em; }
.job-card p { color: var(--grey-ink); margin-bottom: 1.5rem; flex-grow: 1; }
.job-card .btn { align-self: flex-start; }

.form-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.form-notice--success { background: #E9F6EE; color: #1D7A46; border: 1px solid #BFE6CE; }
.form-notice--error { background: #FDEEEE; color: #B3261E; border: 1px solid #F3C6C4; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink-deep);
  color: var(--grey-lede);
  border-top: 3px solid var(--amber);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(5.5rem, 8vw, 3.5rem);
}
@media (min-width: 768px) { .site-footer { padding-bottom: 3.5rem; } }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer address { font-style: normal; color: var(--grey-lede); line-height: 1.7; }
.site-footer a { color: var(--grey-lede); }
.footer-heading { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 0.95rem; margin-bottom: 0.7em; }
.footer-links li { margin-bottom: 0.5em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(201,211,222,0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ==========================================================================
   STICKY MOBILE CALL BAR
   ========================================================================== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px rgba(7,21,39,0.12);
}
.mobile-cta-bar a { text-align: center; padding: 0.95rem 0.5rem; font-weight: 700; font-family: var(--font-body); text-decoration: none; }
.mobile-cta-bar .call { background: var(--ink); color: var(--white); }
.mobile-cta-bar .book { background: var(--amber); color: #171008; }
@media (min-width: 768px) { .mobile-cta-bar { display: none; } }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
