/* =========================================================
   1. GLOBAL IMPORTS
   ========================================================= */
@import url("../../tokens.css");
@import url("../../style.css");

/* Subpage Header Theme Blend (Keeps global sticky position from style.css) */
.site-header:not(.scrolled) {
  background-color: transparent;
}
/* ==========================================================================
   Service Hero Section
   ========================================================================== */
.service-hero {
  position: relative;
  width: 100%;
  background-color: var(--color-neutral-white, #ffffff);
  background-image: url("../../assets/patterns/pattern-diamond-purple.svg");
  background-repeat: repeat;
  background-position: center top;
  background-size: 240px 200px;
  /* Pull hero up behind the 88px navbar so the pattern starts at Y: 0 */
  margin-top: -88px;
  padding-top: calc(88px + 5rem); /* 88px header space + 80px breathing room */
  padding-bottom: 6.25rem; /* 100px bottom padding */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-hero__container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.service-hero__title {
  color: var(--color-neutral-black, #1a1a1a);
  margin: 0 0 1.5rem 0;
  max-width: 820px;
  letter-spacing: -0.02em;
}

/* Fix Bug 2: Ensure color/grey/Neutral/Black */
.service-hero__description {
  color: var(--color-neutral-black, #1a1a1a) !important;
  max-width: 680px;
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
}

/* Fix Bug 3: Ensure CTA group and button icon render crisp SVG */
.service-hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-hero__cta-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem; /* 10px spacing between label and arrow */
}

.service-hero__cta-group .btn__icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  object-fit: contain;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 768px) {
  .service-hero {
    margin-top: -72px;
    padding-top: calc(72px + 3rem);
    padding-bottom: 4rem;
  }

  .service-hero__title br {
    display: none;
  }

  .service-hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .service-hero__cta-group .btn {
    width: 100%;
  }
}
/* ==========================================================================
   Visibility Callout Banner Section
   ========================================================================== */
.service-report-banner {
  width: 100%;
  background-color: var(--color-neutral-black);
  padding: 40px 1.5rem;
}

.service-report-banner__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.service-report-banner__badge {
  width: 164px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.service-report-banner__title {
  color: var(--color-neutral-white);
  margin: 0;
  flex: 1;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 1024px) {
  .service-report-banner__container {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .service-report-banner__title {
    text-align: center;
  }

  .service-report-banner__title br {
    display: none;
  }
}

@media (max-width: 768px) {
  .service-report-banner {
    padding: 40px 1rem;
  }

  .service-report-banner__badge {
    width: 120px;
    height: 116px;
  }
}
/* ==========================================================================
   How It Works / System Integration Workflow Section
   ========================================================================== */
.service-workflow-section {
  width: 100%;
  background-color: var(--color-neutral-white);
  padding: 120px 1.5rem;
}

.service-workflow-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.service-workflow__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 1320px;
}

.service-workflow__title {
  color: var(--color-neutral-black);
  margin: 0;
}

.service-workflow__subtitle {
  color: var(--color-neutral-black);
  margin: 0;
}

.service-workflow__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-workflow__step {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.service-workflow__badge {
  width: 171px;
  height: 168px;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

.service-workflow__divider {
  width: 40px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-workflow__divider-img {
  width: 40px;
  height: 168px;
  object-fit: contain;
  display: block;
}

.service-workflow__text {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.service-workflow__step-title {
  color: var(--color-neutral-black);
  margin: 0;
}

.service-workflow__step-desc {
  color: var(--color-neutral-black);
  margin: 0;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 1140px) {
  .service-workflow__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 32px;
  }

  .service-workflow__divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .service-workflow-section {
    padding: 80px 1rem;
  }

  .service-workflow__subtitle br {
    display: none;
  }
}
/* ==========================================================================
   Section - Features (Full-Bleed Alternating Bands)
   ========================================================================== */
.service-features-section {
  width: 100%;
  background-color: var(--color-neutral-white);
  padding: 0; /* Remove top/bottom padding from wrapper */
}

/* Individual Feature Row Bands (Full Viewport Width) */
.service-feature-band {
  width: 100%;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Purple Radial Gradient Full-Bleed */
.service-feature-band--gradient-purple {
  background: radial-gradient(
    circle at 75% 50%,
    #b344ff 0%,
    #d1b5ff 65%,
    #f5f0ff 100%
  );
}

/* Centered Inner Container (1280px content constrain) */
.service-feature-band__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Alternating Reverse: Visual Left, Text Right on Desktop */
@media (min-width: 992px) {
  .service-feature-band--reverse .service-feature-band__container {
    flex-direction: row-reverse;
  }
}

@media (max-width: 991px) {
  .service-feature-band__container {
    flex-direction: column;
    text-align: center;
  }

  .service-feature-band {
    padding: 60px 20px;
  }
}
/* Static Eyebrow: Primary Dark #00642C */
.service-feature-row__eyebrow {
  color: var(--color-brand-dark);
  margin: 0;
}

.service-feature-row__title {
  color: var(--color-neutral-black);
  margin: 0;
}

.service-feature-row__desc {
  color: var(--color-neutral-black);
  margin: 0;
}

/* Right Visual Frame: 600x400 with Radius 8px & Border */
.service-feature-row__visual {
  flex: 0 0 600px;
  width: 600px;
  height: 400px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-feature-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ==========================================================================
   Section - System Integration (Dark Surface)
   ========================================================================== */
.service-integration-section {
  width: 100%;
  background-color: var(--color-neutral-black); /* #1A1A1A */
  padding: 120px 1.5rem;
}

.service-integration-container {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.service-integration_title {
  color: var(--color-neutral-white); /* White text on black surface */
  text-align: center;
  max-width: 1206px;
  margin: 0;
}

.service-integration_logos {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.service-integration_logo-item {
  width: 162px;
  height: 162px; /* Matches 1:1 with Bookkeeping & Figma */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-integration_logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .service-integration-section {
    padding: 80px 1.5rem;
  }

  .service-integration_logo-item {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .service-integration-section {
    padding: 60px 1rem;
  }

  .service-integration_logos {
    gap: 20px;
  }

  .service-integration_logo-item {
    width: 90px;
    height: 90px;
  }
}
/* ==========================================================================
   Section - Testimonial (System Integration Carousel)
   ========================================================================== */
.service-testimonial-section {
  width: 100%;
  background-color: var(--color-neutral-white);
  padding: 140px 1.5rem 180px; /* Ample breathing room for bottom overhang */
}

.service-testimonial-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* Slide Display Rules */
.testimonial-slide {
  display: none;
  width: 100%;
}

.testimonial-slide.active {
  display: block;
}

/* Flex row holding the 1280px total width, aligned to top */
.service-testimonial-card {
  width: 100%;
  max-width: 1280px;
  height: 780px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start; /* Crucial: allows independent vertical offsets */
  background: transparent;
}

/* Left Content Box: Starts at top (Y=0), Mint Lilac (#D1B5FF) */
.service-testimonial-card__content {
  flex: 0 0 705px;
  width: 705px;
  height: 780px;
  background-color: #d1b5ff; /* System Integration Lilac Accent */
  padding: 80px 48px; /* 80px top & bottom matching Figma */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Header: Quote Icon + Logo (80px gap down to quote) */
.service-testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  margin-bottom: 80px; /* Exact Figma 80px gap */
}

.service-testimonial-card__quote-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.service-testimonial-card__brand-logo {
  width: 120px;
  height: 48px;
  object-fit: contain;
  display: block;
}

/* Text Stack: 24px gap between elements */
.service-testimonial-card__text-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-testimonial-card__quote {
  color: var(--color-neutral-black);
  margin: 0;
  max-width: 573px;
}

.service-testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-testimonial-card__name {
  color: var(--color-neutral-black);
  margin: 0;
}

.service-testimonial-card__role {
  color: var(--color-neutral-black);
  margin: 0;
}

/* Actions Row: Organic 36px gap from author, holds link & buttons */
.service-testimonial-card__actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 80px;
  box-sizing: border-box;
}

/* Right Customer Visual: Starts 80px down (Y=80), Height=620px */
.service-testimonial-card__visual {
  flex: 0 0 575px;
  width: 575px;
  height: 620px;
  margin-top: 80px; /* Exact Figma Y: 80 offset */
  margin-bottom: 80px;
  margin-left: -60px; /* Exact 60px overlap onto the colored card */
  position: relative;
  z-index: 2; /* Ensure image sits physically on top */
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: none;
}

.service-testimonial-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Breakpoints (100% Identical to Bookkeeping) */
@media (max-width: 1140px) {
  .service-testimonial-section {
    padding: 80px 1.5rem;
  }

  .service-testimonial-card {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .service-testimonial-card__content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: 40px 24px;
  }

  .service-testimonial-card__visual {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-left: 0;
    height: 360px;
  }
}

@media (max-width: 768px) {
  .service-testimonial-section {
    padding: 60px 1rem;
  }

  .service-testimonial-card__content {
    padding: 32px 20px;
  }

  .service-testimonial-card__header {
    margin-bottom: 24px;
  }

  .service-testimonial-card__visual {
    height: 280px;
  }
}
/* ==========================================================================
   CTA Section (Bottom Discovery Banner)
   ========================================================================== */
.service-bottom-cta {
  width: 100%;
  background: radial-gradient(circle at 50% 50%, #009a2f 15%, #22c855 40%);
  padding: 80px 1.5rem;
  box-sizing: border-box;
}

.service-bottom-cta__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}

.service-bottom-cta__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.service-bottom-cta__title {
  color: var(--color-neutral-black);
  max-width: 1100px;
  margin: 0;
}

.service-bottom-cta__desc {
  color: var(--color-neutral-black);
  max-width: 958px;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .service-bottom-cta {
    padding: 60px 1.5rem;
  }

  .service-bottom-cta__title {
    font-size: 2.75rem;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .service-bottom-cta {
    padding: 50px 1rem;
  }

  .service-bottom-cta__container {
    gap: 36px;
  }

  .service-bottom-cta__title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .service-bottom-cta__title br {
    display: none;
  }

  .service-bottom-cta__desc {
    font-size: 1.125rem;
    line-height: 1.5;
  }
}
/* ==========================================================================
   Section - Footer
   ========================================================================== */
.service-footer {
  width: 100%;
  background-color: var(--color-neutral-black);
  padding: 80px 1.5rem 60px;
  box-sizing: border-box;
}

.service-footer__container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 220px; /* Exact Figma spacing between links grid and bottom legal bar */
}

/* 6-Column Navigation Grid */
.service-footer__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 188px repeat(5, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.service-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-footer__col--brand {
  gap: 24px;
}

.service-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

.service-footer__logo {
  width: 135px;
  height: 23px;
  object-fit: contain;
  display: block;
}

.service-footer__bio {
  color: var(--color-neutral-white);
  margin: 0;
  line-height: 1.43;
}

.service-footer__col-title {
  color: var(--color-neutral-white);
  font-family: var(--font-family-primary);
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  font-weight: 700;
  margin: 0;
}

.service-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px; /* Exact Figma gap between items */
}

.service-footer__link {
  color: var(--color-neutral-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-footer__link:hover {
  color: var(--color-brand-primary);
}

/* Bottom Bar */
.service-footer__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.service-footer__disclaimer {
  max-width: 969px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-footer__disclaimer-text {
  color: var(--color-neutral-white);
  margin: 0;
  line-height: 1.43;
}

.service-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.service-footer__copyright {
  color: var(--color-neutral-white);
  margin: 0;
  white-space: nowrap;
}

.service-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-footer__legal-link {
  color: var(--color-neutral-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.service-footer__legal-link:hover {
  color: var(--color-brand-primary);
}

.service-footer__divider {
  color: var(--color-text-secondary); /* #9CA19E */
  user-select: none;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .service-footer__container {
    gap: 120px;
  }

  .service-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
  }
}

@media (max-width: 860px) {
  .service-footer {
    padding: 60px 1rem 40px;
  }

  .service-footer__container {
    gap: 60px;
  }

  .service-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .service-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .service-footer__legal {
    align-items: flex-start;
  }

  .service-footer__legal-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .service-footer__grid {
    grid-template-columns: 1fr;
  }
}
