/* ==========================================================================
   PERFECT FINISH - THEME STYLESHEET
   Professional Car Detailing, Protection & Automotive Care
   Color Palette: RED & WHITE (Performance Racing Red, Diamond White, Carbon Charcoal)
   ========================================================================== */

:root {
  /* Red & White Primary Palette */
  --pf-red: #ef4444;
  --pf-red-dark: #dc2626;
  --pf-red-deep: #b91c1c;
  --pf-red-light: #f87171;
  --pf-red-glow: 0 0 30px rgba(239, 68, 68, 0.3);
  --pf-red-gradient: linear-gradient(135deg, #ffffff 0%, #fca5a5 35%, #ef4444 80%, #b91c1c 100%);
  --pf-red-badge-bg: rgba(239, 68, 68, 0.12);
  --pf-red-border: rgba(239, 68, 68, 0.35);

  --pf-primary: #ffffff;
  --pf-accent: #ef4444;
  --pf-accent-hover: #dc2626;
  --pf-silver: #cbd5e1;
  --pf-silver-light: #f1f5f9;
  --pf-silver-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #cbd5e1 100%);
  --pf-chrome-border: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(239, 68, 68, 0.2), rgba(255, 255, 255, 0.1));
  
  --pf-bg-base: #0d0e11;
  --pf-bg-surface: #141518;
  --pf-bg-card: #1a1b22;
  --pf-bg-card-hover: #22232d;
  
  --pf-glow: 0 0 35px rgba(239, 68, 68, 0.25);
}

body.theme-perfect-finish {
  background-color: var(--pf-bg-base);
  color: var(--color-gray-100);
}

/* Red & White Gradient Typography */
.pf-silver-text, .pf-red-text {
  background: var(--pf-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pf-tag {
  color: var(--pf-red);
  letter-spacing: 0.2em;
  font-weight: 700;
}

.pf-tag-badge {
  background: var(--pf-red-badge-bg);
  color: #ffffff;
  border: 1px solid var(--pf-red-border);
}

/* Primary Hero Section */
.pf-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  background: radial-gradient(circle at 75% 30%, rgba(239, 68, 68, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
              var(--pf-bg-base);
  overflow: hidden;
}

.pf-hero > .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

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

.pf-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.95) contrast(1.1) saturate(1.1);
}

.pf-hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(9, 9, 11, 0.05) 0%, rgba(9, 9, 11, 0.45) 70%),
              linear-gradient(to top, rgba(9, 9, 11, 0.90) 0%, transparent 35%),
              linear-gradient(to bottom, rgba(9, 9, 11, 0.40) 0%, transparent 20%);
  z-index: 2;
}

.pf-hero-content {
  position: relative;
  z-index: 3;
  max-width: 840px;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pf-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.pf-hero-title .red-accent {
  color: var(--pf-red);
  text-shadow: 0 0 35px rgba(239, 68, 68, 0.45);
}

.pf-hero-subheadline {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.pf-hero-desc {
  font-size: 1.125rem;
  color: var(--color-gray-300);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.pf-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pf-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0.5rem 1.15rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-pill);
}

/* Red & White Buttons */
.btn-pf-primary {
  background: var(--pf-red);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 25px rgba(239, 68, 68, 0.35);
}

.btn-pf-primary:hover {
  background: #ffffff;
  color: #09090b;
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255, 255, 255, 0.4);
}

.btn-pf-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-pf-secondary:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--pf-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.btn-pf-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-pf-outline:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ffffff;
  border-color: var(--pf-red);
}

/* Tier Switcher Button to Premium (Blue & White preview) */
.tier-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.785rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  transition: all var(--transition-smooth);
}

.tier-switcher-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Service Cards (Red & White highlights) */
.pf-service-card {
  background: linear-gradient(145deg, #1c1d25 0%, #141518 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.pf-service-card:hover {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--pf-red-glow);
}

.pf-service-card .benefit-item svg {
  fill: var(--pf-red);
}

/* Advanced Protection Section */
.protection-section {
  background: linear-gradient(180deg, #111215 0%, #191a22 50%, #111215 100%);
  position: relative;
}

.protection-card {
  background: linear-gradient(145deg, #1e1f2c 0%, #161720 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.protection-card:hover {
  border-color: var(--pf-red);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), var(--pf-red-glow);
  transform: translateY(-6px);
}

.protection-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.protection-card-header {
  margin-bottom: 2rem;
}

.protection-card-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.protection-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.protection-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.protection-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.protection-feature-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.protection-feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.protection-feature-text p {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  line-height: 1.5;
}

/* Why Perfect Finish Section */
.why-pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.why-pf-card {
  background: var(--pf-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: all var(--transition-smooth);
}

.why-pf-card:hover {
  background: var(--pf-bg-card-hover);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.15);
}

.why-pf-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--pf-red);
}

.why-pf-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.why-pf-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.why-pf-card p {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  line-height: 1.6;
}

/* Contact Section & Card */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-info-card {
  background: var(--pf-bg-card);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pf-red), #ffffff, var(--pf-red), transparent);
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pf-red);
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-detail-content h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-red-light);
  margin-bottom: 0.35rem;
}

.contact-detail-content p, .contact-detail-content a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: var(--shadow-lg);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Final CTA Section */
.final-cta-section {
  background: linear-gradient(135deg, #141116 0%, #09090b 100%);
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  padding: 7rem 0;
  text-align: center;
  position: relative;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Active Nav Links and Underlines */
.nav-link::after {
  background-color: var(--pf-red);
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-info-card {
    padding: 2rem;
  }
  .contact-action-buttons {
    grid-template-columns: 1fr;
  }
}
