/* Tyaha site-specific fixes: light-first theme, clean backgrounds, responsive motion, and video modal. */

:root {
  color-scheme: light;
  --tyaha-yellow: #fec92f;
  --tyaha-charcoal: #282828;
  --tyaha-white: #ffffff;
  --tyaha-modal-backdrop: rgba(10, 10, 10, 0.9);
  --tyaha-modal-shadow: rgba(0, 0, 0, 0.55);
  --tyaha-play-shadow: rgba(0, 0, 0, 0.3);
}

/* The home hero plays the supplied film normally; there is no scroll scrubbing. */
.tyaha-video-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--tyaha-charcoal);
}

.tyaha-video-hero__media,
.tyaha-video-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tyaha-video-hero__media {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.tyaha-video-hero__overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 14, 14, 0.78) 0%, rgba(14, 14, 14, 0.34) 58%, rgba(14, 14, 14, 0.12) 100%);
  pointer-events: none;
}

.tyaha-video-hero .shape-image {
  display: none;
}

.tyaha-video-hero .rts_hero__title,
.tyaha-video-hero .hero__sub-title,
.tyaha-video-hero .speen-shape {
  color: var(--tyaha-white);
}

/* Hero heading: reduce only “Visual Studio” to 85%; keep it regular and clean. */
.tyaha-video-hero .rts_hero__title .tyaha-visual-studio {
  display: inline-block;
  font-size: 85% !important;
  font-style: normal !important;
  font-weight: inherit;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.tyaha-video-hero .rts_hero__title .tyaha-visual-studio::before,
.tyaha-video-hero .rts_hero__title .tyaha-visual-studio::after {
  display: none !important;
  content: none !important;
}

/* Static services layout: three cards per row, with no horizontal carousel. */
.tyaha-services-grid {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  overflow: visible;
}

.tyaha-services-grid > .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.tyaha-services-grid > .swiper-wrapper > .swiper-slide {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.tyaha-services-grid .single-service-h2 {
  height: 100%;
}

@media (max-width: 991px) {
  .tyaha-services-grid > .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tyaha-video-hero {
    min-height: 100svh;
  }

  .tyaha-video-hero__overlay {
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.32) 0%, rgba(14, 14, 14, 0.76) 72%, rgba(14, 14, 14, 0.86) 100%);
  }

  .tyaha-services-grid {
    width: min(100% - 32px, 560px);
  }

  .tyaha-services-grid > .swiper-wrapper {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Remove the decorative vertical background grid in the light theme. */
.rts-light-mood .grid-lines-wrapper {
  display: none !important;
}

/* Use the standalone Tyaha icon consistently without inheriting full-logo proportions. */
.tyaha-brand-lockup {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  width: auto !important;
  max-width: none !important;
  color: var(--tyaha-white) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.tyaha-brand-lockup .tyaha-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.tyaha-brand-lockup .tyaha-brand-copy strong {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.tyaha-brand-lockup .tyaha-brand-copy small {
  color: inherit;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.31em;
  opacity: 0.88;
}

.logo img[src*="Tyaha%20Logo"],
.logo img[src*="Tyaha Logo"],
.loog img[src*="Tyaha%20Logo"],
.loog img[src*="Tyaha Logo"],
.logo-area img[src*="Tyaha%20Logo"],
.logo-area img[src*="Tyaha Logo"] {
  width: 32px;
  height: 48px;
  max-width: 32px;
  object-fit: contain;
}

.tyaha-brand-lockup img[src*="Tyaha%20Logo"],
.tyaha-brand-lockup img[src*="Tyaha Logo"] {
  flex: 0 0 auto;
  min-width: 32px !important;
}

/* Full supplied logo in headers; footer branding stays unchanged. */
.tyaha-brand-lockup.tyaha-brand-lockup--image { height: 48px; width: 132px !important; }
.tyaha-brand-lockup.tyaha-brand-lockup--image .tyaha-brand-copy { display: none; }
.tyaha-brand-lockup.tyaha-brand-lockup--image img { height: 36px !important; max-width: 132px !important; object-fit: contain; width: 132px !important; }

/* About story: retain the supplied portrait's original curved-edge artwork. */
.tyaha-founder-portrait {
  position: relative;
  margin: 0;
  background: transparent;
}

.tyaha-founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Keep the “Why Choose Tyaha” section consistently in Title Case. */
.inner-page.about .rts-faq-section-area .title-faq-4 .pre,
.inner-page.about .rts-faq-section-area .title-faq-4 .title,
.inner-page.about .rts-faq-section-area .four-accordion-area-faq .accordion-header button,
.inner-page.about .rts-faq-section-area .four-accordion-area-faq .accordion-body p {
  text-transform: capitalize !important;
}

@media (max-width: 767px) {
  .tyaha-founder-portrait {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .tyaha-brand-lockup {
    gap: 8px;
  }

  .tyaha-brand-lockup.tyaha-brand-lockup--image,
  .tyaha-brand-lockup.tyaha-brand-lockup--image img { max-width: 116px !important; width: 116px !important; }

  .tyaha-brand-lockup .tyaha-brand-copy strong {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .tyaha-brand-lockup .tyaha-brand-copy small {
    font-size: 7px;
    letter-spacing: 0.24em;
  }
}

.logo-footer img[src*="Tyaha%20Logo"],
.logo-footer img[src*="Tyaha Logo"],
.rts-footer-two-area .logo img[src*="Tyaha%20Logo"],
.rts-footer-two-area .logo img[src*="Tyaha Logo"] {
  width: 40px;
  height: 59px;
  max-width: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* YouTube portfolio affordance. */
.video-portfolio-link.thumbnail {
  position: relative;
  display: block;
}

.video-portfolio-link.thumbnail::after {
  content: "\f04b";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tyaha-yellow);
  color: var(--tyaha-charcoal);
  font-family: "Font Awesome 6 Pro";
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 38px var(--tyaha-play-shadow);
  transform: translate(-50%, -50%) scale(0.94);
  transition: transform 180ms ease, background-color 180ms ease;
  pointer-events: none;
}

.video-portfolio-link.thumbnail:hover::after,
.video-portfolio-link.thumbnail:focus-visible::after {
  transform: translate(-50%, -50%) scale(1);
  background: var(--tyaha-white);
}

.video-portfolio-link:focus-visible {
  outline: 3px solid var(--tyaha-yellow);
  outline-offset: 5px;
}

.tyaha-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--tyaha-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.tyaha-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.tyaha-video-modal__dialog {
  position: relative;
  width: min(1100px, 94vw);
  transform: translateY(18px) scale(0.985);
  transition: transform 220ms ease;
}

.tyaha-video-modal.is-open .tyaha-video-modal__dialog {
  transform: none;
}

.tyaha-video-modal__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--tyaha-charcoal);
  box-shadow: 0 28px 90px var(--tyaha-modal-shadow);
}

.tyaha-video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tyaha-video-modal__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--tyaha-yellow);
  color: var(--tyaha-charcoal);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tyaha-video-modal__close:focus-visible {
  outline: 3px solid var(--tyaha-white);
  outline-offset: 3px;
}

body.tyaha-modal-open {
  overflow: hidden !important;
}

/* Mobile uses native scrolling and immediate content visibility. */
@media (max-width: 991px) {
  html,
  body {
    overflow-y: auto !important;
    height: auto !important;
    touch-action: pan-y !important;
  }

  .rts-cursor {
    display: none !important;
  }

  .rts-text-anim,
  .rts-text-anim *,
  .rts-slide-up-gsap,
  .rts-slide-up-gsap *,
  .rts-skew-up-gsap,
  .rts-skew-up-gsap *,
  .rts-slide-left-gsap,
  .rts-slide-left-gsap *,
  .rts-slide-right-gsap,
  .rts-slide-right-gsap *,
  .rts_hero__title,
  .rts_hero__title *,
  .hero__sub-title,
  .hero__sub-title *,
  .rts-reveal-one,
  .rts-reveal-two,
  .rts-reveal-three,
  .rts-reveal-to-bottom-wrapper,
  .counter__anim,
  .jump__anim,
  .wow {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .video-portfolio-link.thumbnail::after {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .tyaha-video-modal {
    padding: 16px;
  }

  .tyaha-video-modal__dialog {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-portfolio-link.thumbnail::after,
  .tyaha-video-modal,
  .tyaha-video-modal__dialog {
    transition: none;
  }
}

/* Six-service showcase: shared by the home and services pages. */
.tyaha-legacy-services { display: none !important; }
.tyaha-services-showcase { background: #f8f7f3; color: #171717; padding: 110px 0 105px; }
.tyaha-services-showcase .tyaha-section-kicker { color: #8a7051; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.tyaha-services-showcase .tyaha-section-title { color: #171717; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; margin: 0; text-transform: uppercase; }
.tyaha-services-showcase .tyaha-section-intro { color: #5f5c57; font-size: 17px; line-height: 1.7; margin: 24px 0 70px; max-width: 660px; }
.tyaha-service-feature { align-items: center; border-top: 1px solid #ddd8cf; padding: 54px 0; }
.tyaha-service-feature:last-of-type { border-bottom: 1px solid #ddd8cf; }
.tyaha-service-feature:nth-of-type(even) { flex-direction: row-reverse; }
.tyaha-service-feature__image { display: block; overflow: hidden; }
.tyaha-service-feature__image img { aspect-ratio: 16 / 10; display: block; object-fit: cover; transition: transform .45s ease; width: 100%; }
.tyaha-service-feature:hover .tyaha-service-feature__image img { transform: scale(1.04); }
.tyaha-service-feature__content { padding: 20px 9%; }
.tyaha-service-feature__number { color: #a78b6b; display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; margin-bottom: 18px; }
.tyaha-service-feature h3 { color: #171717; font-size: clamp(27px, 3.2vw, 46px); line-height: 1.1; margin: 0 0 18px; text-transform: uppercase; }
.tyaha-service-feature p { color: #605d58; font-size: 16px; line-height: 1.75; margin: 0; }
.tyaha-services-more { margin-top: 80px; }
.tyaha-services-more__heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 28px; }
.tyaha-services-more__heading h3 { color: #171717; font-size: clamp(28px, 3vw, 42px); margin: 0; text-transform: uppercase; }
.tyaha-services-more__heading p { color: #605d58; margin: 0; }
.tyaha-service-card { background: #fff; display: block; height: 100%; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
.tyaha-service-card:hover { box-shadow: 0 20px 35px rgba(20,20,20,.10); transform: translateY(-6px); }
.tyaha-service-card img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.tyaha-service-card__body { padding: 25px 26px 29px; }
.tyaha-service-card__number { color: #a78b6b; display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-bottom: 12px; }
.tyaha-service-card h4 { color: #171717; font-size: 23px; line-height: 1.2; margin: 0 0 13px; text-transform: uppercase; }
.tyaha-service-card p { color: #605d58; font-size: 15px; line-height: 1.65; margin: 0; }
.tyaha-process { background: #fff; padding: 105px 0 110px; }
.tyaha-process__header { align-items: end; border-bottom: 1px solid #ddd8cf; display: flex; justify-content: space-between; padding-bottom: 35px; }
.tyaha-process__header h2 { color: #171717; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin: 0; text-transform: uppercase; }
.tyaha-process__header p { color: #605d58; line-height: 1.7; margin: 0; max-width: 370px; }
.tyaha-process-grid { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); padding-top: 42px; }
.tyaha-process-step { min-height: 210px; position: relative; }
.tyaha-process-step__number { color: #e9e4dc; font-size: 72px; font-weight: 700; line-height: 1; position: absolute; right: 0; top: -10px; }
.tyaha-process-step h3 { color: #171717; font-size: 22px; margin: 42px 0 13px; position: relative; text-transform: uppercase; }
.tyaha-process-step p { color: #605d58; line-height: 1.65; margin: 0; position: relative; }
@media (max-width: 991px) { .tyaha-services-showcase, .tyaha-process { padding: 75px 0; } .tyaha-service-feature:nth-of-type(even) { flex-direction: column; } .tyaha-service-feature { padding: 36px 0; } .tyaha-service-feature__content { padding: 28px 0 0; } .tyaha-process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 575px) { .tyaha-section-intro { margin-bottom: 42px; } .tyaha-services-more { margin-top: 55px; } .tyaha-services-more__heading, .tyaha-process__header { align-items: flex-start; flex-direction: column; gap: 18px; } .tyaha-process-grid { grid-template-columns: 1fr; padding-top: 28px; } .tyaha-process-step { min-height: 160px; } }
