:root {
  --home-primary-color: #8355CA;
  --home-secondary-color: #7366C4;
  --home-highlight-color: #4796BC;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #fff;
  color: var(--home-primary-color);
  padding: 0;
  box-sizing: border-box;
  width: 100vw;
  overflow-x: hidden;
}

.logo-header {
  padding: 24px 0 0 32px;
}

.logo-img {
  height: 48px;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 5vw 0 5vw;
}

.hero-content {
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: row;
}

.hero-bar-outer {
  display: flex;
  flex-direction: column;
  margin-top: 2.8rem;
  margin-right: 20px; /* 20px space between bar and phrase */
  height: 100%;
}

.hero-bar {
  width: 4px;
  height: 0;
  background: var(--home-highlight-color);
  border-radius: 2px;
  transition: height 1.8s cubic-bezier(.4,0,.2,1);
}

.hero-content-main {
  flex: 1;
}

.hero-content-main h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2em;
  margin: 0 0 16px 0;
}

#heroContentMainWrapper {
  height: 210px;    
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.6em;
  min-width: 220px;
  margin-bottom: 0;
}

.hero-cities {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-btn {
  background: var(--home-primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(108,63,207,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  background: var(--home-secondary-color);
  box-shadow: 0 4px 16px rgba(108,63,207,0.2);
}

.hero-btn.outline {
  background: #fff;
  color: var(--home-primary-color);
  border: 2px solid var(--home-primary-color);
}

.hero-video-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.hero-video-wrapper video {
  max-width: 100%;
  width: 680px;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(23, 156, 233, 0.1);
  background: linear-gradient(120deg, var(--home-secondary-color) 0%, var(--home-highlight-color) 100%);
  padding: 8px;
}

#hero-phrase {
  min-width: 180px;
  transition: color 0.3s;
}

.testimonial-section {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 420px;
  padding: 30px 0;
  overflow: hidden;
  margin-top: 30px;
  background-color: var(--home-secondary-color);
}

.testimonial-card {
  width: 90vw;
  border-radius: 8px;
  border: 4px solid #fff;
  padding: 24px 36px 24px 36px;
  max-width: 520px;
  min-height: 380px;
  color: #fff;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

.testimonial-quote {
  position: absolute;
  font-size: 2.2rem;
  color: #fff;
  opacity: 0.7;
  font-family: serif;
}

.testimonial-quote.left {
  left: 18px;
  top: 18px;
}

.testimonial-quote.right {
  left: auto;
  right: 18px;
  bottom: 18px;
}

.testimonial-content {
  margin-top: 16px;
}

.testimonial-author {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.testimonial-text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 400;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
}

.testimonial-stars img {
  width: 420px;
  display: block;
  text-align: center;
  margin-bottom: 18px;
}

.testimonial-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.testimonial-bar .bar {
  display: inline-block;
  width: 32px;
  height: 4px;
  background: var(--home-highlight-color);
  border-radius: 2px;
  opacity: 0.7;
  cursor: pointer;
  transition: width 0.3s;
}

.testimonial-bar .bar.active {
  width: 64px;
  background: #e0aaff;
  opacity: 1;
}

.call-to-action {
  position: fixed;
  right: max(40px, env(safe-area-inset-right) + 20px);
  bottom: 40px;
  z-index: 10;
  cursor: pointer;
  padding: 4px;
  background-color: #fff;
  border: 4px solid var(--home-primary-color);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
  box-shadow: 0 4px 24px rgba(23, 156, 233, 0.1);
  border-radius: 25%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.call-to-action img {
  width: 48px;
  height: 48px;
}

.call-to-action-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right) + 10px);
  bottom: 16px;
  background: #fff;
  color: var(--home-primary-color);
  border-radius: 8px;
  border: 1px solid var(--home-primary-color);
  box-shadow: 0 4px 16px rgba(23, 156, 233, 0.1);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
  padding: 12px 24px;
  display: none;
  z-index: 100;
}

.call-to-action-widget .widget-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.call-to-action-widget a {
  color: var(--home-primary-color);
  font-weight: 400;
  text-decoration: none;
}

.call-to-action-widget h4 {
  margin: 10px auto;
  font-size: 1.1rem;
  font-weight: 500;
}

.widget-links {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.widget-links img {
  width: 24px;
  height: 24px;
}

#closeWidget {
  background: var(--home-primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  margin-top: 8px;
}

.services-section {
  width: 100%;
  padding: 32px 0 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-title {
  color: var(--home-primary-color);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.services-cards {
  display: flex;
  gap: 32px;
  align-items: stretch;
  padding: 0 5vw 32px 5vw;
  margin: 0 auto;
}

.service-card {
  border: 2px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(108,63,207,0.06);
  flex: 1 1 0;
  min-width: 260px;
  max-width: 320px;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(108,63,207,0.13);
  transform: translateY(-4px) scale(1.03);
}

.service-icon-wrapper {
  height: 100px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon {
  height: 96px;
}

.service-card-title {
  background: var(--home-primary-color);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 0;
  width: 100%;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--home-primary-color);
  font-size: 1rem;
  text-align: left;
}

.service-card ul li {
  margin-bottom: 8px;
}

.services-banner {
  width: 80vw;
  max-width: 960px;
  margin: 0 auto;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-banner-img {
  width: 100%;
  height: auto;
}

.services-banner h3 {
  color: var(--home-primary-color);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

.business-needs {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 32px 0;
}

.business-needs-card {
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(108,63,207,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  width: 100vw;
  gap: 4px;
  padding: 8px 0;
}

.business-needs-1 .business-needs-card {
  background: linear-gradient(120deg, var(--home-primary-color) 0%, var(--home-highlight-color) 100%);
}

.business-needs-2 .business-needs-card {
  background: linear-gradient(120deg, var(--home-secondary-color) 0%, #000000 100%);
}

.business-needs-3 .business-needs-card {
  background: linear-gradient(120deg, #000000 0%, var(--home-highlight-color) 100%);
}

.business-needs-content {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px 12px 40px;
}


.business-needs-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.15;
}

.business-needs-2 .business-needs-title {
  font-size: 3rem;
}

.business-needs-title .highlight {
  color: #fff;
  font-weight: 900;
  text-shadow: 1px 2px 8px var(--home-highlight-color), 1px 2px 4px #fff;
}

.business-needs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #fff;
  opacity: 0.9;
}

.business-needs-list li {
  margin-bottom: 10px;
}

.brand-highlight {
  color: #fff;
  font-weight: 600;
  font-style: italic;
}

.brand-highlight.no-italic {
  font-style: normal;
}

.business-needs-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

.business-needs-image img {
  max-width: 360px;
  width: 100vw;
}

.industries-we-serve {
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.industries-we-serve-wrapper {
  width: 90vw;
  margin: 0 auto;
  margin-bottom: 32px;
  max-width: 1200px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industries-we-serve-wrapper h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.industries-we-serve-wrapper h4 {
  font-size: 1.1rem;
  padding: 0;
  margin: auto;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
}

.industries {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  justify-content: center;
  align-content: center;
  gap: 16px;
}

.industry-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(108,63,207,0.06);
}

.industry-card ul, 
.industry-card li {
  margin: 0;
  padding: 0px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  list-style: none;
}

.industry-card:hover {
  box-shadow: 0 4px 16px rgba(108,63,207,0.1);
  transform: translateY(-2px);
}

.industries-we-serve .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--home-primary-color);
  cursor: pointer;
  z-index: 10;
  padding: 4px 16px;
  border: 2px solid var(--home-primary-color);
  border-radius: 25%;
}

.arrow.left {
  left: 4vw;
  display: none;
  z-index: 3;
}

.arrow.right {
  right: 4vw;
  z-index: 3;
}

@media screen and (min-width: 769px) and (max-width: 1023px) {

  #heroContentMainWrapper {
    height: auto;    
  }

  .business-needs-card {
    flex-direction: row;
    gap: 4px;
    justify-content: space-around;
  }

  .business-needs-image {
    flex: 1.3;
    margin: 18px 0;
  }

  .business-needs-image img {
    width: auto;
  }

  .business-needs-3 .business-needs-content {
    padding: 16px 0px 16px 40px;
  }

  .industries {
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Responsive for mobile/tablet */
@media (min-width: 1024px) {
  #heroContentMainWrapper {
    height: auto;    
  }

  .business-needs-card {
    flex-direction: row;
    align-items: center;
    padding: 4px 40px;
    gap: 4px;
    margin: auto;
    max-width: 1080px;
  }

  .business-needs-content {
    margin-bottom: 18px;
  }

  .business-needs-image {
    justify-content: center;
    flex: 1.8;
    margin: 18px 0;
  }

  .business-needs-image img {
    max-width: 460px;
    margin: 0 auto;
  }

  .business-needs-3 .business-needs-content {
    padding: 16px 0px 16px 40px;
  }

  .industries {
    width: 80vw;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  .industries-we-serve .arrow {
    display: none;
  }

}

/* Mobile & Tablet: Scrollable Cards */
@media (max-width: 1023px) {
  .services-cards {
    display: flex;
    flex-direction: row;
    gap: 5vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-align: center;
    max-width: 100vw;
  }

  .service-card {
    max-width: 70vw;
    box-shadow: 0 2px 8px rgba(108,63,207,0.09);
    z-index: 1;
    transition: opacity 0.3s, transform 0.3s;
  }

  .service-card:active,
  .service-card:focus {
    transform: scale(1);
    z-index: 3;
    max-width: 80vw;
  }
}

/* For very small screens */
@media (max-width: 600px) {
  .service-card {
    width: 80vw;
    padding: 24px 8px 18px 8px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    flex-direction: column;
    padding: 32px 2vw 0 2vw;
    min-height: 0;
  }

  .hero-bar-outer {
    margin-top: 3.2rem;
  }

  .hero-content, .hero-video-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .hero-content-main h1 {
    font-size: 2.4rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-video-wrapper video {
    width: 90vw;
    margin-top: 24px;
  }

  .hero-btn {
    padding: 12px 28px;
  }

  .testimonial-section {
    background: linear-gradient(90deg, var(--home-primary-color) 50%, var(--home-secondary-color) 50%);
  }

  .testimonial-card {
    min-height: 320px;
    background-color: var(--home-secondary-color);
  }
}

@media screen and (min-width: 1024px) {
  .hero-section {
    padding: 40px 10vw 0 10vw;
    flex-direction: row;
    min-height: 70vh;
  }

  .hero-content-main h1 {
    font-size: 2.6rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-video-wrapper {
    margin-top: 0;
  }

  .hero-video-wrapper video {
    width: 800px;
  }

  .hero-btn {
    padding: 12px 28px;
  }

  .hero-bar-outer {
    margin-top: 3.6rem;
  }

  .testimonial-section {
    height: 400px;
    background: linear-gradient(90deg, var(--home-primary-color) 50%, var(--home-secondary-color) 50%);
  }

  .testimonial-card {
    min-height: 300px;
    background-color: var(--home-secondary-color);
  }

  .services-banner h3 {
    font-size: 2.2rem;
    margin-top: 24px;
    font-weight: 600;
  }
}

