/* ============================================
   Jr Auto Care — Monochrome + Signal Red
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  line-height: 1.6;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- SVG Pattern Background --- */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}

/* --- Parallax Layers --- */
.parallax-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.layer-back {
  background: radial-gradient(ellipse 80% 50% at 30% 20%, rgba(225,6,0,0.04) 0%, transparent 70%);
}
.layer-mid {
  background: radial-gradient(ellipse 60% 40% at 70% 80%, rgba(225,6,0,0.03) 0%, transparent 60%);
}

/* --- Book Spread Layout --- */
.book {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.spine {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 4rem 0;
}
.spine-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.15) 80%, transparent 100%);
}

.page {
  padding: 3rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* --- Collage Headline --- */
.collage-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.05em;
}
.collage-headline .w1 {
  font-variation-settings: 'wght' 300, 'SOFT' 0, 'WONK' 0;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.collage-headline .w2 {
  font-variation-settings: 'wght' 700, 'SOFT' 100, 'WONK' 1;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
}
.collage-headline .w3 {
  font-variation-settings: 'wght' 900, 'SOFT' 0, 'WONK' 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--signal, #e10600);
}

/* --- Hero --- */
.hero {
  padding-top: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.6;
  margin: 0.5rem 0 0;
  letter-spacing: 0.02em;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}
.stars {
  color: #e10600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}
.rating-text {
  font-size: 0.95rem;
  opacity: 0.7;
}

/* --- Signal Elements --- */
:root { --signal: #e10600; }

.signal-btn {
  display: inline-block;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
}
.signal-btn:hover,
.signal-btn:focus-visible {
  background: #ff1a0a;
  transform: scale(1.03);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.signal-btn:active {
  transform: scale(0.97);
}

.signal-link {
  color: var(--signal);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.signal-link:hover,
.signal-link:focus-visible {
  opacity: 0.7;
  outline: none;
  text-decoration: underline;
}

/* --- Section Marker --- */
.section-marker {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}
.marker-dash {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--signal);
  flex-shrink: 0;
}

/* --- Dictated Quote --- */
.dictated-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}
.dictated-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  min-height: 2.2em;
}
.dictated-quote .word {
  display: inline-block;
  opacity: 0;
  animation: wordAppear 0.4s ease forwards;
}
.dictated-quote .caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--signal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes wordAppear {
  to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- About --- */
.about p {
  margin: 0 0 1rem;
  opacity: 0.8;
  max-width: 55ch;
}
.about p:last-child { margin-bottom: 0; }

/* --- Services Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-card {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover {
  border-color: rgba(225,6,0,0.3);
  background: rgba(225,6,0,0.03);
}
.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.service-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.5;
}

/* --- Hours Table --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table tr td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hours-table tr td:first-child {
  font-weight: 600;
  width: 40%;
}
.hours-table tr.closed td {
  opacity: 0.4;
}
.location-block {
  margin-top: 1.5rem;
}
.address {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.wayfinding {
  font-size: 0.9rem;
  opacity: 0.6;
  margin: 0 0 0.75rem;
}

/* --- Reviews --- */
.review-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.review-card {
  border-left: 2px solid var(--signal);
  padding-left: 1rem;
}
.review-stars {
  color: var(--signal);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.review-body {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.6;
}
.review-author {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* --- Contact Form --- */
.contact-form-section {
  margin-top: 1rem;
}
.form-intro {
  font-size: 0.95rem;
  opacity: 0.6;
  margin: -0.5rem 0 1.25rem;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.label-text {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#contact-form input,
#contact-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: rgba(255,255,255,0.08);
}
.form-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.5em;
}

/* --- Page Footer --- */
.page-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-footer a {
  color: var(--signal);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.page-footer a:hover { text-decoration: underline; }
.page-footer p {
  margin: 0;
  opacity: 0.5;
  font-size: 0.9rem;
}

/* --- Turn Hints --- */
.turn-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  opacity: 0.3;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  user-select: none;
}
.turn-hint:hover { opacity: 0.6; }
.turn-hint-left { justify-content: flex-end; }
.turn-arrow { font-size: 1.2rem; }

/* --- Kwaku Attribution --- */
.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: system-ui, sans-serif;
  z-index: 100;
}
.attribution a { color: #fff; text-decoration: none; }

/* ============================================
   MOBILE — Single column, no book spread
   ============================================ */
@media (max-width: 860px) {
  .book {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .spine { display: none; }
  .page { padding: 2rem 0.5rem 4rem; }
  .service-grid { grid-template-columns: 1fr; }
  .collage-headline { font-size: clamp(2.5rem, 12vw, 4rem); }
  .turn-hint { display: none; }
  .page-footer { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .dictated-quote .word { opacity: 1 !important; animation: none !important; }
  .dictated-quote .caret { display: none !important; }
  .parallax-layer { transform: none !important; }
  .signal-btn { transition: none !important; }
  .signal-btn:hover { transform: none !important; }
  .service-card { transition: none !important; }
}
