/*
Theme Name: Vipil Logistics Agency
Theme URI: https://vipillogistics.com
Author: Vipil Logistics Agency
Author URI: https://vipillogistics.com
Description: Custom one-page theme for Vipil Logistics Agency — fractional supply chain & compliance advisory site for the GTA.
Version: 1.0
Text Domain: vipil-logistics
*/

/* ============================================
   VIPIL LOGISTICS AGENCY — Brand tokens
   ============================================ */
:root {
  --ink: #22201D;
  --ink-soft: #302D28;
  --steel: #6B6459;
  --amber: #17B89B;
  --amber-deep: #0F8E78;
  --porcelain: #F5F2EC;
  --paper: #FBFAF6;
  --charcoal: #211F1B;
  --line: #DEDAD1;
  --line-on-ink: rgba(245, 242, 236, 0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
p { max-width: 62ch; }
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--amber-deep);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--line-on-ink); }
.btn-ghost-light:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  flex: none;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  filter: drop-shadow(0 3px 8px rgba(34,32,29,0.25));
}
.brand:hover .brand-mark { transform: translateX(2px) scale(1.06); }
.brand span { color: var(--amber-deep); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ============ Hero ============ */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin: 0 0 20px;
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  max-width: 15ch;
}
.hero-lede {
  color: #C9CEDC;
  font-size: 1.1rem;
  margin: 24px 0 34px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts {
  border-left: 1px solid var(--line-on-ink);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-fact .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
  display: block;
}
.hero-fact .label {
  color: #A9B0C4;
  font-size: 0.92rem;
  margin-top: 2px;
}

/* Route line — signature device */
.route {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line-on-ink);
}
.route-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.route-track::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line-on-ink);
}
.route-stop { position: relative; padding-top: 26px; }
.route-stop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--amber);
}
.route-stop .stop-name {
  font-weight: 600;
  color: var(--paper);
  font-size: 0.98rem;
}
.route-stop .stop-desc {
  color: #A9B0C4;
  font-size: 0.86rem;
  margin-top: 4px;
  max-width: 22ch;
}

/* ============ Generic section spacing ============ */
section { padding: 88px 0; }
.section-head {
  max-width: 60ch;
  margin-bottom: 52px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--steel); margin-top: 16px; font-size: 1.05rem; }

/* ============ Services ============ */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 0.9fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row .svc-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.service-row .svc-desc { color: var(--steel); font-size: 0.98rem; }
.service-row .svc-price {
  font-size: 0.88rem;
  color: var(--ink);
  text-align: left;
}
.svc-price .price-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.svc-price .price-line:last-child { border-bottom: none; }
.svc-price .price-label { color: var(--steel); }
.svc-price .price-val { font-weight: 600; white-space: nowrap; }

/* ============ Industries ============ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.industry-card {
  background: var(--paper);
  padding: 30px 24px;
}
.industry-card .idx {
  font-family: var(--font-display);
  color: var(--amber-deep);
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: block;
}
.industry-card h3 { font-size: 1.05rem; }
.industry-card p { color: var(--steel); font-size: 0.9rem; margin-top: 8px; }

/* ============ Why / differentiators ============ */
.why {
  background: var(--ink);
  color: var(--paper);
}
.why .section-head h2 { color: var(--paper); }
.why .section-head p { color: #C9CEDC; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-item { border-top: 2px solid var(--amber); padding-top: 20px; }
.why-item h3 { color: var(--paper); font-size: 1.15rem; }
.why-item p { color: #A9B0C4; font-size: 0.95rem; margin-top: 10px; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.about-figure {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.about-figure .mono {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1.2;
}
.about-figure .mono span { color: var(--amber); }
.about-credentials {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cred-row { display: flex; gap: 12px; align-items: baseline; }
.cred-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; margin-top: 6px; }
.cred-row p { margin: 0; color: var(--steel); font-size: 0.95rem; }

/* ============ Contact ============ */
.contact { background: var(--porcelain); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-info p { color: var(--steel); margin-top: 16px; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-details a { text-decoration: none; }
.contact-details .cd-label { font-size: 0.82rem; color: var(--steel); }
.contact-details .cd-value { font-weight: 600; color: var(--ink); font-size: 1.02rem; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 3px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--charcoal);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--steel); margin-top: 14px; }
.form-success {
  display: none;
  background: #EFF6EE;
  border: 1px solid #B9DAB4;
  color: #2C5A26;
  padding: 14px 16px;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #A9B0C4;
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer-brand { font-family: var(--font-display); color: var(--paper); font-size: 1.15rem; }
.footer-brand span { color: var(--amber); }
.footer-tag { font-size: 0.88rem; margin-top: 8px; max-width: 32ch; }
.footer-links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: #A9B0C4; font-size: 0.9rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ Media treatment (consistent brand tint) ============ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,33,61,0.55), rgba(20,33,61,0.15));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media:hover img { transform: scale(1.07); }

/* Hero background photo */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(34,32,29,0.82) 0%, rgba(34,32,29,0.5) 42%, rgba(34,32,29,0.12) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1, .hero-lede, .hero-eyebrow { text-shadow: 0 2px 24px rgba(0,0,0,0.4); }

/* Industry card media */
.industry-card { padding: 0; overflow: hidden; }
.industry-card .media { aspect-ratio: 4/3; }
.industry-card .card-body { padding: 24px; }

/* Gallery strip */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4px;
}
.gallery-grid .media { aspect-ratio: 4/3.2; }
.gallery-grid .media:first-child { aspect-ratio: auto; }

/* Process side image */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.process-media { border-radius: 3px; overflow: hidden; }
.process-media .media { height: 100%; min-height: 420px; }

/* Why section image accent */
.why-media {
  aspect-ratio: 16/8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 48px;
}

/* About figure now uses real photo texture */
.about-figure { padding: 0; align-items: stretch; }
.about-figure .media { height: 100%; }
.about-figure .figure-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 1;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0.03s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.11s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.27s; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-media .media { min-height: 260px; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-facts { border-left: none; border-top: 1px solid var(--line-on-ink); padding-left: 0; padding-top: 24px; flex-direction: row; flex-wrap: wrap; }
  .route-track { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .route-track::before { display: none; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============ Marquee ticker ============ */
.marquee {
  background: var(--ink-soft);
  border-top: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  white-space: nowrap;
}
.marquee-item .sep { color: var(--amber); font-size: 0.8rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Animated counter stats ============ */
.counters {
  background: var(--ink);
  padding: 64px 0;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.counter-item {
  border-left: 2px solid var(--amber);
  padding-left: 18px;
}
.counter-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--paper);
  display: block;
}
.counter-label {
  color: #A9B0C4;
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--amber);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ============ Nav link hover underline ============ */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* ============ Route line draw-in + pulsing waypoints ============ */
.route-track::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.route.in-view .route-track::before { transform: scaleX(1); }
.route-stop::before {
  animation: pulseDot 2.4s ease-in-out infinite;
}
.route-stop:nth-child(2)::before { animation-delay: 0.3s; }
.route-stop:nth-child(3)::before { animation-delay: 0.6s; }
.route-stop:nth-child(4)::before { animation-delay: 0.9s; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23,184,155,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(23,184,155,0); }
}

/* ============ Hover lifts ============ */
.btn { transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(23,184,155,0.28); }
.industry-card, .why-item, .service-row {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(34,32,29,0.12); }
.why-item:hover { transform: translateY(-4px); }
.service-row:hover { transform: translateX(4px); }

/* ============ Image reveal: scale-in ============ */
.media.reveal img { transform: scale(1.1); transition: transform 1s cubic-bezier(0.16,1,0.3,1); }
.media.reveal.in-view img { transform: scale(1); }

/* ============ Floating CTA ============ */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 12px 28px rgba(34,32,29,0.25);
}
.float-cta.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

@media (max-width: 900px) {
  .counters-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .float-cta { bottom: 16px; right: 16px; padding: 11px 18px; font-size: 0.88rem; }
}

/* ============ FAQ accordion ============ */
.faq-list { border-top: 1px solid var(--line); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-item summary .plus::before { top: 50%; left: 5px; right: 5px; height: 1px; transform: translateY(-50%); }
.faq-item summary .plus::after { left: 50%; top: 5px; bottom: 5px; width: 1px; transform: translateX(-50%); }
.faq-item[open] summary .plus { transform: rotate(135deg); border-color: var(--amber); }
.faq-item .faq-answer {
  color: var(--steel);
  font-size: 0.97rem;
  padding: 0 0 24px;
  max-width: 62ch;
  animation: faqOpen 0.3s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal, .media.reveal img { opacity: 1; transform: none !important; }
  .route-track::before { transform: scaleX(1) !important; }
}

