﻿/* Home page */

.page-home .text-blue { color: var(--blue); }

/* ---------- Hero ---------- */
.page-home .hero { padding: 80px 60px 90px; }
.page-home .hero__inner { display: flex; }
.page-home .hero__text {
  flex: 0 0 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 50px;
}
.page-home .hero__hello {
  background: var(--white); color: var(--blue);
  padding: 10px 20px; margin-bottom: 20px; border-radius: 4px;
  font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 18px; letter-spacing: 1.5px;
}
.page-home .hero__title {
  font-family: var(--font-head); font-size: 84px; font-weight: 400; line-height: 1;
  margin-bottom: 20px;
}
.page-home .hero__intro { font-size: 18px; line-height: 28px; letter-spacing: 1px; margin-bottom: 20px; }
.page-home .hero__media {
  flex: 0 0 50%; padding: 10px;
  display: flex; align-items: flex-end; justify-content: center;
}
.page-home .hero__media img { width: 100%; }

/* ---------- Stats ---------- */
.page-home .stats { margin-top: -100px; position: relative; z-index: 1; }
.page-home .stats__card {
  background: var(--dark); color: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 35px 50px;
  display: flex; align-items: center;
}
.page-home .stats__intro {
  flex: 0 0 31%; padding: 10px;
  display: flex; align-items: flex-start;
}
.page-home .stats__icon { font-size: 50px; margin: 17px 0 31px; }
.page-home .stats__intro p {
  padding: 0 20px 0 10px;
  font-size: 14px; line-height: 23.8px; text-align: center; margin-bottom: 10px;
}
.page-home .stat {
  flex: 0 0 17%; padding: 10px; min-height: 138px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.page-home .stat:nth-child(3) { flex-basis: 16%; }
.page-home .stat:nth-child(4), .page-home .stat:nth-child(5) { flex-basis: 18%; }
.page-home .stat__num { font-family: var(--font-head); font-size: 60px; line-height: 1.3; }
.page-home .stat__label { font-size: 16px; line-height: 27.2px; }

/* ---------- About ---------- */
.page-home .about { display: flex; }
.page-home .about__media { flex: 0 0 40%; }
.page-home .about__media img { width: 100%; }
.page-home .about__text {
  flex: 1 1 auto; padding: 0 4.77%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.page-home .about__text .title { align-self: stretch; }
.page-home .about__divider { display: block; width: 8%; border-top: 3px solid #000; margin: 8px 0; }
.page-home .about__tagline {
  font-size: 24px; font-weight: 400; line-height: 32px; color: var(--blue);
  margin: 10px 0 15px;
}
.page-home .about .lead { line-height: 27.2px; margin-bottom: 23px; }

/* Column padding of the original layout */
.page-home .clients .container, .page-home .companies .container, .page-home .testimonials .container { padding: 10px; }

/* ---------- Clients ---------- */
.page-home .clients__sub { margin: 20px 0 20px; }
.page-home .clients__grid {
  max-width: 1140px; margin: 0 auto; padding-top: 3%;
  display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 50px;
}
.page-home .client { margin: 0 5%; padding: 10px; border-radius: 3px; }
.page-home .client__name {
  font-family: var(--font-head); font-size: 24px; font-weight: 400; line-height: 24px; letter-spacing: 1px;
  margin-bottom: 7px;
}
.page-home .client__logo { margin-bottom: 24px; }
.page-home .client__logo--h62 { height: 62px; width: auto; }
.page-home .client__logo--wide { width: 68%; }
.page-home .client__text {
  padding-right: 15%;
  font-size: 16px; font-weight: 300; line-height: 24px;
}

/* ---------- Video slideshow ---------- */
.page-home .companies__sub { margin: 10px 0; }
.page-home .slideshow { --thumbs: 5; padding-top: 3%; }
.page-home .slideshow__stage { position: relative; overflow: hidden; height: 450px; }
.page-home .slideshow__track { display: flex; height: 100%; transition: transform .5s ease; }
.page-home .slideshow__slide { flex: 0 0 100%; height: 100%; }
.page-home .slideshow__play {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000;
}
.page-home .slideshow__play img { width: 100%; height: 100%; object-fit: cover; }
.page-home .play-icon {
  position: absolute; left: 50%; top: 50%;
  width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border: 2px solid var(--white); border-radius: 50%; opacity: .8;
  transition: opacity .3s;
}
.page-home .play-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px;
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--white);
}
.page-home .slideshow__play:hover .play-icon, .page-home .slideshow__play:focus-visible .play-icon { opacity: 1; }
.page-home .slideshow__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  padding: 0; border: 0; background: none; color: var(--blue);
  font-size: 30px; line-height: 0;
}
.page-home .slideshow__prev { left: 10px; }
.page-home .slideshow__next { right: 10px; }
.page-home .slideshow__thumbs { display: flex; gap: 10px; overflow: hidden; margin-top: 10px; }
.page-home .slideshow__thumb {
  flex: 0 0 calc((100% - (var(--thumbs) - 1) * 10px) / var(--thumbs));
  aspect-ratio: 1; padding: 0; border: 0; background: #000;
}
.page-home .slideshow__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Journey ---------- */
.page-home .journey { padding: 6.5% 5%; }
.page-home .journey__grid { display: flex; }
.page-home .journey__grid > * { flex: 0 0 25%; padding: 5px; }
.page-home .journey__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.page-home .journey__text .title { margin-bottom: 20px; }
.page-home .journey__btn { margin-bottom: 10px; text-transform: capitalize; }
.page-home .journey__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Co-founder ---------- */
.page-home .ceo { padding: 6% 5% 0; }
.page-home .ceo__inner { display: flex; }
.page-home .ceo__media { flex: 0 0 33.333%; padding: 10px; }
.page-home .ceo__media img { width: 100%; }
.page-home .ceo__text { flex: 1 1 auto; padding: 10px; }
.page-home .ceo__text .title, .page-home .ceo__text .lead { margin-bottom: 20px; }
.page-home .ceo .btn { text-transform: capitalize; }

/* ---------- Services ---------- */
.page-home .services { padding: 2% 5% 6.5%; }
.page-home .services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 5px;
}
.page-home .service {
  display: flex; flex-direction: column;
  background: var(--dark); color: var(--white);
  border: 2px solid var(--white); border-radius: 10px;
  padding: 30px;
  transition: border-color .3s;
}
.page-home .service:hover, .page-home .service:focus-visible { border-color: var(--blue); }
.page-home .service__icon { display: block; height: 85px; padding-top: 16px; font-size: 50px; line-height: 0; }
.page-home .service__icon--wp { height: 50px; padding-top: 0; }
.page-home .service__title {
  margin-top: 13px; padding-top: 10px;
  font-family: var(--font-head); font-size: 33px; font-weight: 400; line-height: 32px; letter-spacing: 1px;
}
.page-home .service p { margin-top: 8px; font-size: 16px; line-height: 26px; }

/* ---------- Showcase ---------- */
.page-home .showcase__inner { display: flex; }
.page-home .showcase__text {
  flex: 0 0 30%; padding: 10px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.page-home .showcase__text .title { margin-bottom: 20px; }
.page-home .showcase__intro { font-size: 16px; line-height: 28px; margin-bottom: 20px; }
.page-home .showcase__text .btn { margin-bottom: 10px; text-transform: capitalize; }
.page-home .showcase__grid {
  flex: 1 1 auto; padding: 10px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-content: center;
}
.page-home .work {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border: 1px solid var(--white); border-radius: 10px;
}
.page-home .work img { width: 100%; height: 100%; object-fit: cover; }
.page-home .work__overlay {
  position: absolute; inset: 0; padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--blue); color: var(--white);
  opacity: 0; transform: scale(.5);
  transition: opacity .8s, transform .8s;
}
.page-home .work__title, .page-home .work__desc { opacity: 0; transition: opacity .8s .8s; }
.page-home .work__title { font-family: var(--font-head); font-size: 30px; line-height: 1.2; letter-spacing: 1.5px; }
.page-home .work__desc { font-size: 18px; line-height: 1.5; }
.page-home .work:hover .work__overlay, .page-home .work:focus .work__overlay { opacity: 1; transform: none; }
.page-home .work:hover .work__title, .page-home .work:hover .work__desc,
.page-home .work:focus .work__title, .page-home .work:focus .work__desc { opacity: 1; }

/* ---------- Testimonials ---------- */
.page-home .testimonials { padding: 7% 5%; }
.page-home .testimonials__intro {
  padding: 0 20%; margin: 20px 0;
  font-size: 16px; line-height: 28px; text-align: center;
}
.page-home .carousel__viewport { overflow: hidden; }
.page-home .carousel__track { display: flex; transition: transform .5s ease; }
.page-home .testimonial {
  flex: 0 0 100%; margin: 0;
  display: flex; align-items: center;
  padding: 45px 112px;
}
.page-home .testimonial__img { flex: none; width: 400px; height: 400px; object-fit: cover; border-radius: 8px; margin-right: 50px; }
.page-home .testimonial__body { flex: 1 1 auto; }
.page-home .testimonial__text { font-size: 18px; line-height: 28px; }
.page-home .testimonial__cite { display: flex; flex-direction: column; margin-top: 36px; }
.page-home .testimonial__name {
  font-family: var(--font-head); font-size: 30px; font-style: normal; line-height: 1; letter-spacing: 2px;
}
.page-home .testimonial__role { font-size: 16px; line-height: 1.2; margin-top: 6px; }
.page-home .carousel__dots { display: flex; justify-content: center; gap: 12px; min-height: 40px; padding-top: 20px; }
.page-home .carousel__dot {
  width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: var(--white);
}
.page-home .carousel__dot[aria-current="true"] { background: var(--dark); }

/* ---------- Consultation ---------- */
.page-home .consultation__inner { display: flex; }
.page-home .consultation__text {
  flex: 0 0 59.66%; padding-left: 7.16%;
  display: flex; flex-direction: column; justify-content: center;
}
.page-home .consultation__text .title { margin-bottom: 20px; }
.page-home .consultation__embed { flex: 0 0 40%; min-width: 0; }
.page-home .consultation__embed iframe { display: block; width: 100%; height: 600px; border: 0; margin-bottom: 9px; }

/* ---------- Written reviews (second "Companies I have worked with") ---------- */
.page-home .companies-alt { padding-top: 0; }
.page-home .companies-alt .title { margin-bottom: 15px; }
.page-home .reviews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
.page-home .review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  margin: 0; padding: 30px; border-radius: 6px; background: #F5F7FA;
  box-shadow: -10px 10px 0 0 var(--grey);
}
.page-home .review p { margin: 0; font-size: 15px; line-height: 26px; color: #333; }
.page-home .review footer a { display: block; font-size: 14px; line-height: 20px; color: #555; text-decoration: none; }
.page-home .review footer a:hover cite, .page-home .review footer a:focus-visible cite { color: var(--blue); }
.page-home .review cite {
  display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 20px; font-style: normal;
  font-weight: 700; letter-spacing: .5px; color: var(--dark); transition: color .2s;
}

/* ---------- Experience ---------- */
.page-home .experience__inner { display: flex; align-items: center; gap: 6%; }
.page-home .experience__text { flex: 1 1 0; min-width: 0; }
.page-home .experience__inner > img { flex: 0 0 38%; width: 38%; border-radius: 6px; object-fit: cover; aspect-ratio: 2 / 3; }
.page-home .job { margin-top: 32px; padding-left: 22px; border-left: 3px solid var(--blue); }
.page-home .job__title { margin: 0 0 10px; font-family: var(--font-head); font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--white); }
.page-home .job__title span { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 400; letter-spacing: 1px; color: #8EC5F5; }
.page-home .job p { margin: 0; font-size: 15px; line-height: 26px; color: #D6D6D6; }
.page-home .job p span { font-weight: 700; color: var(--white); }

/* ================= Tablet ================= */
@media (max-width: 1024px) {
  .page-home .hero { padding: 40px 40px 150px; }
  .page-home .hero__inner { flex-wrap: wrap; }
  .page-home .hero__text, .page-home .hero__media { flex-basis: 100%; }
  .page-home .hero__text { padding-bottom: 0; }
  .page-home .hero__title { font-size: 70px; }
  .page-home .hero__media img { margin-bottom: -120px; }

  .page-home .stats__card { padding: 35px 20px; flex-wrap: wrap; }
  .page-home .stats__intro { flex-basis: 100%; justify-content: center; align-items: center; }
  .page-home .stats__icon { margin: -13px 0; }
  .page-home .stat, .page-home .stat:nth-child(n) { flex-basis: 25%; min-height: 0; gap: 13px; }
  .page-home .stat__num { font-size: 55px; line-height: 1; }

  .page-home .about { padding-bottom: 80px; }
  .page-home .about__tagline { margin-top: 10px; }

  .page-home .clients { padding: 8% 5% 9%; }
  .page-home .clients__grid { row-gap: 36px; }
  .page-home .client { margin: 0 3%; }

  .page-home .companies { padding: 8% 0; }
  .page-home .journey { padding: 6.5% 0; }
  .page-home .journey__grid { flex-wrap: wrap; }
  .page-home .journey__img--wide { flex-basis: 50%; }

  .page-home .ceo { padding: 8% 5% 0; }
  .page-home .ceo__media { flex-basis: 40%; display: flex; align-items: center; }

  .page-home .services { padding: 3% 5% 9%; }
  .page-home .services__grid { grid-template-columns: repeat(2, 1fr); }

  .page-home .showcase { padding: 8% 5% 9%; }
  .page-home .showcase__inner { flex-wrap: wrap; }
  .page-home .showcase__text, .page-home .showcase__grid { flex-basis: 100%; }
  .page-home .showcase__grid { padding: 4% 0 0; }
  .page-home .work__title { font-size: 28px; letter-spacing: 0; }
  .page-home .work__desc { font-size: 16px; }

  .page-home .testimonials__intro { padding: 0 2%; }
  .page-home .testimonial {
    display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr;
    column-gap: 20px; align-items: start; padding: 0;
  }
  .page-home .testimonial__body { display: contents; }
  .page-home .testimonial__img { grid-area: 1 / 1; width: 240px; height: 240px; margin: 20px 0 0; }
  .page-home .testimonial__cite { grid-area: 2 / 1; margin-top: 25px; }
  .page-home .testimonial__text { grid-area: 1 / 2 / 3 / 3; padding: 20px; }
  .page-home .testimonial__name { font-size: 24px; line-height: 1.2; letter-spacing: 1px; }
  .page-home .testimonial__role { font-size: 14px; line-height: 2; margin-top: 0; }
  .page-home .carousel__dot { width: 10px; height: 10px; }

  .page-home .consultation { padding: 6% 5%; }
}

/* ================= Mobile ================= */
@media (max-width: 767px) {
  .page-home .hero { padding: 40px 20px 150px; }
  .page-home .hero__title { font-size: 60px; }
  .page-home .hero__media img { margin-bottom: -60px; }
  .page-home .hero__intro { font-size: 16px; line-height: 26px; }

  .page-home .stats__card { padding: 50px 10px 40px; }
  .page-home .stats__intro { display: block; text-align: center; }
  .page-home .stats__icon { display: block; font-size: 28px; margin: 2px auto 5px; }
  .page-home .stats__intro { min-height: 0; }
  .page-home .stats__intro p { padding: 0; }
  .page-home .stat, .page-home .stat:nth-child(n) { flex-basis: 100%; }
  .page-home .stat__num { font-size: 46px; }

  .page-home .about { flex-wrap: wrap; padding-bottom: 18%; }
  .page-home .about__media, .page-home .about__text { flex-basis: 100%; }
  .page-home .about__text { padding: 16% 6% 0; }
  .page-home .about__tagline { line-height: 28px; }

  .page-home .clients { padding: 15% 4% 16%; }
  .page-home .clients__grid { grid-template-columns: 1fr; row-gap: 0; }
  .page-home .client:nth-child(4) { margin-top: 13.5px; }

  .page-home .companies { padding: 14% 4%; }
  .page-home .slideshow { --thumbs: 3; }

  .page-home .journey { padding: 16% 4%; }
  .page-home .journey__grid > *, .page-home .journey__img--wide { flex-basis: 100%; }
  .page-home .journey__btn { margin-left: 13px; margin-bottom: 0; }

  .page-home .ceo { padding: 15% 4% 4%; }
  .page-home .ceo__inner { flex-wrap: wrap; }
  .page-home .ceo__media, .page-home .ceo__text { flex-basis: 100%; }

  .page-home .services { padding: 0 4% 16%; }
  .page-home .services__grid { grid-template-columns: 1fr; }
  .page-home .service { padding: 25px; }
  .page-home .service__title { font-size: 30px; }
  .page-home .service p { line-height: 24px; }

  .page-home .showcase { padding: 15% 4%; }
  .page-home .showcase__text .btn { margin-left: 13px; margin-bottom: 0; }
  .page-home .showcase__grid { padding-top: 2%; grid-template-columns: 1fr; margin-top: 8%; }

  .page-home .testimonials { padding: 15% 4% 13%; }
  .page-home .testimonials__intro { padding: 0; line-height: 24px; }
  .page-home .testimonial { display: flex; flex-direction: column; align-items: flex-start; padding: 0 8px; }
  .page-home .testimonial__body { display: block; }
  .page-home .testimonial__img { width: 260px; height: 260px; margin: 0 0 20px; }
  .page-home .testimonial__text { padding: 0; }
  .page-home .testimonial__cite { margin-top: 25px; }
  .page-home .testimonial__text { font-size: 16px; }
  .page-home .testimonial__name { line-height: 1.2; }
  .page-home .testimonial__role { line-height: 2; margin-top: 0; }

  .page-home .consultation { padding: 10% 4% 20%; }
  .page-home .consultation__inner { flex-wrap: wrap; }
  .page-home .consultation__text, .page-home .consultation__embed { flex-basis: 100%; }
  .page-home .consultation__text { padding-left: 5%; }
  .page-home .consultation .lead { line-height: 28px; }}

/* Written reviews + Experience: responsive */
@media (max-width: 1024px) {
  .page-home .reviews { grid-template-columns: repeat(2, 1fr); }
  .page-home .experience__inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .page-home .experience__inner > img { width: 60%; align-self: center; }
}
@media (max-width: 767px) {
  .page-home .reviews { grid-template-columns: 1fr; gap: 28px; }
  .page-home .review { padding: 24px; }
  .page-home .experience__inner > img { width: 100%; }
}
