/* Hero Section - We Help You Win */
.what-we-do-hero {
  /* padding: 0 0 0 var(--spacing-10); */
  background: var(--white);
}

.container {
  max-width: 1370px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.what-we-do-hero__content {
  text-align: left;
}

.what-we-do-hero__content h1 {
  font-size: 80px;
  font-weight: var(--font-semibold);
  color: var(--primary-navy-secondary);
  margin-bottom: var(--spacing-6);
}

.what-we-do-hero__content h1 span {
  color: var(--primary-red);
}

.what-we-do-hero__text-wrapper p:nth-of-type(1) {
  font-size: 32px;
  font-weight: var(--font-normal);
  line-height: auto;
  color: var(--black);
  margin-bottom: var(--spacing-6);
}

.what-we-do-hero__text-wrapper p:nth-of-type(2) {
  font-size: 28px;
  font-weight: var(--font-light);
  color: var(--black);
}

.what-we-do-hero__intro {
  font-size: 28px;
  font-weight: var(--font-normal);
  color: var(--black);
  margin-top: 30px;
  margin-bottom: 30px;
}

.service-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  align-items: flex-start;
}

.service-btn {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  text-decoration: none;
  position: relative;
  overflow: visible;
  isolation: isolate;
  width: fit-content;
  height: 64px;
  padding-left: 84px;
  padding-right: 40px;
}

.service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  background: var(--primary-red);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: var(--radius-full);
}

.service-btn:hover::before {
  width: 100%;
}

.service-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: transparent;
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    left 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

.service-btn__icon i,
.service-btn__icon svg {
  width: 30px !important;
  height: 30px !important;
  stroke-width: 2.5;
}

.service-btn:hover .service-btn__icon {
  background: transparent;
  left: calc(100% - 64px);
  transform: none;
}

.service-btn__text {
  font-size: var(--text-36);
  font-weight: var(--font-medium);
  color: var(--primary-navy-secondary);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s ease;
  padding-right: var(--spacing-6);
  padding-left: var(--spacing-4);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.service-btn:hover .service-btn__text {
  color: var(--white) !important;
  transform: translateX(-52px);
}

/* Service Section */
.service-section {
  margin-top: 120px;
  border-top: none;
}

.service-section:first-of-type {
  border-top: 1px solid var(--gray-200);
}

.service-section--alt {
  background: var(--gray-50);
}

.service-section__grid {
  display: grid;
  grid-template-columns: 694px 596px;
  gap: 30px;
  align-items: start;
}

.service-section__grid--reversed {
  direction: rtl;
}

.service-section__grid--reversed > * {
  direction: ltr;
}

.service-section__left {
  display: flex;
  flex-direction: column;
}

.service-section__image {
  overflow: hidden;
}

.service-section__image img {
  width: 100%;
  height: 457px;
  object-fit: cover;
  display: block;
}

#integrated-skills .service-section__image img,
#system-integrations .service-section__image img,
#ai-adoption .service-section__image img,
#build-operate .service-section__image img {
  height: 693px;
}

#system-integrations .service-section__grid {
  grid-template-columns: 574px 716px;
}

.service-section__header--system {
  max-width: 716px;
  padding-top: 80px;
}

.service-section__header--product {
  padding-top: 60px;
}

#workshops .service-section__image img {
  height: 585.87px;
}

#workshops .service-section__grid {
  grid-template-columns: 819px 471px;
}

.service-section__header--workshops {
  max-width: 471px;
}

.service-section__header--workshops {
  padding-top: 82.87px;
}

.service-section__header--ai {
  padding-top: 185px;
}

.service-section__header--bot {
  padding-top: 42px;
}

.service-section__services {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.service-item h3 {
  font-size: var(--text-32);
  font-weight: var(--font-medium);
  color: var(--black);
  margin-bottom: var(--spacing-1);
}

.service-item p {
  font-size: var(--text-24);
  font-weight: var(--font-light);
  color: var(--black);
  margin: 0;
}

.service-section__header {
  display: flex;
  flex-direction: column;
}

.service-section__header h2 {
  font-size: var(--text-80);
  font-weight: var(--font-semibold);
  color: var(--primary-navy-secondary);
  line-height: 1.3;
}

.service-section__header h2 span {
  color: var(--primary-red);
  display: block;
}

.service-section__header p {
  font-size: var(--text-28);
  color: var(--black);
  font-weight: var(--font-light);
  line-height: normal;
}

.service-section__header__paragraph {
  margin-bottom: 30px;
}

.service-section__back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 69.28px;
  height: 69.28px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  margin-left: auto;
}

.service-section__back-link:hover {
  background: var(--primary-navy);
  transform: translateY(-4px);
}

.service-section__back-link i,
.service-section__back-link svg {
  width: 30px !important;
  height: 30px !important;
}

/* Testimonial Section */
.testimonial-section {
  padding: var(--spacing-16) 0;
  background: var(--contact-tab-gray);
  margin-top: 120px;
}

.testimonial-section__grid {
  display: grid;
  grid-template-columns: 767px 513px;
  gap: 40px;
  align-items: center;
}

.testimonial-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.testimonial-section__quote {
  font-size: 28px;
  font-weight: var(--font-medium);
  color: var(--black);
  margin: 0;
}

.testimonial-section__author {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

.testimonial-section__role {
  font-size: var(--text-24);
  font-weight: var(--font-light);
  color: var(--black);
}

.testimonial-section__name {
  font-size: 24px;
  font-weight: var(--font-semibold);
  color: var(--primary-red);
}

.testimonial-section__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-section__logo img {
  width: 100%;
  max-width: 513px;
  height: auto;
}

/* Responsive */
@media (max-width: 1200px) {
  .service-section__header h2 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 992px) {
  .testimonial-section__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    text-align: center;
  }

  .testimonial-section__author {
    align-items: center;
  }

  .testimonial-section__logo {
    order: -1;
  }

  .what-we-do-hero .container {
    max-width: 100%;
    padding: 0 var(--spacing-6);
  }

  .what-we-do-hero__content h1 {
    font-size: var(--text-4xl);
  }

  .what-we-do-hero__content p:nth-of-type(1) {
    font-size: var(--text-xl);
  }

  .what-we-do-hero__content p:nth-of-type(2),
  .what-we-do-hero__content p:nth-of-type(3) {
    font-size: var(--text-lg);
  }

  .service-section {
    /* padding: var(--spacing-12) 0; */
  }

  .service-section .container {
    margin-top: 30px !important;
  }

  .service-section__grid {
    grid-template-columns: 1fr;
    gap: 30px !important;
  }

  .service-section__right {
    order: 0;
  }

  .service-section__header h2 {
    font-size: var(--text-3xl);
  }

  .service-section__header h2 span {
    display: inline;
  }

  .service-section__back-link {
    width: 40px;
    height: 40px;
    margin-top: var(--spacing-6);
  }

  .service-section__back-link i,
  .service-section__back-link svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobile/Tablet Image Sizing (Global Mobile) */
  .service-section__image {
    width: 100%;
    height: auto;
    aspect-ratio: 353 / 233;
    border-radius: 0;
  }

  .service-section__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .service-section__back-link {
    display: none;
  }

  /* Specific Adjustments for Service Sections on Mobile */
  #product-engineering,
  #integrated-skills,
  #system-integrations,
  #ai-adoption,
  #workshops,
  #build-operate {
    scroll-margin-top: -120px;
  }

  #system-integrations .service-section__image,
  #ai-adoption .service-section__image,
  #workshops .service-section__image,
  #build-operate .service-section__image {
    margin-top: 30px;
  }

  .service-section__header--system,
  .service-section__header--ai,
  .service-section__header--workshops,
  .service-section__header--bot {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .what-we-do-hero__content h1 {
    font-size: var(--text-3xl);
  }

  .service-buttons .service-btn {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-3);
  }

  .service-btn__icon {
    width: 64px;
    height: 64px;
  }

  .service-btn__text {
    font-size: var(--text-20);
    padding-right: var(--spacing-2);
    white-space: normal;
  }

  .service-btn:hover .service-btn__text {
    transform: translateX(-10px);
  }

  .what-we-do-hero__content h1 {
    font-size: var(--text-36);
  }

  .testimonial-section {
    margin-top: 30px;
    padding: 30px 0;
  }

  .testimonial-section__grid {
    text-align: left; /* Align grid content left */
  }

  .testimonial-section__author {
    align-items: flex-start; /* Align author details left */
  }

  .testimonial-section__quote {
    font-size: 16px;
    font-weight: var(--font-medium);
  }

  .testimonial-section__name {
    font-size: 16px;
    font-weight: var(--font-semibold);
  }

  .testimonial-section__role {
    font-size: 16px;
    font-weight: var(--font-light);
  }
}

@media (max-width: 480px) {
  .what-we-do-hero__content h1 {
    font-size: 40px;
    font-weight: var(--font-semibold);
  }

  .what-we-do-hero__text-wrapper p:nth-of-type(1) {
    font-size: 20px;
    font-weight: var(--font-medium);
  }

  .what-we-do-hero__text-wrapper p:nth-of-type(2) {
    font-size: 16px;
    font-weight: var(--font-light);
  }

  .what-we-do-hero__text-wrapper p:nth-of-type(2) br {
    display: none;
  }

  .what-we-do-hero__intro {
    font-size: 20px;
    font-weight: var(--font-medium);
  }

  /* Mobile Service Buttons Redesign */
  .service-buttons {
    gap: 15px;
    width: 100%;
    align-items: stretch;
  }

  .service-btn {
    height: 49px;
    padding: 0 24px;
    border-radius: 30px;
    background: var(--primary-red);
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    transition: none !important;
  }

  .service-btn:hover,
  .service-btn:hover .service-btn__text,
  .service-btn:hover .service-btn__icon {
    transform: none !important;
    transition: none !important;
  }

  .service-btn::before {
    display: none; /* Remove hover circle effect */
  }

  .service-btn__icon {
    width: 24px;
    height: 24px;
    background: transparent;
    position: static; /* Reset absolute positioning */
    border-radius: 0;
    justify-content: center;
    padding: 0;
  }

  .service-btn__icon i,
  .service-btn__icon svg {
    color: var(--white);
    width: 24px !important;
    height: 24px !important;
  }

  .service-btn__text {
    font-size: 16px;
    padding-left: 10px;
    padding-right: 0;
    color: var(--white);
  }
}

@media (max-width: 480px) {
  .service-section {
    margin-top: 0;
  }

  .service-section__grid {
    display: flex;
    flex-direction: column;
    gap: 30px !important;
  }

  .service-section__right {
    order: 0;
  }

  .service-section__grid--reversed {
    direction: ltr;
  }

  .service-section__header p br {
    display: none;
  }

  .service-section__header__paragraph br,
  .service-section__header__paragraph2 br {
    display: none;
  }

  .service-section__header h2 {
    font-size: 32px;
    font-weight: var(--font-semibold);
    margin-bottom: 20px;
  }

  .service-section__header p {
    font-size: 16px;
    font-weight: var(--font-light);
  }

  .service-item h3 {
    font-size: 20px;
    font-weight: var(--font-medium);
  }

  .service-item p {
    font-size: 16px;
    font-weight: var(--font-light);
  }

  #integrated-skills {
    margin-top: 30px;
    padding-top: 0;
  }

  body {
    padding-top: 85px;
  }

  .service-section__header--product {
    padding-top: 0;
  }
}
