/* ============================================
   Stafford Repair — Premium Dark Luxury Auto
   ============================================ */

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0E0E10;
  --bg-secondary: #16161A;
  --bg-card: #1C1C21;
  --bg-elevated: #222228;
  --terracotta: #B8542F;
  --terracotta-light: #D4734E;
  --sand: #D4A574;
  --sand-light: #E8C9A0;
  --sand-muted: #A8845A;
  --text-primary: #F5F0EB;
  --text-secondary: #B8B0A8;
  --text-muted: #7A7470;
  --border: rgba(212, 165, 116, 0.15);
  --border-light: rgba(212, 165, 116, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ──────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--sand-muted) 100%);
  color: var(--text-primary);
  padding: 14px 28px;
  border: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--terracotta-light) 0%, var(--sand) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 84, 47, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 28px;
  border: 1.5px solid rgba(245, 240, 235, 0.3);
}
.btn-outline-light:hover {
  border-color: var(--sand);
  color: var(--sand-light);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--sand);
  padding: 12px 24px;
  border: 1.5px solid var(--sand);
}
.btn-outline-gold:hover {
  background: var(--sand);
  color: var(--bg-primary);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; border-radius: 6px; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; padding: 16px 24px; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(14, 14, 16, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-list a:hover {
  color: var(--sand);
  background: rgba(212, 165, 116, 0.08);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-toggle:hover { background: rgba(212, 165, 116, 0.08); }
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}
.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 16, 0.70) 0%,
    rgba(14, 14, 16, 0.55) 40%,
    rgba(14, 14, 16, 0.75) 70%,
    rgba(14, 14, 16, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sand), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Services ────────────────────────────── */
.services {
  padding: 100px 0;
  background: var(--bg-primary);
}

.services .container { text-align: center; }

.services .section-sub { margin: 0 auto 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(184, 84, 47, 0.12);
  border: 1px solid rgba(184, 84, 47, 0.2);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
}

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

/* ── About ───────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 500px;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 500px; object-fit: cover; }

.about-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--bg-secondary);
}
.about-img-secondary img { width: 100%; height: 200px; object-fit: cover; }

.about-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--sand);
  border-radius: var(--radius);
  opacity: 0.3;
  z-index: -1;
}

.about-content .section-sub { margin-bottom: 24px; }

.about-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Why Us ──────────────────────────────── */
.why-us {
  padding: 100px 0;
  background: var(--bg-primary);
}

.why-us .container { text-align: center; }

.why-us .section-sub { margin: 0 auto 56px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: left;
  transition: var(--transition);
}
.why-item:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(184, 84, 47, 0.12);
  border: 1px solid rgba(184, 84, 47, 0.2);
  margin-bottom: 20px;
}

.why-item h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA Banner ──────────────────────────── */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

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

.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 14, 16, 0.90) 0%, rgba(30, 20, 15, 0.85) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Contact ─────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 28px; }

.contact-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 6px;
}

.contact-item dd {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.contact-item a {
  color: var(--text-primary);
  transition: var(--transition);
}
.contact-item a:hover { color: var(--sand); }

.hours-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Form ────────────────────────────────── */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3,
.form-success h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg { margin: 0 auto 16px; }

.form-success h3 { margin-bottom: 8px; }

.form-success p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sand);
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--sand); }

.footer-contact p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-contact a { transition: var(--transition); }
.footer-contact a:hover { color: var(--sand); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 24px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom a:hover { color: var(--sand); }

/* ── Scroll Reveal (progressive enhancement) ────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list a {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: 8px;
  }
  .nav-list li:last-child a {
    margin-top: 8px;
    text-align: center;
  }

  .hero-content { padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 8px; }

  .services-grid { grid-template-columns: 1fr; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-images { min-height: 360px; }
  .about-img-main img { height: 360px; }
  .about-img-secondary { right: -8px; bottom: -16px; }
  .about-img-secondary img { height: 160px; }
  .about-stats { gap: 24px; }

  .why-grid { grid-template-columns: 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form-wrap { padding: 28px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .services, .about, .why-us, .contact { padding: 72px 0; }
  .service-card { padding: 28px 22px; }
  .why-item { padding: 28px 24px; }
}
