/*
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.1.0
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: var(--wt-orange); font-size: .82rem; font-weight: 900;
  letter-spacing: .12em; line-height: 1.2; text-transform: uppercase;
}
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-white); border-color: rgba(255,255,255,.7); background: rgba(0,0,0,.18); }
.btn--outline:hover { color: var(--wt-white); border-color: var(--wt-white); background: rgba(255,255,255,.08); }
.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); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/images/hero-clean.webp") center 54% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  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; }
.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::before { background-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; }
  .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; }
}

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