/* ==========================================================================
   Global Reset & Color Variables
   ========================================================================== */
:root {
  --bg-dark: #0f1115;      /* Dark charcoal / black background */
  --bg-card: #181a20;      /* Slightly lighter black for cards & sections */
  --bg-input: #22252e;     /* Form input background */
  --accent-blue: #1d70b8;  /* MS Detailing logo blue */
  --accent-hover: #2682d4; /* Brighter blue for hover states */
  --text-main: #ffffff;    /* Primary white text */
  --text-muted: #a0a5b5;   /* Secondary grey text */
  --border-color: #2a2e39; /* Subtle borders */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand-logo-img {
  height: 75px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn-primary) {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background-color: var(--accent-blue);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: radial-gradient(circle at center, rgba(29, 112, 184, 0.15) 0%, rgba(15, 17, 21, 1) 70%);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-blue);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ==========================================================================
   General Section Layouts
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-blue);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.pricing-subtitle span {
  color: var(--text-main);
  font-weight: 600;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.margin-top-large {
  margin-top: 60px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.about-highlights {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  color: var(--text-main);
  font-weight: 600;
  flex-wrap: wrap;
}

/* ==========================================================================
   Services Section & Pricing Cards
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.card.featured {
  border: 2px solid var(--accent-blue);
}

.badge {
  position: absolute;
  top: -14px;
  right: 25px;
  background-color: var(--accent-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* Duration Tag */
.duration-badge {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Price Breakdown Component */
.price-breakdown {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-item strong {
  color: var(--accent-blue);
  font-size: 1rem;
}

.card ul {
  margin-bottom: 30px;
  flex-grow: 1;
}

.card ul li {
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

.card-btn {
  display: block;
  text-align: center;
  background-color: var(--bg-input);
  color: var(--text-main);
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.card-btn:hover,
.card.featured .card-btn {
  background-color: var(--accent-blue);
  color: #fff;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 10px;
}

.stars {
  color: #f1c40f;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

/* ==========================================================================
   Call To Action (CTA) & Footer
   ========================================================================== */
.cta-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(29, 112, 184, 0.2) 100%);
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .brand-logo-img {
    height: 55px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-highlights {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   Card Grid & Service Layouts
   ========================================================================== */

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.margin-top-large {
  margin-top: 50px;
}

/* Grid Container */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* Base Card Styling */
.card {
  background-color: var(--bg-card, #161a22);
  border: 1px solid var(--border-color, #232936);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Featured / Most Complete Card */
.card.featured {
  border: 2px solid #3b82f6;
  background-color: #1a202c;
}

.card .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin-bottom: 8px;
}

/* Duration Badge */
.duration-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Pricing Itemization */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
  border-top: 1px solid var(--border-color, #232936);
  padding-top: 15px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
}

.price-item strong {
  color: var(--text-main, #ffffff);
  font-size: 1.05rem;
}

/* Action Button */
.card-btn {
  width: 100%;
  padding: 12px 20px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.card-btn:hover {
  background-color: #2563eb;
}

/* ==========================================================================
   Payment Information Section
   ========================================================================== */

.payment-section {
  background-color: var(--bg-card, #161a22);
  border-top: 1px solid var(--border-color, #232936);
  border-bottom: 1px solid var(--border-color, #232936);
  padding: 60px 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.payment-card {
  background-color: var(--bg-dark, #0f1115);
  border: 1px solid var(--border-color, #232936);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.payment-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.payment-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.payment-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin-bottom: 10px;
}

.payment-card p {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}