/* =========================
   Design tokens / base
   ========================= */

:root {
  --blue: #0070c9;
  --yellow: #ffb81c;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-subtle: #e5e7eb;
  --card-bg: #ffffff;
  --bg-page: #ffffff;
  --header-height: 72px;
  --max-width: 1120px;
}

/* Reset-ish */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Bahnschrift", "Barlow", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* =========================
   Header / Nav
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.logo-wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  width: auto;
  text-align: right;
  flex-wrap: nowrap;
}

.main-nav a {
  font-family: "Bahnschrift", "Barlow", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  opacity: 0.75;
}

/* =========================
   Hero (full-screen, bg image)
   ========================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  margin: 0 -50vw;
  left: 50%;
  width: 100vw;
  background-image: url("assets/BNSF_Topeck.jpg");
  background-size: cover;
  background-position: center center;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.15), transparent),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 999px;
  border: 6px solid var(--blue);
  background: #ffffff;
}

.hero-copy {
  max-width: 700px;
}

.hero-quote {
  font-size: 1.7rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero-bio {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #e5e7eb;
  margin: 0 0 1rem;
}

.hero-services {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5f2ff;
  font-weight: 600;
}

/* =========================
   Experience (blue band)
   ========================= */

.experience {
  position: relative;
  padding: 3rem 0;
  margin: 0;
  z-index: 0;
}

.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #edf4ff;
  z-index: -1;
}

.experience-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.experience-inner h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.35;
}

.accent {
  color: var(--yellow);
  font-weight: 700;
}

.experience-subtitle {
  margin: 0.6rem 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
}

.stat {
  padding-top: 0.3rem;
}

.number {
  display: block;
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--yellow);
}

/* animated counting state */
.number.counting {
  transform-origin: center;
  animation: number-spin 0.6s linear;
}

@keyframes number-spin {
  from {
    transform: rotateX(90deg);
    opacity: 0.6;
  }
  to {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

.label {
  display: block;
  font-size: 1.05rem;
  color: var(--blue);
}

/* =========================
   Clients / Tombstones
   ========================= */

.clients {
  padding: 1.75rem 0 2.5rem;
  background: #ffffff;
}

.clients-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.1rem;
  background: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.clients-inner h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.client-row {
  margin-top: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.client-track {
  display: flex;
  gap: 1rem;
}

/* tombstone card */

.client-card {
  flex: 0 0 200px;
  background: var(--card-bg);
  border-radius: 0.85rem;
  padding: 4rem 1rem;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.logo-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo-wrap img {
  max-width: 90%;
  max-height: 70px;
  object-fit: contain;
}

/* Double-size Transdev logo only */
.logo-wrap img[src*="transdev"] {
  transform: scale(2);
  transform-origin: center;
}

.engagement-type {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--blue);
  margin: 0;
}

/* =========================
   Contact (full-width grey band)
   ========================= */

.contact {
  position: relative;
  padding: 3rem 0;
  margin: 0;
  z-index: 0;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f3f3f3;
  z-index: -1;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-inner h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.icon-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: var(--blue);
  text-decoration: none;
  font-size: 1.1rem;
}

.icon-link.email::before {
  content: "✉";
}

.icon-link.linkedin {
  background: var(--blue);
  color: #ffffff;
}

.icon-link.linkedin::before {
  content: "in";
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-right img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-left: 2rem;
}

.contact-copy {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================
   Footer (not visible but kept)
   ========================= */

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.8rem 1.5rem 1.5rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    order: -1;
  }

  .experience-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-card {
    flex: 0 0 55%;
  }
}

/* Additional mobile refinements */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
  }

  .logo-lockup {
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    margin-top: 0.2rem;
  }

  .main-nav a {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0;
  }

  main {
    padding-inline: 1rem;
  }

  .hero {
    margin: 0;            /* no full-bleed hack on small screens */
    left: 0;
    width: 100%;
    min-height: auto;
    padding: 2.5rem 0 2.75rem;
  }

  .hero-inner,
  .experience-inner,
  .clients-inner,
  .contact-inner {
    padding-inline: 1.1rem;
  }

  .hero-services {
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  /* Contact layout on mobile:
     left = heading + icons + copyright
     right = IRA logo, horizontally aligned */
  .contact-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .contact-left {
    align-items: flex-start;
    width: 100%;
  }

  .contact-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .contact-right img {
    height: 80px;
    width: auto;
    margin-left: 1.25rem;
  }

  .client-card {
    flex: 0 0 75%;
  }
}
