/* ==========================================================================
   PERFECT FINISH PREMIUM - THEME STYLESHEET
   Luxury Automotive Customization & Premium Finishing
   Color Palette: BLUE & WHITE (Regal Sapphire Blue, Ice White, Midnight Obsidian)
   Typography: Cinzel (Serif Luxury) & Syne & Montserrat
   ========================================================================== */

:root {
  /* Sapphire Blue & White Palette */
  --pfp-blue: #3b82f6;
  --pfp-blue-light: #60a5fa;
  --pfp-blue-pale: #93c5fd;
  --pfp-blue-dark: #1d4ed8;
  --pfp-blue-deep: #1e40af;
  
  --pfp-blue-gradient: linear-gradient(135deg, #ffffff 0%, #bfdbfe 30%, #60a5fa 65%, #2563eb 100%);
  --pfp-blue-glow: 0 0 35px rgba(59, 130, 246, 0.35);
  --pfp-blue-border: linear-gradient(135deg, rgba(96, 165, 250, 0.5), rgba(59, 130, 246, 0.2), rgba(191, 219, 254, 0.35));

  /* Maintain backward compatibility with gold variable aliases mapped to Blue */
  --pfp-gold: var(--pfp-blue);
  --pfp-gold-light: var(--pfp-blue-light);
  --pfp-gold-pale: var(--pfp-blue-pale);
  --pfp-gold-dark: var(--pfp-blue-dark);
  --pfp-gold-gradient: var(--pfp-blue-gradient);
  --pfp-gold-glow: var(--pfp-blue-glow);
  --pfp-gold-border: var(--pfp-blue-border);

  --pfp-bg-black: #080b12;
  --pfp-bg-surface: #0e1320;
  --pfp-bg-card: #131828;
  --pfp-bg-card-hover: #1a2035;

  --pfp-border: rgba(59, 130, 246, 0.2);
  --pfp-border-hover: rgba(96, 165, 250, 0.55);
}

body.theme-pf-premium {
  background-color: var(--pfp-bg-black);
  color: #f8fafc;
}

/* Blue & White Gradient Typography & Accents */
.blue-text, .gold-text {
  background: var(--pfp-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.luxury-heading {
  font-family: var(--font-luxury);
  letter-spacing: 0.04em;
}

/* ── Header Nav Alignment Fix (7 links → tighter spacing to match PF Standard) ── */
.theme-pf-premium .nav-links {
  gap: 1.1rem;
}

.theme-pf-premium .nav-link {
  font-size: 0.775rem;
  letter-spacing: 0.04em;
}

/* ── Logo hover glow override for Premium (blue instead of red) ── */
.theme-pf-premium .brand-logo:hover .logo-img {
  filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.55));
}

/* ── PFP Tag ── */
.pfp-tag {
  color: var(--pfp-blue-light);
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pfp-tag-badge {
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Hero Section */
.pfp-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 50% 20%, rgba(59, 130, 246, 0.30) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.35) 0%, transparent 50%),
              var(--pfp-bg-black);
  overflow: hidden;
}

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

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

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

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

.pfp-hero-content {
  position: relative;
  z-index: 3;
  max-width: 960px;
  padding: 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pfp-hero-crest {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--pfp-blue-light);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.pfp-hero-title {
  font-family: var(--font-luxury);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  color: #ffffff;
}

.pfp-hero-subheadline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pfp-hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.pfp-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Premium Blue & White Buttons */
.btn-blue, .btn-gold {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 35%, #3b82f6 100%);
  color: #030408;
  font-weight: 800;
  box-shadow: 0 4px 25px rgba(59, 130, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-blue:hover, .btn-gold:hover {
  background: #ffffff;
  color: #030408;
  box-shadow: 0 8px 35px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.btn-luxury-outline {
  background: rgba(15, 19, 31, 0.75);
  color: #ffffff;
  border: 1px solid var(--pfp-border);
  backdrop-filter: blur(10px);
}

.btn-luxury-outline:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--pfp-blue-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

/* Switcher button to Standard (Red & White preview) */
.tier-switcher-silver {
  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(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  transition: all var(--transition-smooth);
}

.tier-switcher-silver:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* PF Premium Service Cards */
.pfp-service-card {
  background: var(--pfp-bg-card);
  border: 1px solid var(--pfp-border);
  position: relative;
}

.pfp-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pfp-blue-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.pfp-service-card:hover {
  border-color: var(--pfp-border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--pfp-blue-glow);
}

.pfp-service-card:hover::after {
  opacity: 1;
}

.pfp-service-card .benefit-item svg {
  fill: var(--pfp-blue-light);
}

/* Custom Paint Section ("YOUR CAR. YOUR VISION.") */
.custom-paint-section {
  background: linear-gradient(180deg, var(--pfp-bg-black) 0%, #080d18 50%, var(--pfp-bg-black) 100%);
  position: relative;
}

.custom-paint-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.custom-paint-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.paint-pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--pfp-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.25rem;
  transition: all var(--transition-smooth);
}

.paint-pillar-card:hover {
  border-color: var(--pfp-blue-light);
  background: rgba(59, 130, 246, 0.08);
}

.paint-pillar-card h4 {
  font-family: var(--font-luxury);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.paint-pillar-card p {
  font-size: 0.85rem;
  color: var(--color-gray-400);
}

/* Premium Customization Section ("BUILT DIFFERENT. FINISHED PERFECTLY.") */
.customization-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.cust-cat-card {
  background: var(--pfp-bg-card);
  border: 1px solid var(--pfp-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-smooth);
}

.cust-cat-card:hover {
  border-color: var(--pfp-blue-light);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), var(--pfp-blue-glow);
}

.cust-cat-media {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.cust-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-luxury);
}

.cust-cat-card:hover .cust-cat-media img {
  transform: scale(1.08);
}

.cust-cat-body {
  padding: 1.75rem;
}

.cust-cat-title {
  font-family: var(--font-luxury);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.cust-cat-desc {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  line-height: 1.6;
}

/* The PF Premium Experience 4 Points */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.experience-card {
  background: linear-gradient(145deg, #101524 0%, #090c14 100%);
  border: 1px solid var(--pfp-border);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.experience-card:hover {
  border-color: var(--pfp-blue-light);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(59, 130, 246, 0.25);
}

.experience-num {
  font-family: var(--font-luxury);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--pfp-blue-light);
  opacity: 0.75;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.experience-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.experience-desc {
  font-size: 0.9rem;
  color: var(--color-gray-300);
  line-height: 1.65;
}

/* Founders Modal for Neel Ratan Mukherjee */
.founder-readmore-btn {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pfp-blue-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--pfp-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.founder-readmore-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--pfp-blue);
  color: #ffffff;
}

/* PF Premium Contact */
.pfp-contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.pfp-contact-card {
  background: #090c14;
  border: 1px solid var(--pfp-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

/* Final Full-width Luxury Banner */
.pfp-final-cta {
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 65%),
              linear-gradient(180deg, #090c16 0%, #030408 100%);
  border-top: 1px solid var(--pfp-border);
  border-bottom: 1px solid var(--pfp-border);
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.pfp-final-cta .cta-title {
  font-family: var(--font-luxury);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.pfp-final-cta .cta-subtitle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* Active Nav Links */
.nav-link::after {
  background-color: var(--pfp-blue);
}

@media (max-width: 1024px) {
  .customization-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-paint-grid {
    grid-template-columns: 1fr;
  }
  .pfp-contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .customization-categories-grid {
    grid-template-columns: 1fr;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .paint-pillars {
    grid-template-columns: 1fr;
  }
}

/* ─── Contact Detail Rows ─── */
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pfp-border);
}

.contact-detail-row:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--pfp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

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

.contact-detail-content h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact-detail-content p,
.contact-detail-content a {
  font-size: 0.95rem;
  color: var(--color-gray-300);
  line-height: 1.5;
}

.contact-detail-content a:hover {
  color: var(--pfp-blue-light);
}

/* ─── Contact Action Buttons ─── */
.contact-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.contact-action-buttons .btn {
  flex: 1 1 auto;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.85rem 1rem;
  gap: 0.5rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.contact-action-buttons .btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── Google Map Wrapper ─── */
.contact-map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pfp-border);
  box-shadow: var(--shadow-lg);
  min-height: 450px;
  position: relative;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
  display: block;
  filter: grayscale(0.3) brightness(0.85);
}

/* ─── Detail Page Hero Image ─── */
.detail-hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pfp-border);
  box-shadow: var(--shadow-lg);
  min-height: 500px;
}

.detail-hero-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .contact-action-buttons {
    grid-template-columns: 1fr;
  }
  .pfp-contact-container {
    gap: 2rem;
  }
  .contact-map-wrapper,
  .contact-map-wrapper iframe {
    min-height: 300px;
  }
}

/* ─── Why-PF Card Base & Premium Theme ─── */
/* Base structural rules (missing because perfect-finish.css isn't loaded on these pages) */
.why-pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.why-pf-card {
  padding: 2.25rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

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

.why-pf-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

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

/* Premium Theme Colors & Hover Effects */
.theme-pf-premium .why-pf-card {
  background: var(--pfp-bg-card);
  border-color: var(--pfp-border);
  border-width: 1px;
  border-style: solid;
}

.theme-pf-premium .why-pf-card:hover {
  background: var(--pfp-bg-card-hover);
  border-color: var(--pfp-blue-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
}

.theme-pf-premium .why-pf-card h3 {
  font-family: var(--font-luxury);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.theme-pf-premium .why-pf-icon {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: var(--pfp-border) !important;
  color: #60a5fa !important;
}
