/* ============================================================
   POCO NAPA AUTOPRO — Services Page Styles
   All shared variables, utilities, nav, footer, CTA banner,
   and .page-hero base styles live in style.css.
   This file contains only services-page-specific styles.
   ============================================================ */


/* ============================================================
   PAGE HERO
   Copied exactly from fleet.css — same background treatment.
   ============================================================ */
.page-hero {
  position: relative;
  padding: 180px 0 100px; /* top padding clears the fixed navbar */
  background: #060d2e; /* fallback while video loads */
  overflow: hidden;
  text-align: center;
}

/* Video background */
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,13,46,0.78) 0%, rgba(10,18,64,0.70) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.page-hero-content h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero { padding: 140px 0 72px; }
}


/* ============================================================
   SERVICES QUICK NAV STRIP
   16 pill-shaped anchor links for jumping to each service.
   ============================================================ */
.services-nav-strip {
  background: var(--bg-section);
  padding: 52px 0 56px;
  text-align: center;
  /* Subtle top border to separate from hero */
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Eyebrow label sits above the pill grid */
.services-nav-strip .section-eyebrow {
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

/* Pill container — flex wrap centered */
.services-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Individual pill — glass chip style */
.services-pill {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background var(--trans), border-color var(--trans), color var(--trans), transform var(--trans);
  white-space: nowrap;
}

.services-pill:hover {
  background: rgba(255,199,44,0.12);
  border-color: rgba(255,199,44,0.35);
  color: var(--yellow);
  transform: translateY(-2px);
}


/* ============================================================
   SERVICE SECTIONS
   16 alternating sections — base and .service-alt backgrounds.
   Each section uses a 2-column grid: content left, includes right.
   ============================================================ */

/* Base service section */
.service-section {
  padding: var(--section-v) 0;
  background: var(--bg-base);
  position: relative;
}

/* Alternating shade for visual rhythm */
.service-section.service-alt {
  background: var(--bg-section);
}

/* Very subtle ambient glow per section */
.service-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 0% 50%, rgba(255,255,255,0.015) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 100% 50%, rgba(255,199,44,0.025) 0%, transparent 65%);
}

.service-section > * { position: relative; z-index: 1; }

/* 2-column grid — content | includes card */
.service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}


/* ============================================================
   SERVICE ICON WRAP
   Yellow-toned icon container, matches fleet-why-icon pattern.
   ============================================================ */
.service-icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(255,199,44,0.18) 0%, rgba(255,199,44,0.07) 100%);
  border: 1px solid rgba(255,199,44,0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(255,199,44,0.10);
  transition: var(--trans);
}

.service-icon-wrap svg {
  width: 48px;
  height: 48px;
  color: var(--yellow);
}

/* Icon glow on section hover / focus-within */
.service-section:hover .service-icon-wrap {
  background: linear-gradient(135deg, rgba(255,199,44,0.26) 0%, rgba(255,199,44,0.11) 100%);
  box-shadow: 0 6px 28px rgba(255,199,44,0.18);
}


/* ============================================================
   SERVICE CONTENT (left column)
   ============================================================ */

/* Section eyebrow inside service — small spacing tweak */
.service-content .section-eyebrow {
  margin-bottom: 12px;
}

/* H2 — scaled down from global h2 for tighter context */
.service-content h2 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Body copy — warm muted white for readability on dark */
.service-content p {
  color: rgba(255,255,255,0.70);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 16px;
}

.service-content p:last-of-type {
  margin-bottom: 0;
}


/* ============================================================
   SERVICE CTA LINK
   Yellow text link with sliding arrow on hover.
   ============================================================ */
.service-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--trans), gap var(--trans);
}

.service-cta-link:hover {
  color: #fff;
  gap: 14px;
}

/* Arrow SVG inside the CTA link */
.service-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--trans);
}

.service-cta-link:hover .service-cta-arrow {
  transform: translateX(4px);
}


/* ============================================================
   SERVICE INCLUDES CARD (right column)
   Glassmorphism card listing what's covered.
   ============================================================ */
.service-includes {
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.40),
    0 2px 8px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.09);
  padding: 36px 32px 32px;
  /* Stick to top of grid row */
  align-self: start;
  position: sticky;
  top: 100px; /* clears fixed navbar */
}

/* "What's Included" eyebrow label inside the card */
.service-includes-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  display: block;
}

/* List — no default bullets */
.service-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each list item — flex row with yellow checkmark */
.service-includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
}

.service-includes-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Yellow check icon container */
.check-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px; /* optical alignment with text */
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}


/* ============================================================
   FAQ SECTION
   Dark gradient background, accordion pattern.
   ============================================================ */
.services-faq {
  padding: var(--section-v) 0;
  background: linear-gradient(180deg, #03091A 0%, #060D2E 100%);
  position: relative;
}

/* Ambient glow from centre — gives depth without distraction */
.services-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 30%, rgba(255,199,44,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(13,31,120,0.25) 0%, transparent 70%);
}

.services-faq > * { position: relative; z-index: 1; }

/* FAQ list — constrained width, centred */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

/* Individual FAQ item */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  transition: border-color var(--trans);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Question button — full-width, flex row */
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: color var(--trans);
}

.faq-question:hover {
  color: #ffffff;
}

/* Chevron SVG — rotates 180° when open */
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  transition: transform var(--trans), color var(--trans);
}

/* Answer panel — collapsed by default via max-height */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding-bottom: 24px;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  font-size: 15px;
}

/* Open state — expand panel and rotate chevron */
.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--yellow);
}

.faq-item.open .faq-question {
  color: #ffffff;
}

/* Subtle yellow left border accent on open item */
.faq-item.open {
  border-color: rgba(255,199,44,0.20);
}


/* ============================================================
   SERVICES CTA
   Reuses .cta-banner and .cta-inner from style.css.
   The .cta-banner-bg / ::before / ::after gradients are defined
   in style.css and apply automatically to .cta-banner.
   ============================================================ */
.services-cta .cta-sub {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — service-inner collapses to single column,
   includes card becomes full-width below content */
@media (max-width: 1100px) {
  .service-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Remove sticky positioning — no longer side-by-side */
  .service-includes {
    position: static;
  }

  /* Reduce section padding slightly */
  .service-section {
    padding: 80px 0;
  }
}

/* Standard mobile */
@media (max-width: 768px) {
  .services-nav-strip {
    padding: 40px 0 44px;
  }

  .service-includes {
    padding: 28px 24px 24px;
  }

  .faq-question {
    font-size: 16px;
    padding: 20px 0;
  }

  .services-faq {
    padding: 72px 0;
  }
}

/* Small mobile — tighten pill font and section gaps */
@media (max-width: 640px) {
  .services-pill {
    font-size: 12px;
    padding: 7px 14px;
  }

  .services-nav-pills {
    gap: 8px;
  }

  .service-content h2 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .service-section {
    padding: 64px 0;
  }

  .service-includes {
    padding: 24px 20px 20px;
  }

  .faq-question {
    font-size: 15px;
    gap: 16px;
  }

  .faq-chevron {
    width: 18px;
    height: 18px;
  }
}


/* ============================================================
   AREAS WE SERVE
   ============================================================ */
.areas-minimal {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: var(--bg-section);
}

.areas-minimal-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.areas-minimal-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.areas-minimal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.areas-minimal-links a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.09);
  transition: color 0.2s, border-color 0.2s;
}

.areas-minimal-links a:hover {
  color: var(--yellow);
  border-color: rgba(255,199,44,0.30);
}
