/* Shared marketing layout. The calculator and booking widgets own their controls. */
:root {
  --dmv-ink: #07394b;
  --dmv-teal: #006777;
  --dmv-mist: #edf7fa;
  --dmv-line: #cbdfe5;
  --dmv-space: clamp(2.25rem, 5vw, 4.75rem);
}

html body .header__inner {
  border: 1px solid var(--dmv-line);
  border-radius: 1rem;
}

html body .main :is(.intro, .page-header) {
  padding-block: clamp(7rem, 11vw, 9rem) clamp(2rem, 5vw, 4rem);
}

html body .main :is(.intro, .page-header) h1 {
  font-size: clamp(2rem, 5.1vw, 4.5rem);
  line-height: 1.08;
  text-wrap: balance;
}

html body .main .intro .paragraph {
  max-inline-size: 63ch;
  line-height: 1.6;
}

html body .main :is(.intro, .page-header) .form-wrapper--intro {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  padding: 0;
}

html body .main :is(.intro, .page-header) .form-wrapper--intro .title {
  color: inherit;
  margin-block: 0 0.65rem;
}

html body .main > .section {
  padding-block: var(--dmv-space);
}

html body .main .heading {
  margin-block-end: clamp(1.25rem, 3vw, 2rem);
}

html body .main .heading > :last-child {
  margin-block-end: 0;
}

html body .main > .pre-footer {
  padding-block: var(--dmv-space);
}

html body .footer {
  padding-block: var(--dmv-space);
}

html body .main .btn-blue,
html body .header .header-button {
  background-color: var(--dmv-teal);
  background-image: none;
  color: #fff;
}

html body .main .btn-blue:hover,
html body .header .header-button:hover {
  background-color: var(--dmv-ink);
}

html body :where(.header, .main, .footer) :focus-visible {
  outline: 3px solid #097b9b;
  outline-offset: 4px;
}

html body .main :where(.intro, .page-header) :focus-visible,
html body .footer :focus-visible {
  outline-color: #fff;
}

.dmv-table-scroll {
  max-inline-size: 100%;
  overflow-x: auto;
}

.dmv-table-scroll > .pricing-table {
  inline-size: 100%;
}

html body .main .dmv-booking-note {
  max-inline-size: 60ch;
  margin: 0 auto 1.5rem;
  text-align: center;
}

html body.dmv-home .main .intro {
  background: linear-gradient(115deg, #042c3b, #13536a);
  min-block-size: 0;
  text-align: left;
}

html body.dmv-home .home-hero__copy {
  max-inline-size: 48rem;
  position: relative;
  z-index: 1;
}

html body.dmv-home .main .intro h1 {
  text-wrap: initial;
  margin-block: 0 1rem;
}

html body.dmv-home .main .intro .paragraph {
  margin: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.5rem;
}

html body.dmv-home .home-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.65rem 1.15rem;
}

html body.dmv-home .home-actions .home-action-secondary {
  border: 1px solid rgba(255,255,255,.8);
  color: #fff;
}

html body.dmv-home .home-actions .home-action-secondary:hover {
  background: rgba(255,255,255,.14);
}

.home-paths {
  background: var(--dmv-mist);
  border-block-end: 1px solid var(--dmv-line);
  padding-block: 1rem;
}

.home-paths__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-paths__grid a {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid var(--dmv-line);
  border-radius: 0.65rem;
  color: var(--dmv-ink);
  padding: clamp(.7rem, 1.6vw, 1.2rem);
  text-decoration: none;
}

.home-paths__grid a:hover strong {
  text-decoration: underline;
}

.home-paths__grid span {
  font-size: .875rem;
  line-height: 1.4;
}

html body.dmv-home .main > .section:nth-of-type(even) {
  background-color: var(--dmv-mist);
}

html body.dmv-home .expert-card__main {
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 767px) {
  html body .main :is(.intro, .page-header) {
    padding-block: 5rem 2rem;
  }

  html body .main .intro :is(.row, .column) {
    min-inline-size: 0;
  }

  html body .main .feat {
    display: flex;
    flex-direction: column;
  }

  html body .main .feat > .img {
    aspect-ratio: 3 / 1;
    min-block-size: 0;
    inline-size: 100%;
  }

  .home-paths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html body :where(.header, .main, .footer) :where(a, button) {
    transition: none;
  }
}
html body .main .intro__inner {
  min-block-size: 0;
}

html body.dmv-home .main .intro::before {
  display: none;
}

html body.dmv-home .home-actions .home-action-secondary {
  background: transparent;
}

html body.dmv-home .home-actions .home-action-secondary:hover,
html body.dmv-home .home-actions .home-action-secondary:focus-visible {
  background: rgba(255,255,255,.14);
}

.home-paths__grid strong {
  font-weight: 700;
}

html body .main .serv-card {
  min-inline-size: 0;
  min-block-size: 3.25rem;
  border: 1px solid var(--dmv-line);
  border-radius: 0.6rem;
  box-shadow: none;
}

html body .main .serv-card:hover {
  border-color: var(--dmv-teal);
}

html body .main .seo-hero {
  padding-block: clamp(2rem, 5vw, 4rem);
}

html body .main .seo-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  text-wrap: balance;
}

html body .main .seo-content {
  max-inline-size: 74ch;
}

html body .main .lf-body > :is(p, ul, ol, blockquote) {
  max-inline-size: 72ch;
}

html body .main :is(.lf-body, .seo-content) :is(h2, h3) {
  scroll-margin-block-start: 5rem;
}

html body .footer .simple-list a {
  line-height: 1.5;
  text-underline-offset: 0.17em;
}

html body .footer .simple-list a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  html body.dmv-home .main .intro .paragraph {
    font-size: 1rem;
  }

  html body .main .serv-card {
    padding: 0.7rem;
  }
}

html body.dmv-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

html body.dmv-home .main .intro h1 {
  font-size: clamp(2rem, 4.35vw, 4rem);
}

.home-hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 1rem;
}

@media (max-width: 767px) {
  html body.dmv-home .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero__media {
    display: none;
  }
}

@media (min-width: 768px) {
  html body .main .feat > .img {
    grid-column: 1;
    grid-row: 1;
  }
}
