/* ═══════════════════════════════════════════════
   BACI TRANSPORT — style.css
   Colors from logo:
     Navy  : #152B5E
     Orange: #EA4E1B
     Green : #6ABF2E
     White : #FFFFFF
═══════════════════════════════════════════════ */

:root {
  --navy:   #152B5E;
  --orange: #EA4E1B;
  --green:  #6ABF2E;
  --white:  #FFFFFF;
  --light:  #F5F7FB;
  --dark-bg:#0E1E42;
  --text:   #1a1a2e;
  --muted:  #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(21,43,94,0.10);
  --shadow-lg: 0 12px 40px rgba(21,43,94,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Sections ── */
.section      { padding: 100px 0; }
.section-dark { background: var(--navy); }
.section-alt  { background: var(--light); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.04em; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 16px rgba(234,78,27,0.35);
}
.btn-primary:hover {
  background: #d03f0f; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234,78,27,0.45);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ── Section headings ── */
.section-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); background: rgba(234,78,27,0.1);
  padding: 6px 14px; border-radius: 4px; margin-bottom: 16px;
}
.section-tag.light { color: var(--green); background: rgba(106,191,46,0.12); }

.section-title {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem);
  font-weight: 900; line-height: 1.1; color: var(--navy); margin-bottom: 20px;
}
.section-title.light { color: var(--white); }
.section-sub  { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 16px; }
.section-header { text-align: center; margin-bottom: 60px; }

/* ─────────────────────────────── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo-img { height: 44px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-a {
  padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  color: var(--navy); transition: all var(--transition);
}
.nav-a:hover { background: var(--light); color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  padding: 7px 14px; border-radius: 6px; border: 1.5px solid var(--navy);
  font-weight: 700; font-size: 0.85rem; color: var(--navy);
  transition: all var(--transition);
}
.lang-btn:hover { background: var(--navy); color: var(--white); }

.nav-cta { padding: 10px 22px; font-size: 0.95rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  transition: all var(--transition); border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─────────────────────────────── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background: var(--white);
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(21,43,94,0.04) 0%, transparent 60%);
}

/* Decorative chevron arrows (orange, from logo) */
.hero-arrows { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.arr {
  width: 0; height: 0;
  border-top: 70px solid transparent;
  border-bottom: 70px solid transparent;
  border-left: 90px solid var(--orange);
  position: absolute;
}
.a1 { opacity: 0.08; top: -70px; right: 0; }
.a2 { opacity: 0.05; top: -70px; right: 80px; }
.a3 { opacity: 0.03; top: -70px; right: 160px; }

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 3px; background: var(--orange); border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.02;
  color: var(--navy); margin-bottom: 28px;
}
.hero-title span:last-child { color: var(--orange); }

.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 40px; line-height: 1.7; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats { display: flex; align-items: center; gap: 0; }
.stat-item  { display: flex; flex-direction: column; align-items: flex-start; padding: 0 28px 0 0; }
.stat-item:first-child { padding-left: 0; }
.stat-num   { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-lbl   { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.stat-div   { width: 1px; height: 48px; background: var(--border); margin: 0 28px 0 0; }

.hero-road {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 30%, var(--navy) 70%, transparent 100%);
  overflow: visible;
}
.road-truck {
  position: absolute;
  bottom: 10px;
  height: 60px;
  width: auto;
  animation: truck-drive 10s linear infinite;
}
@keyframes truck-drive {
  from { left: -120px; }
  to   { left: 110%; }
}

/* ─────────────────────────────── ABOUT ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 24px; font-size: 1.05rem; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; color: var(--text); font-size: 1rem;
}
.check-list li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.coverage-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.cc-hdr {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.1rem; margin-bottom: 24px; color: var(--navy);
}
.cc-hdr span { font-size: 2rem; }
.cc-countries { display: flex; flex-wrap: wrap; gap: 10px; }
.ccb {
  padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  background: var(--light); color: var(--navy); border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.ccb:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.ccb.home  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ccb.plus  { background: rgba(234,78,27,0.08); color: var(--orange); border-color: var(--orange); }

/* ─────────────────────────────── SERVICES ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.svc-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.25); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon { font-size: 2.5rem; margin-bottom: 20px; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.svc-card p  { color: rgba(255,255,255,0.65); line-height: 1.7; font-size: 0.95rem; }

/* ─────────────────────────────── QUOTE ─── */
.quote-section { background: var(--white); }

.quote-widget {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border); padding: 48px;
  box-shadow: var(--shadow-lg); max-width: 860px; margin: 0 auto;
}

.q-step { }
.q-step.hidden { display: none; }

.q-step-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 28px;
}
.q-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 900;
}

.route-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; margin-bottom: 24px;
}
.route-arrow { display: flex; align-items: center; justify-content: center; padding-bottom: 12px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-input {
  padding: 14px 16px; border-radius: 8px; font-size: 1rem;
  border: 2px solid var(--border); font-family: var(--font-body);
  color: var(--text); background: var(--light); transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--orange); background: var(--white); }
.form-input::placeholder { color: #a0aec0; }

.quick-routes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.qr-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.route-pill {
  padding: 7px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white); color: var(--navy);
  transition: all var(--transition); cursor: pointer;
}
.route-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.cargo-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.cargo-opt input { display: none; }
.cargo-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 28px; border-radius: var(--radius); border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition); min-width: 120px;
  background: var(--white);
}
.cargo-inner span { font-size: 2rem; }
.cargo-inner strong { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--navy); }
.cargo-inner small { font-size: 0.75rem; color: var(--muted); }
.cargo-opt input:checked + .cargo-inner {
  border-color: var(--orange); background: rgba(234,78,27,0.06);
  box-shadow: 0 0 0 3px rgba(234,78,27,0.12);
}
.cargo-opt:hover .cargo-inner { border-color: var(--navy); }

.btn-calc { margin-top: 2rem; min-width: 240px; }

.form-error {
  color: #e53e3e; font-size: 0.88rem; font-weight: 600;
  padding: 10px 14px; background: #fff5f5; border: 1px solid #fed7d7;
  border-radius: 6px; margin-bottom: 12px;
}
.form-error.hidden { display: none; }

/* Quote result box */
.quote-result {
  border-radius: var(--radius-lg); border: 2px solid var(--green);
  background: rgba(106,191,46,0.06); padding: 28px 32px;
}
.quote-result .qr-route {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
  color: var(--navy); margin-bottom: 12px;
}
.quote-result .qr-price {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--green);
}
.quote-result .qr-note { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

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

.form-actions { display: flex; gap: 16px; margin-top: 8px; }
.form-actions .btn-outline { color: var(--navy); border-color: var(--navy); }

/* Success state */
.form-success {
  text-align: center; padding: 48px 24px;
}
.form-success.hidden { display: none; }
.success-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-size: 2rem; font-weight: 900; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 24px;
  animation: pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 12px; }
.form-success p  { color: var(--muted); margin-bottom: 28px; }

/* ─────────────────────────────── CONTACT ─── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border); padding: 32px 24px;
  text-align: center; transition: all var(--transition);
  box-shadow: var(--shadow);
}
.contact-card:hover {
  transform: translateY(-6px); border-color: var(--orange);
  box-shadow: 0 12px 36px rgba(234,78,27,0.15);
}
.cc-ico { font-size: 2.4rem; margin-bottom: 8px; }
.contact-card h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.contact-card span { font-size: 0.95rem; color: var(--orange); font-weight: 600; }
.contact-card small { font-size: 0.82rem; color: var(--muted); }

/* ─────────────────────────────── FOOTER ─── */
.footer { background: var(--dark-bg); color: var(--white); padding: 64px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 42px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.6; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 4px;
}
.footer-col a, .footer-col span { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  text-align: center; padding: 20px 0;
  color: rgba(255,255,255,0.35); font-size: 0.82rem;
}

/* ─────────────────────────────── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay  { transition-delay: 0.15s; }
.reveal-delay-2{ transition-delay: 0.3s; }
.reveal-delay-3{ transition-delay: 0.45s; }

/* ─────────────────────────────── RESPONSIVE ─── */
@media (max-width: 900px) {
  .about-grid  { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta   { display: none; }

  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
    padding: 32px 24px; gap: 8px; z-index: 999;
  }
  .nav-links.open .nav-a {
    font-size: 1.5rem; padding: 14px 20px;
    font-family: var(--font-display); font-weight: 800;
  }
  .nav-links.open .btn { display: flex; margin-top: 16px; }

  .hero        { min-height: auto; padding: 100px 0 60px; }
  .hero-title  { font-size: 2.8rem; }
  .hero-stats  { flex-wrap: wrap; gap: 20px; }
  .stat-div    { display: none; }
  .stat-item   { padding: 0; }

  .section     { padding: 70px 0; }

  .route-row   { grid-template-columns: 1fr; }
  .route-arrow { display: none; }

  .form-row    { grid-template-columns: 1fr; }
  .cargo-grid  { justify-content: center; }

  .quote-widget{ padding: 28px 20px; }

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

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

@media (max-width: 480px) {
  .hero-btns   { flex-direction: column; }
  .btn-lg      { width: 100%; text-align: center; }
  .hero-title  { font-size: 2.2rem; }
  .form-actions{ flex-direction: column; }
}
