:root {
  --deep: #071c22;
  --deep-2: #0b2a31;
  --teal: #0f6f73;
  --teal-2: #0f5d63;
  --gold: #d9bd78;
  --paper: #f6f8f7;
  --ink: #10252b;
  --muted: #60737a;
  --line: rgba(15, 93, 99, .18);
  --shadow: 0 24px 60px rgba(8, 25, 31, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.service-detail-page {
  margin: 0;
  background: #f8faf9;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

body.service-detail-page a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-redesign {
  background: var(--deep);
  color: rgba(255, 255, 255, .88);
  font-size: .86rem;
}

.topbar-redesign .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-redesign a {
  text-decoration: none;
}

.nav-redesign {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 249, .94);
  border-bottom: 1px solid rgba(15, 93, 99, .14);
  backdrop-filter: blur(16px);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}

.nav-redesign.nav-hidden {
  transform: translateY(-100%);
}

.nav-redesign.nav-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 16px 34px -28px rgba(7, 28, 34, .72);
}

.nav-redesign .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 198px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-weight: 700;
  color: #244047;
}

.nav-menu a,
.nav-menu button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.nav-menu a:hover,
.nav-menu button:hover {
  color: var(--teal-2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 260px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 10px;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover {
  background: rgba(15, 93, 99, .08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.mobile-menu-toggle,
.language-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 93, 99, .22);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-2);
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
}

.language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.language-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language-current-flag,
.language-current-code,
.language-chevron {
  display: none;
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

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

.language-options button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.language-options button:hover,
.language-options button.active {
  background: rgba(15, 93, 99, .08);
}

.language-options img {
  width: 22px;
  height: 16px;
  object-fit: cover;
}

.it-cta,
.nav-cta,
.cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.it-cta {
  border: 1px solid rgba(15, 93, 99, .22);
  background: #fff;
  color: var(--teal-2);
}

.nav-cta,
.cta-primary {
  border: 1px solid var(--teal-2);
  background: var(--teal-2);
  color: #fff;
}

.cta-ghost {
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}

.cta-light {
  border: 1px solid rgba(15, 93, 99, .2);
  background: #fff;
  color: var(--teal-2);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  background:
    radial-gradient(circle at 82% 22%, rgba(15, 111, 115, .48), transparent 34%),
    radial-gradient(circle at 20% 84%, rgba(217, 189, 120, .13), transparent 30%),
    linear-gradient(135deg, #071c22 0%, #0c2e35 56%, #0f5d63 100%);
  color: #fff;
}

.detail-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: rotate(-2deg) scale(1.08);
}

.detail-hero:after {
  content: "";
  position: absolute;
  width: 620px;
  height: 260px;
  right: -120px;
  bottom: 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.detail-hero .container {
  position: relative;
  z-index: 2;
}

.detail-hero-content {
  max-width: 850px;
  padding: 118px 0 78px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}

.detail-hero h1,
.detail-section h2,
.cta-band h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.detail-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}

.detail-hero .lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.detail-page-main {
  background: #f8faf9;
}

.detail-section {
  padding: 76px 0;
}

.detail-section.compact {
  padding-top: 38px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--teal-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.detail-section h2 {
  max-width: 860px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  color: var(--ink);
}

.section-lead {
  max-width: 840px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.detail-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(8, 25, 31, .05);
}

.detail-card .icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(15, 93, 99, .1);
  color: var(--teal-2);
}

.detail-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.16rem;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
  line-height: 1.55;
}

.detail-card ul,
.premium-panel ul,
.check-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.premium-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid rgba(15, 93, 99, .2);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eff7f5 100%);
  box-shadow: var(--shadow);
}

.premium-panel h3 {
  margin: 0 0 14px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.premium-panel p,
.premium-panel li {
  color: var(--muted);
  line-height: 1.62;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.process-step {
  min-height: 176px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.process-section {
  background: var(--deep);
  color: #fff;
}

.process-section h2,
.process-section .section-lead {
  color: #fff;
}

.process-step strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1.4rem;
}

.process-step h3 {
  margin: 0 0 8px;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.route-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(8, 25, 31, .05);
}

.route-card .icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(15, 93, 99, .1);
  color: var(--teal-2);
}

.route-card h3 {
  margin: 0 0 10px;
}

.route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.scope-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.scope-step {
  position: relative;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.scope-step:after {
  content: "";
  position: absolute;
  top: 38px;
  right: -12px;
  width: 20px;
  height: 2px;
  background: rgba(217, 189, 120, .55);
}

.scope-step:last-child:after {
  display: none;
}

.scope-step strong {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scope-step h3 {
  margin: 14px 0 10px;
  color: #fff;
}

.scope-step p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
}

.case-study-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(15, 93, 99, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.case-stat {
  min-height: 100%;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--teal-2) 100%);
  color: #fff;
}

.case-stat .number {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .9;
}

.case-stat p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  line-height: 1.6;
}

.case-study-panel h3 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.case-study-panel p,
.case-study-panel li {
  color: var(--muted);
  line-height: 1.62;
}

.case-study-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.cta-band {
  padding: 52px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 22%, rgba(217, 189, 120, .2), transparent 28%),
    linear-gradient(135deg, var(--deep) 0%, var(--teal-2) 100%);
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
}

.cta-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
  font-size: 1.08rem;
}

.cta-band .eyebrow {
  color: #fff;
}

.cta-band .cta-light {
  background: #fff;
  border-color: #fff;
  color: var(--teal-2);
}

.cta-band .cta-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .52);
  background: transparent;
}

.cta-band .cta-light:hover,
.cta-band .cta-ghost:hover {
  transform: translateY(-2px);
}

.site-footer-redesign {
  background: var(--deep);
  color: rgba(255, 255, 255, .72);
  padding: 54px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
}

.footer-brand img {
  width: 210px;
  display: block;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.site-footer-redesign h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer-redesign a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.footer-bottom-redesign {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .topbar-redesign {
    display: none;
  }

  .nav-redesign .container {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    width: calc(100% - 170px);
  }

  .brand img {
    width: 168px;
    max-width: 100%;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-menu {
    width: 100%;
    display: none;
    order: 10;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .nav-redesign.open .nav-menu {
    display: grid;
    gap: 8px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }

  .nav-cta {
    display: none;
  }

  .it-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: .78rem;
  }

  .language-toggle,
  .mobile-menu-toggle {
    width: 38px;
    height: 36px;
  }

  .language-selector {
    width: 38px;
    height: 36px;
  }

  .detail-hero {
    min-height: 560px;
  }

  .detail-hero-content {
    padding: 80px 0 52px;
  }

  .detail-hero h1 {
    max-width: 360px;
    font-size: clamp(2.25rem, 10vw, 3.15rem);
  }

  .detail-hero .lead {
    font-size: 1rem;
  }

  .detail-grid,
  .process-grid,
  .route-grid,
  .scope-map,
  .footer-grid,
  .premium-panel,
  .case-study-panel,
  .case-study-panel ul {
    grid-template-columns: 1fr;
  }

  .scope-step:after {
    display: none;
  }

  .detail-section {
    padding: 54px 0;
  }

  .cta-band {
    padding: 30px 24px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .it-cta {
    flex: 1;
  }

  .detail-card,
  .premium-panel {
    padding: 20px;
  }
}


/* 2026-07 consistency and responsive hardening */
.nav-redesign, .main-nav {
  will-change: transform;
  transition: transform .32s cubic-bezier(.23,1,.32,1), box-shadow .28s ease, border-color .28s ease;
}
.nav-redesign.nav-hidden, .main-nav.nav-hidden { transform: translate3d(0,-102%,0); }
.service-card .service-image,
.service-card .service-image img,
.services-grid article img,
.expertise-grid article img,
.detail-card img,
.content-card img {
  width: 100%;
}
.service-card .service-image,
.services-grid article .image-wrap,
.expertise-grid article .image-wrap {
  overflow: hidden;
}
.service-card .service-image img,
.services-grid article img,
.expertise-grid article img,
.detail-card img,
.content-card img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 780px) {
  img { height: auto; }
  .service-card .service-image img,
  .services-grid article img,
  .expertise-grid article img { aspect-ratio: 16 / 10; object-fit: cover; }
  .nav-actions { gap: 8px; }
  .nav-cta, .it-cta { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-redesign, .main-nav { transition: none !important; }
}


/* === Final service-page polish 2026-07-10 === */
.detail-hero.customs-hero {
  background:
    linear-gradient(105deg, rgba(7, 28, 34, .90) 0%, rgba(7, 28, 34, .62) 46%, rgba(15, 93, 99, .28) 100%),
    url('img/customs-services-hero.webp') center/cover no-repeat;
}

.detail-hero.logistics-hero {
  background:
    linear-gradient(105deg, rgba(7, 28, 34, .88) 0%, rgba(7, 28, 34, .54) 48%, rgba(15, 93, 99, .24) 100%),
    url('img/logistics-services-hero.webp') center/cover no-repeat;
}

.detail-hero.project-hero {
  background:
    linear-gradient(105deg, rgba(7, 28, 34, .88) 0%, rgba(7, 28, 34, .56) 48%, rgba(15, 93, 99, .24) 100%),
    url('img/project-logistics-hero.webp') center/cover no-repeat;
}

.detail-hero.customs-hero:before,
.detail-hero.logistics-hero:before,
.detail-hero.project-hero:before {
  opacity: .16;
}

.detail-hero.customs-hero:after,
.detail-hero.logistics-hero:after,
.detail-hero.project-hero:after {
  background: rgba(255,255,255,.05);
}

.service-intelligence {
  padding-top: 18px;
}

.service-insight-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.service-media-card,
.service-widget-card {
  margin: 0;
  border: 1px solid rgba(15, 93, 99, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -42px rgba(14, 26, 34, .35);
  overflow: hidden;
}

.service-media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-media-card figcaption {
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: .92rem;
}

.service-widget-card {
  padding: 24px;
}

.service-widget-card h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.widget-lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.widget-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.widget-stat {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(15, 93, 99, .12);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7f6 100%);
}

.widget-stat strong {
  display: block;
  color: var(--teal-2);
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.widget-stat span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.widget-bullets {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.widget-bullets li::marker {
  color: var(--teal-2);
}

@media (max-width: 980px) {
  .service-insight-grid,
  .widget-stat-grid {
    grid-template-columns: 1fr;
  }
}


/* === Dynamic hero/media refinement 2026-07-10 final === */
.detail-hero.dynamic-hero-surface {
  background: linear-gradient(105deg, rgba(7, 28, 34, .88) 0%, rgba(7, 28, 34, .56) 48%, rgba(15, 93, 99, .24) 100%);
}

.detail-hero.dynamic-hero-surface.customs-hero { --detail-hero-image: url('img/customs-services-hero.webp'); }
.detail-hero.dynamic-hero-surface.logistics-hero { --detail-hero-image: url('img/logistics-services-hero.webp'); }
.detail-hero.dynamic-hero-surface.project-hero { --detail-hero-image: url('img/project-logistics-hero.webp'); }

.detail-hero.dynamic-hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background-image: var(--detail-hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.035);
  will-change: transform;
  animation: detailHeroDrift 24s ease-in-out infinite alternate;
}

.detail-hero.dynamic-hero-surface::after {
  z-index: 1;
  animation: detailPanelFloat 18s ease-in-out infinite alternate;
  will-change: transform;
}

.detail-hero.dynamic-hero-surface .container {
  z-index: 2;
}

.service-media-card {
  overflow: hidden;
}

.service-media-card img {
  transform: scale(1.03);
  will-change: transform;
  animation: detailMediaDrift 18s ease-in-out infinite alternate;
  transition: transform .45s ease;
}

.service-media-card:hover img {
  transform: scale(1.07);
}

@keyframes detailHeroDrift {
  0% { transform: scale(1.03) translate3d(0,0,0); }
  100% { transform: scale(1.09) translate3d(-1.4%, -1%, 0); }
}

@keyframes detailMediaDrift {
  0% { transform: scale(1.03) translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(-1.1%, -.8%, 0); }
}

@keyframes detailPanelFloat {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-12px, 10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero.dynamic-hero-surface::before,
  .detail-hero.dynamic-hero-surface::after,
  .service-media-card img {
    animation: none !important;
    transform: none !important;
  }
}


/* === Readability and mobile hero optimization 2026-07-10 v5 === */
.detail-hero {
  min-height: 500px;
}

.detail-hero::before {
  opacity: .24;
}

.detail-hero::after {
  background: rgba(255, 255, 255, .035);
}

.detail-hero-content {
  max-width: 860px;
  padding: 112px 34px 70px;
  border-radius: 28px;
  background:
    linear-gradient(102deg, rgba(6, 16, 20, .72) 0%, rgba(6, 16, 20, .58) 56%, rgba(6, 16, 20, .18) 100%);
  backdrop-filter: blur(8px);
  box-shadow: 0 36px 80px -58px rgba(0, 0, 0, .66);
}

.detail-hero h1,
.detail-hero .lead,
.detail-hero .eyebrow {
  text-shadow: 0 4px 22px rgba(0, 0, 0, .42);
}

.detail-hero h1 {
  max-width: 720px;
}

.detail-hero .lead {
  max-width: 700px;
  color: rgba(255, 255, 255, .94);
}

.hero-actions .cta {
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, .42);
}

@media (max-width: 980px) {
  .detail-hero {
    min-height: 450px;
  }

  .detail-hero-content {
    max-width: 100%;
    padding: 88px 24px 52px;
    border-radius: 24px;
    background:
      linear-gradient(120deg, rgba(6, 16, 20, .78) 0%, rgba(6, 16, 20, .60) 62%, rgba(6, 16, 20, .24) 100%);
  }

  .detail-hero h1 {
    max-width: 540px;
  }

  .detail-hero .lead {
    max-width: 540px;
  }
}

@media (max-width: 767px) {
  .detail-hero {
    min-height: 400px;
  }

  .detail-hero::after {
    display: none;
  }

  .detail-hero-content {
    padding: 60px 18px 34px;
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(6, 16, 20, .84) 0%, rgba(6, 16, 20, .68) 100%);
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: .72rem;
    letter-spacing: .13em;
  }

  .detail-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.04;
  }

  .detail-hero .lead {
    margin-top: 18px;
    font-size: .97rem;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero-actions .cta-light {
    display: none;
  }

  .hero-actions .cta {
    min-height: 42px;
    width: 100%;
    justify-content: center;
  }
}

/* === Final secondary-page mobile guard 2026-07-10 v6 === */
html,
body.service-detail-page {
  max-width: 100%;
  overflow-x: clip !important;
}

body.service-detail-page .nav-redesign .language-selector {
  display: inline-flex !important;
}

@media (max-width: 820px) {
  .detail-hero.dynamic-hero-surface::before,
  .detail-hero.dynamic-hero-surface::after,
  .service-media-card img {
    animation: none !important;
    will-change: auto !important;
  }

  .detail-hero.dynamic-hero-surface::before,
  .service-media-card img {
    transform: none !important;
  }

  .service-insight-grid,
  .premium-panel,
  .detail-grid,
  .process-grid,
  .route-grid,
  .scope-map,
  .case-study-panel,
  .footer-grid {
    min-width: 0;
  }

  .service-media-card,
  .service-widget-card,
  .detail-card,
  .route-card,
  .process-step,
  .scope-step {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.service-detail-page .nav-redesign .language-options {
    position: fixed !important;
    left: auto !important;
    right: 14px !important;
    top: 74px !important;
    width: min(210px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
  }
}

@media (max-width: 420px) {
  body.service-detail-page .nav-redesign .language-options {
    top: 158px !important;
  }
}

/* Compact language control on secondary mobile pages */
@media (max-width: 820px) {
  body.service-detail-page .nav-redesign .language-selector {
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 36px !important;
    margin: 0 !important;
  }

  body.service-detail-page .nav-redesign .language-toggle {
    box-sizing: border-box !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 36px !important;
    padding: 0 !important;
  }

  body.service-detail-page .nav-redesign .language-current-flag,
  body.service-detail-page .nav-redesign .language-current-code,
  body.service-detail-page .nav-redesign .language-chevron {
    display: none !important;
  }
}

/* final non-invasive performance/mobile pass */
@media(max-width:767px){.hero-redesign h1{max-width:12ch;font-size:clamp(2.15rem,10vw,3.15rem)!important;line-height:1.02!important}.hero-redesign .lead{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.pillar .icon,.detail-card .icon,.service-card .icon{transform:scale(1.15);transform-origin:left top}.blog-layout,.customs-post,.sidebar-box{min-width:0;max-width:100%}.customs-post{overflow-wrap:anywhere}.customs-post img{max-width:100%;height:auto}.blog-main-list{min-width:0}.topbar-redesign{display:none!important}}
@media(max-width:420px){.hero-redesign{min-height:78svh!important}.hero-inner{padding-top:72px!important;padding-bottom:46px!important}.nav-actions .language-selector{display:none!important}.nav-redesign.open .nav-menu:after{content:'RO  ·  EN';display:block;padding:12px;color:#0f5d63;font-weight:800;border-top:1px solid rgba(16,36,46,.12)}}
section{content-visibility:visible;contain-intrinsic-size:auto}


/* Final alignment refinement */
.detail-card{display:flex;flex-direction:column;height:100%}
.detail-card ul{margin-bottom:0}
.detail-card>.cta,.detail-card>.card-link{margin-top:auto;align-self:flex-start}
.service-media-card img{object-position:center}

/* Ziua 1: legături secundare către servicii conexe */
.card-secondary-link{display:inline-flex;margin-top:12px;color:#0f5d63;font-weight:800;text-decoration:none}.card-secondary-link:hover{text-decoration:underline}


/* Ziua 3: FAQ proiecte complexe */
.day3-project-faq .faq{display:grid;border-top:1px solid rgba(16,36,46,.12)}
.day3-project-faq .faq details{padding:18px 0;border-bottom:1px solid rgba(16,36,46,.12)}
.day3-project-faq .faq summary{cursor:pointer;font-weight:800;color:#10242e}
.day3-project-faq .faq details p{max-width:880px;margin:10px 0 0;color:#60737b;line-height:1.65}
.day3-project-faq .faq details[open] summary{color:#0f5d63}
.day3-project-proof .detail-card{display:flex;flex-direction:column}
.day3-project-proof .detail-card .cta{margin-top:auto;align-self:flex-start}

/* Ziua 4: traseu compact și CTA mobil pentru serviciul integrat */
.day4-funnel-rail{position:relative;z-index:6;border-bottom:1px solid rgba(16,36,46,.12);background:#fff;content-visibility:visible}.day4-funnel-rail-inner{display:flex;align-items:center;gap:10px;min-height:58px;overflow-x:auto;scrollbar-width:none}.day4-funnel-rail-inner::-webkit-scrollbar{display:none}.day4-funnel-label{flex:0 0 auto;margin-right:6px;color:#60737b;font-size:.78rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.day4-funnel-rail a{flex:0 0 auto;padding:8px 12px;border:1px solid rgba(15,93,99,.16);border-radius:999px;color:#0f5d63;text-decoration:none;font-size:.86rem;font-weight:800}.day4-funnel-rail a:hover,.day4-funnel-rail a:focus-visible{background:#eaf3f2;outline:none}.mobile-funnel-cta{display:none}@media(max-width:820px){body[data-funnel-page="service"]{padding-bottom:70px}.day4-funnel-rail-inner{min-height:54px}.day4-funnel-label{display:none}.day4-funnel-rail a{font-size:.8rem}.mobile-funnel-cta{position:fixed;left:12px;right:12px;bottom:12px;z-index:90;display:block;opacity:0;visibility:hidden;transform:translateY(18px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}.mobile-funnel-cta.visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.mobile-funnel-cta a{display:flex;align-items:center;justify-content:center;min-height:50px;padding:0 18px;border-radius:13px;background:#0f5d63;box-shadow:0 18px 38px -20px rgba(7,28,34,.8);color:#fff;text-decoration:none;font-weight:900}}


/* === Zilele 6-7: About CTA + footer hardening === */
.about-secondary-cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:1px solid rgba(255,255,255,.62);border-radius:10px;background:#fff;color:var(--teal-2);font-weight:800;text-decoration:none;transition:transform .18s ease,background .18s ease}
.about-secondary-cta:hover{transform:translateY(-2px);background:#f4f8f7}
.detail-footer{padding:56px 0 24px;background:var(--deep);color:rgba(255,255,255,.74)}
.detail-footer .footer-grid{display:grid;grid-template-columns:1.35fr .8fr .8fr 1fr;gap:34px;align-items:start}
.detail-footer .detail-footer-brand img{display:block;width:190px;max-width:100%;height:auto;margin-bottom:16px;filter:brightness(0) invert(1)}
.detail-footer p,.detail-footer span{color:rgba(255,255,255,.68);line-height:1.65}
.detail-footer strong{display:block;margin-bottom:13px;color:#fff;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase}
.detail-footer a{display:block;margin:8px 0;color:rgba(255,255,255,.82);text-decoration:none}
.detail-footer a:hover{color:#fff}
.detail-footer-bottom{margin-top:34px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.52);font-size:.86rem}
.site-footer-redesign .footer-grid{display:grid;grid-template-columns:1.25fr .9fr .9fr;gap:34px;align-items:start}
.site-footer-redesign .footer-brand,.site-footer-redesign .footer-brand img{max-width:100%}
.site-footer-redesign p{line-height:1.65}
@media(max-width:900px){.detail-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){body.about-clarified-page .about-brand-hero .hero-actions{display:grid;grid-template-columns:1fr;width:100%}body.about-clarified-page .about-brand-hero .hero-actions .cta,body.about-clarified-page .about-brand-hero .hero-actions .about-secondary-cta{display:inline-flex!important;width:100%;min-height:46px}.detail-footer{padding-top:44px}.detail-footer .footer-grid,.site-footer-redesign .footer-grid{grid-template-columns:1fr}.detail-footer .footer-grid{gap:26px}.detail-footer-bottom{margin-top:26px}}


/* Zilele 10-11: contract informațional pentru Project Logistics */
.project-agentic-contract{padding:34px 0;border-bottom:1px solid rgba(16,36,46,.12);background:#fff;content-visibility:visible;contain-intrinsic-size:auto}
.project-agentic-contract .agentic-contract-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:28px;align-items:start}
.project-agentic-contract .agentic-contract-summary h2{margin:8px 0 12px;font-family:"DM Serif Display",Georgia,serif;font-size:clamp(1.75rem,2.8vw,2.45rem);line-height:1.08}
.project-agentic-contract .agentic-contract-summary p{margin:0;color:#60737b;line-height:1.7}
.project-agentic-contract .agentic-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.project-agentic-contract .agentic-facts div{padding:16px;border:1px solid rgba(16,36,46,.12);border-radius:14px;background:#f7f5ef}
.project-agentic-contract .agentic-facts dt{margin-bottom:6px;color:#0f5d63;font-size:.75rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.project-agentic-contract .agentic-facts dd{margin:0;color:#60737b;font-size:.92rem;line-height:1.55}
@media(max-width:820px){.project-agentic-contract{padding:26px 0}.project-agentic-contract .agentic-contract-grid,.project-agentic-contract .agentic-facts{grid-template-columns:1fr}.project-agentic-contract .agentic-contract-summary h2{font-size:1.8rem}.project-agentic-contract .agentic-facts div{padding:14px}}

/* === Day 12: final CTA visibility and compact footer normalization === */
body.about-clarified-page .about-brand-hero .about-secondary-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  background: #fff !important;
  color: #0f5d63 !important;
  box-shadow: 0 14px 30px -24px rgba(0, 0, 0, .5);
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
}
body.about-clarified-page .about-brand-hero .about-secondary-cta:hover,
body.about-clarified-page .about-brand-hero .about-secondary-cta:focus-visible {
  background: #f4f8f7 !important;
  color: #083c46 !important;
  border-color: #fff;
  outline: none;
}

.site-footer-redesign {
  min-height: 0;
  padding: 38px 0 18px;
}
.site-footer-redesign .footer-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, .75fr) minmax(180px, .75fr);
  gap: 24px 30px;
  align-items: start;
}
.site-footer-redesign .footer-grid > div,
.detail-footer .footer-grid > div {
  min-width: 0;
}
.site-footer-redesign a.footer-brand {
  display: inline-flex;
  width: auto;
  margin: 0;
}
.site-footer-redesign a.footer-brand img {
  display: block;
  width: 176px !important;
  max-width: 100%;
  height: auto !important;
  max-height: 62px;
  margin: 0 0 10px;
}
.site-footer-redesign p {
  max-width: 46ch;
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
}
.site-footer-redesign h3 {
  margin: 2px 0 10px;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.site-footer-redesign a:not(.footer-brand) {
  margin: 5px 0;
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.site-footer-redesign .footer-bottom-redesign {
  margin-top: 22px;
  padding-top: 15px;
  font-size: .82rem;
}

.detail-footer {
  min-height: 0;
  padding: 38px 0 18px;
}
.detail-footer .footer-grid {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(150px, .72fr));
  gap: 24px 28px;
}
.detail-footer .detail-footer-brand img {
  width: 176px !important;
  max-height: 62px;
  margin-bottom: 10px;
}
.detail-footer p,
.detail-footer span {
  margin-top: 0;
  font-size: .9rem;
  line-height: 1.55;
}
.detail-footer strong {
  margin-bottom: 10px;
  font-size: .78rem;
}
.detail-footer a {
  margin: 5px 0;
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.detail-footer-bottom {
  margin-top: 22px;
  padding-top: 15px;
  font-size: .82rem;
}

@media (max-width: 900px) {
  .site-footer-redesign .footer-grid,
  .detail-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer-redesign .footer-grid > div:first-child,
  .detail-footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .site-footer-redesign,
  .detail-footer {
    padding: 30px 0 16px;
  }
  .site-footer-redesign .footer-grid,
  .detail-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .site-footer-redesign .footer-grid > div:first-child,
  .detail-footer .footer-grid > div:first-child {
    grid-column: auto;
  }
  .site-footer-redesign p,
  .detail-footer p,
  .detail-footer span {
    font-size: .86rem;
  }
  .site-footer-redesign .footer-bottom-redesign,
  .detail-footer-bottom {
    margin-top: 18px;
    padding-top: 13px;
  }
  body.about-clarified-page .about-brand-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  body.about-clarified-page .about-brand-hero .hero-actions .cta {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
/* Day 12 hotfix: some secondary pages use a DIV footer-brand, so force the SVG intrinsic height to follow its CSS width. */
.site-footer-redesign .footer-brand img {
  display: block;
  width: 176px !important;
  max-width: 100%;
  height: auto !important;
  max-height: 62px;
  margin: 0 0 10px;
}

/* Day 12 mobile footer compaction: keep navigation groups side by side where space permits. */
@media (max-width: 560px) {
  .site-footer-redesign .footer-grid,
  .detail-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
  }
  .site-footer-redesign .footer-grid > div:first-child,
  .detail-footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .site-footer-redesign h3,
  .detail-footer strong {
    margin-bottom: 8px;
  }
  .site-footer-redesign a:not(.footer-brand),
  .detail-footer a {
    margin: 4px 0;
    font-size: .84rem;
  }
}
@media (max-width: 340px) {
  .site-footer-redesign .footer-grid,
  .detail-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-redesign .footer-grid > div:first-child,
  .detail-footer .footer-grid > div:first-child {
    grid-column: auto;
  }
}

