/* =========================================================================
   InScope Logistics — Design System
   Strategic Advisory & Business Logistics for Emerging Markets
   Palette: White / Black / Light Orange accent
   ========================================================================= */

:root {
  /* Brand */
  --black: #0b0b0b;
  --charcoal: #222222;
  --white: #ffffff;
  --orange: #ff7a1a;
  --orange-soft: #fff1e7;
  --gray-bg: #f7f7f7;
  --gray-line: #e7e7e7;
  --gray-line-strong: #d8d8d8;
  --muted: #6a6a6a;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 10px;
  --radius-sm: 7px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--black);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.1em;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--tight {
  padding-block: clamp(44px, 6vw, 76px);
}

.section--gray {
  background: var(--gray-bg);
}

.section--dark {
  background: var(--black);
  color: #e9e9e9;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head p {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  margin-bottom: 0;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--charcoal);
  max-width: 760px;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.55rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.text-orange {
  color: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover {
  background: #ec6a09;
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--black);
  color: #fff;
}
.btn--dark:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-line-strong);
}
.btn--ghost:hover {
  border-color: var(--black);
}

.section--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.section--dark .btn--ghost:hover {
  border-color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  color: var(--black);
  font-size: 15px;
}
.arrow-link svg {
  transition: transform 0.2s var(--ease);
}
.arrow-link:hover {
  color: var(--orange);
}
.arrow-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand .b-in {
  color: var(--orange);
}
.brand .b-scope {
  color: var(--black);
}
.brand .b-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--charcoal);
  margin-left: 8px;
  text-transform: uppercase;
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover {
  color: var(--black);
  background: var(--gray-bg);
}
.nav-links a.is-active {
  color: var(--black);
  font-weight: 600;
}
.nav-links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin: 4px 14px 0;
}

.nav-cta {
  margin-left: 10px;
}
.nav-cta .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 108px);
}
.hero h1 {
  margin-bottom: 22px;
}
.hero .lead {
  margin-bottom: 30px;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--gray-line);
}
.page-hero h1 {
  margin-bottom: 20px;
}
.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- Abstract SVG visual ---------- */
.visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4.2;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--gray-bg) 100%);
  overflow: hidden;
}
.visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.visual .node-pulse {
  animation: pulse 3.2s var(--ease) infinite;
  transform-origin: center;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .visual .node-pulse {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--gray-line-strong);
  box-shadow: 0 14px 40px -24px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.card-icon {
  margin-bottom: 18px;
  color: var(--orange);
}

/* feature list inside cards */
.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 26px;
}
.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 15px;
  color: var(--charcoal);
  break-inside: avoid;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 2px;
}

/* ---------- Split content rows ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split--reverse .split-media {
  order: 2;
}
.split-media {
  position: sticky;
  top: 96px;
}

.stack {
  display: grid;
  gap: 28px;
}
.stack-item {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-line);
}
.stack-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.stack-item h3 {
  margin-bottom: 8px;
}
.stack-item p {
  color: var(--muted);
  margin-bottom: 0;
}

/* pillars */
.pillar {
  border-top: 3px solid var(--orange);
  padding-top: 22px;
}
.pillar h3 {
  margin-bottom: 10px;
}
.pillar p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 16px;
}

/* ---------- Detailed service blocks ---------- */
.service-block {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
}
.service-block .s-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  padding-top: 6px;
  border-top: 2px solid var(--orange);
}
.service-block h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 12px;
}
.service-block > div > p {
  color: var(--muted);
  max-width: 720px;
}

/* ---------- Insights grid ---------- */
.insight-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.insight-card:hover {
  border-color: var(--gray-line-strong);
  box-shadow: 0 16px 44px -26px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.insight-thumb {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--gray-line);
}
.insight-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}
.insight-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.insight-body h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.insight-card:hover h3 {
  color: var(--black);
}
.insight-body p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.insight-body .arrow-link {
  margin-top: auto;
}

/* ---------- Article ---------- */
.article {
  padding-block: clamp(40px, 6vw, 72px);
}
.article-wrap {
  max-width: 760px;
  margin-inline: auto;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-line-strong);
}
.article h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: 22px;
}
.article-hero-visual {
  margin: 30px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-line);
}
.article-hero-visual svg {
  width: 100%;
  display: block;
}
.article-body {
  font-size: 18px;
  line-height: 1.75;
}
.article-body > p:first-of-type {
  font-size: 20px;
  color: var(--charcoal);
}
.article-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-top: 1.7em;
  margin-bottom: 0.5em;
}
.article-body p {
  color: #333;
}
.article-note {
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--gray-bg);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--muted);
}
.article-note strong {
  color: var(--charcoal);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--charcoal);
  padding: 13px 15px;
  border: 1px solid var(--gray-line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.form-note {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 16px;
}

/* contact aside */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-aside h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.contact-aside .ca-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-line);
}
.contact-aside .ca-item:first-child {
  padding-top: 0;
}
.contact-aside p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 15.5px;
}
.contact-aside a {
  color: var(--orange);
  font-weight: 600;
}

/* ---------- Stat / trust strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  background: #fff;
}
.strip .s-item {
  border-left: 2px solid var(--orange);
  padding-left: 18px;
}
.strip .s-item strong {
  display: block;
  font-size: 15px;
  color: var(--black);
  margin-bottom: 4px;
}
.strip .s-item span {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta-band h2 {
  margin-bottom: 16px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 19px);
  margin-bottom: 28px;
}
.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #b9b9b9;
  padding-block: clamp(48px, 6vw, 72px) 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .brand .b-scope {
  color: #fff;
}
.site-footer .brand .b-sub {
  color: #9a9a9a;
}
.footer-blurb {
  margin-top: 18px;
  max-width: 380px;
  font-size: 15px;
  color: #9a9a9a;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 15px;
  color: #b9b9b9;
  transition: color 0.15s var(--ease);
}
.footer-col a:hover {
  color: var(--orange);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 13.5px;
  color: #7f7f7f;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 460px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split-media {
    order: 0;
  }
  .split-media {
    position: static;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-line);
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.35);
    transform: translateY(-130%);
    transition: transform 0.28s var(--ease);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 13px 6px;
    font-size: 17px;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-line);
  }
  .nav-links a.is-active::after {
    display: none;
  }
  .nav-links a.is-active {
    color: var(--orange);
  }
  .nav-cta {
    margin: 14px 0 0;
  }
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .feature-list {
    columns: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-block .s-no {
    display: inline-block;
  }
}
