/* =============================================
   CSL Cargo — Modern Redesign
   ============================================= */

/* === FONTS === */
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans.woff2') format('woff2'), url('../fonts/OpenSans.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Light.woff2') format('woff2'), url('../fonts/OpenSans-Light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Semibold.woff2') format('woff2'), url('../fonts/OpenSans-Semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2'), url('../fonts/OpenSans-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --primary:       #2D468A;
  --primary-dark:  #1e3161;
  --primary-light: #4E6FC5;
  --white:         #ffffff;
  --gray-light:    #f5f7fa;
  --gray-mid:      #dde2ed;
  --gray-text:     #4f5b7a;
  --text:          #1a2340;
  --radius:        6px;
  --shadow:        0 4px 20px rgba(45, 70, 138, 0.12);
  --transition:    0.25s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'OpenSans', sans-serif;
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === CONTAINER === */
.container { max-width: 1170px; margin: 0 auto; padding: 0 28px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 46px; width: auto; filter: brightness(0) invert(1); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 9px 18px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-link:hover { background: var(--primary-light); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  font-family: 'OpenSans', sans-serif;
}
.nav-dropdown-toggle:hover { background: var(--primary-light); }
.nav-dropdown-toggle svg { width: 13px; height: 13px; transition: transform var(--transition); flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--gray-mid);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--gray-light); color: var(--primary); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* =============================================
   HERO (Homepage)
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 38, 82, 0.78) 0%, rgba(45, 70, 138, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-light);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  font-family: 'OpenSans', sans-serif;
}
.btn-primary:hover {
  background: #3d5cac;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 111, 197, 0.4);
}

/* =============================================
   SERVICES GRID (Homepage)
   ============================================= */
.services-section {
  padding: 72px 0;
  background: var(--gray-light);
}

.services-section h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 44px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 14px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(45, 70, 138, 0.2);
  border-color: var(--primary-light);
}
.service-card img { width: 58px; height: 58px; object-fit: contain; }

/* =============================================
   ABOUT SECTION (Homepage)
   ============================================= */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-text {
  max-width: 840px;
  margin: 0 auto;
}

.about-text p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 22px;
}

.about-text p:last-child {
  font-weight: 600;
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 0;
}

/* =============================================
   PAGE BANNER (Service + Contact pages)
   ============================================= */
.page-banner {
  height: 260px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 70px;
}

.page-banner .banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 38, 82, 0.85) 0%, rgba(45, 70, 138, 0.3) 100%);
}

.page-banner .banner-title {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 28px 32px;
  font-size: 34px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =============================================
   SERVICE PAGE LAYOUT
   ============================================= */
.service-page { padding: 52px 0 80px; }

.service-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 44px;
  align-items: start;
}

/* Sidebar */
.service-sidebar { position: sticky; top: 88px; }
.service-sidebar ul { display: flex; flex-direction: column; gap: 3px; }

.service-sidebar a {
  display: block;
  padding: 11px 16px;
  color: var(--gray-text);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.service-sidebar a:hover {
  background: var(--gray-light);
  color: var(--primary);
  border-left-color: var(--primary-light);
}
.service-sidebar a.active {
  background: var(--gray-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Content area */
.service-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-mid);
}
.service-content-header img { width: 54px; height: 54px; object-fit: contain; }
.service-content-header h1 { font-size: 26px; font-weight: 700; color: var(--primary); }

.service-slider {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.service-slider img { width: 100%; height: auto; display: block; }

.service-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--gray-text);
}
.service-body strong { color: var(--primary); }
.service-body span { font-style: italic; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page { padding: 52px 0 80px; }

.contact-info-page { max-width: 860px; margin: 0 auto; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--gray-light);
  border-radius: 10px;
  gap: 10px;
}
.contact-info-card img { width: 36px; height: 36px; object-fit: contain; }
.contact-info-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); }
.contact-info-card a,
.contact-info-card span { font-size: 15px; color: var(--gray-text); }
.contact-info-card a:hover { color: var(--primary); text-decoration: underline; }

.contact-map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-map-details h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.contact-map-details address {
  font-style: normal;
  color: var(--gray-text);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 14px;
}
.contact-map-embed {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map-embed iframe { width: 100%; height: 100%; border: none; display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--primary); color: var(--white); }

.footer-top {
  padding: 52px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { height: 52px; width: auto; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.25); }
.footer-social img { width: 17px; height: 17px; object-fit: contain; filter: brightness(0) invert(1); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
  opacity: 0.55;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 11px; }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  opacity: 0.85;
}
.footer-contact-list img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer-address {
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 12px;
}

.footer-bottom {
  background: var(--primary-dark);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 14px; opacity: 0.65; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    margin-top: 4px;
  }
  .nav-dropdown-menu a { color: rgba(255, 255, 255, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08); }
  .nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

  /* Hero */
  .hero { min-height: 520px; }
  .hero-content h1 { font-size: 26px; }

  /* Services grid */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Page banner */
  .page-banner { height: 180px; }
  .page-banner .banner-title { font-size: 24px; padding: 20px 24px; }

  /* Service layout */
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 12px 16px; }
  .service-sidebar ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .service-sidebar a { padding: 8px 14px; border-left: none; border: 1px solid var(--gray-mid); font-size: 13px; }
  .service-sidebar a.active { border-color: var(--primary); }

  /* Contact */
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-map-section { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .hero { min-height: 460px; }
  .btn-primary { padding: 13px 28px; font-size: 15px; }
  .about-section { padding: 56px 0; }
  .services-section { padding: 52px 0; }
}
