/* DAVetTechs — standard HTML site (no AMP) */
:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --text: #141414;
  --text-muted: #525252;
  --accent: #c8102e;
  --accent-hover: #a30d25;
  --accent-soft: rgba(200, 16, 46, 0.1);
  --border: #e4e4e7;
  --header-surface: #ffffff;
  --header-border: rgba(20, 20, 20, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.625rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Header (light bar — full-color logo reads cleanly) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 24px rgba(20, 20, 20, 0.06);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 3.35rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: #3f3f46;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(200, 16, 46, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: #f4f4f5;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: #27272a;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Header + slide-out nav must stack above body::after overlay (z-index 150) */
  body.nav-open .site-header {
    z-index: 250;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.5rem;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    border-top: 1px solid var(--header-border);
    box-shadow: -8px 0 32px rgba(20, 20, 20, 0.08);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius);
  }
}

/* —— Layout —— */
main {
  display: block;
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* —— Hero / home —— */
.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #141414;
  aspect-ratio: 16 / 10;
  max-height: min(420px, 55vh);
}

.hero-carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: background 0.15s, transform 0.15s;
}

.hero-carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-carousel__btn--prev {
  left: 0.75rem;
}

.hero-carousel__btn--next {
  right: 0.75rem;
}

.hero-carousel__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.hero__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero__content .accent-line {
  display: block;
  width: 3rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero__content p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e2e8f0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  position: relative;
}

.card__icon {
  position: absolute;
  top: -1.75rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.32);
}

.card__title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.card__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card__link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent);
}

.card__link:hover {
  text-decoration: underline;
}

/* —— Split / about —— */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.split__media {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.split__media img {
  max-height: 200px;
  width: auto;
  margin: 0 auto;
}

.split__content {
  background: var(--surface);
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.split__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.split__content p {
  margin: 0;
  color: var(--text-muted);
}

/* —— Page header (charcoal + red — matches logo black / primary red) —— */
.page-head {
  background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 42%, #262626 100%);
  color: #d4d4d4;
  padding: 2.75rem 0 3rem;
  margin-bottom: 0;
  border-bottom: 3px solid var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.page-head p {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: #a3a3a3;
  font-size: 1.05rem;
}

/* —— Contact tiles —— */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-tile {
  background: linear-gradient(165deg, #e4e4e7 0%, #d4d4d8 100%);
  color: #18181b;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 20, 20, 0.06);
}

.contact-tile__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-tile__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.contact-tile h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-tile p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-tile a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-tile a:hover {
  text-decoration: underline;
}

/* —— Services lists —— */
.content-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.content-panel h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--accent);
}

.content-panel ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.content-panel li {
  margin-bottom: 0.5rem;
}

.content-panel .naics-list {
  list-style: none;
  padding: 0;
  columns: 1;
  gap: 0.5rem 2rem;
}

@media (min-width: 640px) {
  .content-panel .naics-list {
    columns: 2;
  }
}

.content-panel .naics-list li {
  break-inside: avoid;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.content-panel .naics-list .code {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* —— Careers —— */
.careers-block {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .careers-block {
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
  }
}

.careers-block h2 {
  margin: 0;
  font-size: 1.75rem;
}

.careers-block p {
  margin: 0;
  color: var(--text-muted);
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  color: #a3a3a3;
  font-size: 0.9rem;
  border-top: 2px solid var(--accent);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.site-footer a {
  color: #d4d4d4;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
}

/* —— Overlay when mobile nav open —— */
@media (max-width: 768px) {
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 10, 10, 0.45);
    z-index: 150;
  }
}
