/* =========================================================
   COVAI GLIDE SERVICES PAGE
   Clean, professional, sharp-corner layout.
   Loads after style.css.
   ========================================================= */

.services-page {
  --service-ink: #111317;
  --service-muted: #63676f;
  --service-line: #dfe1e5;
  --service-soft: #f5f5f7;
  --service-paper: #ffffff;
  --service-yellow: var(--primary-yellow, #ffbf00);
  --service-dark-yellow: #e6ac00;
  background: var(--service-soft);
  color: var(--service-ink);
}

/* Keep the global header and footer typography exactly as style.css defines it. */
.services-page main {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

.services-page *,
.services-page *::before,
.services-page *::after {
  box-sizing: border-box;
}

.services-page main .container {
  width: min(1180px, calc(100% - 32px));
}

.services-hero {
  position: relative;
  margin-top: calc(-1 * var(--cg-header-height, 100px));
  padding: calc(var(--cg-header-height, 100px) + 5.5rem) 0 5.5rem !important;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .52)),
    url("images/vehicles/vehiclebg.webp") center / cover no-repeat !important;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 38%),
    linear-gradient(0deg, rgba(0,0,0,.24), transparent 42%);
}

.services-hero .container {
  position: relative;
  z-index: 2;
}

.services-hero-content {
  max-width: 920px;
}

.services-eyebrow,
.section-eyebrow,
.service-card-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 850;
}

.services-eyebrow {
  color: var(--service-yellow);
}

.services-hero h1 {
  max-width: 900px;
  margin: 1rem 0 1.25rem;
  color: #fff !important;
  font-size: clamp(2.65rem, 5.3vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}

.services-hero p {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,.88) !important;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.services-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0 !important;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.services-btn:hover {
  transform: translateY(-2px);
}

.services-btn-primary {
  background: var(--service-yellow);
  color: #111;
  border-color: var(--service-yellow);
}

.services-btn-primary:hover {
  background: var(--service-dark-yellow);
  border-color: var(--service-dark-yellow);
  color: #111;
}

.services-btn-secondary {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.38);
  color: #fff;
}

.services-btn-secondary:hover {
  background: #fff;
  color: #111;
}

.services-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 2.25rem;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}

.services-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.services-trust-strip i {
  color: var(--service-yellow);
}

.services-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--service-line);
}

.services-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 15px 0;
  color: var(--service-muted);
  font-size: .88rem;
}

.services-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a1a4aa;
}

.services-breadcrumb a {
  color: var(--service-ink);
  text-decoration: none;
}

.services-breadcrumb a:hover {
  text-decoration: underline;
}

.services-section {
  padding: 82px 0;
}

.services-section-white {
  background: #fff;
}

.services-section-dark {
  background: #121418;
  color: #fff;
}

.services-section-dark .section-heading p,
.services-section-dark .why-item p,
.services-section-dark .service-note {
  color: rgba(255,255,255,.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow,
.service-card-kicker {
  color: #856300;
}

.services-section-dark .section-eyebrow {
  color: var(--service-yellow);
}

.section-heading h2 {
  margin: .75rem 0 1rem;
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}

.section-heading p {
  margin: 0;
  color: var(--service-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 42px;
  align-items: start;
}

.service-intro-copy p {
  margin: 0 0 1.15rem;
  color: var(--service-muted);
  line-height: 1.82;
  font-size: 1.02rem;
}

.service-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--service-line);
  border-left: 1px solid var(--service-line);
  background: #fff;
}

.service-fact {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--service-line);
  border-bottom: 1px solid var(--service-line);
}

.service-fact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--service-ink);
  font-size: 1.1rem;
}

.service-fact span {
  color: var(--service-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--service-line);
  border: 1px solid var(--service-line);
}

.service-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--service-paper);
  border-radius: 0 !important;
  transition: background-color .2s ease, transform .2s ease;
}

.service-card:hover {
  background: #fffaf0;
  transform: translateY(-3px);
  position: relative;
  z-index: 2;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: #111;
  color: var(--service-yellow);
  font-size: 1.05rem;
}

.service-card h3 {
  margin: .55rem 0 .75rem;
  color: var(--service-ink);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 800;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--service-muted);
  line-height: 1.65;
  font-size: .94rem;
}

.service-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #4f535a;
  font-size: .88rem;
  line-height: 1.65;
}

.service-card-link {
  margin-top: auto;
  color: #111;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
}

.service-card-link::after {
  content: " →";
}

.service-card-link:hover {
  text-decoration: underline;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
  border-left: 1px solid rgba(255,255,255,.18);
}

.process-step {
  min-height: 245px;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.process-number {
  display: block;
  margin-bottom: 30px;
  color: var(--service-yellow);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.process-step h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.process-step p {
  margin: 0;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  font-size: .94rem;
}

.travel-needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.travel-need {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--service-line);
}

.travel-need i {
  color: #8b6800;
  font-size: 1.2rem;
}

.travel-need h3 {
  margin: 18px 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.travel-need p {
  margin: 0;
  color: var(--service-muted);
  line-height: 1.65;
  font-size: .9rem;
}

.route-link-grid,
.vehicle-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.route-link,
.vehicle-link {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--service-line);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
  transition: background-color .2s ease, border-color .2s ease;
}

.route-link:hover,
.vehicle-link:hover {
  background: #fff8dc;
  border-color: var(--service-yellow);
  color: #111;
}

.route-link i,
.vehicle-link i {
  color: #906c00;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
  border-left: 1px solid rgba(255,255,255,.18);
}

.why-item {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.why-item i {
  color: var(--service-yellow);
  font-size: 1.2rem;
}

.why-item h3 {
  margin: 20px 0 10px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
}

.why-item p {
  margin: 0;
  line-height: 1.65;
  font-size: .92rem;
}

.service-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-note {
  padding: 24px;
  background: #fff;
  border-left: 4px solid var(--service-yellow);
}

.service-note h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
}

.service-note ul {
  margin: 0;
  padding-left: 18px;
  color: var(--service-muted);
  line-height: 1.75;
  font-size: .92rem;
}

.services-faq .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--service-line);
  border-radius: 0 !important;
  background: #fff;
}

.services-faq .accordion-button {
  padding: 22px 0;
  border-radius: 0 !important;
  background: #fff;
  color: #111;
  box-shadow: none !important;
  font-weight: 800;
  font-size: 1rem;
}

.services-faq .accordion-button:not(.collapsed) {
  background: #fff;
  color: #7a5b00;
}

.services-faq .accordion-body {
  padding: 0 0 22px;
  color: var(--service-muted);
  line-height: 1.75;
}

.services-cta {
  padding: 70px 0;
  background: var(--service-yellow);
  color: #111;
}

.services-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.services-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}

.services-cta p {
  max-width: 760px;
  margin: 0;
  line-height: 1.65;
  color: rgba(17,17,17,.72);
}

.services-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.services-cta .services-btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.services-cta .services-btn-primary:hover {
  background: #2a2a2a;
  color: #fff;
}

.services-cta .services-btn-secondary {
  background: transparent;
  border-color: #111;
  color: #111;
}

.services-cta .services-btn-secondary:hover {
  background: #fff;
}

.services-page .card,
.services-page .btn,
.services-page button,
.services-page .dropdown-menu,
.services-page .dropdown-item,
.services-page .accordion-item,
.services-page .accordion-button,
.services-page .modal-content,
.services-page .form-control,
.services-page .form-select {
  border-radius: 0 !important;
}

@media (max-width: 1100px) {
  .service-grid,
  .process-grid,
  .travel-needs-grid,
  .route-link-grid,
  .vehicle-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .services-hero {
    margin-top: calc(-1 * var(--cg-header-height, 84px));
    padding: calc(var(--cg-header-height, 84px) + 4.25rem) 0 4.25rem !important;
  }

  .service-intro-grid,
  .services-cta-grid {
    grid-template-columns: 1fr;
  }

  .services-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .services-page main .container {
    width: min(100% - 24px, 1180px);
  }

  .services-section {
    padding: 62px 0;
  }

  .services-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .services-hero-actions,
  .services-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-btn {
    width: 100%;
  }

  .service-facts,
  .service-grid,
  .process-grid,
  .travel-needs-grid,
  .route-link-grid,
  .vehicle-link-grid,
  .why-grid,
  .service-notes-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-step,
  .why-item {
    min-height: auto;
  }
}


/* =========================================================
   HEADER CONSISTENCY FIX
   The Services page must use the same navbar dimensions as style.css.
   ========================================================= */
@media (min-width: 992px) {
  .services-page .main-header .navbar-nav .nav-link {
    white-space: nowrap;
  }
}
