/* ===== PREMIUM SERVICE DETAIL PAGE STYLES ===== */

/* --- Reuse Variables from style.css where possible, but define specific overrides here --- */
:root {
    --detail-max-width: 1000px;
}

/* --- SERVICE HERO SECTION --- */
/* Designed to be cinematic and immersive */
.service-hero-premium {
    position: relative;
    height: 70vh;
    /* Tall hero */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Darker overlay for better text contrast */
.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
    /* Much darker */
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-lg);
    animation: fadeInUp 1s ease-out;
}

.service-label {
    display: inline-block;
    background: var(--color-emergency-red);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

/* Ensure Text pops */
.service-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    /* Strong shadow */
    color: #fff;
}

.service-hero-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #f1f5f9;
    /* Lighter white */
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* --- HERO BUTTONS (PILL STYLE RE-ADD) --- */
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-emergency-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    border: 2px solid var(--color-emergency-red);
}

.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--color-dark);
    transform: translateY(-2px);
    margin-bottom: var(--spacing-lg);
    /* Reduced from xl */
}

/* --- MAIN CONTENT CONTAINER (2-Column Layout) --- */
.service-content-container {
    max-width: 1200px;
    /* Increased for sidebar */
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 350px;
    /* Main Content + Sidebar */
    gap: 40px;
    /* Space between columns */
}

/* Left Column */
.main-content-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Right Column (Sticky Sidebar) */
.sidebar-col {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    /* Stick 100px from top (below navbar) */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: #1e293b;
    /* Dark card background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

.sidebar-widget h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-emergency-red);
    padding-bottom: 10px;
    display: inline-block;
}

/* Quote Form */
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #fff;
}

.quote-form button {
    width: 100%;
    padding: 15px;
    background: var(--color-emergency-red);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.quote-form button:hover {
    background: #b91c1c;
}

/* Service Nav List */
.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-list li a {
    display: block;
    padding: 12px 0;
    color: var(--color-gray-300);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.sidebar-nav-list li a:hover {
    color: var(--color-emergency-red);
    padding-left: 10px;
}

/* Emergency Box Widget */
.emergency-widget {
    background: linear-gradient(135deg, var(--color-emergency-red) 0%, #7f1d1d 100%);
    text-align: center;
    border: none;
}

.emergency-widget h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.emergency-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .service-content-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .sidebar-sticky {
        position: static;
        /* No sticky on mobile */
    }
}

/* Typography for "Heaps of Words" - LIGHT TEXT FOR DARK BG */
.content-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-200);
    /* Light text */
}

.content-block h2 {
    font-size: 2rem;
    color: var(--color-white);
    /* White headers */
    margin-top: var(--spacing-lg);
    /* Reduced from xl */
    margin-bottom: var(--spacing-sm);
    /* Reduced from md */
    position: relative;
    padding-bottom: 10px;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-emergency-red);
    border-radius: 2px;
}

.content-block p {
    margin-bottom: var(--spacing-md);
}

.content-block ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.content-block li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
    color: var(--color-gray-300);
}

.content-block li::before {
    content: '✅';
    position: absolute;
    left: -25px;
    top: 2px;
}

/* --- FEATURE MARQUEE (Turned from Grid to Pill Marquee) --- */
.feature-marquee-section {
    position: relative;
    overflow: hidden;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md) 0;
    /* Fade Masks */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.feature-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: featureScroll 25s linear infinite;
}

.feature-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes featureScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.feature-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 9999px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    min-width: 250px;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.feature-pill:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-pill .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.feature-pill-content {
    display: flex;
    flex-direction: column;
}

.feature-pill .feature-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--color-white);
}

.feature-pill p {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    margin: 0;
}

/* --- HOW IT WORKS (Process) --- */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    counter-reset: step;
}

.process-step {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    /* Dark card */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.process-step h3 {
    position: relative;
    z-index: 1;
    color: var(--color-emergency-red);
}

/* --- SAFETY BOX --- */
.safety-box {
    background: #fff3cd;
    /* Soft warning yellow */
    border-left: 5px solid #ffc107;
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    color: #333;
    /* FORCE DARK TEXT on light background */
}

.safety-box h3 {
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

.safety-box p,
.safety-box li {
    color: #333;
    /* Ensure content is dark */
}

/* --- FAQ SECTION --- */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-white);
    /* Light text for dark bg */
}

.faq-item p {
    color: var(--color-gray-300);
    /* Readable grey for dark bg */
    font-size: 1rem;
}

/* --- STICKY CTA (Mobile) --- */
.sticky-cta-mobile {
    display: none;
    /* Show only on mobile if needed, or use fixed */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .service-hero {
        height: 60vh;
    }

    .service-hero-title {
        font-size: 2.2rem;
    }

    .content-block {
        font-size: 1rem;
    }
}

/* Battery Replacement Specific Styles */
.battery-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.battery-type-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.battery-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #ef4444;
}

.battery-type-card h3 {
  color: #ef4444;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.battery-type-card ul {
  margin-top: 0.75rem;
  padding-left: 1rem;
}

.battery-type-card li {
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.pricing-section {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 1.25rem;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.pricing-section h2 {
  margin-bottom: 1rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pricing-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: #ef4444;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
  color: #1f2937;
  margin-bottom: 1rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #ef4444;
  margin: 1rem 0;
}

.pricing-card ul {
  text-align: left;
  margin-top: 1rem;
}

.pricing-card li {
  margin-bottom: 0.5rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.pricing-card li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}

.pricing-note {
  margin-top: 1rem;
  font-style: italic;
  color: #6b7280;
}