/* =========================================
   LuvUrRide Detailing — styles.css
   =========================================
   Brand colors:
     Blue:   #193b9a
     White:  #ffffff
     Red:    #be0a04  (used sparingly for accents only)
   ========================================= */

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

:root {
  --blue:        #193b9a;
  --blue-dark:   #122d7a;
  --blue-light:  #e8eef9;
  --red:         #be0a04;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
  --transition:  0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 720px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 10px 20px;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 16px 36px;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: auto;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

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

.btn-white:hover,
.btn-white:focus {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

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

.btn-white-outline:hover,
.btn-white-outline:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow var(--transition);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a2a5e;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,20,60,0.72) 0%, rgba(10,20,60,0.62) 100%);
  z-index: 1;
}

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

.hero-heading {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-br {
  display: none;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Sections --- */
.section {
  padding: 64px 0;
}

.section-light {
  background: var(--white);
}

.section-blue {
  background: var(--blue);
}

.section-cta {
  background: var(--gray-50);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub-white {
  color: rgba(255,255,255,0.75);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

/* --- Review Cards --- */
.review-card {
  gap: 12px;
}

.stars {
  font-size: 1.2rem;
  color: #f59e0b;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

.reviews-cta-text {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.link-blue {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* --- Pricing Cards --- */
.cards-grid-3 {
  grid-template-columns: 1fr;
}

.pricing-card {
  position: relative;
  gap: 0;
}

.pricing-card-featured {
  border: 2px solid var(--blue);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 4px;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.pricing-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-list li {
  font-size: 0.92rem;
  color: var(--gray-700);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  padding-left: 20px;
  position: relative;
}

.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* --- Steps --- */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.steps-cta {
  text-align: center;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-btn:hover {
  color: var(--blue);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  transition: transform 0.2s ease;
  display: inline-block;
}

.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--gray-700);
  padding-bottom: 18px;
  line-height: 1.7;
}

/* --- Final CTA --- */
.cta-content {
  text-align: center;
}

.cta-heading {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: var(--blue-dark);
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.85);
}

.footer-logo {
  margin-bottom: 32px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

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

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

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

.footer-list li {
  font-size: 0.875rem;
}

.footer-link {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* =========================================
   Responsive — Tablet (600px+)
   ========================================= */
@media (min-width: 600px) {
  .section {
    padding: 80px 0;
  }

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

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

  .gallery-grid {
    gap: 12px;
  }

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

/* =========================================
   Responsive — Desktop (900px+)
   ========================================= */
@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }

  .hero-br {
    display: block;
  }

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

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

  .gallery-grid {
    gap: 16px;
  }

  .steps-list {
    gap: 32px;
  }
}
