/* Matos Towing & Recovery theme. Loaded after the inline site styles.
   Same design system as the newer client builds (heavy italic slab headings, slanted stripe divider,
   pill buttons with a white stroke and black ring, chevron bullets, diamond plate header and footer),
   colored from the Matos logo: red, silver and black. */

:root {
  --mat: #fa1818;
  --mat-hi: #ff4747;
  --mat-dark: #b80f0f;
  --mat-black: #1b1b1b;
  --chrome: #c9ced3;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --chevron-shape: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 32% 50%);
}

/* ---------- lettering ---------- */
h1, h2, h3, .card-title, .trust-item strong {
  font-family: var(--font-head) !important;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1, h2 { line-height: 1.05; }
article.content h1, article.content .h1 { font-size: 2.2rem; }
@media (min-width: 768px) { article.content h1, article.content .h1 { font-size: 2.9rem; } }
h2 { font-size: 1.9rem; }
@media (min-width: 768px) { h2 { font-size: 2.3rem; } }
.card-title { font-size: 1.35rem !important; }
.hero h1, .content-section.featured-top h1 { color: #fff; text-shadow: 0 3px 10px rgba(0, 0, 0, .65); }

/* ---------- divider under every section title: three slanted stripes ---------- */
.content h2::after, .services-gallery h2::after, .featured-service-area h2::after, .review-slider h2::after,
.review-badge-section h2::after, .content-section h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 15px;
  margin: .7rem 0 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 136 14%22%3E%3Cpolygon fill=%22%23fa1818%22 points=%226%2C0 76%2C0 70%2C14 0%2C14%22/%3E%3Cpolygon fill=%22%23fa1818%22 points=%2283%2C0 109%2C0 103%2C14 77%2C14%22/%3E%3Cpolygon fill=%22%23fa1818%22 points=%22116%2C0 136%2C0 130%2C14 110%2C14%22/%3E%3C/svg%3E") no-repeat left center / contain;
}
.text-center h2::after, h2.text-center::after { margin-left: auto; margin-right: auto; }
.faq-list h2::after, .faq h2::after { display: none; }

/* ---------- chevron bullets on page content lists ---------- */
.content ul:not(.nav):not(.faq-list) { list-style: none; padding-left: 0; }
.content ul:not(.nav):not(.faq-list) li { position: relative; padding-left: 1.45rem; margin-bottom: .2rem; }
.content ul:not(.nav):not(.faq-list) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .36em;
  width: .62em;
  height: .8em;
  margin-left: .1em;
  background: var(--mat);
  clip-path: var(--chevron-shape);
}

/* ---------- buttons: pill, white inner stroke, black ring, chevron tip ---------- */
.btn.btn-brand-primary, .btn.btn-brand {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--mat);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50rem;
  box-shadow: 0 0 0 3px var(--mat-black);
  margin: 3px;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.btn.btn-brand-primary:hover, .btn.btn-brand-primary:focus-visible, .btn.btn-brand:hover, .btn.btn-brand:focus-visible {
  background: var(--mat-hi);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--mat-black);
  transform: translateY(-1px);
}
.btn.btn-brand-primary:active { background: #fff; color: var(--mat); }
.btn.btn-brand-outline {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  border: 2px solid var(--mat);
  border-radius: 50rem;
  box-shadow: 0 0 0 3px var(--mat-black);
  margin: 3px;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.btn.btn-brand-outline:hover, .btn.btn-brand-outline:focus-visible { background: var(--mat); color: #fff; border-color: #fff; }
.btn.btn-brand-primary::after, .btn.btn-brand-outline::after, .btn.btn-brand::after {
  content: "";
  display: inline-block;
  width: .62em;
  height: .8em;
  margin-left: .55em;
  background: currentColor;
  clip-path: var(--chevron-shape);
  vertical-align: -.05em;
}
.btn-menu-mobile::after, .btn-sm.btn-brand-primary::after, .btn-sm.btn-brand-outline::after { display: none; }
.btn.btn-brand-primary.btn-sm, .btn.btn-brand-outline.btn-sm { margin: 2px; }

/* ---------- diamond plate: header and footer only ---------- */
.nav-wrapper {
  background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), var(--mat-black) url(../img/diamond-plate.png) 0 0 / 56px 56px;
  border-bottom: 4px solid var(--mat);
}
footer.footer {
  background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), var(--mat-black) url(../img/diamond-plate.png) 0 0 / 56px 56px !important;
  border-top: 4px solid var(--mat);
}
.bg-page-rest-section { background: #262626; }
.bg-black-dark { background-color: #2f2f2f; border-left: 6px solid var(--mat); }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--mat-black); border-top: 3px solid var(--mat); border-bottom: 3px solid var(--mat); }
.trust-item { display: flex; align-items: center; gap: .75rem; color: #fff; justify-content: flex-start; text-align: left; }
.trust-item i { font-size: 1.9rem; color: var(--mat); flex: 0 0 auto; }
.trust-item strong { display: block; font-size: 1rem; letter-spacing: .03em; line-height: 1.15; }
.trust-item span { display: block; font-size: .85rem; color: var(--chrome); line-height: 1.25; }

/* ---------- review sections ---------- */
.review-slider { background-color: var(--mat-black); border-top: 3px solid var(--mat); border-bottom: 3px solid var(--mat); }

/* ---------- FAQ cards ---------- */
.faq-item { border: 2px solid rgba(255, 255, 255, .22); border-left: 6px solid var(--mat); border-radius: 0; background: rgba(0, 0, 0, .25); }
.faq-item summary { font-family: var(--font-head); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- footer hover and logo size ---------- */
footer.footer a:hover, footer.footer a:focus, .footer-nav li a:hover, .footer-nav li a:focus, a.footer-item:hover, a.footer-item:focus { color: var(--mat-hi) !important; }
.hero { overflow: hidden; }

/* ---------- town page link blocks and cards ---------- */
.rest-content-section, .content-section.rest-content-section { background: #262626; }
.content ul.service-area-links li a, .content ul.row li a { color: #fff; }
.content ul.service-area-links li a:hover, .content ul.row li a:hover { color: var(--mat-hi); }
.faq-item[open] { border-left-color: var(--mat); }

/* ---------- review placards ---------- */
.review-badge-section { background: var(--mat-black); border-top: 3px solid var(--mat); border-bottom: 3px solid var(--mat); }
.rv-card { background: #2f2f2f; border-left: 6px solid var(--mat); border-top: 1px solid rgba(255, 255, 255, .1); color: #fff; padding: 1rem 1.1rem; }
.rv-card p { font-size: .95rem; }
.rv-card footer { margin-top: .6rem; font-weight: 700; text-transform: uppercase; font-size: .85rem; color: var(--chrome); }

/* ---------- hero split: image 2/3, request form 1/3 ---------- */
.hero-split-img img { width: 100% !important; height: auto !important; max-height: none !important; display: block; }
.request-form-card { border-radius: 0; border: 3px solid var(--mat); box-shadow: 0 0 0 3px var(--mat-black); }
.request-form-card h2::after { display: none; }
.request-form-card h2 { font-size: 1.5rem; }

/* ---------- contact page cards ---------- */
.lead { font-size: 1.1rem; }
.cx-card { background: #2f2f2f; border-left: 6px solid var(--mat); border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem; }
.cx-label { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--mat-hi); font-weight: 700; margin-bottom: .15rem; }
.cx-phone { display: block; font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.1; color: #fff; text-decoration: none; }
.cx-phone:hover { color: var(--mat-hi); }
.cx-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0 .2rem; margin-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.cx-icon { flex: 0 0 2.7rem; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--mat); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mat-black); }
.cx-value, .cx-value a { color: #fff; }
.cx-value a:hover, .cx-link:hover { color: var(--mat-hi); }
.cx-link { color: var(--mat-hi); font-weight: 700; text-decoration: none; }
.content .cx-phone, .content .cx-link { text-decoration: none; }
.cx-map-card iframe { display: block; }

/* home hero background: larger photo on desktop */
@media (min-width: 768px) { .hero.hero-heavy { background-image: url(../img/heavy-towing-near-you-now-l.webp) !important; background-position: center 40%; } }

/* services section: neutral charcoal overlay instead of the 50% red wash, and a softer glass card */
.services-gallery:after { background-color: rgba(18, 18, 18, .62) !important; }
.services-gallery > .container { --bs-bg-opacity: .86; border-top: 4px solid var(--mat); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
