/* ============================================
   Flawless Finish Detailing - Shared Styles
   Mobile-first responsive design
   ============================================ */

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --primary: #E63946;
  --primary-hover: #ff4d5a;
  --primary-dark: #b82d38;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

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

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

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

.mobile-menu a {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu .mobile-phone {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 16px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.9) 100%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 3%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 220px;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.35);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  color: var(--text);
}

.hero-phone {
  margin-top: 24px;
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-phone a {
  color: var(--text);
  transition: color var(--transition);
}

.hero-phone a:hover {
  color: var(--primary);
}

/* ============================================
   Sections (general)
   ============================================ */

section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header h2 .highlight {
  color: var(--primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Services Grid
   ============================================ */

.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-left-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   Pricing CTA Banner
   ============================================ */

.pricing-banner {
  background: var(--surface);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.pricing-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, transparent 60%);
}

.pricing-banner-content {
  position: relative;
  z-index: 1;
}

.pricing-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-headline {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}

.pricing-headline .price {
  color: var(--primary);
  font-size: 2.8rem;
}

.pricing-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.pricing-banner .btn-primary {
  font-size: 1.1rem;
  padding: 16px 40px;
}

@media (min-width: 768px) {
  .pricing-headline {
    font-size: 2.5rem;
  }
  .pricing-headline .price {
    font-size: 3.2rem;
  }
}

/* ============================================
   Why Choose Us
   ============================================ */

.why-us {
  background: var(--surface);
}

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

.why-card {
  text-align: center;
  padding: 24px;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Service Area
   ============================================ */

.service-area {
  background: var(--bg);
}

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

.area-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
}

.area-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #c1303d 100%);
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.cta-phone {
  font-size: 2rem;
  font-weight: 800;
  margin: 24px 0;
}

.cta-phone a {
  color: var(--text);
  transition: opacity var(--transition);
}

.cta-phone a:hover {
  opacity: 0.8;
}

.cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--surface);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.footer-links h4,
.footer-areas h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

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

.footer-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-areas-list span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   Sticky Mobile CTA
   ============================================ */

.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--primary);
  padding: 14px 20px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-cta a {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.mobile-cta a:hover {
  color: var(--text);
}

.mobile-cta svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Add bottom padding to body for mobile CTA */
body {
  padding-bottom: 56px;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive - Tablet (768px+)
   ============================================ */

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

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

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

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

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

  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* ============================================
   Responsive - Desktop (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-phone {
    display: flex;
  }

  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

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

  .area-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .cta-section h2 {
    font-size: 2.5rem;
  }

  .cta-phone {
    font-size: 2.5rem;
  }
}
