/* ============================================================
   Montreal Port Logistics — mpl-style.css  v2
   Pixel-accurate translation of the React/Tailwind preview
   ============================================================ */

/* ---------- Design Tokens (from index.css) ---------- */
:root {
  --navy:    #0F172A;   /* navy-900 */
  --navy2:   #1A2332;
  --teal:    #00B4D8;   /* teal-500 */
  --teal2:   #0096c7;   /* teal-600 */
  --teal-lt: #ccf2fa;   /* teal-100 */
  --white:   #FFFFFF;
  --gray-50: #F5F7FA;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-400:#9CA3AF;
  --gray-600:#4B5563;
  --gray-700:#374151;
  --text:    #0F172A;
  --muted:   #6B7280;
  --radius:  0.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container (matches Tailwind .container) ---------- */
.mpl-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.mpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}
.mpl-btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.mpl-btn--primary:hover {
  background: var(--teal2);
  border-color: var(--teal2);
  box-shadow: 0 10px 25px rgba(0,180,216,0.35);
  transform: translateY(-2px);
}
.mpl-btn--primary:active { transform: scale(0.97); }
.mpl-btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.mpl-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.mpl-btn--full { width: 100%; justify-content: center; }

/* ---------- Logo icon ---------- */
.mpl-logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--teal), #60a5fa);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.mpl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.mpl-nav--scrolled {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mpl-nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.mpl-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.mpl-nav__brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}
.mpl-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.mpl-nav__link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mpl-nav__link:hover { color: var(--teal); }
.mpl-nav__lang { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.mpl-nav__mobile-lang { display: none; }

/* Mobile burger */
.mpl-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}
.mpl-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.mpl-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mpl-burger.active span:nth-child(2) { opacity: 0; }
.mpl-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO  — matches React: min-h-screen, bg-cover, bg-black/40
   ============================================================ */
.mpl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Background image layer */
.mpl-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Dark overlay: bg-black/40 */
.mpl-hero__dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 1;
}
/* SVG geometric overlay */
.mpl-hero__geo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
/* Content */
.mpl-hero__content {
  position: relative;
  z-index: 10;
  max-width: 42rem; /* max-w-2xl */
  padding-top: 5rem;
}
.mpl-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem); /* text-5xl md:text-6xl */
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.mpl-hero__sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); /* text-xl md:text-2xl */
  font-weight: 600;
  color: #5eead4; /* teal-300 */
  margin-bottom: 1.5rem;
}
.mpl-hero__desc {
  font-size: 1.125rem; /* text-lg */
  color: rgba(255,255,255,0.9);
  max-width: 36rem; /* max-w-xl */
  margin-bottom: 2rem;
  line-height: 1.75;
}
.mpl-hero__cta {
  font-size: 1rem;
  padding: 1rem 2rem;
}
/* Scroll indicator */
.mpl-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}
.mpl-hero__scroll svg {
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.mpl-section { padding: 5rem 0; } /* py-20 */
.mpl-section--white { background: var(--white); }
.mpl-section--gray  { background: var(--gray-50); }
.mpl-section--navy  { background: var(--navy); }

.mpl-section-header {
  text-align: center;
  margin-bottom: 4rem; /* mb-16 */
}
.mpl-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3rem); /* text-4xl md:text-5xl */
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.mpl-section--navy .mpl-section-title { color: var(--white); }
.mpl-section-subtitle {
  font-size: 1.25rem; /* text-xl */
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}
.mpl-section--navy .mpl-section-subtitle { color: rgba(255,255,255,0.7); }
/* Gradient divider: bg-gradient-to-r from-teal-500 to-transparent */
.mpl-divider-left {
  width: 4rem; height: 4px;
  background: linear-gradient(to right, var(--teal), transparent);
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

/* ============================================================
   SERVICES — 2-column grid, each cell is flex row (image + text)
   Matches: grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-12
            flex flex-col md:flex-row (even) / md:flex-row-reverse (odd)
   ============================================================ */
.mpl-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem; /* gap-8 lg:gap-12 */
}

/* Each service card = flex row — image + text side by side */
.mpl-svc {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  min-width: 0; /* prevent overflow */
}
/* Even: image left, text right */
.mpl-svc--normal { flex-direction: row; }
/* Odd: text left, image right */
.mpl-svc--reverse { flex-direction: row-reverse; }

.mpl-svc__img-wrap {
  flex: 0 0 48%; /* fixed 48% width, no grow/shrink */
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s;
}
.mpl-svc__img-wrap:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.mpl-svc__img {
  width: 100%;
  height: 16rem; /* slightly shorter to fit 2-col grid */
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.mpl-svc__img-wrap:hover .mpl-svc__img { transform: scale(1.05); }

.mpl-svc__body {
  flex: 1 1 0;
  min-width: 0;
}
.mpl-svc__icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mpl-svc__icon {
  width: 3rem; height: 3rem;
  background: var(--teal-lt);
  color: #0e7490; /* teal-700 */
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mpl-svc__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: var(--navy);
}
.mpl-svc__desc {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.mpl-svc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s;
}
.mpl-svc__link:hover { transform: translateX(8px); }

/* ============================================================
   WHY CHOOSE — bordered cards, matches React border border-gray-200
   ============================================================ */
.mpl-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem; /* gap-8 */
}
.mpl-why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem; /* p-8 */
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.mpl-why-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.mpl-why-icon {
  width: 3.5rem; height: 3.5rem; /* w-14 h-14 */
  background: var(--teal-lt);
  color: var(--teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.mpl-why-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.mpl-why-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   LOCATION
   ============================================================ */
.mpl-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mpl-location__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.mpl-location__img { width: 100%; height: auto; object-fit: cover; }
.mpl-location__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.mpl-location__desc {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.mpl-hubs { display: flex; flex-direction: column; gap: 1.5rem; }
.mpl-hub  { display: flex; align-items: flex-start; gap: 1rem; }
.mpl-hub__num {
  width: 2.25rem; height: 2.25rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.mpl-hub__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.mpl-hub__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.mpl-contact {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.mpl-contact__info { display: flex; flex-direction: column; gap: 2rem; }
.mpl-contact__item { display: flex; align-items: flex-start; gap: 1rem; }
.mpl-contact__icon {
  width: 2.75rem; height: 2.75rem;
  background: var(--teal-lt);
  color: var(--teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mpl-contact__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.mpl-contact__value { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.mpl-contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.mpl-form { display: flex; flex-direction: column; gap: 1.25rem; }
.mpl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mpl-form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.mpl-form__label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.mpl-form__input,
.mpl-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mpl-form__input:focus,
.mpl-form__textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.mpl-form__textarea { resize: vertical; min-height: 120px; }
.mpl-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.mpl-alert--success { background:#d1fae5; color:#065f46; border:1px solid #6ee7b7; }
.mpl-alert--error   { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }

/* ============================================================
   FOOTER
   ============================================================ */
.mpl-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 0;
}
.mpl-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 0;
}
.mpl-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}
.mpl-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-400);
}
.mpl-footer__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.mpl-footer__list { display: flex; flex-direction: column; gap: 0.5rem; }
.mpl-footer__list a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.mpl-footer__list a:hover { color: var(--teal); }
.mpl-footer__list--plain li {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.mpl-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--gray-400);
}
.mpl-footer__social { display: flex; gap: 1.5rem; }
.mpl-footer__social a { color: var(--gray-400); transition: color 0.2s; }
.mpl-footer__social a:hover { color: var(--teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mpl-why-grid { grid-template-columns: repeat(2, 1fr); }
  .mpl-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mpl-services-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mpl-svc, .mpl-svc--reverse {
    flex-direction: column;
  }
  .mpl-svc__img-wrap { flex: 0 0 auto; width: 100%; }
  .mpl-svc__img { height: 14rem; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .mpl-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15,23,42,0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mpl-nav__links.open { display: flex; }
  .mpl-nav__lang { display: none; }
  .mpl-burger { display: flex; }
  .mpl-nav__mobile-lang {
    display: block;
    padding: 0.75rem 1.5rem 1rem;
  }

  .mpl-location { grid-template-columns: 1fr; }
  .mpl-contact  { grid-template-columns: 1fr; }
  .mpl-form__row { grid-template-columns: 1fr; }
  .mpl-why-grid { grid-template-columns: 1fr 1fr; }
  .mpl-footer__grid { grid-template-columns: 1fr 1fr; }
  .mpl-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .mpl-why-grid { grid-template-columns: 1fr; }
  .mpl-footer__grid { grid-template-columns: 1fr; }
  .mpl-section { padding: 3.5rem 0; }
  .mpl-hero__content { padding-top: 6rem; }
}
