/* Virginia Contractor Insurance — shared production styles */
:root {
  --navy-950: #071a2a;
  --navy-900: #0b253b;
  --navy-800: #123651;
  --navy-700: #1b4d6c;
  --steel-600: #537187;
  --steel-400: #8fa4b3;
  --steel-200: #ccd6dc;
  --steel-100: #e5ebee;
  --ink: #102335;
  --slate: #526273;
  --paper: #f6f3ec;
  --white: #fffefd;
  --gold: #c89a4b;
  --gold-light: #e6c98f;
  --ford-red: #aa2830;
  --green: #2d7b5f;
  --line: rgba(16, 35, 53, 0.16);
  --line-dark: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 12px 32px rgba(7, 26, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(7, 26, 42, 0.17);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --container: 1240px;
  --header-height: 86px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--navy-700);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: inherit;
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(calc(100% - 40px), 1440px);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-180%);
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--navy-700);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.eyebrow--light {
  color: var(--steel-100);
}

.eyebrow--red::before {
  background: var(--ford-red);
}

.lede {
  max-width: 760px;
  color: var(--slate);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.75;
}

.lede--light {
  color: #d1dbe2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-700);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ford-red);
  box-shadow: 0 10px 24px rgba(170, 40, 48, 0.18);
  font-size: 0.91rem;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::after {
  content: "↗";
  font-size: 1.05em;
}

.button:hover {
  transform: translateY(-2px);
  background: #8f2028;
  box-shadow: 0 14px 30px rgba(170, 40, 48, 0.25);
}

.button--navy {
  background: var(--navy-900);
  box-shadow: none;
}

.button--navy:hover {
  background: var(--navy-700);
}

.button--gold {
  color: var(--navy-950);
  background: var(--gold-light);
  box-shadow: none;
}

.button--gold:hover {
  background: #f0d9a8;
}

.button--outline {
  color: var(--ink);
  background: transparent;
  border-color: rgba(16, 35, 53, 0.35);
  box-shadow: none;
}

.button--outline:hover {
  color: var(--white);
  background: var(--navy-900);
}

.button--light-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.button--light-outline:hover {
  color: var(--navy-950);
  background: var(--white);
}

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--ink);
  background: rgba(255, 254, 253, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 235px;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--gold);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.brand-name {
  color: var(--navy-950);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.brand-tag {
  color: var(--ford-red);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 0.79rem;
  font-weight: 790;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-toggle:hover,
.nav-link[aria-current="page"] {
  color: var(--ford-red);
}

.nav-toggle::after {
  content: "⌄";
  font-size: 0.88rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 560px;
  padding: 22px;
  transform: translate(-50%, 8px);
  visibility: hidden;
  opacity: 0;
  color: var(--white);
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 22px;
}

.dropdown-link {
  display: grid;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-link strong {
  font-size: 0.86rem;
}

.dropdown-link span {
  color: var(--steel-400);
  font-size: 0.73rem;
}

.dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 12px 0;
  border-top: 1px solid var(--line-dark);
}

.dropdown-footer a {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
}

.header-cta {
  min-height: 46px;
  padding: 12px 17px;
  font-size: 0.78rem;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy-950);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before {
  position: absolute;
  top: -6px;
}

.menu-icon::after {
  position: absolute;
  top: 6px;
}

.menu-button[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-panel {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(820px, calc(100vh - var(--header-height)));
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 26, 42, 0.98) 0%, rgba(7, 26, 42, 0.92) 37%, rgba(7, 26, 42, 0.35) 70%, rgba(7, 26, 42, 0.18) 100%),
    url("assets/contractor-hero.webp") center / cover no-repeat;
}

.hero::after,
.dark-grid::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  align-items: center;
  padding-block: clamp(78px, 10vw, 128px);
}

.hero-copy {
  max-width: 800px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 30px;
}

.hero h1 em {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 500;
}

.hero .lede {
  max-width: 680px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1dbe2;
  font-size: 0.8rem;
  font-weight: 730;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof span::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

/* General sections */
.section {
  position: relative;
  padding-block: clamp(76px, 10vw, 132px);
}

.section--compact {
  padding-block: clamp(58px, 7vw, 88px);
}

.section--white {
  background: var(--white);
}

.section--navy {
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.section--ink {
  color: var(--white);
  background: var(--navy-950);
}

.section--steel {
  background: var(--steel-100);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 42px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.section--navy .section-heading p,
.section--ink .section-heading p {
  color: #c9d5dd;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.split--top {
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.card {
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 77, 108, 0.38);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 13px;
}

.card p {
  color: var(--slate);
}

.card-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--ford-red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-arrow {
  display: inline-flex;
  margin-top: 18px;
  color: var(--navy-700);
  font-weight: 820;
}

.card--dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
}

.card--dark p {
  color: #c9d5dd;
}

.card--dark .card-arrow {
  color: var(--gold-light);
}

.icon-box {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--navy-900);
  background: rgba(200, 154, 75, 0.2);
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.icon-box svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.check-list,
.plain-list,
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 31px;
}

.check-list li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.link-list a {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
}

.link-list a::after {
  color: var(--gold);
  content: "→";
}

.link-list a:hover {
  color: var(--ford-red);
  background: #fbfaf6;
}

/* Trade directory */
.trade-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 28px;
  padding: 8px 8px 8px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.trade-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.trade-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.trade-search input:focus {
  outline: 0;
}

.trade-search button {
  min-height: 44px;
  padding: 10px 17px;
  color: var(--white);
  background: var(--navy-900);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 780;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 780;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trade-card {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.trade-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.trade-card[hidden] {
  display: none;
}

.trade-card small {
  color: var(--steel-600);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trade-card strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.trade-card span {
  color: var(--gold);
  font-weight: 850;
}

.no-results {
  margin-top: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* Process, markets and comparison */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-step {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step small {
  display: block;
  margin-bottom: 23px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.process-step h3 {
  font-size: 1.12rem;
}

.process-step p {
  color: var(--slate);
  font-size: 0.9rem;
}

.market-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
}

.market-list span {
  min-height: 112px;
  padding: 30px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-weight: 770;
}

.market-list span:nth-child(4n) {
  border-right: 0;
}

.market-list span:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--white);
  background: var(--navy-900);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

/* Feature and CTA panels */
.feature-panel {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-panel::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 390px;
  height: 390px;
  content: "";
  border: 1px solid rgba(230, 201, 143, 0.25);
  border-radius: 50%;
}

.feature-panel > * {
  position: relative;
  z-index: 1;
}

.feature-panel p {
  color: #cfdae1;
}

.service-strip {
  padding-block: 24px;
  color: var(--white);
  background: var(--ford-red);
}

.service-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-strip p {
  margin: 0;
}

.service-strip a {
  flex: 0 0 auto;
  font-weight: 850;
}

.final-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-block: clamp(70px, 9vw, 116px);
}

.final-cta h2 {
  max-width: 860px;
  margin-bottom: 20px;
}

.final-cta p {
  max-width: 760px;
  color: #cad6de;
  font-size: 1.08rem;
}

/* Interior page hero and articles */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
  padding-block: clamp(70px, 9vw, 118px);
}

.page-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.8rem, 6.5vw, 5.9rem);
}

.page-hero-aside {
  padding: clamp(25px, 4vw, 38px);
  color: var(--ink);
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.page-hero-aside h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.page-hero-aside p,
.page-hero-aside li {
  color: var(--slate);
  font-size: 0.92rem;
}

.breadcrumbs {
  margin: 0 0 35px;
  padding: 0;
  color: var(--steel-400);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li + li::before {
  margin-inline: 9px;
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: clamp(48px, 7vw, 94px);
}

.article-content {
  min-width: 0;
}

.article-content > h2 {
  margin-top: 68px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content > h3 {
  margin-top: 38px;
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.article-content p,
.article-content li {
  color: #405264;
  font-size: 1.02rem;
}

.article-content a:not(.button):not(.card) {
  color: var(--navy-700);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}

.article-content li + li {
  margin-top: 8px;
}

.article-note {
  margin-block: 38px;
  padding: 25px 28px;
  background: rgba(200, 154, 75, 0.13);
  border-left: 4px solid var(--gold);
}

.article-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.sidebar-card p,
.sidebar-card li {
  color: var(--slate);
  font-size: 0.86rem;
}

.sidebar-card .button {
  width: 100%;
  margin-top: 18px;
}

.sidebar-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-links li + li {
  border-top: 1px solid var(--line);
}

.sidebar-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 11px;
  color: var(--ink);
  font-weight: 730;
  text-decoration: none;
}

.sidebar-links a::after {
  color: var(--gold);
  content: "→";
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: 790;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  content: "+";
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 500;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 48px 24px 0;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  color: var(--slate);
}

/* About and contact */
.photo-frame {
  position: relative;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.photo-frame::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  width: 48%;
  height: 55%;
  content: "";
  border: 1px solid var(--gold);
}

.photo-frame img {
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  object-position: center 58%;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.contact-card {
  padding: clamp(28px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.contact-details dt {
  color: var(--steel-600);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 7px 0 0;
  font-weight: 740;
}

.contact-details a {
  overflow-wrap: anywhere;
}

.map-frame {
  min-height: 520px;
  overflow: hidden;
  background: var(--steel-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

/* Footer */
.site-footer {
  color: #c5d1da;
  background: #051421;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 42px;
  padding-block: 72px 58px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand p {
  max-width: 310px;
  margin-top: 22px;
  color: #9eb0be;
  font-size: 0.86rem;
}

.footer-column h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: #b6c5cf;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  padding-block: 30px;
  color: #8298a7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
}

.footer-legal p {
  margin: 0;
}

.mobile-quote {
  position: fixed;
  z-index: 950;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ford-red);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(7, 26, 42, 0.35);
  font-weight: 850;
  text-decoration: none;
}

/* Progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1160px) {
  :root {
    --header-height: 76px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-panel {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 22px 20px 110px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    color: var(--white);
    background: var(--navy-950);
    transform: translateX(100%);
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms;
  }

  .mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .mobile-panel > a {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    color: var(--white);
    border-bottom: 1px solid var(--line-dark);
    font-weight: 780;
    text-decoration: none;
  }

  .mobile-panel > a:last-child {
    justify-content: center;
    margin-top: 24px;
    padding-inline: 18px;
    background: var(--ford-red);
    border: 0;
    border-radius: var(--radius-sm);
  }

  .mobile-nav,
  .mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav > ul > li {
    border-bottom: 1px solid var(--line-dark);
  }

  .mobile-nav a,
  .mobile-subnav-toggle {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    color: var(--white);
    background: transparent;
    border: 0;
    font-weight: 780;
    text-align: left;
    text-decoration: none;
  }

  .mobile-subnav-toggle::after {
    content: "+";
  }

  .mobile-subnav-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .mobile-subnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
    padding: 0 0 18px !important;
  }

  .mobile-subnav[hidden] {
    display: none;
  }

  .mobile-subnav a {
    min-height: 42px;
    color: #b9c8d2;
    font-size: 0.82rem;
  }

  .mobile-panel .button {
    width: 100%;
    margin-top: 24px;
  }

  .trade-grid,
  .card-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .section-heading,
  .split,
  .page-hero-inner,
  .article-layout,
  .contact-grid,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-aside {
    max-width: 680px;
  }

  .card-grid,
  .card-grid--4,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .market-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-list span:nth-child(4n) {
    border-right: 1px solid var(--line-dark);
  }

  .market-list span:nth-child(2n) {
    border-right: 0;
  }

  .market-list span:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line-dark);
  }

  .market-list span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  body {
    padding-bottom: 74px;
  }

  .container,
  .container--wide {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-name {
    max-width: 210px;
    font-size: 0.84rem;
  }

  .brand-tag {
    font-size: 0.55rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 26, 42, 0.95) 0%, rgba(7, 26, 42, 0.9) 56%, rgba(7, 26, 42, 0.72) 100%),
      url("assets/contractor-hero.webp") 66% center / cover no-repeat;
  }

  .hero-inner {
    padding-block: 72px 82px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .section {
    padding-block: 70px;
  }

  .section--compact {
    padding-block: 54px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 36px;
  }

  .section-heading h2,
  h2 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .card-grid,
  .card-grid--2,
  .card-grid--4,
  .related-grid,
  .trade-grid,
  .article-sidebar,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .trade-card {
    min-height: 135px;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .market-list {
    grid-template-columns: 1fr;
  }

  .market-list span,
  .market-list span:nth-child(2n),
  .market-list span:nth-child(4n),
  .market-list span:nth-last-child(-n + 2) {
    min-height: 84px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .market-list span:last-child {
    border-bottom: 0;
  }

  .page-hero-inner {
    padding-block: 55px 70px;
  }

  .page-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .article-content > h2 {
    margin-top: 52px;
  }

  .service-strip .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main,
  .footer-legal {
    grid-template-columns: 1fr;
  }

  .footer-main {
    gap: 34px;
    padding-block: 58px 42px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .mobile-quote {
    display: flex;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 420px;
  }
}

@media (max-width: 410px) {
  .brand-mark {
    display: none;
  }

  .brand-name {
    max-width: 190px;
  }

  .mobile-subnav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .mobile-quote,
  .site-footer,
  .button-row,
  .article-sidebar {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .page-hero,
  .section--navy,
  .section--ink {
    color: #000;
    background: #fff;
  }
}

/* =========================================================
   LEGACY LEARNING-CENTER ARTICLE COMPATIBILITY
   Supports the detailed individual guide-page template.
   Keep this section at the very bottom of styles.css.
   ========================================================= */

/* Prevent duplicate arrows where the older HTML includes one */
.button > span[aria-hidden="true"],
.text-link > span[aria-hidden="true"],
.faq-question > span[aria-hidden="true"] {
  display: none;
}

/* Older button naming */
.button-primary {
  color: var(--white);
  background: var(--ford-red);
}

.button-primary:hover {
  color: var(--white);
  background: #8f2028;
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.button-outline-light:hover {
  color: var(--navy-950);
  background: var(--white);
}

.button-small {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------
   Older article-page header
   --------------------------------------------------------- */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy-950);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.primary-nav > a:not(.button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 790;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > a:not(.button):hover,
.primary-nav > a[aria-current="page"] {
  color: var(--ford-red);
}

.primary-nav .nav-quote {
  margin-left: 8px;
  white-space: nowrap;
}

/* Correct older brand-copy elements */
.brand-copy strong {
  color: var(--navy-950);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.brand-copy small {
  color: var(--ford-red);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Older individual-guide hero
   --------------------------------------------------------- */

.page-hero-coverage {
  min-height: auto;
}

.page-hero-coverage > .container {
  position: relative;
  z-index: 2;
  padding-block: clamp(58px, 7vw, 96px);
}

.page-hero-coverage .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
}

.page-hero-coverage .breadcrumbs a,
.page-hero-coverage .breadcrumbs span {
  color: var(--steel-400);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.page-hero-coverage .breadcrumbs a:hover {
  color: var(--white);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.page-hero-content {
  min-width: 0;
}

.page-hero-content .eyebrow {
  color: var(--steel-100);
}

.page-hero-content h1 {
  max-width: 930px;
  margin-bottom: 25px;
  font-size: clamp(2.75rem, 5.4vw, 5.45rem);
  overflow-wrap: normal;
}

.page-hero-lead {
  max-width: 820px;
  margin-bottom: 14px;
  color: #d3dde4;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.page-hero-content > p:not(.eyebrow):not(.page-hero-lead) {
  max-width: 820px;
  color: #becbd4;
  line-height: 1.7;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-info-card {
  padding: clamp(28px, 4vw, 40px);
  color: var(--ink);
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.hero-info-card .card-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--ford-red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-info-card .check-list {
  margin: 0;
}

.hero-info-card .check-list li {
  color: var(--slate);
  font-size: 0.91rem;
}

.hero-info-card .small-text {
  margin-top: 24px;
  padding-top: 20px;
  color: var(--slate);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   Detailed guide sections
   --------------------------------------------------------- */

.section-light {
  background: var(--white);
}

.section-off-white {
  background: var(--paper);
}

.section-navy {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.section-navy::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

.section-navy > .container {
  position: relative;
  z-index: 1;
}

.eyebrow-dark {
  color: var(--navy-700);
}

.content-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(42px, 7vw, 92px);
}

.content-split-reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.content-split-on-dark {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-split h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.prose {
  min-width: 0;
}

.prose p,
.prose li {
  color: #405264;
  font-size: 1rem;
  line-height: 1.78;
}

.prose p + p {
  margin-top: 18px;
}

.prose-light p,
.prose-light li,
.content-split-on-dark p,
.content-split-on-dark li {
  color: #cbd7df;
}

.notice-box {
  margin-top: 30px;
  padding: 24px 27px;
  color: #405264;
  background: rgba(200, 154, 75, 0.13);
  border-left: 4px solid var(--gold);
  line-height: 1.7;
}

.notice-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light p {
  color: #cbd7df;
}

/* Cards used throughout the individual guides */
.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  min-width: 0;
  padding: clamp(25px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content-card h3 {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.content-card p,
.content-card li {
  color: var(--slate);
  font-size: 0.93rem;
  line-height: 1.7;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 25px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dark-feature-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.dark-feature-card h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.25rem;
}

.dark-feature-card p,
.dark-feature-card li {
  color: #c3d0d8;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Checklists */
.check-list-dark li {
  color: #405264;
}

.section-navy .check-list li {
  color: #d0dbe2;
}

.section-link-row {
  margin-top: 30px;
}

/* Related-guide cards */
.related-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-link-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 170px;
  align-content: start;
  gap: 11px;
  padding: 25px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.related-link-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(230, 201, 143, 0.65);
}

.related-link-card span {
  padding-right: 28px;
  font-size: 1.02rem;
  font-weight: 820;
  line-height: 1.35;
}

.related-link-card small {
  color: #aebfca;
  font-size: 0.79rem;
  line-height: 1.55;
}

.related-link-card strong {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--gold-light);
}

/* Older FAQ layout */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.66fr) minmax(0, 1.34fr);
  align-items: start;
  gap: clamp(42px, 7vw, 90px);
}

.faq-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.faq-intro > p:last-child {
  color: var(--slate);
}

/* Older final CTA layout */
.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------------------------------------------------------
   Older article-page footer
   --------------------------------------------------------- */

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(145px, 0.72fr));
  gap: clamp(30px, 5vw, 64px);
  padding-block: 60px 44px;
}

.site-footer .footer-brand > p {
  max-width: 340px;
  margin-top: 23px;
  color: #aebfca;
  font-size: 0.86rem;
}

.site-footer .brand-footer .brand-copy strong {
  color: var(--white);
}

.site-footer .brand-footer .brand-copy small {
  color: var(--gold-light);
}

.footer-heading {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer .footer-links,
.site-footer .footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-links li + li,
.site-footer .footer-contact li + li {
  margin-top: 10px;
}

.site-footer .footer-links a,
.site-footer .footer-contact a,
.site-footer address,
.site-footer .footer-contact li {
  color: #aebfca;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.65;
  text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover {
  color: var(--white);
}

.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 35px;
  padding-block: 28px;
  color: #8298a7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .footer-bottom p:first-child {
  max-width: 820px;
}

.site-footer .footer-bottom p:last-child {
  text-align: right;
}

.site-footer .footer-bottom a {
  margin-left: 12px;
  color: #aebfca;
}

/* Older mobile quote button is hidden on desktop */
.mobile-quote-button {
  display: none;
}

/* ---------------------------------------------------------
   Compatibility responsive behavior
   --------------------------------------------------------- */

@media (max-width: 1160px) {
  .primary-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 20px 20px 110px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    color: var(--white);
    background: var(--navy-950);
    transform: translateX(100%);
    transition:
      transform 220ms ease,
      opacity 220ms ease,
      visibility 220ms;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .primary-nav > a:not(.button) {
    display: flex;
    min-height: 56px;
    justify-content: space-between;
    padding: 12px 2px;
    color: var(--white);
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.94rem;
  }

  .primary-nav > a:not(.button):hover,
  .primary-nav > a[aria-current="page"] {
    color: var(--gold-light);
  }

  .primary-nav .nav-quote {
    width: 100%;
    margin: 24px 0 0;
  }

  .feature-grid-four,
  .related-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-hero-grid,
  .content-split,
  .content-split-reverse,
  .content-split-on-dark,
  .faq-layout,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-info-card {
    max-width: 680px;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }

  .card-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-content h1 {
    font-size: clamp(2.65rem, 9vw, 4.8rem);
  }

  .site-footer .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom p:last-child {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .page-hero-coverage > .container {
    padding-block: 48px 58px;
  }

  .page-hero-coverage .breadcrumbs {
    margin-bottom: 25px;
  }

  .page-hero-coverage .breadcrumbs span:last-child {
    width: 100%;
  }

  .page-hero-content h1 {
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

  .button-group,
  .final-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button-group .button,
  .final-cta-actions .button {
    width: 100%;
  }

  .card-grid-two,
  .card-grid-three,
  .feature-grid-four,
  .related-link-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .dark-feature-card,
  .related-link-card {
    min-height: 0;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-quote-button {
    position: fixed;
    z-index: 950;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    color: var(--white);
    background: var(--ford-red);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 36px rgba(7, 26, 42, 0.35);
    font-size: 0.9rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
  }

  body {
    padding-bottom: 76px;
  }
}