/* ===== HOME PAGE — agreed updates only ===== */

/* --- Hero: hide intro block — titles + CTA only --- */
body.home-page .hero-sec .hero-top {
  display: none !important;
}

body.home-page .hero-sec .hero-inner .hero-video video {
  object-fit: cover !important;
  object-position: center center !important;
}

body.home-page .hero-sec > .custom-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --- Hero: desktop --- */
@media (min-width: 992px) {
  body.home-page .hero-sec {
    min-height: 100svh;
  }

  body.home-page .hero-sec > .custom-container,
  body.home-page .hero-sec .hero-inner {
    min-height: 100svh !important;
    height: 100svh !important;
    max-height: 100svh !important;
    box-sizing: border-box;
  }

  body.home-page .hero-sec .hero-inner {
    gap: clamp(18px, 2.5vh, 28px) !important;
    padding: clamp(88px, 10vh, 108px) clamp(40px, 5vw, 72px) clamp(32px, 4vh, 48px) !important;
    justify-content: flex-end !important;
  }

  body.home-page .hero-sec .hero-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: clamp(16px, 2vh, 22px) !important;
    width: 100%;
    margin-top: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom .left {
    width: 100%;
    margin-top: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom h2 {
    font-family: var(--font_arapey), "Arapey", Georgia, serif !important;
    font-size: clamp(64px, 6.5vw, 104px) !important;
    line-height: 0.98 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom .theme-btn {
    align-self: flex-start;
    margin-top: 4px !important;
    font-size: 17px !important;
    padding: 14px 26px !important;
  }

  body.home-page .hero-sec .hero-inner .hero-video {
    transform: none;
    transform-origin: center 42%;
  }

  body.home-page .hero-sec .hero-inner .hero-video video {
    object-fit: contain !important;
    object-position: center 42% !important;
  }
}

/* --- Hero: iPad / tablet --- */
@media (min-width: 768px) and (max-width: 991px) {
  body.home-page .hero-sec {
    min-height: 100svh;
    min-height: 100dvh;
  }

  body.home-page .hero-sec > .custom-container,
  body.home-page .hero-sec .hero-inner {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: 100svh !important;
    height: 100dvh !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    box-sizing: border-box;
  }

  body.home-page .hero-sec .hero-inner {
    gap: clamp(16px, 2.2vh, 22px) !important;
    padding: clamp(80px, 11vh, 100px) clamp(28px, 4vw, 48px) clamp(28px, 4vh, 40px) !important;
    justify-content: flex-end !important;
  }

  body.home-page .hero-sec .hero-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100%;
    margin-top: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom .left {
    margin-top: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom h2 {
    font-family: var(--font_arapey), "Arapey", Georgia, serif !important;
    font-size: clamp(52px, 8vw, 76px) !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom .theme-btn {
    align-self: flex-start;
    margin-top: 6px !important;
  }

  body.home-page .hero-sec .hero-inner .hero-video {
    transform: scale(0.68);
    transform-origin: center 40%;
  }

  body.home-page .hero-sec .hero-inner .hero-video video {
    object-fit: contain !important;
    object-position: center 40% !important;
  }
}

/* --- Hero: mobile --- */
@media (max-width: 767px) {
  body.home-page .hero-sec {
    min-height: 100svh;
    min-height: 100dvh;
  }

  body.home-page .hero-sec > .custom-container,
  body.home-page .hero-sec .hero-inner {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: 100svh !important;
    height: 100dvh !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    box-sizing: border-box;
  }

  body.home-page .hero-sec .hero-bottom h2 {
    font-family: var(--font_arapey), "Arapey", Georgia, serif !important;
    font-size: clamp(42px, 11vw, 56px) !important;
    line-height: 1.02 !important;
    margin: 0 !important;
  }

  body.home-page .hero-sec .hero-inner .hero-video {
    transform: scale(1.06);
    transform-origin: center 38%;
  }

  body.home-page .hero-sec .hero-inner .hero-video video {
    object-fit: contain !important;
    object-position: center 40% !important;
  }

  body.home-page .hero-sec .hero-inner {
    gap: clamp(12px, 2vh, 16px) !important;
    padding: clamp(64px, 10vh, 80px) 16px clamp(16px, 3vh, 24px) !important;
    justify-content: flex-end !important;
  }

  body.home-page .hero-sec .hero-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100%;
    margin-top: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom .left {
    margin-top: 0 !important;
  }

  body.home-page .hero-sec .hero-bottom .theme-btn {
    display: inline-flex !important;
    align-self: flex-start;
    margin-left: 0;
    flex-shrink: 0;
    margin-top: 4px !important;
    font-size: 16px !important;
    padding: 14px 28px !important;
  }
}

/* --- Home hero video — autoplay on iOS --- */
body.home-page .hero-sec .hero-inner .hero-video video {
  pointer-events: none;
}

@media (max-width: 767px) {
  body.home-page .hero-sec .hero-inner .hero-video video {
    object-fit: contain !important;
    object-position: center 40% !important;
  }
}

@media (max-width: 991px) {
  body.home-page .hero-sec .hero-inner .hero-video {
    z-index: 0;
    opacity: 1;
  }

  body.home-page .hero-sec .hero-bottom {
    position: relative;
    z-index: 2;
  }
}

/* --- About Us — unified body font + alignment --- */
body.home-page .about-sec:first-of-type .section-header {
  align-items: flex-start;
}

body.home-page .about-sec:first-of-type .section-header .right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.5vw, 28px) !important;
  width: 100%;
  max-width: 920px;
  padding: 0 !important;
  margin: 0 !important;
}

body.home-page .about-sec:first-of-type .about-values-intro {
  width: 100%;
  max-width: 920px;
  margin: 0 !important;
  padding: 0 !important;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 18px) !important;
}

body.home-page .about-sec:first-of-type .about-services-intro {
  width: 100%;
  max-width: 920px;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 18px) !important;
}

body.home-page .about-sec:first-of-type .about-values-intro .section-subtitle {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home-page .about-sec:first-of-type .about-services-intro .section-subtitle {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home-page .about-sec .section-header .right .section-title.about-home-title,
body.home-page .about-sec .about-values-text,
body.home-page .service-sec .section-header .section-title.reveal-type {
  font-family: var(--font_urbanist), "Urbanist", system-ui, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  max-width: 920px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.home-page .service-sec .section-header .section-title.reveal-type .char,
body.home-page .service-sec .section-header .section-title.reveal-type .word {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  letter-spacing: inherit !important;
}

body.home-page .about-sec .section-header .right .section-title.about-home-title .char,
body.home-page .about-sec .section-header .right .section-title.about-home-title .word,
body.home-page .about-sec .about-values-text .char,
body.home-page .about-sec .about-values-text .word {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  letter-spacing: inherit !important;
  text-align: left !important;
}

@media (min-width: 992px) {
  body.home-page .about-sec:first-of-type {
    padding-top: clamp(36px, 4vw, 56px);
    padding-bottom: clamp(28px, 3vw, 44px);
  }

  body.home-page .about-sec .section-header .right .section-title.about-home-title,
  body.home-page .about-sec .about-values-text,
  body.home-page .service-sec .section-header .section-title.reveal-type {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 991px) {
  body.home-page .about-sec:first-of-type .section-header {
    flex-direction: column;
    gap: 16px;
  }

  body.home-page .about-sec .section-header .right .section-title.about-home-title,
  body.home-page .about-sec .about-values-text,
  body.home-page .service-sec .section-header .section-title.reveal-type {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

/* --- Featured projects --- */
body.home-page .feature-sec {
  padding-top: 20px;
  padding-bottom: 0;
}

body.home-page .feature-sec .section-header,
body.home-page .feature-sec .section-header.section-header2 {
  margin-bottom: 60px;
}

body.home-page .feature-sec .feature-project-lists {
  gap: 60px;
  padding-bottom: 0;
}

body.home-page .feature-sec .custom-container .feature-more-btn-wrap,
body.home-page .feature-sec .feature-more-btn-wrap,
body.home-page .feature-more-btn-wrap {
  margin: 30px 0 0 !important;
  padding: 0 0 30px !important;
  justify-content: center !important;
  width: 100%;
}

/* --- Services section --- */
body.home-page .service-sec {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

body.home-page .service-sec > .feature-more-btn-wrap {
  margin: 20px 0 0 !important;
  padding: 14px 0 !important;
  justify-content: center !important;
  width: 100%;
}

body.home-page .service-sec .service-box .service-inner .title img {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

body.home-page .service-sec .service-box .service-inner .service-img-box img {
  animation: upDownAnim 2s linear infinite !important;
  will-change: transform;
}

/* --- Home: services section body text --- */
@media (min-width: 992px) {
  body.home-page .service-sec {
    padding-bottom: 20px !important;
  }

  body.home-page .service-sec .service-box.active .service-inner .service-img-box img,
  body.home-page .service-sec .service-box:hover .service-inner .service-img-box img {
    animation-duration: 2s !important;
  }
}

body.home-page .feature-sec .feature-project-lists {
  gap: 22px !important;
}

body.home-page .feature-project-info-box {
  overflow: visible !important;
}

body.home-page .feature-project-info-box .subtitle {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-word;
  line-height: 1.45;
}

@media (min-width: 992px) {
  body.home-page .feature-project .feature-project-infos {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-left: 28px;
    padding-right: 28px;
  }

  body.home-page .feature-project-info-box {
    flex: 0 0 auto;
    min-width: 0;
    width: 30%;
  }

  body.home-page .feature-project-info-box:nth-child(2) {
    width: 30%;
    flex: 0 0 auto !important;
    max-width: none;
  }

  body.home-page .feature-project-infos .feature-project-info-box:nth-child(3) {
    width: 20%;
  }

  body.home-page .feature-project-infos .feature-project-info-box:nth-child(4) {
    width: 20%;
  }

  body.home-page .feature-project-info-box .subtitle {
    line-height: 1.5;
  }
}

/* --- Mobile typography (titles Arapey / body Urbanist) --- */
@media (max-width: 991px) {
  body.home-page .section-header .section-title,
  body.home-page .section-header .section-title.reveal-type,
  body.home-page .section-header .section-title2 {
    font-family: var(--font_arapey), "Arapey", Georgia, serif !important;
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1.12 !important;
  }

  body.home-page .about-sec:first-of-type .section-header .right .section-title.about-home-title,
  body.home-page .about-sec:first-of-type .about-values-text,
  body.home-page .service-sec .section-header .section-title.reveal-type {
    font-family: var(--font_urbanist), "Urbanist", system-ui, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    font-style: normal !important;
  }

  body.home-page .section-header .section-desc,
  body.home-page .service-box .service-inner .service-feature-lists span {
    font-family: var(--font_urbanist), "Urbanist", system-ui, sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .service-sec .service-box .service-inner .title img,
  body.home-page .service-sec .service-box .service-inner .service-img-box img {
    animation: none !important;
  }
}

/* Hero titles — match midz.co (Imagination = Arapey italic, Meets Innovation = Urbanist) */
body.home-page .hero-sec .hero-bottom h2 {
  background-image: linear-gradient(90deg, #ffffff 16%, #4d4d4d 140%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  letter-spacing: -0.04em !important;
  padding: 0 !important;
}

body.home-page .hero-sec .hero-bottom h2:first-child {
  font-family: var(--font_arapey), "Arapey", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 300 !important;
}

body.home-page .hero-sec .hero-bottom h2:nth-child(2) {
  font-family: var(--font_urbanist), "Urbanist", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
}

@media (min-width: 992px) {
  body.home-page .hero-sec .hero-bottom h2 {
    font-size: clamp(72px, 7.5vw, 96px) !important;
    line-height: 0.96 !important;
  }
}
