/*
Theme Name: Wilson's Towing & Recovery
Theme URI: https://wilsonstow.com/
Author: Wilson's Towing & Recovery
Description: A fast, call-focused custom theme for Wilson's Towing & Recovery in Central Maine.
Version: 1.2.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: wilsons-towing
*/

:root {
  --wt-navy: #07182b;
  --wt-navy-2: #0d2744;
  --wt-blue: #123f72;
  --wt-orange: #ef7d00;
  --wt-orange-dark: #c75f00;
  --wt-cream: #f5f2eb;
  --wt-white: #fff;
  --wt-ink: #111827;
  --wt-muted: #5b6472;
  --wt-line: #dbe1e8;
  --wt-success: #1c7a45;
  --wt-shadow: 0 18px 45px rgba(3, 16, 31, .14);
  --wt-radius: 18px;
  --wt-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 130px; }
body {
  margin: 0;
  color: var(--wt-ink);
  background: var(--wt-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wt-blue); }
a:hover { color: var(--wt-orange-dark); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto; white-space: normal;
  z-index: 100000; top: 8px; left: 8px; padding: 12px 16px;
  color: var(--wt-navy); background: var(--wt-white); border-radius: 6px;
}
.container { width: min(calc(100% - 40px), var(--wt-container)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--compact { padding: 56px 0; }
.section--dark { color: var(--wt-white); background: var(--wt-navy); }
.section--cream { background: var(--wt-cream); }
.eyebrow {
  margin: 0 0 10px; color: #974800; font-size: .82rem; font-weight: 900;
  letter-spacing: .12em; line-height: 1.2; text-transform: uppercase;
}
/* Keep the familiar bright orange accent on dark sections only. */
.hero .eyebrow, .section--dark .eyebrow { color: #ffac55; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--wt-navy); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.45rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--wt-white); }
.lead { max-width: 720px; color: var(--wt-muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.section--dark .lead { color: #cfdae7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 13px 24px; border: 2px solid transparent; border-radius: 10px;
  font-weight: 900; line-height: 1.15; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #111; background: var(--wt-orange); }
.btn--primary:hover { color: #111; background: #ff941f; }
.btn--outline { color: var(--wt-navy); border-color: var(--wt-blue); background: var(--wt-white); }
.btn--outline:hover { color: var(--wt-white); border-color: var(--wt-blue); background: var(--wt-blue); }
/* The hero and dark service-area panel need the inverse (light) button. */
.hero .btn--outline, .section--dark .btn--outline {
  color: var(--wt-white); border-color: rgba(255,255,255,.85); background: rgba(0,0,0,.22);
}
.hero .btn--outline:hover, .section--dark .btn--outline:hover {
  color: var(--wt-navy); border-color: var(--wt-white); background: var(--wt-white);
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }

.utility-bar { color: var(--wt-white); background: #020b15; font-size: .86rem; font-weight: 750; }
.utility-bar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.utility-bar p { margin: 0; }
.utility-bar a { color: var(--wt-white); text-decoration: none; }
.utility-bar a:hover { color: var(--wt-orange); }
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--wt-line); backdrop-filter: blur(12px);
}
.header-inner { display: grid; grid-template-columns: minmax(220px, 390px) 1fr auto; align-items: center; gap: 28px; min-height: 92px; }
.site-branding { display: block; text-decoration: none; }
.site-branding img { width: min(100%, 365px); max-height: 76px; object-fit: contain; object-position: left center; }
.main-nav ul { display: flex; justify-content: flex-end; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.main-nav a { color: var(--wt-navy); font-size: .95rem; font-weight: 850; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--wt-orange-dark); }
.main-nav a[href*="towbook.net"] { display: inline-flex; align-items: center; padding: 11px 15px; color: var(--wt-navy); background: var(--wt-orange); border-radius: 8px; box-shadow: 0 8px 20px rgba(245,130,32,.22); }
.main-nav a[href*="towbook.net"]:hover,.main-nav a[href*="towbook.net"]:focus { color: var(--wt-white); background: var(--wt-orange-dark); }
.header-call { white-space: nowrap; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 10px; border: 0; border-radius: 8px; color: var(--wt-white); background: var(--wt-navy); }
.nav-toggle svg { width: 100%; height: 100%; stroke: currentColor; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; isolation: isolate; overflow: hidden; color: var(--wt-white); background: var(--wt-navy); }
/* Above-the-fold image is an HTML <picture>, not a CSS background, for fast discovery. */
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero__media img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 54%;
}
.hero > .container { position: relative; z-index: 2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,15,29,.97) 0%, rgba(3,15,29,.9) 35%, rgba(3,15,29,.44) 65%, rgba(3,15,29,.12) 100%);
}
.hero__content { max-width: 720px; padding: 98px 0 112px; }
.hero h1 { color: var(--wt-white); text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.hero .lead { margin: 0 0 28px; color: #eef4fa; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__phone { display: block; margin-top: 20px; color: var(--wt-white); font-size: 1rem; font-weight: 800; }

.trust-strip { position: relative; z-index: 2; margin-top: -44px; }
.trust-strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  color: var(--wt-white); background: var(--wt-navy-2); border-radius: 14px; box-shadow: var(--wt-shadow);
}
.trust-item { min-height: 88px; display: flex; align-items: center; gap: 13px; padding: 20px; border-right: 1px solid rgba(255,255,255,.14); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { flex: 0 0 auto; width: 28px; height: 28px; color: var(--wt-orange); fill: none; stroke: currentColor; stroke-width: 2; }
.trust-item strong { display: block; line-height: 1.2; }
.trust-item span { display: block; margin-top: 3px; color: #c8d5e3; font-size: .82rem; line-height: 1.3; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading > div { max-width: 780px; }
.section-heading p:last-child { margin-bottom: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; min-height: 260px; padding: 30px; overflow: hidden;
  background: var(--wt-white); border: 1px solid var(--wt-line); border-radius: var(--wt-radius);
  box-shadow: 0 8px 28px rgba(7,24,43,.07);
}
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--wt-orange); }
.service-card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; color: var(--wt-white); background: var(--wt-navy); border-radius: 12px; }
.service-card__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.service-card p { margin: 0; color: var(--wt-muted); font-size: .96rem; }
.service-card a { display: inline-block; margin-top: 18px; color: var(--wt-orange-dark); font-weight: 850; text-decoration: none; }

.split { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(40px, 7vw, 88px); }
.media-stack { position: relative; min-height: 580px; }
.media-stack__main { width: 84%; height: 510px; object-fit: cover; border-radius: 22px; box-shadow: var(--wt-shadow); }
.media-stack__small { position: absolute; right: 0; bottom: 0; width: 48%; height: 235px; object-fit: cover; border: 8px solid var(--wt-white); border-radius: 18px; box-shadow: var(--wt-shadow); }
.check-list { padding: 0; margin: 28px 0; list-style: none; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wt-orange-dark); font-weight: 950; }

.company-history p:not(.eyebrow):not(.lead) { color: var(--wt-muted); }
.history-facts { display: grid; gap: 10px; margin: 26px 0; }
.history-facts > div { padding: 14px 16px; background: rgba(255,255,255,.72); border: 1px solid var(--wt-line); border-left: 5px solid var(--wt-orange); border-radius: 10px; }
.history-facts strong, .history-facts span { display: block; }
.history-facts strong { color: var(--wt-navy); font-size: 1rem; }
.history-facts span { color: var(--wt-muted); font-size: .88rem; }
.history-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.facebook-link { color: var(--wt-blue); font-weight: 850; text-decoration: none; }
.facebook-link:hover { color: var(--wt-orange-dark); text-decoration: underline; }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.capability { overflow: hidden; background: var(--wt-white); border-radius: var(--wt-radius); box-shadow: var(--wt-shadow); }
.capability img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.capability__body { padding: 22px; }
.capability__body p { margin: 0; color: var(--wt-muted); font-size: .92rem; }

.service-area { position: relative; overflow: hidden; }
.service-area::after {
  content: "ME"; position: absolute; right: -45px; bottom: -160px; color: rgba(255,255,255,.035);
  font-size: 24rem; font-weight: 1000; line-height: 1; pointer-events: none;
}
.area-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: start; }
.area-core { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip { padding: 9px 14px; color: var(--wt-white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .9rem; font-weight: 750; }
.area-details { margin-top: 20px; }
.area-details summary { cursor: pointer; color: var(--wt-orange); font-weight: 850; }
.area-all { columns: 3; column-gap: 30px; margin-top: 18px; padding-left: 20px; color: #d7e2ed; }
.area-all li { break-inside: avoid; margin-bottom: 5px; }

.reviews-shell {
  min-height: 260px; padding: 38px; background: var(--wt-white); border: 1px solid var(--wt-line); border-radius: var(--wt-radius); box-shadow: var(--wt-shadow);
}
.reviews-shell .widget { margin: 0; }
.reviews-fallback { text-align: center; }
.stars { color: #f6ad13; font-size: 1.7rem; letter-spacing: .1em; }
.association { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 28px; margin-top: 28px; padding: 26px; color: var(--wt-white); background: var(--wt-navy-2); border-radius: 16px; }
.association img { width: 150px; height: 150px; object-fit: contain; }
.association h3 { margin-bottom: 7px; color: #ffffff; }
.association p { margin: 0; color: #d0dbe6; }

.cta-band { padding: 70px 0; color: var(--wt-white); background: linear-gradient(115deg, var(--wt-orange-dark), var(--wt-orange)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin-bottom: 8px; color: var(--wt-white); }
.cta-band p { margin: 0; color: #fff8eb; }
.cta-band .btn { color: var(--wt-white); background: var(--wt-navy); }

.content-wrap { width: min(calc(100% - 40px), 880px); margin: 0 auto; padding: 72px 0 100px; }
.entry-header { margin-bottom: 34px; }
.entry-content > * { max-width: 100%; }
.entry-content img { border-radius: 12px; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }

.site-footer { padding: 58px 0 28px; color: #cbd6e1; background: #020b15; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 50px; }
.footer-logo { width: 340px; max-width: 100%; margin-bottom: 22px; filter: invert(1); mix-blend-mode: screen; }
.site-footer h3 { color: var(--wt-white); font-size: 1.05rem; }
.site-footer p { margin: 0 0 10px; font-size: .9rem; }
.site-footer a { color: #edf4fb; text-decoration: none; }
.site-footer a:hover { color: var(--wt-orange); }
.footer-social { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-menu { padding: 0; margin: 0; list-style: none; }
.footer-menu li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.mobile-call { display: none; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: minmax(230px, 1fr) auto auto; min-height: 82px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 14px 20px 24px; background: var(--wt-white); border-bottom: 1px solid var(--wt-line); box-shadow: 0 20px 30px rgba(0,0,0,.12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { border-bottom: 1px solid var(--wt-line); }
  .main-nav a { display: block; padding: 15px 4px; }
  .main-nav a[href*="towbook.net"] { display: block; margin: 10px 0; padding: 14px; text-align: center; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .services-grid, .capabilities { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .media-stack { order: -1; }
  .area-layout { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body { padding-bottom: 72px; font-size: 17px; }
  .container { width: min(calc(100% - 28px), var(--wt-container)); }
  .section { padding: 68px 0; }
  .utility-bar__inner { justify-content: center; text-align: center; }
  .utility-bar__inner p:last-child { display: none; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; min-height: 74px; }
  .site-branding img { max-width: 260px; max-height: 62px; }
  .header-call { display: none; }
  .hero { min-height: 650px; }
  .hero__media img { object-position: 57% center; }
  .hero::after { background: linear-gradient(90deg, rgba(3,15,29,.94) 0%, rgba(3,15,29,.78) 68%, rgba(3,15,29,.45) 100%); }
  .hero__content { padding: 82px 0 110px; }
  .hero__actions .btn { width: 100%; }
  .trust-strip { margin-top: -38px; }
  .trust-strip__inner { grid-template-columns: 1fr; }
  .trust-item { min-height: 72px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .trust-item:last-child { border-bottom: 0; }
  .section-heading { display: block; }
  .services-grid, .capabilities { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .media-stack { min-height: 470px; }
  .media-stack__main { width: 92%; height: 420px; }
  .media-stack__small { width: 52%; height: 190px; }
  .area-all { columns: 2; }
  .association { grid-template-columns: 1fr; text-align: center; }
  .association img { margin-inline: auto; }
  .cta-band__inner { display: block; text-align: center; }
  .cta-band .btn { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { display: block; }
  .mobile-call {
    position: fixed; z-index: 1500; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 72px; padding: 12px 20px; color: #111; background: var(--wt-orange);
    font-size: 1.08rem; font-weight: 950; text-decoration: none; box-shadow: 0 -8px 24px rgba(0,0,0,.2);
  }
  .mobile-call:hover { color: #111; }
  .mobile-call svg { width: 24px; height: 24px; fill: currentColor; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.3rem, 12vw, 3.5rem); }
  .site-branding img { max-width: 210px; }
  .hero { min-height: 620px; }
  /* The <picture> source selects the compressed mobile crop. */
  .hero__media img { object-position: center center; }
  .media-stack { min-height: 390px; }
  .media-stack__main { height: 350px; }
  .media-stack__small { height: 150px; border-width: 5px; }
  .area-all { columns: 1; }
  .reviews-shell { padding: 25px 20px; }
}

/* v1.2.3: targeted homepage contrast corrections based on mobile accessibility audits.
   Light-surface labels must be dark; dark-surface labels keep their warm orange accent.
   Explicit selector scope also prevents accidental overrides by plugin styles. */
body.home .section:not(.section--dark) .eyebrow {
  color: #713500;
}
body.home .accident-feature .btn.btn--outline {
  color: #07182b;
  background-color: #ffffff;
  border-color: #123f72;
}
body.home .accident-feature .btn.btn--outline:hover,
body.home .accident-feature .btn.btn--outline:focus-visible {
  color: #ffffff;
  background-color: #123f72;
  border-color: #123f72;
}
body.home .association h3 {
  color: #ffffff;
}
body.home .resource-card__meta span {
  color: #7a3900;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Subtle, accessible citation of the official Town of Monmouth business listing. */
.company-history .town-directory-note {
  margin: 16px 0 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--wt-muted);
}
.company-history .town-directory-note a {
  color: var(--wt-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* v1.2.0: Driver Safety & Resources — dynamic WordPress article library. */
.resources-preview { background: #fff; }
.resources-preview__heading { align-items: center; }
.resources-preview__heading .lead { margin-bottom: 0; }
.resources-preview__heading > .btn { flex-shrink: 0; }
.resources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resource-card { overflow: hidden; border: 1px solid var(--wt-line); border-radius: 17px; background: #fff; box-shadow: 0 9px 26px rgba(7,24,43,.07); display: flex; flex-direction: column; min-width: 0; }
.resource-card__media { display: block; aspect-ratio: 1.6 / 1; overflow: hidden; background: var(--wt-navy-2); }
.resource-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.resource-card__media:hover img { transform: scale(1.025); }
.resource-card__placeholder { display: flex; align-items: end; justify-content: flex-start; width: 100%; height: 100%; padding: 23px; color: #f4f7fd; background: linear-gradient(135deg, #07182b, #123f72 75%, #ef7d00); font-size: 1.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -.025em; }
.resource-card__body { padding: 26px 26px 28px; display: flex; flex: 1; flex-direction: column; }
.resource-card__meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 14px; font-size: .75rem; font-weight: 850; line-height: 1.35; text-transform: uppercase; letter-spacing: .05em; }
.resource-card__meta span { color: #7a3900; }
.resource-card__meta time { color: var(--wt-muted); font-weight: 700; text-transform: none; letter-spacing: 0; }
.resource-card h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 2vw, 1.48rem); line-height: 1.2; }
.resource-card h3 a { color: var(--wt-navy); text-decoration: none; }
.resource-card h3 a:hover { color: var(--wt-orange-dark); }
.resource-card__excerpt { margin: 0 0 20px; color: var(--wt-muted); font-size: .95rem; line-height: 1.6; }
.resource-card__read { margin-top: auto; font-size: .93rem; font-weight: 900; color: var(--wt-blue); text-decoration: none; }
.resource-card__read:hover { color: var(--wt-orange-dark); text-decoration: underline; }
.resources-empty { padding: 36px; border: 1px solid var(--wt-line); background: #f8fafc; border-radius: 16px; }
.resources-empty h2 { font-size: 1.65rem; }
.resources-empty p { color: var(--wt-muted); }
.resources-empty p:last-child { margin-bottom: 0; }
.resources-banner { padding: 88px 0 92px; background: linear-gradient(130deg, #07182b, #143d68); }
.resources-banner .container { max-width: 1100px; }
.resources-banner h1 { max-width: 900px; margin: 0 0 18px; color: #fff; font-size: clamp(2.8rem, 5.2vw, 4.8rem); }
.resources-banner .lead { max-width: 820px; margin: 0; color: #dce8f4; }
.resources-archive .section--compact { padding: 65px 0 90px; }
.resources-archive .navigation.pagination { margin: 44px 0 0; }
.resources-archive .nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.resources-archive .page-numbers { padding: 9px 16px; border-radius: 8px; border: 1px solid var(--wt-line); color: var(--wt-navy); font-weight: 800; text-decoration: none; }
.resources-archive .page-numbers.current { color: #fff; background: var(--wt-navy); border-color: var(--wt-navy); }
.resources-archive .page-numbers:hover { border-color: var(--wt-orange-dark); }
.resources-promo { padding: 42px 0; }
.resources-promo__inner { display: flex; gap: 30px; justify-content: space-between; align-items: center; }
.resources-promo h2 { font-size: 1.75rem; margin: 0 0 7px; }
.resources-promo p { margin: 0; color: var(--wt-muted); font-size: .97rem; }
.resources-promo .btn { white-space: nowrap; }
.footer-resource-link { margin: 15px 0 0 !important; }
.footer-resource-link a { color: #ffb65f; font-weight: 850; }
/* Article reading template */
.resource-single__header { padding: 70px 0 50px; background: linear-gradient(140deg, #07182b, #10375e); color: #fff; }
.resource-single__intro { max-width: 1040px; }
.resource-single__header h1 { max-width: 950px; margin: 14px 0 20px; color: #fff; font-size: clamp(2.35rem, 5.2vw, 4.6rem); line-height: 1.1; }
.resource-single__header .eyebrow { color: #ffad4b; }
.resource-single__back { margin: 0 0 28px; }
.resource-single__back a { color: #d7e7fa; font-size: .88rem; font-weight: 800; text-decoration: none; }
.resource-single__back a:hover { color: #fff; text-decoration: underline; }
.resource-single__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; color: #cbdced; font-size: .92rem; }
.resource-single__featured { max-width: 1100px; margin-top: 32px; }
.resource-single__featured img { width: 100%; max-height: 530px; object-fit: cover; border-radius: 16px; }
.resource-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 55px; max-width: 1110px; padding-top: 62px; padding-bottom: 90px; }
.resource-single__content { min-width: 0; font-size: 1.08rem; line-height: 1.8; }
.resource-single__content > :first-child { margin-top: 0; }
.resource-single__content h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin: 1.7em 0 .65em; }
.resource-single__content h3 { font-size: 1.4rem; }
.resource-single__content p { margin: 0 0 1.25em; }
.resource-single__content ul, .resource-single__content ol { margin: 0 0 1.35em; padding-left: 1.6em; }
.resource-single__content li { margin: .35em 0; }
.resource-single__content a { font-weight: 650; text-underline-offset: 3px; }
.resource-single__content figure, .resource-single__content .wp-block-image { max-width: 100%; margin: 24px 0; }
.resource-single__content figcaption { color: var(--wt-muted); font-size: .8rem; text-align: center; }
.resource-single__content blockquote { margin: 2em 0; padding: 5px 0 5px 24px; border-left: 5px solid var(--wt-orange); color: #263e58; }
.resource-single__content table { display: block; width: 100%; overflow-x: auto; }
.resource-single__content .wp-block-button__link { background: var(--wt-orange); color: #111; border-radius: 9px; font-weight: 850; text-decoration: none; }
.resource-single__aside { position: sticky; top: 128px; }
.resource-assist-card { padding: 27px; border: 1px solid #dfE6ed; border-radius: 15px; background: var(--wt-cream); }
.resource-assist-card .eyebrow { font-size: .74rem; }
.resource-assist-card h2 { font-size: 1.6rem; }
.resource-assist-card p { color: #4d5866; font-size: .93rem; }
.resource-assist-card .btn { width: 100%; padding: 14px; }
.resource-assist-card ul { margin: 20px 0 0; padding-left: 20px; font-size: .9rem; }
.resource-assist-card li { margin: 8px 0; }
.resources-related .section-heading { align-items: end; }
.resources-view-all { font-weight: 850; text-decoration: none; }
.resources-view-all:hover { text-decoration: underline; }
/* A ninth navigation item is easier to use on smaller laptops with the existing mobile menu. */
@media (min-width: 1481px) {
  .site-header .container { width: min(calc(100% - 40px), 1440px); max-width: 1440px; }
  .header-inner { grid-template-columns: minmax(230px, 280px) 1fr auto; gap: 18px; }
  .site-branding img { max-width: 280px; }
  .main-nav ul { gap: 12px; }
  .main-nav a { font-size: .87rem; }
}
@media (max-width: 1050px) {
  .resources-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1051px) and (max-width: 1480px) {
  .header-inner { grid-template-columns: minmax(230px,1fr) auto auto; min-height: 82px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 14px 20px 24px; background: var(--wt-white); border-bottom: 1px solid var(--wt-line); box-shadow: 0 20px 30px rgba(0,0,0,.12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { border-bottom: 1px solid var(--wt-line); }
  .main-nav a { display: block; padding: 15px 4px; }
  .main-nav a[href*="towbook.net"] { display: block; margin: 10px 0; padding: 14px; text-align: center; }
}
@media (max-width: 850px) {
  .resource-single__layout { grid-template-columns: 1fr; gap: 0; }
  .resource-single__aside { position: static; margin-top: 38px; }
  .resource-assist-card { max-width: 650px; }
  .resources-preview__heading { display: block; }
  .resources-preview__heading > .btn { margin-top: 20px; }
}
@media (max-width: 700px) {
  .resources-grid { grid-template-columns: 1fr; }
  .resources-banner { padding: 60px 0 67px; }
  .resources-promo__inner { display: block; }
  .resources-promo .btn { margin-top: 20px; width: 100%; }
  .resource-single__header { padding: 45px 0 40px; }
  .resource-single__layout { padding-top: 38px; padding-bottom: 60px; }
  .resource-single__featured { margin-top: 20px; }
  .resource-single__featured img { border-radius: 10px; }
  .resources-empty { padding: 25px; }
}

/* v1.2.5: contextual links to the restored city pages and repair directory. */
a.area-chip--link { color: #fff; text-decoration: underline; text-underline-offset: 3px; border-color: #ffb65f; background: rgba(255,255,255,.12); }
a.area-chip--link:hover, a.area-chip--link:focus-visible { color: #07182b; background: #ffb65f; }
.footer-area-title { margin-top: 24px; }
.resources-directory-callout { display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--wt-line); border-left: 5px solid var(--wt-orange); border-radius: 12px; background: #f8fafc; padding: 24px; margin-top: 30px; }
.resources-directory-callout h2, .resources-directory-callout h3 { font-size: 1.35rem; margin: 0 0 8px; }
.resources-directory-callout p { margin: 0; color: var(--wt-muted); font-size: .95rem; }
.resources-directory-callout .btn { flex-shrink: 0; text-align: center; }
.resources-directory-callout--top { margin: 0 0 32px; }
@media (max-width: 1480px) { .main-nav.is-open { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; } }
@media (max-width: 700px) { .resources-directory-callout { flex-direction: column; align-items: stretch; padding: 20px; } }
