/* ============================================
   BY-LINE International Forwarding — Stylesheet
   European B2B Logistics Aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0D1B2A;
  --body-text: #374151;
  --accent: #1B6AE5;
  --accent-hover: #1555b8;
  --light-bg: #F7F8FA;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--body-text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--light-bg);
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--body-text);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(27, 106, 229, 0.3);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: #f0f0f0;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--accent);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-text);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--navy);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav__cta {
  margin-left: 8px;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero (Full Viewport) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 27, 42, 0.82) 0%, rgba(13, 27, 42, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 72px;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Page Hero (Interior Pages) --- */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 27, 42, 0.8) 0%, rgba(13, 27, 42, 0.4) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.page-hero__content h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 540px;
}

/* --- Stats Bar --- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats__item h3 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  margin-bottom: 4px;
}

.stats__item p {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-text);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: 28px 24px;
}

.card__body h3 {
  margin-bottom: 10px;
}

.card__body p {
  font-size: 0.9375rem;
  color: var(--body-text);
  margin-bottom: 16px;
}

.card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: color 0.2s ease;
}

.card__link:hover {
  color: var(--accent-hover);
}

/* --- Split Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__text h2 {
  margin-bottom: 24px;
}

.split__text p {
  margin-bottom: 16px;
}

.split__image {
  border-radius: 6px;
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* --- Advantage List --- */
.advantage-list {
  display: grid;
  gap: 24px;
}

.advantage-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.advantage-item p {
  font-size: 0.9375rem;
  color: var(--body-text);
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead {
  background: var(--navy);
  color: var(--white);
}

th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

tbody tr:nth-child(even) {
  background: var(--light-bg);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* --- Process Steps --- */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
}

.step__content h4 {
  margin-bottom: 6px;
}

.step__content p {
  font-size: 0.9375rem;
}

/* --- CTA Band --- */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 106, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Definition Cards (Incoterms) --- */
.def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.def-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
}

.def-card h4 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.def-card .def-card__full {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--body-text);
  margin-bottom: 12px;
}

.def-card p {
  font-size: 0.9375rem;
}

/* --- Text Cards (No Image) --- */
.text-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: box-shadow 0.25s ease;
}

.text-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.text-card h4 {
  margin-bottom: 10px;
}

.text-card p {
  font-size: 0.9375rem;
}

/* --- Checklist --- */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card .team-card__role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.team-card a {
  color: var(--accent);
}

.team-card a:hover {
  text-decoration: underline;
}

/* --- Comparison Cards --- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compare-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
}

.compare-card h3 {
  margin-bottom: 8px;
}

.compare-card .compare-card__subtitle {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.compare-card ul {
  list-style: none;
}

.compare-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
}

.compare-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Contact Info --- */
.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info__item {
  margin-bottom: 20px;
}

.contact-info__item h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-text);
  margin-bottom: 4px;
}

.contact-info__item p {
  font-size: 0.9375rem;
}

.contact-info__item a {
  color: var(--accent);
}

.contact-info__item a:hover {
  text-decoration: underline;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-48 {
  margin-top: 48px;
}

/* --- Responsive: Tablet (768px) --- */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav__list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav__list.open {
    transform: translateX(0);
  }

  .nav__list li {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .nav__toggle {
    display: flex;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split__image {
    order: -1;
  }

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

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

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

  .page-hero {
    height: 340px;
  }

  .hero__content p {
    font-size: 1.1rem;
  }
}

/* --- Responsive: Mobile (480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

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

  .page-hero {
    height: 300px;
  }

  .hero {
    min-height: 85vh;
  }

  .btn {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .cta-band {
    padding: 56px 0;
  }
}
