/* ============================================
   Rantoul Auto Body Inc — Custom Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(123, 45, 59, 0.1);
}

.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-weight: 700;
  font-size: 1.05rem;
  color: #7B2D3B;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  color: #7B2D3B;
}

.nav-logo-text {
  display: none;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4a5a;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #7B2D3B;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7B2D3B;
  background: rgba(123, 45, 59, 0.08);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: rgba(123, 45, 59, 0.14);
  transform: translateY(-1px);
}

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

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: #7B2D3B;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7B2D3B 0%, #c22238 30%, #df3d55 60%, #ff5f85 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffd1d9 0%, #ffffff 50%, #ffd1d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-image {
  display: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  align-self: center;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #7B2D3B;
  color: #ffffff;
  border-color: #7B2D3B;
}

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

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: #7B2D3B;
  border-color: #ffffff;
}

.btn-white:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   Section Shared
   ============================================ */
.section-header {
  margin-bottom: 56px;
}

.section-header-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7B2D3B;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b6b7b;
  line-height: 1.7;
  max-width: 560px;
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 100px 0;
  background: #fdf0f2;
}

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

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 45, 59, 0.06);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf0f2, #fce3e8);
  border-radius: 14px;
  color: #7B2D3B;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.92rem;
  color: #6b6b7b;
  line-height: 1.7;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 100px 0;
  background: #ffffff;
}

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

.about-image-col {
  position: relative;
}

.about-image-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

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

.about-image-stack {
  position: absolute;
  bottom: -24px;
  right: -12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(123, 45, 59, 0.18);
  border: 4px solid #ffffff;
}

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

.about-content-col {
  max-width: 520px;
}

.about-text {
  font-size: 1rem;
  color: #4a4a5a;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
}

.about-feature-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7B2D3B;
  flex-shrink: 0;
}

/* ============================================
   Why Us
   ============================================ */
.why-us {
  padding: 100px 0;
  background: #0f0f1a;
}

.why-us .section-tag {
  color: #ff9eb5;
}

.why-us .section-title {
  color: #ffffff;
}

.why-us .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}

.why-card-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255, 158, 181, 0.3);
  line-height: 1;
  margin-bottom: 16px;
}

.why-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.why-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #7B2D3B 0%, #c22238 50%, #df3d55 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.cta-banner-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 480px;
}

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

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 100px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf0f2, #fce3e8);
  border-radius: 12px;
  color: #7B2D3B;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7B2D3B;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.95rem;
  color: #4a4a5a;
  line-height: 1.6;
}

.contact-item-value a {
  color: #7B2D3B;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-item-value a:hover {
  color: #c22238;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.contact-form-col {
  background: #fdf0f2;
  border-radius: 20px;
  padding: 40px 32px;
}

.contact-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  color: #1a1a2e;
  background: #ffffff;
  border: 1.5px solid rgba(123, 45, 59, 0.15);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #7B2D3B;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.form-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 12px;
  text-align: center;
}

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

.contact-success-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf0f2, #fce3e8);
  border-radius: 50%;
  color: #7B2D3B;
  margin: 0 auto 20px;
}

.contact-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.contact-success-text {
  font-size: 0.95rem;
  color: #6b6b7b;
  line-height: 1.7;
}

.contact-success-text a {
  color: #7B2D3B;
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0f0f1a;
  padding: 64px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-logo svg {
  color: #ff9eb5;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.footer-list li a:hover {
  color: #ff9eb5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #ff9eb5;
}

/* ============================================
   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 — Tablet
   ============================================ */
@media (min-width: 640px) {
  .nav-logo-text {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .about-content-col {
    max-width: none;
  }

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

  .contact-form-col {
    padding: 40px 36px;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cta-banner-inner {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================================
   Responsive — Desktop
   ============================================ */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    gap: 32px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    padding: 120px 48px 80px;
  }

  .hero-content {
    margin: 0;
    text-align: left;
  }

  .hero-subtitle {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-image {
    display: block;
    position: absolute;
    right: 48px;
    bottom: 80px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    width: 420px;
  }

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

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

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 639px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-cta {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-stats {
    gap: 20px;
  }

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

  .services,
  .about,
  .why-us,
  .contact {
    padding: 72px 0;
  }

  .about-image-stack {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    border: 3px solid #ffffff;
  }

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

  .contact-form-col {
    padding: 28px 20px;
  }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
