:root {
  --navy: #0f2347;
  --navy-deep: #091726;
  --teal: #1f7a7d;
  --teal-soft: #e4f5f4;
  --coral: #ff7f6b;
  --coral-soft: #fff0eb;
  --text: #18344b;
  --muted: #5e7389;
  --border: #dce6ee;
  --bg: #fcfdfd;
  --shadow: 0 20px 45px rgba(15, 35, 71, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 253, 253, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 230, 238, 0.8);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--teal-soft) 100%);
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.hero-text,
.section-heading p,
.about-grid p,
.info-card p,
.case-card p,
.contact-grid p {
  color: var(--muted);
  font-size: 1.02rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 10px 25px rgba(255, 127, 107, 0.25);
}

.hero-visual {
  padding: 1rem;
  border-radius: 2rem;
  background: white;
  box-shadow: var(--shadow);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #f8fbfc;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.about-card,
.info-card,
.case-card,
.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.about-card,
.info-card,
.case-card {
  padding: 1.5rem;
}

/* Shared card grid layout — used by both the Services and Portfolio
   sections. Kept as a single definition so both sections always
   stay in sync (previously this was declared twice with conflicting
   column/gap rules, and the second definition silently won). */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-card a {
  font-weight: 600;
  margin-right: 1rem;
  display: inline-block;
}

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

label {
  font-weight: 600;
  color: var(--navy);
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(31, 122, 125, 0.2);
  border-color: var(--teal);
}

.social-links {
  display: flex;
  gap: 1rem;
  padding: 0;
  list-style: none;
  margin: 1rem 0 0;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.footer-row {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--teal-soft);
  color: var(--navy);
}

.compare-table tbody tr:nth-child(even) {
  background: #fafcfd;
}

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0.5rem;
  color: var(--text);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

blockquote footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}

/* Service cards get a subtle hover lift; portfolio/about cards stay static */
.info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(15, 35, 71, 0.12);
  border-color: var(--navy);
}

.info-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.price-tag {
  display: inline-block;
  background-color: rgba(15, 35, 71, 0.06);
  color: var(--navy);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(15, 35, 71, 0.1);
}

.info-card p:not(.price-tag) {
  margin: 0;
}

@media (max-width: 800px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 600px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero {
    padding: 3rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .card-grid {
    gap: 1.25rem;
  }

  .info-card {
    padding: 1.25rem;
  }
}

/* ---------------------------------------------
   Article / case study body content
   Scoped to .article-body so it only affects
   long-form pages (case studies, blog articles)
   and never touches the homepage sections above.
--------------------------------------------- */

.article-body {
  max-width: 760px;
}

.article-body h1 {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-body h2:first-of-type {
  margin-top: 2rem;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
  color: var(--muted);
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body li strong {
  color: var(--text);
}

.article-body code {
  background: var(--teal-soft);
  color: var(--teal);
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.9em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.article-body .button {
  margin-top: 0.5rem;
}

.article-body .bio-line {
  display: block;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body .bio-line a {
  font-weight: 600;
  margin-left: 0.35rem;
}

@media (max-width: 600px) {
  .article-body h2 {
    margin-top: 2rem;
  }
}

/* ==========================================================================
   METRIC-DRIVEN PROJECT CARDS
   ========================================================================== */
.project-metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(15, 35, 71, 0.12);
  border-color: var(--navy);
}

.card-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tech-badge {
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-metric-card h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.project-metric-card p { margin: 0 0 1.25rem; }

.metric-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: var(--teal-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.metric-pill { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* NOTE: color changed from var(--muted) to var(--text) — at 0.7rem on the
   --teal-soft background, var(--muted) measured ~4.35:1 contrast, just
   under the 4.5:1 WCAG AA minimum for normal-size text. var(--text) on
   the same background measures ~11:1, comfortably passing. */
.metric-label { font-size: 0.7rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
.metric-value { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 1rem; font-weight: 700; color: var(--navy); }
.metric-value.high { color: #16a34a; }
.metric-value.perfect { color: var(--teal); }

.card-link-row { display: flex; gap: 1rem; align-self: flex-start; flex-wrap: wrap; }
.project-action-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
.project-action-link:hover { color: var(--teal); text-decoration: underline; }

@media (max-width: 480px) {
  .metric-dashboard { grid-template-columns: 1fr; }
  .card-link-row { flex-direction: column; gap: 0.5rem; }
}

.hero-title-accent { color: var(--teal); font-size: .55em; letter-spacing: -.035em; }
.hero-supporting { color: var(--muted); max-width: 700px; margin: 1rem 0; }
.hero-skills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 1.7rem; }
.hero-skills span { color: var(--teal); background: var(--teal-soft); padding: .3rem .55rem; border-radius: .35rem; font-size: .78rem; font-weight: 700; }
.hero-copy > .eyebrow:not(.hero-eyebrow-current), .about-grid > p:not(.home-about-current), .about-card > p:not(.home-approach-current) { display: none; }

/* B2B asset rental operations case study */
.ops-hero { padding: 6.5rem 0 5.5rem; background: radial-gradient(circle at 83% 18%, rgba(31, 122, 125, .25), transparent 24rem), linear-gradient(135deg, #f4fbfb, #fff 58%, #edf5fb); overflow: hidden; }
.ops-hero-grid, .split-heading, .digital-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; }
.ops-hero h1 { font-size: clamp(3rem, 6vw, 5.65rem); letter-spacing: -.065em; max-width: 780px; margin-bottom: 1.4rem; }
.ops-hero h1 em { color: var(--teal); font-style: normal; }
.ops-lede { max-width: 680px; color: var(--muted); font-size: 1.15rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.tag-list span { border: 1px solid rgba(31,122,125,.22); background: rgba(255,255,255,.7); color: var(--teal); border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: .4rem .75rem; }
.ops-hero-panel { background: var(--navy); color: white; padding: 2.2rem; border-radius: 1.5rem; box-shadow: 20px 24px 0 rgba(31,122,125,.16); }
.ops-hero-panel .panel-label, .ops-hero-panel p { color: #c9d9e4; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.ops-hero-panel strong { display: block; font-size: 5rem; line-height: .9; letter-spacing: -.06em; color: #8fe0de; }
.ops-hero-panel span { display: block; font-size: 1.15rem; margin-top: .6rem; }
.mini-rule { height: 1px; background: rgba(255,255,255,.2); margin: 2.25rem 0 1.25rem; }
.ops-hero-panel p:last-child { text-transform: none; letter-spacing: .01em; margin: 0; }
.split-heading { align-items: start; }.split-heading > * { min-width: 0; }.split-heading > div:last-child p { color: var(--muted); font-size: 1.05rem; }
.question-grid { display: grid; grid-template-columns: repeat(3,1fr); padding: 0; margin: 2rem 0 0; list-style: none; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.question-grid li { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: white; padding: 1.35rem; font-size: 1.05rem; font-weight: 600; color: var(--navy); min-height: 138px; }
.question-grid span, .contribution-grid article > span { display: block; color: var(--teal); font-size: .78rem; letter-spacing: .14em; font-weight: 800; margin-bottom: 1.5rem; }
.contribution-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.contribution-grid article { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.4rem; min-height: 260px; background: #fff; }.contribution-grid article:nth-child(even) { background: #f7fbfb; }
.contribution-grid h3 { font-size: 1.12rem; margin-bottom: .55rem; }.contribution-grid p { color: var(--muted); font-size: .93rem; margin: 0; }
.ops-system-section { background: var(--navy-deep); }.light-heading h2 { color: white; }.light-heading p:last-child { color: #b8cad7; }
.workflow { display: flex; flex-direction: column; align-items: stretch; max-width: 640px; margin: 2.8rem auto 0; }
.workflow div { min-height: 70px; display: grid; place-items: center; padding: .9rem; text-align: center; background: #123256; color: white; border: 1px solid rgba(143,224,222,.35); font-size: .83rem; line-height: 1.35; font-weight: 700; }.workflow div:nth-of-type(3n) { background: var(--teal); }
.workflow i { height: 26px; display: grid; place-items: center; font-style: normal; color: #8fe0de; font-size: 1.4rem; }
.analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }.analysis-grid article { padding: 1.35rem; min-height: 190px; border: 1px solid var(--border); border-radius: .85rem; background: white; }.analysis-grid .fleet-scale { background: var(--teal); color: white; }.metric-kicker { display: block; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .7rem; }.fleet-scale .metric-kicker { color: #d8ffff; }.fleet-scale strong { display: block; font-size: 4rem; line-height: 1; margin-top: 1.5rem; }.analysis-grid h3 { margin: 1.5rem 0 .45rem; font-size: 1.25rem; }.analysis-grid p { margin: 0; color: var(--muted); font-size: .9rem; }.fleet-scale p { color: white; }
.digital-grid { align-items: center; }.relationship-diagram { display: flex; flex-direction: column; gap: .45rem; align-items: stretch; max-width: 300px; }.relationship-diagram span { background: white; border: 1px solid var(--border); box-shadow: 0 8px 18px rgba(15,35,71,.05); padding: .65rem .75rem; border-radius: .55rem; color: var(--navy); font-size: .8rem; font-weight: 700; text-align: center; }.relationship-diagram b { color: var(--teal); text-align: center; }.proposal-note { border-left: 3px solid var(--coral); padding-left: 1rem; color: var(--text) !important; font-weight: 600; }.skills { margin-top: 3rem; }.skills span { background: var(--teal-soft); }.ops-closing { padding: 5.5rem 0; background: linear-gradient(110deg, var(--coral-soft), white); }.ops-closing h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); max-width: 700px; }.ops-closing p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.1rem; margin-bottom: 1.7rem; }.deck-button { margin-top: .4rem; }.deck-link { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 900px) { .ops-hero-grid, .split-heading, .digital-grid { grid-template-columns: 1fr; gap: 2rem; }.contribution-grid { grid-template-columns: repeat(3,1fr); }.analysis-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .ops-hero { padding: 4rem 0; }.ops-hero h1 { font-size: clamp(2.8rem, 14vw, 4.1rem); }.question-grid, .contribution-grid, .analysis-grid { grid-template-columns: 1fr; }.question-grid li, .contribution-grid article { min-height: auto; }.question-grid span, .contribution-grid article > span { margin-bottom: .8rem; }.ops-hero-panel { padding: 1.6rem; }.workflow div { flex-basis: 124px; } }

/* Fleet operations case-study imagery */
.ops-hero-media-stack {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.ops-hero-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: white;
  box-shadow: var(--shadow);
}

.ops-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card-image {
  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  margin: -1.5rem -1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-radius: 1.15rem 1.15rem 0 0;
}

@media (max-width: 900px) {
  .ops-hero-media-stack {
    max-width: 680px;
  }
}
