/* ===================================
   CARTESIAN SUPPLY CHAIN
   Global Stylesheet
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:       #1B2E4A;
  --navy-dark:  #0f1c2e;
  --navy-light: #243d61;
  --blue:       #4A7FB5;
  --blue-light: #6B9ED4;
  --grey-50:    #F8FAFC;
  --grey-100:   #F1F5F9;
  --grey-200:   #E2E8F0;
  --grey-400:   #94A3B8;
  --grey-600:   #475569;
  --grey-700:   #334155;
  --text:       #1E293B;
  --white:      #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.nav-logo-text-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-open span:nth-child(2) { opacity: 0; }
.nav-toggle-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--grey-700);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

.nav-cta:hover { background: var(--navy-light) !important; }

/* ===== HERO ===== */

.hero {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 38, 0.52) 0%,
    rgba(10, 20, 38, 0.04) 22%,
    rgba(10, 20, 38, 0.04) 55%,
    rgba(10, 20, 38, 0.80) 100%
  );
}

/* Eyebrow bar — sits at top of banner, full width */
.hero-eyebrow-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-align: center;
  z-index: 2;
}

/* Description + CTA pushed to bottom */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5rem 3.5rem;
  max-width: 640px;
  z-index: 2;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--blue-light); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--grey-200);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--navy); }

/* ===== SECTIONS ===== */

.section { padding: 80px 2rem; }
.section-bg { background: var(--grey-50); }

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 620px;
  line-height: 1.75;
}

/* ===== POSITIONING QUOTE ===== */

.positioning-block {
  margin-top: 3rem;
  padding: 2.25rem 3rem;
  border-left: 4px solid var(--blue);
  background: var(--white);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.positioning-block p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.75;
}

/* ===== SERVICES ===== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--grey-600);
  line-height: 1.7;
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
}

/* ===== STATS BAR ===== */

.stats-bar {
  background: var(--navy);
  padding: 3.5rem 2rem;
}

.stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  height: 100%;
  display: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ===== WHO WE SERVE ===== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.client-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
}

.client-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 8px;
}

.client-item p {
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.65;
}

/* ===== CONTACT ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  margin-top: 3.5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--grey-700);
}

.contact-detail svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,127,181,0.1); }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-note {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-top: 0.75rem;
}

/* ===== BLOG LISTING ===== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.25s, transform 0.25s;
}

.blog-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.blog-card-body { padding: 1.75rem; }

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: block;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--grey-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--grey-400);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--grey-100);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.blog-read-more {
  font-weight: 600;
  color: var(--blue);
}

/* ===== BLOG POST ===== */

.post-header {
  background: var(--navy);
  padding: 70px 2rem 80px;
}

.post-header-inner { max-width: 760px; margin: 0 auto; }

.post-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
  display: block;
}

.post-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.post-byline { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

.post-body { padding: 60px 2rem 80px; }
.post-body-inner { max-width: 760px; margin: 0 auto; }

.post-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.post-body-inner p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey-700);
  margin-bottom: 1.5rem;
}

.post-body-inner strong { color: var(--navy); font-weight: 600; }

.post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-tags-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 0.5rem;
}

.post-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(74,127,181,0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 3rem;
}

.post-back:hover { color: var(--navy); }

.post-nav {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.post-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  max-width: 280px;
  line-height: 1.5;
}

.post-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.3rem;
}

/* ===== ABOUT ===== */

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 2rem;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 20, 38, 0.92) 0%,
    rgba(10, 20, 38, 0.78) 100%
  );
}

.about-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-box {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 340px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.about-photo {
  width: 100%;
  max-width: 340px;
  border-radius: 4px;
  display: block;
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.about-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.78;
}

.credentials-stack { display: flex; flex-direction: column; gap: 1rem; }

.credential-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.credential-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.credential-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}

.timeline { margin-top: 3rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--grey-200);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dates {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  padding-top: 0.2rem;
  line-height: 1.5;
}

.timeline-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.82rem;
  color: var(--grey-600);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--grey-600);
  line-height: 1.7;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.proof-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 1.75rem;
}

.proof-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.proof-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ===== PAGE HEADER (blog posts — keeps navy) ===== */

.page-header {
  background: var(--navy);
  padding: 64px 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== INNER PAGE BANNER HEADER (About, Blog) ===== */

.banner-header {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.banner-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.banner-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 38, 0.25) 0%,
    rgba(10, 20, 38, 0.0) 30%,
    rgba(10, 20, 38, 0.0) 50%,
    rgba(10, 20, 38, 0.80) 100%
  );
}

.banner-header-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5rem 2.5rem;
}

.banner-header-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.banner-header-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .banner-header { height: 220px; }
  .banner-header-content { padding: 0 2rem 2rem; }
  .banner-header-content h1 { font-size: 1.75rem; }
}

/* ===== FOOTER ===== */

footer {
  background: var(--navy-dark);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand { text-decoration: none; }

.footer-logo-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
}

.footer-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.2rem;
}

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

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

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero { height: auto; }
  .hero-img { height: auto; object-fit: unset; }
  .hero-content { position: relative; z-index: 3; background: var(--white); padding: 1.5rem 1.5rem 2rem; max-width: 100%; }
  .hero-sub { color: var(--text); font-size: 0.9rem; margin-bottom: 1.25rem; }
  .hero-headline { font-size: 1.75rem; }
  .hero-eyebrow-bar { padding: 0.75rem 1rem; letter-spacing: 0.06em; font-size: 0.6rem; white-space: normal; text-align: center; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 0.85rem 2rem; font-size: 0.9rem; color: var(--white); }
  .nav-links .nav-cta { margin: 0.5rem 2rem 0.75rem; display: inline-block; color: var(--white); }

  /* Layout */
  .clients-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
  .post-title { font-size: 1.75rem; }
  .post-nav { flex-direction: column; }
}
