/* ========================================
   Oscar's Auto Repair — Trade-grade design
   Palette: near-black / warm off-white / oxblood
   Type: Bebas Neue (display) + Inter (body)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette — 3 tones */
  --base: #1a1a1a;
  --base-soft: #2a2a2a;
  --foreground: #f5f0eb;
  --foreground-muted: #a0988e;
  --accent: #d4382c;
  --accent-hover: #b82e24;
  --accent-glow: rgba(212, 56, 44, 0.15);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;

  /* Type */
  --display: 'Bebas Neue', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --radius: 6px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--body);
  background: var(--base);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.55) 0%,
    rgba(26, 26, 26, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.5rem, 14vw, 10rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--foreground);
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--foreground-muted);
  margin: var(--space-md) auto var(--space-xl);
  max-width: 600px;
  line-height: 1.4;
}

.hero-phone {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  transition: opacity 0.2s;
}

.hero-phone:hover {
  opacity: 0.85;
}

.hero-cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--foreground);
  padding: 18px 48px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

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

/* ===== SECTION COMMON ===== */
.section {
  padding: var(--space-2xl) var(--space-lg);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--space-lg);
  color: var(--foreground);
}

.section-sub {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--foreground-muted);
  max-width: 600px;
  line-height: 1.6;
  margin: 0 0 var(--space-xl);
}

/* ===== REVIEWS ===== */
.reviews {
  background: var(--base-soft);
}

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

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

.review-card {
  background: var(--base);
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--foreground-muted);
  margin: 0 0 var(--space-md);
  flex: 1;
}

.review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--foreground);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

.service-card {
  background: var(--base-soft);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid rgba(245, 240, 235, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

.service-name {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
  color: var(--foreground);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--foreground-muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== INFO BAR (hours + address) ===== */
.info-bar {
  background: var(--base-soft);
  border-top: 1px solid rgba(245, 240, 235, 0.06);
  border-bottom: 1px solid rgba(245, 240, 235, 0.06);
}

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

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

.info-block h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  color: var(--accent);
}

.info-block address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground-muted);
}

.info-block address strong {
  color: var(--foreground);
}

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

.hours-table td {
  padding: 6px 0;
  color: var(--foreground-muted);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--foreground);
  font-weight: 500;
}

.hours-table .closed td:last-child {
  color: var(--accent);
}

/* ===== CONTACT / CTA SECTION ===== */
.contact-section {
  background: var(--accent);
  text-align: center;
}

.contact-section .section-title {
  color: var(--foreground);
}

.contact-section .section-sub {
  color: rgba(245, 240, 235, 0.8);
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--foreground);
  transition: background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 240, 235, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 32px;
  border: 2px solid var(--foreground);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact-form button:hover {
  background: var(--foreground);
  color: var(--accent);
}

.form-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.4em;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
  color: var(--foreground-muted);
  border-top: 1px solid rgba(245, 240, 235, 0.06);
}

.site-footer .footer-phone {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.site-footer .footer-address {
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.site-footer .attribution {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: var(--space-md);
}

.site-footer .attribution a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.8s ease-out both;
}

.review-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.1s both; }
.review-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.2s both; }
.review-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.3s both; }

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

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 480px) {
  .hero { min-height: 92vh; padding: var(--space-lg) var(--space-md); }
  .hero-cta { width: 100%; text-align: center; }
  .section { padding: var(--space-xl) var(--space-md); }
}
