/* Kebbs Wheels: component styles (plain CSS; Tailwind CDN handles utilities) */

:root {
  --gunmetal: #1F2A36;
  --racing: #D62828;
  --racing-dark: #B01E1E;
  --ink: #0D1117;
  --mist: #F4F5F7;
  --steel: #8A939E;
  --steel-dark: #5B6570;
}

/* Focus and skip link */
:focus-visible {
  outline: 3px solid var(--racing);
  outline-offset: 3px;
  border-radius: 4px;
}
#main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--racing);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Navigation */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--racing);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* Hero */
.hero-bg {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(214, 40, 40, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(138, 147, 158, 0.12), transparent 50%),
    linear-gradient(160deg, var(--ink) 0%, var(--gunmetal) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 2px,
    transparent 2px,
    transparent 14px
  );
}
.hero-bg > * { position: relative; z-index: 1; }

/* Section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--racing-dark);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--racing);
  border-radius: 2px;
}
.eyebrow-light { color: #F08A8A; }

.section-title {
  margin-top: 0.75rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
@media (min-width: 640px) { .section-title { font-size: 3rem; } }

/* Service cards */
.service-card {
  background: #fff;
  border: 1px solid rgba(31, 42, 54, 0.08);
  border-top: 4px solid var(--gunmetal);
  border-radius: 0.875rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-top-color: var(--racing);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(13, 17, 23, 0.35);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--gunmetal);
  color: #fff;
}
.service-icon svg { width: 2rem; height: 2rem; }
.service-card:hover .service-icon { background: var(--racing); }

.card-title {
  margin-top: 1.25rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.card-text {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: var(--gunmetal);
}
.card-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gunmetal);
  background: var(--mist);
  border: 1px solid rgba(31, 42, 54, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Key facts */
.fact {
  background: var(--gunmetal);
  padding: 1.5rem;
}
.fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B8BFC7;
}
.fact-value {
  margin-top: 0.5rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.15;
  color: #fff;
}

/* Contact checklist */
.check-item {
  position: relative;
  padding-left: 2rem;
  line-height: 1.5;
}
.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--racing) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

/* Footer */
.footer-link {
  color: var(--mist);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: var(--gunmetal);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.legal-modal::backdrop {
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(3px);
}
.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(31, 42, 54, 0.1);
  border-top: 4px solid var(--racing);
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  color: var(--gunmetal);
  background: var(--mist);
  border: 0;
  cursor: pointer;
}
.modal-close:hover { background: #e4e7eb; }
.modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.65;
}
.modal-body h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}
.modal-body p { margin-top: 0.5rem; }
.modal-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.modal-body li { margin-top: 0.25rem; }
.text-steel-dark { color: var(--steel-dark); }

body.modal-open { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .service-card:hover { transform: none; }
}
