/* Agile Xpress Logistics Inc. – Mobile-first */
:root {
  --primary: #2f2674;
  --primary-dark: #231d52;
  --accent: #ff5c00;
  --accent-hover: #e55200;
  --text: #231d52;
  --text-muted: #4a4563;
  --white: #ffffff;
  --light: #f5f4f9;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(35, 29, 82, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.logo-xpress {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: var(--light);
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--white);
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav.is-open {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  color: var(--accent);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-header {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.social-icon-link:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(255, 92, 0, 0.08);
}

.social-icon {
  width: 22px;
  height: 22px;
}

.social-header .social-icon-link {
  color: var(--text-muted);
}

.social-header .social-icon-link:hover {
  color: var(--accent);
}

.social-footer .social-icon-link {
  color: rgba(255, 255, 255, 0.85);
}

.social-footer .social-icon-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  color: var(--white);
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.hero-slide-active {
  opacity: 1;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.hero-logo-wrap {
  margin: 0 auto 1rem;
}

.hero-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-desc {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero-buttons .btn {
  min-width: 200px;
}

.hero-buttons .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.hero-buttons .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* ----- About ----- */
.about {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ----- Sections common ----- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-title-light,
.section-lead-light {
  color: var(--white);
}

.section-lead-light {
  opacity: 0.9;
}

/* ----- Services ----- */
.services {
  padding: 3rem 0 4rem;
  background: var(--light);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services-row {
  display: grid;
  gap: 1.5rem;
}

.services-row-2 {
  grid-template-columns: 1fr;
}

.services-row-3 {
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35, 29, 82, 0.06);
  border: 1px solid rgba(35, 29, 82, 0.06);
  overflow: hidden;
}

.service-card-image {
  width: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--light) 0%, rgba(47, 38, 116, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.service-card-body {
  padding: 1.5rem;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 0.15rem;
}

.service-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.service-desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.service-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-list li {
  margin-bottom: 0.35rem;
}

.service-card .btn {
  width: 100%;
}

/* ----- Commitment ----- */
.commitment {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0 4rem;
}

.commitment-grid {
  display: grid;
  gap: 2rem;
}

.commitment-item {
  text-align: center;
}

.commitment-icon {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.commitment-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.commitment-desc {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ----- Quote form ----- */
.quote-section {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.quote-form {
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Forms ----- */
.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.required {
  color: var(--accent);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(35, 29, 82, 0.2);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form .btn {
  margin-top: 0.5rem;
}

/* ----- Contact ----- */
.contact-section {
  padding: 3rem 0 4rem;
  background: var(--light);
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-info {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35, 29, 82, 0.06);
}

.contact-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 0 0.25rem;
}

.contact-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.contact-info p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.contact-link {
  color: var(--accent);
}

.contact-link:hover {
  color: var(--accent-hover);
}

.contact-address {
  margin: 1rem 0 0;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  max-width: 480px;
}

.contact-logo {
  width: 500px;
  height: auto;
  opacity: 0.95;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  width: 120px;
  height: auto;
  opacity: 0.95;
}

.footer-company {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
  color: var(--accent);
}

.social-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.social-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ----- Tablet ----- */
@media (min-width: 640px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    transform: none;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav.is-open {
    transform: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
  }

  .nav-list li {
    margin-bottom: 0;
  }

  .social-header {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.5rem;
  }

  .social-header a {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .services-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .commitment-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ----- Desktop ----- */
@media (min-width: 1024px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .logo-img {
    width: 75px;
    height: 75px;
  }

  .logo-text {
    font-size: 2.15rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 1.5rem 5rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .services {
    padding: 4rem 0 5rem;
  }

  .services-grid {
    gap: 2.5rem;
  }

  .services-row-2,
  .services-row-3 {
    gap: 1.75rem;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero {
    min-height: 580px;
  }

  .commitment {
    padding: 4rem 0 5rem;
  }

  .quote-section,
  .contact-section {
    padding: 4rem 0 5rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer-brand {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .hero-logo {
    max-width: 360px;
  }

  .hero {
    min-height: 620px;
  }
}


/* ===== HERO CAROUSEL BACKGROUND IMAGES ===== */

/* Slide 0 – LTL – Less Than Truckload */
.hero-slide[data-slide="0"] {
  background-image: url(images/shippingLTL.jpg);
  background-size: cover;
  background-position: center;
}

/* Slide 1 – FTL – Full Truckload */
.hero-slide[data-slide="1"] {
  background-image: url(images/trailerFTL.png);
  background-size: cover;
  background-position: center;
}

/* Slide 2 – FCL – Full Container Load */
.hero-slide[data-slide="2"] {
  background-image: url(images/containerFCL.avif);
  background-size: cover;
  background-position: center;
}

/* Slide 3 – Reefer – Temperature-Controlled */
.hero-slide[data-slide="3"] {
  background-image: url(images/reefer.png);
  background-size: cover;
  background-position: center;
}

/* Slide 4 – Warehousing – Storage & Distribution */
.hero-slide[data-slide="4"] {
  background-image: url(images/warehousing.jpg);
  background-size: cover;
  background-position: center;
}

/* ===== SLIDE LABELS & DOTS ===== */
.slide-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  background: rgba(255,92,0,0.18);
  z-index: 3;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.hero-dot-active {
  background: var(--accent);
  transform: scale(1.3);
}