/* ============================================================
   JJLC LOGISTICS PHILS CORP. — Website Stylesheet
   Formal business theme: charcoal navy + gold, Barlow type.
   Edit colors at the top if you want to match your brand.
   ============================================================ */

:root {
  --navy:        #10161d;   /* deep charcoal navy  */
  --navy-2:      #1b242e;   /* lighter navy panel  */
  --navy-3:      #253545;   /* card navy           */
  --gold:        #c9a227;   /* primary gold        */
  --gold-dark:   #a8861b;   /* gold hover          */
  --paper:       #f5f4f0;   /* light section bg    */
  --white:       #ffffff;
  --text:        #232a31;   /* body text           */
  --muted:       #5b6670;
  --line:        #e3e0d8;   /* hairline borders    */
  --radius:      8px;
  --shadow:      0 10px 30px rgba(16, 22, 29, .10);
  --font-head:   "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:   "Barlow", "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.container { width: min(1140px, 92%); margin-inline: auto; }
strong { font-weight: 600; }

/* Placeholder helper — things you still need to fill in.
   After replacing a value, delete the [brackets] and this span. */
.ph {
  border-bottom: 1px dashed var(--gold-dark);
  color: var(--gold-dark);
  font-style: italic;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-sm { padding: .6rem 1.15rem; font-size: .95rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfd6dd; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold); }
.topbar-contact { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.topbar-sep { opacity: .4; }
.topbar-links { display: flex; gap: 1.2rem; align-items: center; }
.topbar-apply { color: var(--gold); font-weight: 600; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; gap: 1rem; }
.brand-logo { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: .3rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold-dark); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-road { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-inner { position: relative; padding: 7rem 0 9.5rem; max-width: 780px; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; font-size: .9rem; color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow.dark { color: var(--gold-dark); }
.hero h1 { font-size: clamp(2.9rem, 6.5vw, 4.6rem); color: var(--white); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1.2rem; }
.gold-text { color: var(--gold); }
.hero-sub { font-size: 1.18rem; color: #c8d0d8; max-width: 620px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.stats-bar { background: var(--navy-2); border-top: 1px solid rgba(201,162,39,.35); position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-num.stat-wide { font-size: 1.55rem; letter-spacing: .03em; padding-top: .55rem; }
.stat-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #b9c2cb; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-paper { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-lead { color: var(--muted); margin-top: .9rem; font-size: 1.08rem; }
.section-dark .section-lead { color: #b9c2cb; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.about-story > p { margin-bottom: 1.1rem; }
.vm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.8rem; }
.vm-card {
  background: var(--paper); border-left: 4px solid var(--gold);
  padding: 1.4rem 1.4rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.vm-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--gold-dark); }
.vm-card p { font-size: .95rem; }

.about-side { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.snapshot-card, .values-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; background: var(--white); box-shadow: var(--shadow);
}
.snapshot-card h3, .values-card h3 { margin-bottom: 1rem; color: var(--gold-dark); }
.snapshot-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.snapshot-list div:last-child { border-bottom: none; }
.snapshot-list dt { font-weight: 600; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.snapshot-list dd { text-align: right; font-weight: 500; }
.values-list li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.values-list li:last-child { border-bottom: none; }

.trusted { margin-top: 4rem; text-align: center; border-top: 1px solid var(--line); padding-top: 2.6rem; }
.trusted-label { font-family: var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem; }
.trusted-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.6rem; }
.trusted-logos span {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--navy-3); opacity: .75;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 2rem 1.6rem;
  transition: transform .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--white); margin-bottom: .7rem; }
.service-card p { color: #b9c2cb; font-size: .98rem; }

/* ---------- Fleet ---------- */
.fleet-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.fleet-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.fleet-table th {
  background: var(--navy); color: var(--gold); text-align: left;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  padding: 1rem 1.4rem; font-size: 1rem;
}
.fleet-table td { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.fleet-table .num { text-align: center; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.fleet-table tbody tr:nth-child(even) { background: var(--paper); }
.fleet-total td { background: var(--navy); color: var(--white); border-bottom: none; font-size: 1.05rem; }
.fleet-total .num { color: var(--gold); font-size: 1.6rem; }
.fleet-note h3 { color: var(--gold-dark); margin-bottom: .8rem; }
.fleet-note p { color: var(--muted); margin-bottom: 1.2rem; }
.fleet-note ul li { padding: .35rem 0 .35rem 1.5rem; position: relative; }
.fleet-note ul li::before { content: "✓"; color: var(--gold-dark); position: absolute; left: 0; font-weight: 700; }

/* ---------- Careers ---------- */
.jobs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.job-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.job-card h3 { color: var(--gold-dark); margin-bottom: .3rem; }
.job-type { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.job-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; font-size: .97rem; }
.job-list li::before { content: "•"; color: var(--gold-dark); font-weight: 700; position: absolute; left: 0; }

.req-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.req-card {
  background: var(--navy); color: #dfe5ea; border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
}
.req-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(201,162,39,.15);
}
.req-card h3 { color: var(--white); margin-bottom: 1rem; }
.req-card p { color: #b9c2cb; margin-bottom: 1.2rem; font-size: .98rem; }
.check-list { margin-bottom: 1.4rem; }
.check-list li { padding: .32rem 0 .32rem 1.5rem; position: relative; font-size: .97rem; }
.check-list li::before { content: "☐"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }

/* ---------- Online application form ---------- */
.apply-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.4rem; max-width: 860px; margin: 0 auto;
}
.apply-head { text-align: center; margin-bottom: 1.8rem; }
.apply-head h3 { color: var(--gold-dark); font-size: 1.6rem; margin-bottom: .4rem; }
.apply-head p { color: var(--muted); font-size: .98rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .7rem .85rem; border: 1px solid #cfccc4; border-radius: 6px;
  background: var(--white); color: var(--text); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.field input.invalid, .field select.invalid { border-color: #c0392b; }
.field-hint { color: var(--muted); font-size: .82rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .8rem; color: var(--muted); margin: 1.2rem 0 .8rem; }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { font-weight: 600; font-size: .95rem; }
.form-status.error { color: #c0392b; }
.form-status.success { color: #1e7d3c; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1.2rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  background: var(--white); box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--gold-dark); font-size: 1.15rem; margin-bottom: .6rem; }
.contact-card p { font-size: .98rem; }
.contact-list li { padding: .35rem 0; font-size: .98rem; }
.contact-list li strong { color: var(--navy); }
.contact-form-wrap {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  background: var(--white); box-shadow: var(--shadow);
}
.contact-form-wrap h3 { color: var(--gold-dark); margin-bottom: 1.3rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aeb8c1; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding: 4rem 0 2.5rem;
}
.footer-logo-chip {
  display: inline-block; background: #ffffff; border-radius: 10px;
  padding: 8px 12px; margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.footer-logo { height: 56px; width: auto; margin-bottom: 0; }
.footer-brand p { font-size: .93rem; max-width: 300px; }
.footer h4 {
  color: var(--gold); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1rem; margin-bottom: 1.1rem;
}
.footer-col li { padding: .3rem 0; font-size: .93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem 0; font-size: .85rem; color: #7d8894;
}

/* ---------- Reveal-on-scroll animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .about-grid, .fleet-layout, .contact-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* backdrop-filter makes .navbar the containing block for position:fixed
     children, collapsing the drawer's white background to navbar height.
     Disable it at the breakpoint where the drawer exists. */
  .navbar { backdrop-filter: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw);
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.4rem; box-shadow: -10px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .3s ease; z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 210; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-cta { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .stat { border-right: none; }
  .jobs-grid, .req-downloads, .vm-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 5rem 0 7rem; }
  .section { padding: 4rem 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
