:root {
  --red: #c41e24;
  --yellow: #ffc400;
  --black: #0a0a0a;
  --white: #ffffff;
  --font: "Montserrat", system-ui, sans-serif;
  --script: "Pacifico", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--black);
  border-bottom: 2px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 52px;
  height: 44px;
  flex-shrink: 0;
}

.logo-mark-crop {
  object-fit: cover;
  object-position: 50% 12%;
}

.logo-name {
  display: block;
  font-family: var(--script);
  font-size: 1.35rem;
  color: var(--yellow);
  line-height: 1.1;
}

.logo-tagline {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.site-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-link {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--yellow);
}

.nav-dropdown-btn::after {
  content: " ▾";
  font-size: 0.65em;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #111;
  border: 1px solid #333;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dropdown a:hover {
  background: var(--red);
}

.header-phone {
  text-align: right;
  flex-shrink: 0;
}

.header-phone-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.06em;
}

.header-phone-number {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

.icon-phone {
  width: 28px;
  height: 28px;
  fill: var(--yellow);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--yellow);
  margin: 5px 0;
}

/* Home hero — your design image, natural size; taps on nav/buttons in the photo */
.home-hero {
  background: var(--black);
  line-height: 0;
}

.home-hero-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.home-hero-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.1) contrast(1.03) saturate(1.05);
}

.design-hit {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.design-hit:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.design-hit:hover {
  background: rgba(255, 196, 0, 0.1);
}

/* Tap zones on hero.png (1024×682) */
.hit-logo { top: 1%; left: 1%; width: 22%; height: 11%; }
.hit-home { top: 4%; left: 27%; width: 7%; height: 7%; }
.hit-towing { top: 4%; left: 34%; width: 9%; height: 7%; }
.hit-automotive { top: 4%; left: 43%; width: 11%; height: 7%; }
.hit-about { top: 4%; left: 54%; width: 8%; height: 7%; }
.hit-contact { top: 4%; left: 62%; width: 10%; height: 7%; }
.hit-header-phone { top: 2%; right: 1%; left: auto; width: 28%; height: 10%; }
.hit-call-btn { top: 52%; left: 3%; width: 30%; height: 11%; }
.hit-request { top: 52%; left: 34%; width: 34%; height: 11%; }
.hit-footer-phone { bottom: 2%; left: 1%; width: 38%; height: 14%; }

/* Section below hero — equal towing + repair */
@keyframes pulse-red-glow {
  0%, 100% {
    color: #fff;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: #ffcccc;
    text-shadow: 0 0 14px rgba(255, 60, 60, 0.85);
  }
}

.pulse-red {
  animation: pulse-red-glow 2.2s ease-in-out infinite;
  font-weight: 800;
}

.home-dispatch-bar {
  background: var(--black);
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--red);
  padding: 1rem 1.25rem 1.1rem;
  text-align: center;
}

.home-dispatch-phone {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.home-dispatch-phone:hover {
  color: var(--yellow);
}

.home-dispatch-services {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-dispatch-dot {
  color: var(--yellow);
  margin: 0 0.35rem;
}

.home-dispatch-area {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-twin-msg {
  margin: 0 0 1rem;
  text-align: center;
}

.twin-line {
  margin: 0 0 0.65rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: #eee;
  line-height: 1.45;
}

.twin-line:last-child {
  margin-bottom: 0;
}

.dual-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--red);
}

.dual-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem;
  min-height: 220px;
  position: relative;
  transition: filter 0.2s;
  background: var(--red);
  color: var(--white);
}

.dual-towing {
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
  padding-right: 2rem;
  z-index: 2;
}

.dual-repair {
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -6%;
  padding-left: 2.25rem;
  z-index: 1;
  border-left: 4px solid var(--yellow);
}

.dual-title {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0.25rem 0;
  line-height: 1.1;
}

.home-both-line {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ccc;
  line-height: 1.55;
  background: #0d0d0d;
  border-bottom: 1px solid #222;
}

.home-both-line em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 800;
}

.dual-panel:hover {
  filter: brightness(1.08);
}

.dual-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.dual-towing .dual-label,
.dual-repair .dual-label {
  color: var(--yellow);
}

.dual-desc {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 340px;
  opacity: 0.95;
}

.dual-bridge {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border-left: 4px solid var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ddd;
  text-align: left;
}

@media (max-width: 600px) {
  .dual-services {
    grid-template-columns: 1fr;
    background: var(--black);
  }

  .dual-towing {
    clip-path: none;
    padding-right: 1.5rem;
    min-height: 200px;
  }

  .dual-repair {
    clip-path: none;
    margin-left: 0;
    padding-left: 1.5rem;
    min-height: 200px;
    border-left: none;
    border-top: 4px solid var(--yellow);
  }
}

.below-hero {
  background: #111;
  border-top: 4px solid var(--yellow);
  padding: 1.75rem 1.25rem 2rem;
}

.below-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.below-hero-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.quick-link {
  display: block;
  padding: 0.85rem 0.5rem;
  background: #1a1a1a;
  border-left: 3px solid var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.quick-link:hover {
  border-left-color: var(--yellow);
  background: #222;
}

.below-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.below-hero-note {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.04em;
}

.below-hero-cities {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  line-height: 1.55;
}

@media (min-width: 901px) {
  .below-hero-cities {
    display: none;
  }
}

@media (min-width: 700px) {
  .quick-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 24/7 emphasis — sits right under your design (matches red footer in mockup) */
.emergency-strip {
  background: var(--red);
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
}

.emergency-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

.emergency-badge {
  margin: 0 0 0.35rem;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
}

.emergency-tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.emergency-phone svg {
  width: clamp(32px, 8vw, 44px);
  height: clamp(32px, 8vw, 44px);
  fill: var(--white);
  flex-shrink: 0;
}

.emergency-phone:hover {
  color: var(--yellow);
}

.emergency-phone:hover svg {
  fill: var(--yellow);
}

.emergency-sub {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.footer-copy {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  padding: 1rem;
  margin: 0;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-call {
  background: var(--red);
  color: var(--white);
}

.btn-call:hover {
  filter: brightness(1.08);
}

.btn-service {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

.btn-service:hover {
  background: rgba(255, 196, 0, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Features */
.features {
  background: var(--black);
  border-top: 3px solid #1a1a1a;
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 1.25rem;
}

.feature {
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  fill: currentColor;
}

.feature h2 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.feature p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* Service area */
.service-area {
  position: relative;
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
}

.service-area-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
  z-index: 1;
}

.service-area-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-area-heading svg {
  width: 28px;
  height: 28px;
  fill: var(--black);
  flex-shrink: 0;
}

.service-area-heading h2 {
  margin: 0;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.service-area-cities {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}

.arch-silhouette {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(280px, 35%);
  height: 100%;
  opacity: 0.15;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath fill='%23000' d='M100 20 Q95 80 100 110 Q105 80 100 20M40 90 L50 50 L70 90 L60 90 L55 75 L45 75 L40 90M130 90 L140 50 L160 90 L150 90 L145 75 L135 75 L130 90M20 95 h160 v5 H20z'/%3E%3C/svg%3E") right bottom / contain no-repeat;
  pointer-events: none;
}

/* About & Contact */
.about,
.contact {
  background: #111;
  padding: 3rem 1.25rem;
}

.about-inner,
.contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about h2,
.contact h2 {
  color: var(--yellow);
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.about p,
.contact > .contact-inner > p {
  color: #ddd;
  margin: 0 0 1.25rem;
}

.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #ccc;
}

.about-facts li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #333;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-call-card {
  display: block;
  background: var(--red);
  padding: 1.5rem;
  text-align: center;
  border-radius: 4px;
}

.contact-call-card:hover {
  filter: brightness(1.05);
}

.contact-call-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-call-number {
  font-size: 1.75rem;
  font-weight: 800;
}

.contact-form label,
.service-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ccc;
}

.contact-form input,
.contact-form textarea,
.service-form input,
.service-form select,
.service-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid #444;
  background: #1a1a1a;
  color: var(--white);
  border-radius: 3px;
}

.form-sent-note {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: #1a2a1a;
  border-left: 4px solid var(--yellow);
  color: #ddd;
  font-size: 0.85rem;
  font-weight: 600;
}

.honey {
  display: none;
}

.form-note {
  font-size: 0.7rem;
  color: #888;
  margin-top: 0.75rem;
}

.form-note code {
  color: var(--yellow);
}

/* Footer */
.site-footer {
  background: var(--red);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
}

.footer-phone svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}

.footer-divider {
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-tagline p {
  margin: 0;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.footer-hours {
  color: var(--yellow) !important;
  font-size: 0.75rem !important;
  margin-top: 0.25rem !important;
}


/* Modal */
.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-dialog {
  position: relative;
  background: #161616;
  border: 2px solid var(--yellow);
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-dialog h2 {
  margin: 0 0 0.5rem;
  color: var(--yellow);
}

.modal-intro {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0 0 1rem;
}

.modal-intro a {
  color: var(--yellow);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-success {
  text-align: center;
}

.modal-success a {
  color: var(--yellow);
  font-weight: 700;
}

/* Mobile — inner pages with HTML header */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 2px solid #333;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid #222;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    border: none;
    background: #0d0d0d;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }

  .site-nav {
    order: 4;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .features-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-divider {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
