:root {
  --primary: #3d5ea5;
  --dark: #0a0f1a;
  --muted: #b6c0d4;
  --light: #0f1726;
  --border: rgba(255,255,255,0.08);
  --text: #e8eef7;
  --link: #9abbff;
}

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--dark);
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Manrope', sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: var(--link);
}

.text-muted {
  color: var(--muted) !important;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link {
  color: #dbe4f5;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(61,94,165,0.35);
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-primary:focus-visible {
  outline: 2px solid #f5f7ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(61,94,165,0.45);
}

.btn-outline-light {
  color: #0b1220;
  background: #f5f7ff;
  border-color: #f5f7ff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

.btn-outline-light:hover {
  color: #0a0f1a;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.btn-outline-light:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 90vh;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(87,120,184,0.25), transparent 35%), linear-gradient(120deg, rgba(11,18,32,0.9), rgba(11,18,32,0.55));
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.15);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #dbe8ff;
  backdrop-filter: blur(4px);
}

.eyebrow .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(87,120,184,0.25);
}

.card-lift {
  position: relative;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.22);
  background: var(--primary);
  color: #f7f9ff;
  box-shadow: 0 18px 60px rgba(87,120,184,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 1rem;
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 70px rgba(87,120,184,0.32);
}

.section-muted {
  background: var(--light) !important;
}

.badge-soft {
  background: rgba(255,255,255,0.16);
  color: #f7f9ff;
  border: 1px solid rgba(255,255,255,0.32);
}

.accordion-item {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--primary);
  box-shadow: 0 10px 36px rgba(87,120,184,0.28);
  margin-bottom: 0.75rem;
}

.accordion-button {
  font-weight: 700;
  color: #f7f9ff;
  font-family: 'Barlow Condensed', 'Manrope', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  background: var(--primary);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #f7f9ff;
  background: rgba(87,120,184,0.18);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.18);
}

.accordion-body {
  color: #eef3ff;
  font-size: 1rem;
  background: var(--primary);
}

.card-lift .text-muted {
  color: #eef3ff !important;
}

.process-line {
  position: absolute;
  left: 32px;
  top: 40px;
  bottom: 20px;
  border-left: 2px dashed rgba(11,18,32,0.2);
}

.process-step {
  position: relative;
  padding-left: 3.5rem;
}

.process-step .marker {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.gallery-img {
  border-radius: 1rem;
  height: 240px;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.gallery-img-contain {
  object-fit: contain;
  background: var(--light);
}

.certifications-slider {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.certifications-track {
  position: relative;
}

.certifications-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.certifications-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.certification-card {
  border: 1px solid rgba(15,23,38,0.12);
  min-height: 400px;
}

.certification-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.nav-pills .nav-link.active {
  background: var(--primary);
  color: #0b1220;
}

footer {
  background: #050912;
  color: #b8c2d3;
}

footer a {
  color: #dbe8ff;
}

.card-embed {
  background: #ffffff;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
}

.card-embed .text-muted {
  color: #6c7486 !important;
}

.blog-card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  overflow: hidden;
}

.blog-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .blog-card-image {
    height: 160px;
  }
}

.zapier-embed {
  width: 100%;
  min-height: 1100px;
  height: 1100px;
  border: 0;
  display: block;
}

.card {
  background: #0f1726;
  color: var(--text);
  border-color: var(--border);
}

.card.card-lift {
  background: var(--primary);
  color: #f7f9ff;
  border-color: rgba(255,255,255,0.22);
}

@media (min-width: 992px) {
  .accordion-button {
    font-size: 1.2rem;
  }

  .accordion-body {
    font-size: 1.05rem;
  }
}

/* Spotlight/hero supporting styles */
.spotlight-card {
  background: #ffffff;
  color: #0a0f1a;
  display: flex;
}

.spotlight-card .text-muted {
  color: #6c7486 !important;
}

.spotlight-card .card-body {
  height: 100%;
}

.rotate-text {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 3em; /* give extra room on small screens where text may wrap */
    white-space: normal;
    word-break: break-word;
    align-items: center;
    justify-content: center;
    transition: opacity .25s ease;
    line-height: 1.2;
    text-align: center;
}

.rotate-text.fade-out {
  opacity: 0;
}

/* Paint correction section styles */
.correction-spotlight {
  background: #ffffff;
  color: #0a0f1a;
  border: 1px solid rgba(12,18,32,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.correction-spotlight .text-muted {
  color: #6c7486 !important;
}

.correction-spotlight .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.benefit-card-transparent {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.benefit-card-transparent .text-white-50 {
  color: rgba(255,255,255,0.65) !important;
}

/* Benefit card styles */
.benefit-card {
  background: #ffffff;
  color: #0a0f1a;
  border: 1px solid rgba(12,18,32,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.benefit-card .text-muted {
  color: #6c7486 !important;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

/* Reviews */
.review-card {
  background: #0f1726;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.review-avatar.placeholder {
  display: inline-block;
}

.review-stars {
  color: #f5c85f;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.review-slider {
  position: relative;
}

.review-slider-viewport {
  overflow: hidden;
  width: 100%;
  min-height: 320px; /* prevent layout shift when reviews differ in height */
}

.review-slider-track {
  display: flex;
  transition: transform 0.35s ease;
}

.review-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
  height: 100%;
}

.review-slide .card {
  height: 100%;
  min-height: 300px; /* reserve space for taller reviews */
}

.review-slide .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-slide p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 992px) {
  .review-slide {
    flex-basis: 50%;
  }
}

.review-slider-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.review-dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.review-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
}

.review-dot.active {
  border-color: #f5c85f;
}

.review-dot.active::before {
  background: #f5c85f;
  border-color: #f5c85f;
}

.review-nav {
  min-width: 38px;
  padding-inline: 0.65rem;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.rating-value {
  font-size: 1.3rem;
  font-weight: 800;
}

.rating-count {
  margin-left: 0.25rem;
}
