/*
 * Onboard Courier Service Page Styles
 * Nova OBC WordPress Theme
 *
 * This file contains page-specific styles for template-onboard-courier-service.php
 * Base styles (hero, quote, footer) are in style.css
 */

/* ===============================================
   OBC INFO SECTION - What Is an Onboard Courier
   =============================================== */

.obc-info {
  padding: 56px 0 8px;
}

.info-split {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.info-cell {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-cell + .info-cell {
  border-left: 1px solid var(--line);
}

.info-cell .ic {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  display: inline-block;
  position: relative;
  padding-bottom: 11px;
}

.info-cell .ic::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.info-cell .ic svg {
  width: 46px;
  height: 46px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-cell h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.info-cell p {
  font-size: 16.7px;
  color: #D6D9DD;
  line-height: 1.65;
}

.info-cell p + p {
  margin-top: 10px;
}

.info-cell ul {
  list-style: none;
}

.info-cell li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 16.7px;
  color: #D6D9DD;
  line-height: 1.55;
}

.info-cell li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.info-cell .note {
  font-size: 14.9px;
  color: var(--grey);
}

/* ===============================================
   HOW WE ARRANGE SECTION
   =============================================== */

.how {
  padding: 80px 0 10px;
}

.how h2 {
  text-align: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.how-card {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 24px 28px 40px;
  font-size: 16.7px;
  color: #D6D9DD;
  line-height: 1.65;
  position: relative;
  transition: transform 0.25s;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 24px 50%);
}

.how-card:first-child {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
  padding-left: 28px;
  border-radius: 12px 0 0 12px;
}

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

.how-card .lbl {
  display: block;
  color: var(--orange);
  font-size: 13.2px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===============================================
   CHECK SECTION - What We Need
   =============================================== */

.check {
  padding: 80px 0 10px;
}

.check .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.check h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 16px;
}

.check h2 .accent {
  color: var(--orange);
}

.check .lead {
  color: #D6D9DD;
  font-size: 17.8px;
  margin-bottom: 26px;
}

.check-list {
  list-style: none;
  margin-bottom: 26px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 17.2px;
}

.check-list .ic {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: none;
}

.check-list .ic svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-note {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.check-note .ic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: none;
  display: grid;
  place-items: center;
}

.check-note .ic svg {
  width: 34px;
  height: 34px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-note p {
  font-size: 16.1px;
  color: #D6D9DD;
  line-height: 1.6;
}

.check-note .accent {
  color: var(--orange);
}

.check-media {
  aspect-ratio: 3/4;
  max-width: 470px;
  width: 100%;
  justify-self: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.check-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================================
   BAGGAGE SECTION - Carousel
   =============================================== */

.baggage {
  padding: 80px 0 10px;
}

.bag-card {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 0 0;
  overflow: hidden;
}

.bag-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 0 40px;
  margin-bottom: 36px;
}

.bag-top h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
}

.bag-top .txt {
  border-left: 4px solid var(--orange);
  padding-left: 28px;
}

.bag-top .txt p {
  font-size: 16.7px;
  color: #D6D9DD;
  line-height: 1.65;
}

.bag-top .txt p + p {
  margin-top: 14px;
}

/* Carousel */
.carousel {
  position: relative;
}

.car-track {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 320px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.car-track::-webkit-scrollbar {
  display: none;
}

.car-item {
  flex: 0 0 auto;
  height: 100%;
  width: 240px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(247, 148, 29, 0.08), rgba(247, 148, 29, 0) 45%), #232323;
  position: relative;
  overflow: hidden;
}

.car-item:nth-child(even) {
  height: 76%;
  width: 330px;
}

.car-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel fade gradients */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 130px;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(46, 46, 46, 0.9), rgba(46, 46, 46, 0));
}

.carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(46, 46, 46, 0.9), rgba(46, 46, 46, 0));
}

/* Carousel navigation buttons */
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(27, 27, 27, 0.8);
  border: 1.6px solid var(--orange);
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s;
}

.car-btn:hover {
  background: var(--orange);
}

.car-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.car-btn:hover svg {
  stroke: var(--ink);
}

.car-btn.prev {
  left: 16px;
}

.car-btn.next {
  right: 16px;
}

/* ===============================================
   NETWORK SECTION - Global OBC Network
   =============================================== */

.network {
  padding: 80px 0 90px;
}

.network .wrap {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 56px;
  align-items: start;
}

.network h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 20px;
}

.network .lead {
  font-size: 18.4px;
  color: #E7E9EC;
  margin-bottom: 14px;
}

.network .lead strong {
  color: var(--orange);
  font-weight: 700;
}

.network .sub {
  font-size: 16.1px;
  color: var(--grey);
  line-height: 1.65;
}

.net-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feat {
  display: flex;
  flex-direction: column;
}

.feat .ic {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  display: inline-block;
  position: relative;
  padding-bottom: 11px;
  margin-bottom: 16px;
}

.feat .ic::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.feat .ic svg {
  width: 46px;
  height: 46px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feat p {
  font-size: 15.5px;
  color: var(--grey);
  line-height: 1.6;
}

/* ===============================================
   COVERAGE SECTION - One Consolidated Service
   =============================================== */

.coverage {
  padding: 26px 0 64px;
}

.coverage h2 {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.coverage h2 .accent {
  color: var(--orange);
}

.coverage p {
  color: #D6D9DD;
  font-size: 17.2px;
  line-height: 1.75;
  max-width: 820px;
  margin-bottom: 10px;
}

/* ===============================================
   RESPONSIVE STYLES
   =============================================== */

@media (max-width: 900px) {
  /* Info split */
  .info-split {
    grid-template-columns: 1fr;
  }

  .info-cell + .info-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  /* How grid */
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-card,
  .how-card:first-child {
    clip-path: none;
    border-radius: 12px;
    padding: 24px 22px;
    border-left: 4px solid var(--orange);
  }

  /* Check section */
  .check .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Baggage section */
  .bag-top {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 26px;
  }

  .bag-card {
    padding-top: 32px;
  }

  /* Network section */
  .network .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .net-feats {
    grid-template-columns: 1fr;
  }

  /* Carousel */
  .car-track {
    height: 240px;
    gap: 12px;
  }

  .car-item {
    width: 180px;
  }

  .car-item:nth-child(even) {
    width: 250px;
  }

  .carousel::before,
  .carousel::after {
    width: 60px;
  }

  .car-btn.prev {
    left: 10px;
  }

  .car-btn.next {
    right: 10px;
  }
}

@media (max-width: 520px) {
  .baggage {
    padding: 60px 0 10px;
  }

  .bag-top {
    padding: 0 20px;
  }

  .car-track {
    height: 200px;
  }

  .car-item {
    width: 160px;
  }

  .car-item:nth-child(even) {
    width: 220px;
  }
}
