/* MTW Logistics — Static Site */
:root {
  --red: #ca1f26;
  --red-dark: #a8181e;
  --navy: #1a1a2e;
  --navy-light: #232331;
  --teal: #0d7377;
  --teal-light: #14a3a8;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --header-h: 72px;
  --font: 'Sarabun', 'Noto Sans Thai', sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }

.section__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section--navy .section__label { color: var(--teal-light); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section--navy .section__title { color: var(--white); }

.section__desc {
  max-width: 640px;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
}

.section--navy .section__desc { color: rgba(255,255,255,0.75); }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__header .section__desc { margin-left: auto; margin-right: auto; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo img {
  height: 48px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--red);
  background: rgba(202, 31, 38, 0.06);
}

.nav__link--express {
  background: var(--red);
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav__link--express:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--navy) url('https://images.unsplash.com/photo-1566576721346-d4a3938d8773?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(35,35,49,0.78) 50%, rgba(13,115,119,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 4rem 0;
  color: var(--white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

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

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

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p { margin-bottom: 1rem; color: var(--gray-600); }
.about__text strong { color: var(--navy); }

.about__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight {
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}

.highlight__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.highlight__text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card--teal { border-top-color: var(--teal); }
.service-card--navy { border-top-color: var(--navy); }

.service-card--navy .service-card__icon {
  background: rgba(26,26,46,0.08);
}

.service-card--navy .service-card__list li::before { color: var(--navy); }

/* Express callout */
.express-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  color: var(--white);
}

.express-box__body { flex: 1; min-width: 260px; }

.express-box__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.express-box__desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  max-width: 560px;
}

.express-box__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.express-box__tag {
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.85rem;
}

.express-box__action { flex-shrink: 0; }

/* Brands */
.brands__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--gray-600);
}

.brands__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.brand-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card__image--contain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e8f4f8, #d4eef5);
}

.brand-card__image--contain img {
  object-fit: contain;
  max-height: 100%;
}

.brand-card__body { padding: 2rem; }

.brand-card__store {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.brand-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.brand-card__trademark {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(13,115,119,0.1);
  color: var(--teal);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.brand-card__desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.brand-card__list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.brand-card__list li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.brand-card__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(202,31,38,0.08);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card--teal .service-card__icon {
  background: rgba(13,115,119,0.1);
}

.service-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card__list {
  list-style: none;
  margin-top: 1rem;
}

.service-card__list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.service-card--teal .service-card__list li::before { color: var(--teal); }

/* Feature blocks (ecommerce + warehouse) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__body { order: 1; }

.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.feature__list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature__list li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-600);
}

.feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.platform-tag {
  padding: 0.35rem 0.85rem;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
}

/* Warehouse flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.flow__step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.flow__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1;
}

.flow__num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}

.flow__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.flow__text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.warehouse__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.warehouse__gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Product */
.product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #e8f4f8, #d4eef5);
}

.product__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 1rem;
}

.product__features {
  list-style: none;
  margin: 1.5rem 0;
}

.product__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.product__features li:last-child { border-bottom: none; }

.product__features .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,115,119,0.12);
  color: var(--teal);
  border-radius: 50%;
  font-size: 0.85rem;
}

/* Stats */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0;
}

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

.stat__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__number span { color: var(--teal-light); }

.stat__label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.contact-card:hover { transform: translateY(-4px); }

.contact-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(202,31,38,0.08);
  border-radius: 50%;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.contact-card__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-card__value {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.contact-card__value a { color: var(--red); font-weight: 600; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}

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

.footer__brand img {
  height: 56px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer__heading {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer__links { list-style: none; }

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .about__grid,
  .feature,
  .product__grid { grid-template-columns: 1fr; }

  .feature--reverse .feature__media,
  .feature--reverse .feature__body { order: unset; }

  .services__grid,
  .services__grid--2 { grid-template-columns: 1fr; }

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

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

  .express-box { flex-direction: column; text-align: center; }
  .express-box__tags { justify-content: center; }

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

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

  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    width: 100%;
    padding: 0.875rem 1rem;
    text-align: left;
  }

  .nav__link--express { margin-left: 0; margin-top: 0.5rem; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

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

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

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

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

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}
