/*
 * Perfection Auto Glass — site theme
 * Layered on top of the vendored Bootstrap build in styles.css.
 * Palette is derived from the logo: charcoal, signal red, chrome silver.
 */

/* ---------- Tokens ---------- */
:root {
  --pag-red: #c32b2a;
  --pag-red-700: #9f2120;
  --pag-red-300: #ef6a61;           /* red for small text on dark surfaces */
  --pag-red-tint: #fbeceb;

  --pag-ink: #161616;
  --pag-charcoal: #1c1c1c;
  --pag-charcoal-2: #252525;
  --pag-steel: #3a3a3a;
  --pag-silver: #a3a1a1;
  --pag-muted: #5d5b5b;
  --pag-line: #dcdad8;
  --pag-paper: #ffffff;
  --pag-mist: #f2f1ef;

  --on-dark: #f5f4f2;
  --on-dark-muted: #b9b6b4;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;

  /* 4px base spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2rem);

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(22, 22, 22, 0.06), 0 2px 8px rgba(22, 22, 22, 0.05);
  --shadow-md: 0 10px 30px rgba(22, 22, 22, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
  --slant: 48px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--pag-ink);
  background: var(--pag-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: inherit;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--pag-red);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--pag-red-700); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--pag-red-300);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 2000;
  padding: var(--s-2) var(--s-4);
  background: var(--pag-paper);
  color: var(--pag-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s-3); }

/* ---------- Buttons ---------- */
.btn-pag,
.btn-pag-ghost,
.btn-pag-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-pag .bi,
.btn-pag-ghost .bi,
.btn-pag-outline .bi { font-size: 1.05em; transition: transform 0.25s var(--ease); }

.btn-pag {
  background: var(--pag-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(195, 43, 42, 0.28);
}
.btn-pag:hover,
.btn-pag:focus-visible {
  background: var(--pag-red-700);
  color: #fff;
  transform: translateY(-1px);
}
.btn-pag:hover .bi-arrow-right { transform: translateX(4px); }

/* chrome glint on hover — echoes the logo lettering */
.btn-pag::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-pag:hover::after { transition: transform 0.7s var(--ease); transform: translateX(120%); }
.btn-pag:disabled { opacity: 0.65; cursor: progress; transform: none; }

.btn-pag-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-pag-ghost:hover,
.btn-pag-ghost:focus-visible {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-pag-outline {
  background: transparent;
  color: var(--pag-ink);
  border-color: var(--pag-ink);
}
.btn-pag-outline:hover,
.btn-pag-outline:focus-visible {
  background: var(--pag-ink);
  color: #fff;
}

.btn-pag-sm { min-height: 42px; padding: 0.65rem 1.1rem; font-size: 0.95rem; }
.btn-pag-lg { min-height: 54px; padding: 1rem 1.75rem; font-size: 1.125rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(22, 22, 22, 0.96);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(22, 22, 22, 0.88); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--on-dark-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-nav.navbar { padding: 0; }
.site-nav .nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.site-nav .navbar-brand { padding: 0; margin: 0; }
.site-nav .navbar-brand img {
  height: 52px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .navbar-brand img { height: 44px; }

.site-nav .navbar-nav { gap: var(--s-1); }
.site-nav .nav-link {
  position: relative;
  padding: 0.5rem 0.7rem !important;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-muted) !important;
  transition: color 0.2s var(--ease);
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--pag-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.is-active { color: #fff !important; }
.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after,
.site-nav .nav-link.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: var(--s-5);
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone .bi { color: var(--pag-red-300); }
.nav-phone:hover { color: #fff; }
button.nav-phone {
  min-height: 44px;
  padding: 0 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  border: 0;
}

/* ---------- Location phone dropdown ---------- */
.phone-menu .dropdown-toggle::after { display: none; }
.phone-caret {
  font-size: 0.75em;
  transition: transform 0.25s var(--ease);
}
.phone-menu .dropdown-toggle[aria-expanded="true"] .phone-caret { transform: rotate(180deg); }
.phone-dropdown {
  --bs-dropdown-bg: var(--pag-charcoal-2);
  --bs-dropdown-border-color: var(--on-dark-line);
  --bs-dropdown-border-radius: var(--radius);
  --bs-dropdown-padding-y: 0.4rem;
  --bs-dropdown-link-color: var(--on-dark);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.07);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: var(--pag-red);
  min-width: 17rem;
  margin-top: 0.5rem !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.phone-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 48px;
  padding: 0.5rem 1.1rem;
}
.pd-city {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.pd-num { font-weight: 600; font-size: 1.05rem; }
.dropdown-item:hover .pd-city,
.dropdown-item:active .pd-city { color: inherit; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}
.nav-toggle-bar {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 17px; }
.nav-toggle-bar:nth-child(2) { top: 23px; }
.nav-toggle-bar:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .site-nav .nav-wrap { padding-block: 10px; }
  .site-nav .navbar-brand img,
  .site-header.is-scrolled .navbar-brand img { height: 42px; }
  .site-nav .navbar-collapse { flex-basis: 100%; }
  .site-nav .navbar-nav,
  .site-nav .navbar-nav .nav-item { width: 100%; }
  .site-nav .navbar-nav {
    gap: 0;
    padding: var(--s-2) 0;
    border-top: 1px solid var(--on-dark-line);
  }
  .site-nav .nav-link {
    padding: 0.85rem 0 !important;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--on-dark-line);
  }
  .site-nav .nav-link::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
    margin: var(--s-2) 0 var(--s-5);
  }
  .nav-phone,
  button.nav-phone { justify-content: center; width: 100%; min-height: 48px; border: 1px solid var(--on-dark-line); border-radius: var(--radius-sm); }
  /* inside the mobile menu the list opens in place rather than floating */
  .nav-cta .dropdown-menu.phone-dropdown { position: static; width: 100%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-cta { margin-left: var(--s-3); gap: var(--s-3); }
  .site-nav .nav-link { padding-inline: 0.5rem !important; font-size: 1rem; }
  .site-nav .nav-link::after { left: 0.5rem; right: 0.5rem; }
}

/* ---------- Shared section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-mist { background: var(--pag-mist); }
.section-dark { background: var(--pag-charcoal); color: var(--on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-4);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pag-red);
}
/* slanted tick, borrowed from the italic logo */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  background: currentColor;
  transform: skewX(-24deg);
}
.section-dark .eyebrow,
.hero .eyebrow { color: var(--pag-red-300); }

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}
.section-lede {
  margin-top: var(--s-4);
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--pag-muted);
}
.section-dark .section-lede { color: var(--on-dark-muted); }

.section-head {
  display: grid;
  gap: var(--s-4) var(--s-7);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; }
  .section-head .section-lede { margin-top: 0; justify-self: end; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(60rem 36rem at 85% 20%, rgba(195, 43, 42, 0.16), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 22px),
    var(--pag-ink);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: calc(clamp(2.5rem, 5vw, 3.5rem) + var(--slant));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero-title {
  font-size: clamp(2.75rem, 6.2vw, 4.9rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero-title em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #d9d7d5 45%, #8f8c8b 52%, #e8e6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-rotator {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  color: var(--on-dark-muted);
}
/* words share one grid cell, so the box keeps the text baseline */
.rotator {
  display: inline-grid;
  min-width: 7.5em;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
  overflow: hidden;
}
.rotator span {
  grid-area: 1 / 1;
  font-weight: 700;
  font-style: italic;
  color: var(--pag-red-300);
  opacity: 0;
  animation: rotateWord 12.5s linear infinite;
}
.rotator span:nth-child(2) { animation-delay: 2.5s; }
.rotator span:nth-child(3) { animation-delay: 5s; }
.rotator span:nth-child(4) { animation-delay: 7.5s; }
.rotator span:nth-child(5) { animation-delay: 10s; }
@keyframes rotateWord {
  0% { opacity: 0; transform: translateY(-60%); }
  4% { opacity: 1; transform: translateY(0); }
  18% { opacity: 1; transform: translateY(0); }
  22% { opacity: 0; transform: translateY(60%); }
  100% { opacity: 0; transform: translateY(60%); }
}

.hero-lede {
  margin-top: var(--s-5);
  max-width: 33rem;
  font-size: 1.15rem;
  color: var(--on-dark-muted);
}
.hero-actions {
  position: relative;
  z-index: 5;                         /* keep the call list above the facts strip */
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* image in a windshield-like frame with the logo's red oval behind it */
.hero-media {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 6% 4%;
}
@media (min-width: 992px) { .hero-media { max-width: none; } }
.hero-swoosh {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-swoosh .swoosh-red {
  fill: none;
  stroke: var(--pag-red);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero-swoosh .swoosh-silver {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px 28px 6px 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 0%;          /* keep the windshield in frame */
}
.hero-frame figcaption {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(22, 22, 22, 0.78);
  border-left: 3px solid var(--pag-red);
  border-radius: 2px;
}

/* reflective sweep: plays once on load, again on hover */
.glint::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
  animation: glint 1.6s var(--ease) 1.1s 1 both;
}
.glint:hover::after { animation: glintHover 1.2s var(--ease) 1 both; }
@keyframes glint { to { transform: translateX(330%) skewX(-18deg); } }
@keyframes glintHover {
  from { transform: translateX(-160%) skewX(-18deg); }
  to { transform: translateX(330%) skewX(-18deg); }
}

.hero-facts {
  list-style: none;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--on-dark-line);
}
.hero-facts li {
  padding: var(--s-5) var(--s-4) 0 0;
}
.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.hero-facts span {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}
@media (min-width: 768px) {
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-facts li + li { padding-left: var(--s-5); border-left: 1px solid var(--on-dark-line); }
}

/* hero entrance */
.hero-copy > *,
.hero-media,
.hero-facts {
  animation: riseIn 0.8s var(--ease) both;
}
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-media { animation-delay: 0.2s; }
.hero-facts { animation-delay: 0.45s; }
.hero-media .swoosh-red,
.hero-media .swoosh-silver { animation: drawLine 1.8s var(--ease) 0.5s both; }
.hero-media .swoosh-silver { animation-delay: 0.8s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes drawLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 992px) {
  .services-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
  .services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.services-intro .btn-pag { margin-top: var(--s-6); }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 var(--s-6);
}
@media (min-width: 640px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}
.service {
  position: relative;
  padding: var(--s-6) 0 var(--s-6);
  border-top: 1px solid var(--pag-line);
}
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--pag-red);
  transition: width 0.45s var(--ease);
}
.service:hover::before { width: 100%; }
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  color: var(--pag-red);
  background: var(--pag-paper);
  border: 1px solid var(--pag-line);
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service:hover .service-icon { background: var(--pag-red); border-color: var(--pag-red); color: #fff; }
.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--pag-silver);
}
.service h3 { font-size: 1.6rem; margin-bottom: var(--s-2); }
.service p { color: var(--pag-muted); max-width: 30rem; }

/* ---------- Our Work ---------- */
.work-grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 768px) {
  .work-grid { grid-template-columns: 7fr 5fr; }
  .work-feature { grid-column: 1 / -1; }
}
.work-card {
  margin: 0;
  background: var(--pag-paper);
  border: 1px solid var(--pag-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.work-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.work-media { position: relative; overflow: hidden; background: var(--pag-mist); }
.work-media img {
  width: 100%;
  height: clamp(240px, 30vw, 380px);
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.04); }
.work-media img.focus-top { object-position: 50% 0%; transform-origin: 50% 0%; }
.work-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--pag-line);
}
.work-type {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.work-vehicle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pag-muted);
}

.ba { display: grid; grid-template-columns: 1fr; }
@media (min-width: 576px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba .work-media + .work-media { border-top: 1px solid var(--pag-paper); }
@media (min-width: 576px) {
  .ba .work-media + .work-media { border-top: 0; border-left: 2px solid var(--pag-paper); }
}
.ba-tag {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  padding: 0.3rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(22, 22, 22, 0.8);
  border-radius: 2px;
}
.ba-tag-after { background: var(--pag-red); }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: 7fr 5fr; align-items: start; }
  .quotes .quote:nth-child(2) { margin-top: var(--s-8); }
}
.quote {
  position: relative;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--pag-charcoal-2);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
}
.quote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(1.75rem, 4vw, 2.75rem);
  width: 56px;
  height: 3px;
  background: var(--pag-red);
}
.quote-mark {
  display: block;
  height: 2.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--pag-red-300);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-dark);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--on-dark-line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.quote-avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pag-steel);
  color: #fff;
  font-size: 1rem;
}

/* ---------- Locations ---------- */
.locations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 576px) { .locations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .locations { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.location {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--pag-paper);
  border: 1px solid var(--pag-line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.location:hover { border-color: rgba(195, 43, 42, 0.45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.location h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1.5rem;
}
.location h3::before {
  content: "";
  width: 14px;
  height: 4px;
  background: var(--pag-red);
  transform: skewX(-24deg);
}
.location-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pag-ink);
  text-decoration: none;
}
.location-phone .bi { color: var(--pag-red); }
.location-phone:hover { color: var(--pag-red); }
.location-address {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin-top: auto;
  font-size: 0.975rem;
  line-height: 1.45;
  color: var(--pag-muted);
  text-decoration: none;
}
.location-address .bi { margin-top: 0.15em; }
.location-address:hover { color: var(--pag-ink); text-decoration: underline; }

.mobile-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-6);
  padding: var(--s-5) var(--s-6);
  color: var(--on-dark);
  background: var(--pag-ink);
  border-radius: var(--radius);
}
.mobile-band p {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}
.mobile-band .bi { font-size: 1.6rem; color: var(--pag-red-300); }

/* ---------- Careers ---------- */
.careers {
  position: relative;
  display: grid;
  gap: var(--s-5) var(--s-7);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--pag-paper);
  border: 1px solid var(--pag-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.careers::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--pag-red);
}
@media (min-width: 900px) { .careers { grid-template-columns: 1fr auto; } }
.careers .section-lede { max-width: 38rem; }
.careers .section-lede a { font-weight: 600; word-break: break-word; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--on-dark-line);
}
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-1) var(--s-4);
  align-items: baseline;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--on-dark-line);
}
@media (min-width: 576px) {
  .contact-list li { grid-template-columns: 11rem 1fr; }
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.contact-list a .bi { color: var(--pag-red-300); }
.contact-list a:hover { color: var(--pag-red-300); }
.contact-list span { color: var(--on-dark-muted); }
.contact-list .contact-email { grid-column: 1 / -1; }
.contact-list .contact-email a { white-space: normal; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: 0.975rem;
  border-top: 3px solid var(--pag-red);
}
.footer-grid {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 22rem; }
.site-footer h2 {
  margin-bottom: var(--s-4);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-links a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: #fff; }
.footer-links .bi { color: var(--pag-red-300); margin-right: 0.4rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.9rem;
}
.footer-bottom nav { display: flex; gap: var(--s-5); }
.footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Modals & forms ---------- */
.modal.fade .modal-dialog { transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.modal-content {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.modal-header {
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--pag-line);
  border-top: 4px solid var(--pag-red);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}
.modal-subtitle { margin-top: var(--s-1); font-size: 0.95rem; color: var(--pag-muted); }
.modal-body { padding: var(--s-5); }
.modal-footer {
  padding: var(--s-4) var(--s-5);
  gap: var(--s-2);
  background: var(--pag-mist);
  border-top: 1px solid var(--pag-line);
}
.modal-footer > * { margin: 0; }

/* Schedule form: the <form> and #form-content wrappers sit between .modal-content
   and .modal-body, so carry the flex column through them or the body never scrolls. */
#serviceForm,
#form-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
#form-content.d-none { display: none !important; }
#scheduleModal .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#scheduleModal .modal-body .form-control { scroll-margin: var(--s-5) 0; }

/* Phones: full-screen sheet sized to the visible viewport (keyboard-aware via --vvh) */
@media (max-width: 575.98px) {
  #scheduleModal { height: var(--vvh, 100dvh); top: var(--vvt, 0px); }
  #scheduleModal .modal-dialog {
    margin: 0;
    max-width: none;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }
  #scheduleModal .modal-content {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  #scheduleModal .modal-header { padding: var(--s-4); }
  #scheduleModal .modal-body { padding: var(--s-4); }
  #scheduleModal .modal-footer { padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); }
}

/* Short visible area (keyboard open): give the fields the room */
@media (max-height: 520px) {
  #scheduleModal .modal-subtitle { display: none; }
  #scheduleModal .modal-header { padding-top: var(--s-3); padding-bottom: var(--s-3); }
  #scheduleModal .modal-title { font-size: 1.4rem; }
  #scheduleModal .modal-footer { flex-direction: row; }
  #scheduleModal .modal-footer .btn-pag,
  #scheduleModal .modal-footer .btn-pag-outline { width: auto; flex: 1 1 0; }
}

.form-label {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pag-ink);
}
.form-control {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  color: var(--pag-ink);
  border: 1px solid #cfccca;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-control:hover { border-color: #a9a6a4; }
.form-control:focus {
  border-color: var(--pag-red);
  box-shadow: 0 0 0 0.2rem rgba(195, 43, 42, 0.16);
}
.form-control:user-invalid { border-color: var(--pag-red-700); }
.form-hint { margin-top: 0.3rem; font-size: 0.85rem; color: var(--pag-muted); }

.confirm-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-4);
  font-size: 2rem;
  color: #fff;
  background: var(--pag-red);
  border-radius: 50%;
}
.confirm-title { font-size: 1.9rem; margin-bottom: var(--s-2); }

/* ---------- Scroll reveal (only when JS opts in) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  :root { --slant: 28px; }
  .hero-actions > * { flex: 1 1 100%; }
  .hero-actions .phone-menu .dropdown-toggle { width: 100%; }
  .hero-actions .phone-dropdown { width: 100%; }
  .contact-actions > *,
  .mobile-band .btn-pag,
  .careers .btn-pag-outline { flex: 1 1 100%; width: 100%; }
  .modal-footer { flex-direction: column-reverse; align-items: stretch; }
  .modal-footer .btn-pag,
  .modal-footer .btn-pag-outline { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .glint::after { display: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  /* show a single word instead of cycling */
  .rotator span { animation: none !important; }
  .rotator span:nth-child(3) { opacity: 1; transform: none; }
}
