/* ═══════════════════════════════════════════════════════════════
   Service pages  -  unified layout, type, colours, components
   Loads after design-sync.css on all /services/*.html pages
   ═══════════════════════════════════════════════════════════════ */

body[data-page^="services/"] {
  font-family: var(--font-body);
}

/* ── Layout ── */
body[data-page^="services/"] .service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: clamp(32px, 4vw, 48px);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  align-items: start;
}

body[data-page^="services/"] .service-main {
  min-width: 0;
}

body[data-page^="services/"] .service-main > .content-section,
body[data-page^="services/"] .service-main > .benefits-section,
body[data-page^="services/"] .service-main > .faq-section,
body[data-page^="services/"] .service-main > .local-seo {
  margin-bottom: var(--content-stack-gap);
}

body[data-page^="services/"] .service-main > .service-intro {
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Full-bleed hero video (marine & powersports)
   Video + overlay must stay out of flex flow or content shifts right. */
.page-hero.page-hero--video {
  position: relative !important;
  display: block !important;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--dark-bg);
  background-image: none !important;
  min-height: 280px;
  justify-content: unset !important;
  align-items: unset !important;
}

.page-hero.page-hero--video .page-hero-video {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  flex: none !important;
}

.page-hero.page-hero--video .page-hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero.page-hero--video > .page-hero-overlay {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: none !important;
}

.page-hero.page-hero--video > .container {
  position: relative !important;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  max-width: var(--site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  float: none !important;
}

.page-hero.page-hero--video .page-hero-content {
  max-width: 720px;
  text-align: left;
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero.page-hero--video .page-hero-video video {
    display: none;
  }
}

/* Hub pages (no sidebar) */
body[data-page^="services/"] .section > .service-main {
  padding-top: 0;
  padding-bottom: 0;
}

body[data-page^="services/"] .section > .service-main .content-section {
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* Remove inconsistent left accent stripe */
body[data-page^="services/"] .service-main .content-section {
  position: relative;
  padding-left: 0 !important;
  border-left: none !important;
}

body[data-page^="services/"] .service-main .content-section.is-accent-visible::before {
  display: none !important;
}

/* ── Typography  -  match homepage section system ── */
body[data-page^="services/"] .service-intro,
body[data-page^="services/"] .service-intro p,
body[data-page^="services/"] .content-body,
body[data-page^="services/"] .content-body p,
body[data-page^="services/"] .faq-answer,
body[data-page^="services/"] .faq-answer p,
body[data-page^="services/"] .local-seo p {
  font-family: var(--font-body);
  font-size: var(--text-body-prose);
  line-height: 1.75;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
}

body[data-page^="services/"] .service-intro {
  color: var(--text);
}

body[data-page^="services/"] .content-body p,
body[data-page^="services/"] .local-seo p {
  margin-bottom: 14px;
}

body[data-page^="services/"] .content-body p:last-child,
body[data-page^="services/"] .local-seo p:last-child {
  margin-bottom: 0;
}

body[data-page^="services/"] .content-section h2,
body[data-page^="services/"] .benefits-section h2,
body[data-page^="services/"] .faq-section h2,
body[data-page^="services/"] .local-seo h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

body[data-page^="services/"] .content-body h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 24px 0 12px;
}

/* ── Lists ── */
body[data-page^="services/"] .content-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

body[data-page^="services/"] .content-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: var(--text-body-prose);
  line-height: 1.65;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(8, 146, 212, 0.08);
}

body[data-page^="services/"] .content-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--bright-cyan);
  font-weight: 700;
}

body[data-page^="services/"] .content-body a:not(.btn) {
  color: var(--bright-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body[data-page^="services/"] .content-body a:not(.btn):hover {
  color: #fff;
}

body[data-page^="services/"] .btn-primary,
body[data-page^="services/"] a.btn-primary,
body[data-page^="services/"] .content-body a.btn-primary,
body[data-page^="services/"] .pill-row a.btn-primary {
  color: #fff !important;
}

body[data-page^="services/"] .btn-primary:hover,
body[data-page^="services/"] a.btn-primary:hover,
body[data-page^="services/"] .content-body a.btn-primary:hover,
body[data-page^="services/"] .pill-row a.btn-primary:hover {
  color: #fff !important;
}

/* ── Tables ── */
body[data-page^="services/"] .compare-table,
body[data-page^="services/"] .service-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: var(--text-body-prose);
}

body[data-page^="services/"] .compare-table th,
body[data-page^="services/"] .compare-table td,
body[data-page^="services/"] .service-compare th,
body[data-page^="services/"] .service-compare td {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

body[data-page^="services/"] .compare-table th,
body[data-page^="services/"] .service-compare th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bright-cyan);
  background: rgba(8, 146, 212, 0.1);
}

body[data-page^="services/"] .compare-table td,
body[data-page^="services/"] .service-compare td {
  color: var(--text-muted);
}

body[data-page^="services/"] .service-compare a {
  color: var(--bright-cyan);
}

/* ── Benefits grid ── */
body[data-page^="services/"] .benefits-section {
  margin-top: clamp(8px, 2vw, 16px);
}

body[data-page^="services/"] .benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-page^="services/"] .benefits-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(145deg, var(--dark-elevated) 0%, var(--dark-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

body[data-page^="services/"] .benefits-grid li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--bright-cyan);
  font-weight: 900;
  font-size: 14px;
}

/* ── FAQ ── */
body[data-page^="services/"] .faq-section {
  margin-top: clamp(8px, 2vw, 16px);
}

body[data-page^="services/"] .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-page^="services/"] .faq-item {
  background: linear-gradient(145deg, var(--dark-elevated) 0%, var(--dark-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

body[data-page^="services/"] .faq-item summary {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

body[data-page^="services/"] .faq-item summary::-webkit-details-marker {
  display: none;
}

body[data-page^="services/"] .faq-item summary::after {
  content: '+';
  color: var(--bright-cyan);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
}

body[data-page^="services/"] .faq-item[open] summary::after {
  content: '−';
}

body[data-page^="services/"] .faq-answer {
  padding: 0 20px 18px;
}

/* ── Local SEO block ── */
body[data-page^="services/"] .local-seo {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--border-subtle);
}

body[data-page^="services/"] .local-seo h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--text-muted);
}

/* ── Review card in content ── */
body[data-page^="services/"] .service-main .review-card {
  margin: 0;
  padding: 24px;
}

body[data-page^="services/"] .service-main .review-card p {
  color: var(--text);
  font-size: var(--text-body-prose);
}

/* ── Sidebar ── */
body[data-page^="services/"] .service-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

body[data-page^="services/"] .facts-card,
body[data-page^="services/"] .related-card {
  background: linear-gradient(145deg, var(--dark-elevated) 0%, var(--dark-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3vw, 28px);
}

body[data-page^="services/"] .facts-card {
  margin-bottom: var(--card-gap);
  border-top: 2px solid var(--brand-blue);
}

body[data-page^="services/"] .facts-price {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

body[data-page^="services/"] .facts-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--section-label-size);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bright-cyan);
  margin-bottom: 6px;
}

body[data-page^="services/"] .facts-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}

body[data-page^="services/"] .facts-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: var(--text-body-prose);
  color: var(--text-muted);
  border-bottom: 1px solid rgba(8, 146, 212, 0.08);
}

body[data-page^="services/"] .facts-row strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-align: right;
}

body[data-page^="services/"] .facts-card .btn {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  font-size: 13px;
  justify-content: center;
}

body[data-page^="services/"] .facts-cta {
  margin-top: 20px;
  display: flex;
}

body[data-page^="services/"] .facts-phone {
  margin-top: 10px;
  display: flex;
}

body[data-page^="services/"] .related-card h3 {
  font-family: var(--font-display);
  font-size: var(--section-label-size);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bright-cyan);
  margin: 0 0 16px;
  font-style: normal;
}

body[data-page^="services/"] .related-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(8, 146, 212, 0.08);
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body[data-page^="services/"] .related-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body[data-page^="services/"] .related-link:hover {
  opacity: 0.9;
  transform: translateX(4px);
}

body[data-page^="services/"] .related-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

body[data-page^="services/"] .related-link span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
}

/* ── CTA strip on service pages ── */
body[data-page^="services/"] .cta-strip {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

body[data-page^="services/"] .cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}

body[data-page^="services/"] .cta-strip p {
  font-size: var(--text-section-desc);
  color: var(--text-muted);
  margin: 0;
}

body[data-page^="services/"] .cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body[data-page^="services/"] .cta-strip-actions .btn {
  min-height: 48px;
  padding: 14px 28px;
  font-size: 13px;
}

/* ── Hub page hero CTAs ── */
body[data-page^="services/"] .page-hero--service .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body[data-page^="services/"] .page-hero--service .hero-cta-row .btn {
  min-height: 44px;
  padding: 12px 22px;
  font-size: 12px;
}

/* ── Legal notice ── */
body[data-page^="services/"] .legal-notice {
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: var(--text-body-prose);
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  body[data-page^="services/"] .service-layout {
    grid-template-columns: 1fr;
  }

  body[data-page^="services/"] .service-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--card-gap);
  }

  body[data-page^="services/"] .facts-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  body[data-page^="services/"] .benefits-grid {
    grid-template-columns: 1fr;
  }

  body[data-page^="services/"] .cta-strip-inner {
    flex-direction: column;
    text-align: left;
    align-items: stretch;
  }

  body[data-page^="services/"] .cta-strip-actions {
    width: 100%;
  }

  body[data-page^="services/"] .cta-strip-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  body[data-page^="services/"] .compare-table,
  body[data-page^="services/"] .service-compare {
    font-size: 14px;
  }

  body[data-page^="services/"] .compare-table th,
  body[data-page^="services/"] .compare-table td,
  body[data-page^="services/"] .service-compare th,
  body[data-page^="services/"] .service-compare td {
    padding: 10px 12px;
  }
}
