/* =============================================
   DIRECT-REPAIR LEASIDE INC.
   Auto Body & Paint — Toronto
   Palette: #1c1c1c (charcoal base)
            #f5f0eb (warm off-white text)
            #e63946 (confident red accent)
   Display: Bebas Neue (all-caps, muscular)
   Body:    Inter (clean, legible)
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1c1c1c;
  --bg-alt: #252525;
  --bg-card: #2a2a2a;
  --text: #f5f0eb;
  --text-muted: #a0988a;
  --accent: #e63946;
  --accent-hover: #d62839;
  --border: #3a3a3a;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- UTILITY --- */
.section-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: var(--space-xl);
}

.cta-btn {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(230,57,70,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245,240,235,0.03) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-label {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

.hero-phone {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: opacity 0.2s;
}

.hero-phone:hover {
  opacity: 0.85;
  color: var(--accent);
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews {
  background: var(--bg-alt);
  padding: var(--space-2xl) var(--space-lg);
}

.reviews-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.review-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .review-cards {
    grid-template-columns: 1fr 1fr;
  }
  .review-cards .review-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .review-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .review-cards .review-card:first-child {
    grid-column: 1 / -1;
  }
}

.review-card {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 4px;
  position: relative;
}

.review-stars {
  color: #f4a261;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.review-author {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.review-rating {
  color: var(--accent);
  font-weight: 600;
}

/* =============================================
   IMAGE DIVIDER
   ============================================= */
.image-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.image-divider img {
  width: 100%;
  height: 50vh;
  min-height: 280px;
  object-fit: cover;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: var(--space-2xl) var(--space-lg);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.service-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.service-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* =============================================
   INFO (HOURS + LOCATION)
   ============================================= */
.info {
  background: var(--bg-alt);
  padding: var(--space-2xl) var(--space-lg);
}

.info-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .info-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.info-block {
  padding: var(--space-lg) 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table td {
  padding: var(--space-sm) 0;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 40%;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.hours-table .closed {
  color: var(--accent);
  font-weight: 500;
}

.info-address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.info-address strong {
  color: var(--text);
  font-weight: 500;
}

.info-address a {
  color: var(--accent);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.map-link {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--space-sm);
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact {
  padding: var(--space-2xl) var(--space-lg);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

#contact-form label span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#contact-form input,
#contact-form textarea {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 12px 16px;
  transition: border-color 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #6b6358;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form .cta-btn {
  align-self: flex-start;
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .attribution {
  font-size: 0.75rem;
  opacity: 0.6;
}

.site-footer .attribution a {
  color: var(--text-muted);
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .hero { min-height: auto; padding: 2rem; }
  .hero-bg { display: none; }
  .cta-btn { display: none; }
  .image-divider { display: none; }
  body { background: #fff; color: #000; }
  .reviews, .info, .contact, .site-footer { background: #fff; }
  .review-card { border-left-color: #000; }
}
