/* /assets/css/services.css
   SERVICES PAGE — NEW CONCEPT + PER-SECTION BACKGROUND IMAGES
   FIXED:
   - Removes internal scrollbars on service sections/cards
   - Prevents any horizontal overflow across the page
   - Keeps sticky nav usable on mobile without creating section scroll
*/

/* =========================
   GLOBAL SAFETY (services page only)
   ========================= */
html, body{
  overflow-x: hidden;
}

.services-hero,
.services-nav,
.service-snapshot,
.svc-chapter,
.services-compliance,
.services-cross-sell,
.services-cta{
  overflow-x: hidden;
}

/* Prevent any element from creating its own scroll */
.svc-chapter,
.svc-inner,
.svc-grid,
.svc-card{
  overflow: hidden;
}

/* =========================
   HERO (BACKGROUND ROTATION)
   ========================= */

.services-hero{
  position: relative;
  padding: 64px 0 38px;
  background: #0b2a3a;
}

.services-hero-visual{
  position:absolute;
  inset:0;
  z-index:0;
}

.services-hero-media{
  position:absolute;
  inset:0;
}

.services-hero-bg{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  will-change: opacity, transform;
}

/* Replace with real images */
.services-hero-bg[data-svc-hero="0"]{ background-image: url("../img/offer-procurement.jpg"); }
.services-hero-bg[data-svc-hero="1"]{ background-image: url("../img/offer-aviation.jpg"); }
.services-hero-bg[data-svc-hero="2"]{ background-image: url("../img/offer-engineering.jpg"); }
.services-hero-bg[data-svc-hero="3"]{ background-image: url("../img/offer-logistics.jpg"); }

.services-hero-bg.is-active{
  opacity: 1;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 10s ease;
}

.services-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.52) 40%,
      rgba(0,0,0,.18) 78%,
      rgba(0,0,0,.10) 100%);
}

.services-hero-card{
  position: relative;
  z-index: 2;
}

.services-hero-copy{
  padding: 84px 0 56px;
  max-width: 760px;
}

.services-hero-copy h1{
  margin: 14px 0 10px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -1px;
  color: #fff;
}

.services-hero-copy .lead{
  margin: 0;
  margin-top: 12px;
  color: rgba(255,255,255,.88);
  max-width: 60ch;
}

.services-trust{
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.services-hero-actions{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.services-hero-copy .btn{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
}
.services-hero-copy .btn.primary{
  background:#0b0b0b;
  border-color: transparent;
  color:#fff;
}

/* =========================
   STICKY IN-PAGE NAV
   ========================= */

.services-nav{
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}

.services-nav-label{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
}

.services-nav-micro{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Tabs can scroll horizontally (this is intentional and only here) */
.services-tabs{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.services-tabs::-webkit-scrollbar{ display:none; }

.services-tab{
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.services-tab:hover{
  background: var(--bg2);
  color: var(--text);
}
.services-tab.is-active{
  background: #0b0b0b;
  color:#fff;
}

/* =========================
   SNAPSHOT GRID
   ========================= */

.section.service-snapshot{ padding-top: 44px; }

.snapshot-grid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.snapshot-card{
  display:block;
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.snapshot-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(16,24,40,.10);
  border-color: rgba(11,42,58,.22);
}

.snapshot-title{ font-weight: 950; margin-bottom: 8px; }
.snapshot-text{ font-size: 14px; color: var(--muted); line-height: 1.5; }
.snapshot-link{ margin-top: 16px; font-size: 13px; font-weight: 800; color: var(--brand2); }

/* =========================
   SERVICE CHAPTERS (WITH BG IMAGE PER SECTION)
   ========================= */

.svc-chapter{
  position: relative;
  padding: 86px 0;
  color: #fff;
}

.svc-chapter .container{ position: relative; z-index: 2; }

.svc-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.svc-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.55) 45%,
    rgba(0,0,0,.20) 78%,
    rgba(0,0,0,.12) 100%
  );
}

/* Assign background images per service */
.svc-procurement .svc-bg{ background-image: url("../img/about-2.jpg"); }
.svc-engineering .svc-bg{ background-image: url("../img/data-about-hero3.jpg"); }
.svc-aviation .svc-bg{ background-image: url("../img/hero3.png"); }
.svc-logistics .svc-bg{ background-image: url("../img/data-about-hero2.png"); }

/* Head */
.svc-head{
  max-width: 860px;
  margin-bottom: 22px;
}
.svc-head h2{
  margin: 0 0 10px;
  color: #fff;
}
.svc-head .sub{
  color: rgba(255,255,255,.86);
  max-width: 70ch;
}

/* Grid */
.svc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Cards in chapters */
.svc-card{
  padding: 26px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  backdrop-filter: blur(6px);
}

.svc-card h3{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .1px;
  color:#fff;
}

.svc-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}
.svc-list li{ margin: 10px 0; }

/* Steps */
.svc-steps{
  display:grid;
  gap: 10px;
  margin-top: 6px;
}

.svc-step{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
}

.svc-step-num{
  font-weight: 950;
  color: rgba(255,255,255,.92);
  min-width: 30px;
}

.svc-step-text{
  font-size: 14px;
  color: rgba(255,255,255,.92);
}

/* Tags — ensure NO horizontal scrolling */
.svc-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 6px;
  overflow: visible;
}

.svc-tag{
  font-size: 12px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 10px;
  max-width: 100%;
  word-break: break-word;
}

.svc-cta{ margin-top: 18px; }
.svc-cta .btn{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color:#fff;
}
.svc-cta .btn.primary{
  background:#0b0b0b;
  border-color: transparent;
  color:#fff;
}

/* =========================
   COMPLIANCE / CROSS-SELL / CTA
   ========================= */

.compliance-card{
  padding: 34px 36px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(11,42,58,.06), rgba(176,141,87,.06));
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
}

.cross-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 34px 36px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: 0 16px 40px rgba(16,24,40,.10);
}
.cross-copy{ max-width: 740px; }
.cross-actions{ flex-shrink:0; }

.services-cta-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 34px 36px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 40px rgba(16,24,40,.10);
}
.services-cta-actions{
  display:flex;
  gap: 12px;
  flex-shrink:0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px){
  .services-hero{ padding: 56px 0 30px; }
  .services-hero-copy{ padding: 74px 0 46px; max-width: 100%; }
  .services-hero-copy h1{ font-size: 42px; line-height: 1.06; }

  .services-nav{ top: 64px; }

  .snapshot-grid{ grid-template-columns: repeat(2, 1fr); }

  .svc-grid{ grid-template-columns: 1fr; }
  .svc-chapter{ padding: 72px 0; }
}

@media (max-width: 720px){
  .services-nav-inner{
    flex-direction: column;
    align-items:flex-start;
  }

  .cross-card,
  .services-cta-card{
    flex-direction: column;
    align-items:flex-start;
  }

  .cross-actions,
  .services-cta-actions{
    width:100%;
    flex-wrap:wrap;
  }

  .cross-actions .btn,
  .services-cta-actions .btn{
    width:100%;
    justify-content:center;
  }
}

@media (max-width: 680px){
  .services-hero-copy h1{ font-size: 34px; }
  .services-hero-actions .btn{ width:100%; justify-content:center; }

  .snapshot-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .services-hero-bg{ transition:none; transform:none; }
  .services-hero-bg.is-active{ transform:none; }
}
