/* ===================================
   Ryan's Garage - Modern Auto Repair Site
   Color Palette: Plum + Amber
   =================================== */

:root {
  /* Core Colors */
  --plum-50: #fdf4ff;
  --plum-100: #fae8ff;
  --plum-200: #f5d0fe;
  --plum-300: #f0abfc;
  --plum-400: #e879f9;
  --plum-500: #d946ef;
  --plum-600: #c026d3;
  --plum-700: #a21caf;
  --plum-800: #86198f;
  --plum-900: #701a75;
  --plum-950: #4a044e;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  /* Neutrals */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;

  /* Semantic */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-dark: #0f0f0f;
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #737373;
  --text-light: #fafafa;
  --accent: var(--plum-700);
  --accent-light: var(--plum-100);
  --highlight: var(--amber-500);

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 6rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: 1.5px solid var(--accent);
}

.btn-primary:hover {
  background: var(--plum-800);
  border-color: var(--plum-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(112, 26, 117, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--plum-100);
  color: var(--plum-800);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* Section */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.bg-light {
  background: var(--bg-secondary);
}

.bg-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.text-amber {
  color: var(--amber-400);
}

.text-muted {
  color: var(--text-muted);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo svg {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
}

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

.nav-links .btn {
  padding: 0.625rem 1.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-link:hover {
  color: var(--accent);
}

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

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

.gradient-1 {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--plum-300) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  opacity: 0.6;
}

.gradient-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber-200) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  opacity: 0.5;
}

.gradient-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--plum-200) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  opacity: 0.4;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-text .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 40px 80px -20px rgba(112, 26, 117, 0.2);
}

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

.floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--plum-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.floating-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.floating-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===================================
   Services
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}

.service-card:hover {
  border-color: var(--plum-200);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(112, 26, 117, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--plum-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

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

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===================================
   About
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

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

.about-content .lead {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-list svg {
  color: var(--amber-500);
  flex-shrink: 0;
}

/* ===================================
   Testimonials
   =================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  position: relative;
}

.quote-mark {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--plum-100);
  line-height: 1;
}

.review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.reviewer {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===================================
   Contact
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-400);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-item a {
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--amber-400);
}

/* Form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--plum-500);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-sm);
  color: #4ade80;
  font-size: 0.9375rem;
  text-align: center;
  margin-top: 1rem;
}

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

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--gray-950);
  padding: 3rem 0;
  border-top: 1px solid var(--gray-800);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand .logo {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-brand .copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* ===================================
   Responsive
   =================================== */
@media (max-width: 968px) {
  :root {
    --section-padding: 4rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero-text .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

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

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .floating-card {
    left: 50%;
    transform: translateX(-50%);
  }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
