:root {
  --black: #333333;
  --blue: #2B2D42;
  --blue-gray: #8D99AE;
  --gray: #EDF2F4;
  --red: #D90429;
  --red2: #EF233C;
  --red-muted: #e5756c;
  --white: #F5F3F1;
  --gradient-red: linear-gradient(to bottom, var(--red2), var(--red));
  --gradient-link: linear-gradient(110deg, var(--red), var(--red2), var(--blue-gray));

  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-header: "Kanit", "Arial Narrow", sans-serif;

  --wrap: 1200px;
  --gutter: 32px;
  --header-h: 76px;
  --radius: 6px;
}
@media (max-width: 699px) {
  :root { --gutter: 16px; --header-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red-muted); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red2); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-header); font-weight: 700; margin: 0; color: var(--blue); }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-style: italic; text-transform: uppercase; margin-bottom: 20px; }
h2 span { color: var(--red); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0 0 1em; }
section p { max-width: 38em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.block { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.eyebrow {
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  color: var(--red);
  margin: 0 0 8px;
}
.muted { color: var(--blue-gray); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--blue); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 3em;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .short { display: none; }
@media (max-width: 699px) {
  .actions { flex-wrap: nowrap; gap: 10px; }
  .actions .btn { flex: 1 1 0; text-align: center; padding: 15px 10px; font-size: 17px; white-space: nowrap; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
}
.btn-red { background: var(--gradient-red); color: #fff; box-shadow: 0 6px 18px rgba(217, 4, 41, .3); }
.btn-light { background: #fff; color: var(--blue); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Header: red bar with the logo centered, like the original theme */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 2px 10px rgba(43, 45, 66, .25);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 calc(var(--gutter) / 2);
}
.nav { display: flex; gap: 2px; }
.nav a, .pill {
  font-family: var(--font-header);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 13px;
  border-radius: 3em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .pill:hover { border-color: #fff; }
.header-call { display: flex; justify-content: flex-end; }
.pill { border-color: rgba(255, 255, 255, .6); }

.logo { display: block; transition: transform .2s cubic-bezier(.075, .82, .165, 1); }
.logo svg {
  display: block;
  height: 58px;
  width: auto;
  color: #fff;
}
.logo svg .accent { fill: #fff; }
@media (hover: hover) { .logo:hover { transform: scale(1.06); } }

@media (max-width: 860px) {
  .nav { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .logo svg { height: 46px; }
}
@media (max-width: 420px) {
  .pill-label { display: none; }
  .logo svg { height: 42px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--blue);
  overflow: hidden;
}
.hero picture, .hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 45, 66, .94) 0%, rgba(43, 45, 66, .78) 38%, rgba(43, 45, 66, .25) 62%, rgba(43, 45, 66, 0) 78%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--header-h) + 80px) var(--gutter) clamp(48px, 7vw, 88px);
}
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 {
  color: #fff;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 1.1;
  max-width: 14em;
}
.hero h1 span {
  display: inline;
  color: #fff;
  background: var(--gradient-red);
  padding: 0 .18em 0 .12em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Phones: photo above the copy, so all four people stay in frame */
@media (max-width: 699px) {
  .hero { display: block; min-height: 0; padding-top: var(--header-h); }
  .hero picture, .hero picture img { position: static; height: auto; aspect-ratio: 3 / 2; }
  .hero::after { display: none; }
  .hero-copy { padding-top: 28px; padding-bottom: 36px; }
}
.hero .lede { font-size: clamp(18px, 2vw, 21px); max-width: 30em; margin-top: 22px; }

/* Quick contact strip */
.quick { background: var(--blue); color: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 24px;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.quick-item:first-child { border-left: 0; padding-left: 0; }
a.quick-item:hover .quick-value { color: var(--red2); }
.quick-label { font-family: var(--font-header); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--blue-gray); }
.quick-value { font-family: var(--font-header); font-weight: 600; font-size: 21px; transition: color .15s ease; }
@media (max-width: 699px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { padding: 14px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .quick-item:first-child { border-top: 0; }
}

/* Services */
.services { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.service-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.service-list li {
  position: relative;
  padding: 14px 18px 14px 50px;
  background: var(--gray);
  border-radius: var(--radius);
  font-family: var(--font-header);
  color: var(--blue);
}
.service-list strong { font-weight: 600; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gradient-red);
}
.services-photo img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(43, 45, 66, .18); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* Diagnostics feature */
.feature { background: var(--gray); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.feature-photo img { border-radius: var(--radius); }
.feature h2 span { display: block; color: var(--blue-gray); }
.feature h2 { color: var(--red); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* Team */
.team-head { margin-bottom: 32px; }
.owner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  margin: 0 0 48px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--gray);
}
.owner img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.owner h3 { font-size: 30px; color: var(--red); }
.role { font-family: var(--font-header); font-weight: 600; color: var(--blue-gray); margin-bottom: 12px; }
.owner p:last-child { margin-bottom: 0; }
.crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.crew img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.crew h3 { margin-top: 12px; color: var(--red); }
@media (max-width: 699px) {
  .owner { grid-template-columns: 1fr; padding: 20px; text-align: center; }
  .owner img { width: 180px; margin: 0 auto; }
  .crew { gap: 12px; }
  .crew h3 { font-size: 19px; text-align: center; }
}

/* Story */
.story { background: var(--blue); color: #fff; }
.story h2, .story h3 { color: #fff; }
.story h2 span { color: var(--red2); }
.story .eyebrow { color: var(--red2); }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 0 0 40px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 124px;
  top: 10px;
  bottom: -10px;
  width: 2px;
  background: rgba(141, 153, 174, .35);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 118px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red2);
  box-shadow: 0 0 0 4px var(--blue);
}
.timeline time { font-family: var(--font-header); font-weight: 700; font-style: italic; color: var(--blue-gray); font-size: 20px; line-height: 1.2; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: rgba(255, 255, 255, .82); }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 699px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline li::before { left: 6px; }
  .timeline li::after { left: 0; }
}

/* Visit */
.visit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.details { margin: 24px 0 0; display: grid; gap: 18px; }
.details div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.details dt { font-family: var(--font-header); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--blue-gray); padding-top: 3px; }
.details dd { margin: 0; font-size: 20px; color: var(--blue); }
.details a { text-decoration: none; background-image: var(--gradient-link); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%; font-weight: 700; }
.details a:hover { background-size: 100% 6px; }
.visit-side { display: grid; gap: 16px; }
.visit-photo img { border-radius: var(--radius); }
.social { padding: 28px; background: var(--gray); border-radius: var(--radius); }
.social .btn { margin: 4px 4px 0 0; }
@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
}

/* Footer */
.site-footer { background: var(--gray); color: var(--blue-gray); font-size: 15px; border-top: 6px solid transparent; border-image: var(--gradient-link) 1; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-grid p { margin: 0; }
.footer-tag { font-family: var(--font-header); font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--blue); font-size: 18px; }
.footer-tag span { color: var(--red); }
.site-footer a { color: var(--blue); font-weight: 700; }

/* 404 page */
.not-found { min-height: 100vh; display: flex; align-items: center; border-top: 8px solid var(--red); }
.not-found h1 { font-style: italic; text-transform: uppercase; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin-bottom: 20px; }
.not-found h1 span { color: var(--red); }
