/* ============================================
   Carper's Custom Auto — Editorial Style Sheet
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6D3)
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2B;
  --burgundy-deeper: #3D141C;
  --blush: #F5E6D3;
  --blush-light: #FDF6EE;
  --blush-mid: #E8D4C0;
  --cream: #FFFAF5;
  --charcoal: #1A1A1A;
  --warm-gray: #3D3636;
  --soft-gray: #6B6565;
  --light-gray: #B8B0B0;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 20px;
  color: var(--charcoal);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--soft-gray);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background-color: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--charcoal);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background-color: var(--burgundy);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 900;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--burgundy);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--burgundy);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--burgundy) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85rem !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: var(--burgundy-dark) !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--charcoal);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--charcoal);
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 20, 28, 0.92) 0%,
    rgba(123, 45, 59, 0.85) 50%,
    rgba(92, 31, 43, 0.88) 100%
  );
}

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

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush) !important;
  margin-bottom: 24px;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.05;
}

.hero-title em {
  color: var(--blush);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 230, 211, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(245, 230, 211, 0.6);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* Services */
.services {
  padding: 120px 0;
  background-color: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid rgba(123, 45, 59, 0.08);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(123, 45, 59, 0.1);
  border-color: rgba(123, 45, 59, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(123, 45, 59, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--burgundy);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--soft-gray);
  line-height: 1.7;
}

/* About */
.about {
  padding: 120px 0;
  background-color: var(--blush-light);
}

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

.about-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.about-body {
  font-size: 1.05rem;
  color: var(--soft-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(123, 45, 59, 0.15);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--soft-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(123, 45, 59, 0.2);
}

/* Why Us */
.why-us {
  padding: 120px 0;
  background-color: var(--burgundy-deeper);
}

.why-us .section-eyebrow {
  color: var(--blush);
  opacity: 0.8;
}

.why-us .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.why-card {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.why-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.why-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(245, 230, 211, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.95rem;
  color: rgba(245, 230, 211, 0.7);
  line-height: 1.7;
}

/* Testimonial */
.testimonial {
  padding: 120px 0;
  background-color: var(--blush);
}

.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  margin-bottom: 32px;
  opacity: 0.3;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 32px;
}

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

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--burgundy);
}

.testimonial-location {
  font-size: 0.9rem;
  color: var(--soft-gray);
}

/* CTA */
.cta {
  padding: 120px 0;
  background-color: var(--burgundy);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta .section-eyebrow {
  color: var(--blush);
}

.cta-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: rgba(245, 230, 211, 0.8);
  margin-bottom: 40px;
}

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

/* Contact */
.contact {
  padding: 120px 0;
  background-color: var(--cream);
}

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

.contact-info .section-title {
  margin-bottom: 32px;
}

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

.contact-details address {
  font-style: normal;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--burgundy);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--soft-gray);
  line-height: 1.6;
}

.contact-item a {
  color: var(--burgundy);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.contact-map a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.contact-map:hover img {
  transform: scale(1.03);
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(61, 20, 28, 0.85));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background-color: var(--charcoal);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo-mark {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--blush);
}

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

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Reveal Animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .about-grid {
    gap: 48px;
  }

  .why-grid {
    gap: 24px;
  }
}

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

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 8px;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

  .about-image {
    aspect-ratio: 16/9;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .services,
  .about,
  .why-us,
  .testimonial,
  .cta,
  .contact {
    padding: 80px 0;
  }

  .service-card {
    padding: 28px 24px;
  }

  .why-card {
    padding: 28px;
  }
}
