/* =====================================================
   Dominion Logistics, Inc. — Design System
   ===================================================== */

/* ---- Design tokens ---- */
:root {
  --navy: #0F2C4C;
  --navy-deep: #0A1F36;
  --charcoal: #333F48;
  --silver: #B4BCC4;
  --silver-soft: #D9DDE1;
  --white: #FFFFFF;
  --neutral: #F5F6F8;
  --neutral-line: #E5E8EC;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 44, 76, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 44, 76, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 44, 76, 0.10);

  --max-width: 1200px;
  --nav-height: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--navy-deep); }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--navy); color: var(--white); }

/* ---- Typography scale ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em 0; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--navy);
  display: inline-block;
}

.lead { font-size: 1.15rem; line-height: 1.6; color: var(--charcoal); max-width: 62ch; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--neutral { background: var(--neutral); }
.section--dark { background: var(--navy); color: var(--silver-soft); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--silver); }
.section--dark .eyebrow::before { background: var(--silver); }

/* Route/waypoint hairline divider — the signature motif */
.rule {
  position: relative;
  height: 1px;
  background: var(--silver-soft);
  margin: 0;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.rule::before, .rule::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.rule::before { left: 0; }
.rule::after { right: 0; }
.rule--dark { background: rgba(180, 188, 196, 0.25); }
.rule--dark::before, .rule--dark::after { background: var(--silver); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--silver);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--neutral-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
}
.nav__brand img { height: 46px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.5rem 0;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--navy);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 6rem 0 5rem 0;
  background-color: var(--white);
  background-image: url('../images/hero-home.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
/* No overlay — background is 100% visible */
/* Route hairline signature retained */
.hero::after {
  content: "";
  position: absolute;
  top: 42%;
  left: -5%;
  right: -5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-soft) 20%, var(--silver-soft) 80%, transparent);
  z-index: 1;
  opacity: 0.6;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
/* Frosted-glass card holds the hero content over the visible background */
.hero__content {
  max-width: 640px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 48px rgba(15, 44, 76, 0.18), 0 2px 8px rgba(15, 44, 76, 0.06);
}
.hero__media {
  /* Legacy — background is now on the section itself */
  display: none;
}
.hero__media img { width: 100%; height: auto; display: block; }
/* Meta grid divider looks better inside the card */
.hero__meta {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--neutral-line);
}

/* Mobile: shrink card padding + adjust background position for portrait viewport */
@media (max-width: 899px) {
  .hero {
    background-position: center center;
    padding: 4rem 0 3.5rem 0;
    min-height: auto;
  }
  .hero__content {
    padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
  }
  .hero__meta { margin-top: 1.75rem; padding-top: 1.5rem; }
}
.hero__title {
  font-size: clamp(2.15rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--charcoal);
  font-weight: 400;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--charcoal);
  max-width: 60ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero__meta {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-line);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
}
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---- Page header (non-home pages) ---- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 60%;
  left: -5%;
  right: -5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 188, 196, 0.4) 20%, rgba(180, 188, 196, 0.4) 80%, transparent);
}
.page-header .eyebrow { color: var(--silver); }
.page-header .eyebrow::before { background: var(--silver); }
.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p {
  color: var(--silver-soft);
  font-size: 1.15rem;
  max-width: 65ch;
  margin-bottom: 0;
}

/* ---- Section headers ---- */
.section-head {
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}
.section-head--left { text-align: left; margin-left: 0; }
.section-head p { font-size: 1.1rem; color: var(--charcoal); }

/* ---- Two-col ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .two-col--wide-first { grid-template-columns: 1.15fr 1fr; }
}

/* ---- Media block: text + image side-by-side, alternating ---- */
.media-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .media-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .media-block--reverse .media-block__text { order: 2; }
  .media-block--reverse .media-block__media { order: 1; }
}
.media-block__text { max-width: 560px; }
.media-block__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--neutral);
}
.media-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* SVG variant — no background, subtle shadow */
.media-block__media--svg {
  background: transparent;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-line);
}

/* ---- Feature list (bulleted key features) ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0 0;
  display: grid;
  gap: 1.25rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding-left: 1.25rem;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.feature-list__title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
}
.feature-list__desc {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ---- Mission-vision graphic wrapper ---- */
.mv-graphic {
  margin: 3.5rem auto 0 auto;
  max-width: 800px;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.mv-graphic img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .mv-graphic { padding: 1rem; margin-top: 2.5rem; }
}

/* ---- Full-width banner image ---- */
.banner {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--neutral);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .banner { aspect-ratio: 4 / 3; }
}

/* ---- Page header with image ---- */
.page-header--media {
  padding: 0;
  background: var(--navy);
  overflow: hidden;
}
.page-header--media .page-header__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 380px;
}
@media (min-width: 900px) {
  .page-header--media .page-header__grid { grid-template-columns: 1.1fr 1fr; }
}
.page-header--media .page-header__text {
  padding: 4rem 1.5rem 4rem 1.5rem;
  max-width: 640px;
  align-self: center;
  justify-self: end;
  width: 100%;
}
@media (min-width: 900px) {
  .page-header--media .page-header__text {
    padding: 5rem 3rem 5rem 1.5rem;
    justify-self: end;
  }
}
@media (min-width: 1200px) {
  .page-header--media .page-header__text {
    padding-right: 4rem;
  }
}
.page-header--media .page-header__media {
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}
.page-header--media .page-header__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-header--media .page-header__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 44, 76, 0.55) 0%, rgba(15, 44, 76, 0.15) 30%, rgba(15, 44, 76, 0) 60%);
  pointer-events: none;
}
@media (max-width: 899px) {
  .page-header--media .page-header__media { min-height: 200px; max-height: 260px; }
  .page-header--media .page-header__media::after {
    background: linear-gradient(180deg, rgba(15, 44, 76, 0) 40%, rgba(15, 44, 76, 0.4) 100%);
  }
}

/* ---- Services grid (home) ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--silver);
  box-shadow: var(--shadow-md);
  color: var(--charcoal);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}
.service-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
  flex: 1;
}
.service-card__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.service-card__link .arrow { transition: transform 0.25s var(--ease); }
.service-card:hover .service-card__link .arrow { transform: translateX(4px); }

/* ---- Service detail (services page) — media-block layout ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--neutral-line);
  scroll-margin-top: calc(var(--nav-height) + 20px);
  align-items: center;
}
.service-detail:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .service-detail { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem 0; }
  .service-detail--reverse .service-detail__body { order: 2; }
  .service-detail--reverse .service-detail__media { order: 1; }
}
.service-detail__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--neutral);
}
.service-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-detail__body { display: flex; flex-direction: column; }
.service-detail__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.service-detail__num-big {
  display: none;
}
.service-detail__body h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.service-detail__body ul {
  margin: 1.25rem 0 0 0;
  padding: 0;
  list-style: none;
}
.service-detail__body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.service-detail__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* ---- Value props / stats ---- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 1.75rem 1.5rem;
  border-left: 2px solid var(--silver);
  background: transparent;
}
.value__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--silver);
  letter-spacing: 0.15em;
}
.value__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
}
.value__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
}
.section--dark .value { border-left-color: var(--silver); }
.section--dark .value__title { color: var(--white); }
.section--dark .value__desc { color: var(--silver-soft); }

/* ---- Mission / vision cards ---- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card {
  padding: 3rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius-md);
  position: relative;
}
.mv-card__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}
.mv-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}
.mv-card p { font-size: 1.05rem; line-height: 1.65; }

/* Principles list */
.principles {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0 0;
  display: grid;
  gap: 1.25rem;
}
.principle {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--neutral-line);
  align-items: baseline;
}
.principle:last-child { border-bottom: 1px solid var(--neutral-line); }
.principle__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--silver);
  letter-spacing: 0.1em;
}
.principle__body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}
.principle__body p { margin: 0; font-size: 0.98rem; color: var(--charcoal); }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 780px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--silver);
  height: 1rem;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--charcoal);
  font-style: italic;
  margin: 0;
  flex: 1;
}
.testimonial__attr {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-line);
}
.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--neutral);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--neutral-line);
}
.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial__attr-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.testimonial__name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.2;
}
.testimonial__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-line);
}
.contact-info__item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.contact-info__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}
.contact-info__value a { color: var(--navy); }
.contact-info__value a:hover { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 4px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius-md);
}
.form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}
.form__label .required { color: var(--navy); }
.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 44, 76, 0.1);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__note {
  font-size: 0.85rem;
  color: var(--charcoal);
}
.form__status {
  padding: 1rem 1.25rem;
  background: rgba(15, 44, 76, 0.06);
  border-left: 3px solid var(--navy);
  color: var(--navy);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form__status.is-visible { display: block; }

/* ---- Section with background image (dark overlay) ---- */
.section--bg {
  position: relative;
  background: var(--navy) center/cover no-repeat;
  color: var(--silver-soft);
  isolation: isolate;
}
.section--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 44, 76, 0.92) 0%, rgba(15, 44, 76, 0.82) 60%, rgba(10, 31, 54, 0.90) 100%);
  z-index: -1;
}
.section--bg h1,
.section--bg h2,
.section--bg h3 { color: var(--white); }
.section--bg .eyebrow { color: var(--silver); }
.section--bg .eyebrow::before { background: var(--silver); }
.section--bg .value { border-left-color: var(--silver); }
.section--bg .value__title { color: var(--white); }
.section--bg .value__desc { color: var(--silver-soft); }

/* ---- Page header with full-width background image + navy overlay ---- */
.page-header--bg {
  padding: 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.page-header--bg::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  width: auto;
  background: linear-gradient(180deg,
    rgba(15, 44, 76, 0.88) 0%,
    rgba(15, 44, 76, 0.78) 55%,
    rgba(10, 31, 54, 0.86) 100%);
  z-index: 1;
}
.page-header--bg::after {
  /* Route hairline motif */
  content: "";
  position: absolute;
  bottom: 12%;
  left: -5%;
  right: -5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 188, 196, 0.4) 20%, rgba(180, 188, 196, 0.4) 80%, transparent);
  z-index: 2;
}
.page-header--bg .container {
  padding-top: 5.5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 3;
}
.page-header--bg .eyebrow { color: var(--silver); }
.page-header--bg .eyebrow::before { background: var(--silver); }
.page-header--bg h1 { color: var(--white); margin-bottom: 1rem; }
.page-header--bg p {
  color: var(--silver-soft);
  font-size: 1.15rem;
  max-width: 65ch;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .page-header--bg .container {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }
}

/* ---- Video showcase section ---- */
.videos {
  padding: 5.5rem 0;
  background: var(--white);
}
.videos-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
/* Featured (wide/square) video on top row */
.videos-grid__featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
  position: relative;
  box-shadow: var(--shadow-md);
}
.videos-grid__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .videos-grid__pair { grid-template-columns: 1fr 1fr; }
}
.video-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
  position: relative;
  box-shadow: var(--shadow-md);
  max-height: 640px;
  margin: 0 auto;
}
/* Constrain portrait video card width so it doesn't dwarf the layout */
@media (min-width: 720px) {
  .video-card { max-width: 380px; }
}
.video-card--square {
  aspect-ratio: 1 / 1;
  max-width: none;
}
.videos-grid video,
.videos-grid__featured video,
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Caption ribbon at the bottom of each video */
.video-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 31, 54, 0.85) 100%);
  color: var(--white);
  pointer-events: none;
}
.video-card__caption-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-bottom: 0.25rem;
}
.video-card__caption-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

/* ---- Contact hero image ---- */
.contact-hero {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--neutral);
  margin-bottom: 2rem;
}
.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- CTA section ---- */
.cta-section {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 8%;
  right: 8%;
  background: rgba(180, 188, 196, 0.25);
}
.cta-section::before { top: 25%; }
.cta-section::after { bottom: 25%; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: var(--silver-soft); max-width: 55ch; margin: 0 auto 2rem auto; font-size: 1.1rem; }
.cta-section__inner { position: relative; z-index: 1; }

/* ---- Footer ---- */
.footer {
  background: var(--navy-deep);
  color: var(--silver-soft);
  padding: 4rem 0 2rem 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer__brand img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer__tagline { font-size: 0.95rem; color: var(--silver); max-width: 40ch; }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.25rem 0;
  font-weight: 500;
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 0.65rem; }
.footer__list a {
  color: var(--silver-soft);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer__list a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(180, 188, 196, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--silver);
}
@media (min-width: 600px) { .footer__bottom { flex-direction: row; } }

/* ---- Responsive nav (mobile) ---- */
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 2rem 1.5rem;
    border-bottom: 1px solid var(--neutral-line);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li {
    border-bottom: 1px solid var(--neutral-line);
  }
  .nav__menu li:last-child { border-bottom: none; }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 0 0 0; }
  .nav__cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}

/* ---- Smaller adjustments ---- */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem 0; }
  .hero__meta { gap: 1.5rem; }
  .page-header { padding: 3.5rem 0 3rem 0; }
  .mv-card { padding: 2rem 1.5rem; }
  .form { padding: 1.75rem 1.25rem; }
  .service-card { padding: 1.75rem 1.5rem; }
  .cta-section { padding: 3.5rem 0; }
  .footer { padding: 3rem 0 1.5rem 0; }
  .nav__brand img { height: 38px; }
  .footer__brand img { height: 50px; }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
