/* ============================================
   Road Rite LLC — Auto Repair Website Styles
   Burgundy + Blush Palette
   ============================================ */

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

:root {
  --burgundy: #8B1A1A;
  --burgundy-dark: #6B1010;
  --burgundy-light: #A52222;
  --blush: #F5D5D5;
  --blush-light: #FDF2F2;
  --blush-mid: #FBE8E8;
  --cream: #FFFAF8;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(139, 26, 26, 0.06);
  --shadow-md: 0 4px 20px rgba(139, 26, 26, 0.08);
  --shadow-lg: 0 8px 40px rgba(139, 26, 26, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 26, 26, 0.06);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 250, 248, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo-accent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

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

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

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

.nav-cta {
  background: var(--burgundy);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

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

.nav-cta:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 26, 26, 0.3);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  flex: 1;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blush-light);
  border: 1px solid var(--blush);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--burgundy);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-headline-accent {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.5;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139, 26, 26, 0.25);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 26, 26, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--burgundy);
  border: 2px solid var(--blush);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text-mid);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 640px;
}

.hero-image-main {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-image-accent {
  position: absolute;
  bottom: -20px;
  left: -40px;
  width: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

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

.hero-stat-card {
  position: absolute;
  top: 40px;
  right: -20px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 200px;
}

.hero-stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.hero-stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.4;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* --- Section Shared --- */
.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 600px;
}

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

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

/* --- Services Section --- */
.services {
  background: var(--blush-light);
  padding: 100px 0;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blush);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blush-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

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

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

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

/* --- About Section --- */
.about {
  background: var(--cream);
  padding: 100px 0;
}

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

.about-image-col {
  position: relative;
  height: 620px;
}

.about-img-main {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-img-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

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

.about-content-col .section-title {
  margin-top: 8px;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.value-item span {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* --- Why Us Section --- */
.why-us {
  background: var(--burgundy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.why-us::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.why-us-content .section-tag {
  color: var(--blush);
}

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

.why-us-content .section-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reason {
  display: flex;
  gap: 20px;
}

.reason-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  min-width: 48px;
}

.reason-body h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.reason-body p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.why-us-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 560px;
}

.why-us-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Location Section --- */
.location {
  background: var(--cream);
  padding: 100px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location-info .section-title {
  margin-top: 8px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--blush);
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--burgundy);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--blush-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
}

/* --- Contact Section --- */
.contact {
  background: var(--blush-light);
  padding: 100px 0;
}

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

.contact-text .section-title {
  margin-top: 8px;
}

.contact-desc {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--blush);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.08);
}

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

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

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show {
  display: block;
}

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

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.footer-contact svg {
  min-width: 16px;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    height: 480px;
  }

  .hero-image-accent {
    left: -20px;
    width: 200px;
  }

  .hero-stat-card {
    right: -10px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout,
  .why-us-inner,
  .location-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-col {
    height: 420px;
    max-width: 500px;
    margin: 0 auto;
  }

  .why-us-visual {
    height: 400px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(139, 26, 26, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

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

  .nav-toggle {
    display: flex;
  }

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

  .about-img-float {
    width: 160px;
    right: -10px;
    bottom: -20px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .hero-visual {
    height: 380px;
  }

  .hero-image-accent {
    width: 160px;
    left: -10px;
    bottom: -10px;
  }

  .hero-stat-card {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .trust-item {
    justify-content: center;
  }
}
