/* Shared hero card — Contact, Register, Find Drivers (loads after dc-frontend.css) */

.jd-page-shell,
.dc-find-drivers-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.jd-page-shell .fd-hero,
.dc-find-drivers-page .fd-hero {
  margin-bottom: 22px;
}

/* Canonical H1 — same on all hero pages (beats .entry-content h1 on register pages) */
.fd-hero-content h1,
.jd-hero-content h1,
.entry-content .fd-hero-content h1,
.entry-content .jd-hero-content h1 {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  color: #0c2d4a;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.fd-hero-back {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
}
.fd-hero-back:hover {
  color: #1558b0;
}

.fd-hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.fd-hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0c2d4a;
}
.fd-hero-features i {
  font-size: 18px;
  color: #1a73e8;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .fd-hero-features {
    flex-direction: column;
    gap: 10px;
  }
}

/*
 * Theme hero photos — same integrated fade as Find Drivers:
 * one .fd-hero card background; image mask fades into it (no separate photo box).
 */
.fd-hero-media--photo {
  background: transparent;
  max-height: none;
  align-self: stretch;
}
.fd-hero-media--photo::after {
  display: none;
}
.fd-hero-media--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  padding: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 20%, #000 48%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 20%, #000 48%);
}

/* Register pages: tighter copy; image focal point keeps driver in frame */
.fd-hero--register .fd-hero-inner {
  align-items: stretch;
}
.fd-hero--register .fd-hero-media--photo img {
  object-position: 76% 28%;
}
.fd-hero--register .fd-hero-content {
  padding: 40px 32px;
  line-height: 1.45;
}
.fd-hero--register .fd-hero-content h1,
.entry-content .fd-hero--register .fd-hero-content h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.fd-hero--register .fd-hero-sub {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.fd-hero--register .fd-hero-features li {
  font-size: 13px;
}
.fd-hero--register .fd-hero-features i {
  font-size: 16px;
}

.entry-content .fd-hero-content {
  line-height: 1.45;
}

@media (max-width: 860px) {
  .fd-hero-media--photo img {
    object-position: 65% bottom;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .fd-hero--register .fd-hero-media--photo img {
    object-position: 70% bottom;
  }
  .fd-hero--register .fd-hero-content {
    padding: 32px 22px;
  }
}

@media (max-width: 640px) {
  .jd-page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .fd-hero--register .fd-hero-content h1,
  .entry-content .fd-hero--register .fd-hero-content h1 {
    font-size: clamp(24px, 6vw, 32px);
  }
}
