@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0b2238;
  --navy-light: #153a5c;
  --blue: #2577c9;
  --green: #5fb34a;
  --green-light: #8fd36f;
  --ink: #101828;
  --slate-700: #344054;
  --slate-500: #667085;
  --slate-300: #d0d5dd;
  --slate-100: #f2f4f7;
  --bg-alt: #f7f9fb;
  --white: #ffffff;
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 34, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 34, 56, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--slate-700); margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--green-light); }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(16,24,40,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--navy); }
nav.main-nav a.active { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, #4a9c38 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(95, 179, 74, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(95, 179, 74, 0.45); }

.btn-outline {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Hero with image */
.hero {
  position: relative;
  color: var(--white);
  padding: 150px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-bg::after { content: ""; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,22,37,0.78) 0%, rgba(7,22,37,0.88) 55%, rgba(7,22,37,0.97) 100%);
}
.hero h1 { color: var(--white); }
.hero .lead {
  color: #cfdcea;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page header with image */
.page-header {
  position: relative;
  color: var(--white);
  padding: 120px 0 70px;
  overflow: hidden;
  isolation: isolate;
}
.page-header .hero-bg,
.page-header .hero-overlay { position: absolute; inset: 0; }
.page-header .hero-bg { z-index: -2; background-size: cover; background-position: center; }
.page-header .hero-overlay { z-index: -1; background: linear-gradient(120deg, rgba(11,34,56,0.94) 0%, rgba(21,58,92,0.86) 100%); }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: #cfdcea; font-size: 1.1rem; max-width: 640px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
section.tight { padding: 56px 0; }

.stats-strip {
  position: relative;
  margin-top: -64px;
  z-index: 5;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(16,24,40,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat {
  background: var(--white);
  text-align: left;
  padding: 28px 26px;
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--navy); display: block; }
.stat .label { color: var(--slate-500); font-size: 0.88rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid rgba(16,24,40,0.07);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.icon-bar {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 1.2rem;
}

/* Photo frame */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-3-4 { aspect-ratio: 3/4; }

/* Client logo strip -> now photo tiles */
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.client-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client-tile img { width: 100%; height: 100%; object-fit: cover; }
.client-tile .tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(11,34,56,0.92), rgba(11,34,56,0));
  color: var(--white); font-weight: 700; font-size: 0.85rem;
  padding: 24px 12px 10px;
  text-align: center;
}
.client-tile.more {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-weight: 700;
  text-align: center; padding: 16px; font-size: 0.95rem;
}

/* Large sliding client carousel (home page) */
.client-slider {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.client-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: client-slide 32s linear infinite;
}
.client-track:hover { animation-play-state: paused; }
.client-slide {
  position: relative;
  width: 440px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.client-slide img { width: 100%; height: 100%; object-fit: cover; }
.client-slide .tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(11,34,56,0.95), rgba(11,34,56,0) 70%);
  color: var(--white); font-weight: 800; font-size: 1.3rem;
  padding: 50px 24px 20px;
  letter-spacing: -0.01em;
}
@keyframes client-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .client-slide { width: 300px; height: 220px; }
}

.timeline { margin-top: 44px; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--slate-300);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .years {
  font-weight: 800; color: var(--blue); font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.timeline-item h3 { margin-bottom: 6px; }

blockquote.pull {
  position: relative;
  margin: 48px 0;
  padding: 36px 40px;
  font-size: 1.35rem;
  font-weight: 600;
  font-style: normal;
  color: var(--navy);
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}

.credential-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.credential-list li {
  padding: 16px 20px 16px 46px;
  background: var(--white);
  border: 1px solid rgba(16,24,40,0.07);
  border-radius: var(--radius-sm);
  position: relative;
  color: var(--slate-700);
  margin-bottom: 10px;
}
.credential-list li::before {
  content: "✓";
  position: absolute; left: 18px; top: 16px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: white; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* CTA band */
.cta-band {
  position: relative;
  color: var(--white);
  padding: 76px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band .hero-bg,
.cta-band .hero-overlay { position: absolute; inset: 0; }
.cta-band .hero-bg { z-index: -2; background-size: cover; background-position: center; }
.cta-band .hero-overlay { z-index: -1; background: linear-gradient(135deg, rgba(11,34,56,0.95), rgba(21,58,92,0.9)); }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #cfdcea; margin-bottom: 30px; font-size: 1.05rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.contact-info-item { margin-bottom: 26px; }
.contact-info-item .label2 {
  text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--green); font-weight: 700; display: block; margin-bottom: 6px;
}
.contact-info-item a, .contact-info-item div { font-size: 1.1rem; color: var(--navy); font-weight: 600; }

form.contact-form {
  background: var(--white);
  border: 1px solid rgba(16,24,40,0.07);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
form.contact-form label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--navy); }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  margin-bottom: 18px; transition: border-color 0.15s ease;
}
form.contact-form input:focus, form.contact-form textarea:focus {
  outline: none; border-color: var(--blue);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form .btn-primary { width: 100%; justify-content: center; border: none; }

/* Footer */
footer.site-footer { background: var(--navy); color: #a9bbcf; padding: 48px 0 30px; }
footer.site-footer .footer-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site-footer .brand img { height: 36px; }
footer.site-footer nav a { color: #a9bbcf; margin-left: 22px; font-size: 0.92rem; font-weight: 600; }
footer.site-footer .fine-print { padding-top: 22px; font-size: 0.85rem; color: #7f93a8; }

/* Case study cards */
.cs-card { display:flex; flex-direction:column; height:100%; padding: 0; overflow: hidden; }
.cs-card .cs-photo { aspect-ratio: 16/9; overflow: hidden; }
.cs-card .cs-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cs-card:hover .cs-photo img { transform: scale(1.06); }
.cs-card .cs-body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.cs-badge {
  display:inline-block; align-self:flex-start;
  background: var(--bg-alt); color: var(--blue); font-weight:700; font-size:0.76rem;
  text-transform:uppercase; letter-spacing:0.05em; padding:5px 13px; border-radius:999px; margin-bottom:14px;
}
.cs-results { list-style:none; padding:0; margin:14px 0 24px; flex-grow:1; }
.cs-results li { padding:6px 0 6px 24px; position:relative; font-size:0.95rem; color:var(--slate-700); }
.cs-results li::before { content:"✓"; color:var(--green); font-weight:800; position:absolute; left:0; }
.cs-results strong { color: var(--navy); }

@media (max-width: 960px) {
  nav.main-nav { display: none; }
  .grid-3, .stats-row, .contact-grid, .client-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .grid-3, .stats-row, .contact-grid, .client-grid, .grid-4 { grid-template-columns: 1fr; }
}


/* === Site tweaks: Ford photo + bigger carousel === */
/* Ford assembly-line band: lighter overlay so the photo shows, taller band */
.page-header:has(.hero-bg[style*="ford-assembly-line"]) { padding: 190px 0 !important; }
.hero-bg[style*="ford-assembly-line"] { background-position: center 40% !important; }
.hero-bg[style*="ford-assembly-line"] + .hero-overlay { background: linear-gradient(180deg, rgba(7,22,37,0.10) 0%, rgba(7,22,37,0.30) 100%) !important; }
.page-header:has(.hero-bg[style*="ford-assembly-line"]) h2,
.page-header:has(.hero-bg[style*="ford-assembly-line"]) .eyebrow { text-shadow: 0 2px 14px rgba(0,0,0,0.7); }

/* Homepage brand carousel: larger, zoomed-in photos */
.client-track { gap: 32px; animation-duration: 45s; }
.client-slide { width: 640px; height: 460px; border-radius: 24px; }
.client-slide img { transform: scale(1.18); transform-origin: center 45%; transition: transform .6s ease; }
.client-slide:hover img { transform: scale(1.26); }
.client-slide .tag { font-size: 1.7rem; padding: 70px 30px 26px; }
@media (max-width: 900px) { .client-slide { width: 480px; height: 345px; } }
@media (max-width: 600px) { .client-slide { width: 320px; height: 240px; } .client-slide .tag { font-size: 1.25rem; padding: 50px 20px 18px; } }

/* Small caption in the bottom-right corner of the Ford photo */
.ford-caption { position: absolute; right: 28px; bottom: 20px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; color: rgba(255,255,255,0.9); text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
@media (max-width: 600px) { .ford-caption { right: 16px; bottom: 12px; font-size: 0.7rem; } .page-header:has(.hero-bg[style*="ford-assembly-line"]) { padding: 120px 0 !important; } }
