/* WOOX custom tweaks on top of the Webflow export — minimal, do NOT override Webflow grids */

/* team & testimonial photos: fill container, keep faces centred */
.team-image,
.team-member-image {
  aspect-ratio: 3 / 4;
  width: 100%;
}
.team-image,
.team-member-image {
  overflow: hidden;
}
.team-image img,
.team-member-image img,
.writer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.4) contrast(1.03);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
  will-change: transform;
}
.team-list-card:hover .team-member-image img,
.team-card-block:hover .team-image img,
.team-card:hover .team-image img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.05);
}
.team-list-card,
.team-card-block .team-card {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
.team-list-card:hover,
.team-card-block:hover .team-card {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}
/* social icons subtle reveal on card hover */
.team-list-card .our-team-social-block,
.team-card .our-team-social-block {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.team-list-card:hover .our-team-social-block,
.team-card-block:hover .our-team-social-block {
  transform: translateY(-2px);
}

/* ===== Unified testimonial cards (same style everywhere) ===== */
.woox-review-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
  transform: none !important;
}
.woox-review-card {
  border: 1px solid rgba(243, 243, 243, 0.1);
  border-radius: 18px;
  padding: 28px;
  background: rgba(243, 243, 243, 0.02);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.woox-review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(243, 243, 243, 0.28);
}
.woox-review-quote {
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.92;
  text-transform: none;
  margin: 0;
}
.woox-review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.woox-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.woox-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
}
.woox-review-name {
  font-weight: 700;
}
.woox-review-role {
  font-size: 12px;
  opacity: 0.55;
  text-transform: none;
}

/* ===== Trust / certification badges (own centered row under footer) ===== */
.woox-footer-certs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 40px auto 0;
  padding: 28px 24px 4px;
  border-top: 1px solid rgba(243, 243, 243, 0.08);
}
.woox-certs-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.45;
}
.woox-certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.woox-cert-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid rgba(243, 243, 243, 0.16);
  border-radius: 999px;
  opacity: 0.7;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.woox-cert-badge:hover {
  opacity: 1;
  border-color: rgba(243, 243, 243, 0.4);
}

/* ===== Testimonials: native template card in a uniform grid (no scatter/empty) ===== */
/* kill the template's huge 160px gap between heading and cards */
.testimonials-section-wrapper {
  grid-row-gap: 44px !important;
  row-gap: 44px !important;
  gap: 44px !important;
}
.woox-tgrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
  transform: none !important;
  align-items: stretch !important;
}
.woox-tgrid .testimonials-card-wrapper,
.woox-tgrid .testimonials-card {
  position: static !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  margin: 0 !important;
}
/* equal-height cards + author pinned to bottom → uniform size & padding */
.woox-tgrid .testimonials-card-wrapper {
  display: flex !important;
  height: 100% !important;
}
.woox-tgrid .testimonials-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 28px !important;
  gap: 20px !important;
}
.woox-tgrid .writer-info-wrapper {
  margin-top: auto !important;
}

/* ===== Tech-stack marquee (auto-scroll, no overlap) ===== */
.tool-use-marquee-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tool-use-marquee-wrapper:hover .tool-use-marquee {
  animation-play-state: paused;
}
.tool-use-marquee {
  display: flex !important;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 24px;
  padding-right: 24px;
  grid-template-columns: none !important;
  animation: woox-marquee 32s linear infinite;
  will-change: transform;
}
@keyframes woox-marquee {
  to { transform: translateX(-100%); }
}
.tool-use-card {
  flex: 0 0 auto;
  width: 230px;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .tool-use-marquee { animation: none; }
}

/* service cards: 2-column grid, cards hug their content (no stretch, no empty gaps) */
.service-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: start !important;
}
.service-card {
  min-height: 0 !important;
  justify-content: flex-start !important;
  gap: 22px !important;
}
.service-card .primary-button {
  margin-top: 4px;
}
/* heading card hugs content too → no empty strip under the grid */
.service-section-heading-card {
  min-height: 0 !important;
}
@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr !important; }
}

/* ===== Clean CMS work grid (homepage) ===== */
.woox-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 991px) { .woox-work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .woox-work-grid { grid-template-columns: 1fr; } }
.woox-work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(243, 243, 243, 0.02);
  border: 1px solid rgba(243, 243, 243, 0.08);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.woox-work-card:hover { transform: translateY(-6px); border-color: rgba(243, 243, 243, 0.28); }
.woox-work-media { aspect-ratio: 16 / 11; overflow: hidden; }
.woox-work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.woox-work-card:hover .woox-work-media img { transform: scale(1.06); }
.woox-work-media { position: relative; }
.woox-work-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #f3f3f3;
}
.woox-work-meta { padding: 20px 22px 24px; }
.woox-work-card .work-card-heading { font-size: 1.2rem; margin: 0 0 10px; }
.woox-work-sum {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.6;
  text-transform: none;
  margin: 0 0 16px;
}
.woox-work-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.woox-work-more img { width: 12px; height: 12px; }
.woox-work-card:hover .woox-work-more { opacity: 1; }

/* ===== Homepage team: responsive grid (handles many) ===== */
.team-card-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .team-card-wrapper { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .team-card-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-card-wrapper { grid-template-columns: 1fr; } }
.woox-team-card {
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
}
.woox-team-card .woox-team-media { aspect-ratio: 3 / 4; overflow: hidden; }
.woox-team-card .woox-team-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(0.35);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
.woox-team-card:hover .woox-team-media img { transform: scale(1.06); filter: grayscale(0); }
.woox-team-card .woox-team-body { padding: 18px 18px 20px; }
.woox-team-card .woox-team-role { font-size: 12px; opacity: 0.6; margin-bottom: 6px; }
.woox-team-card .woox-team-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.woox-team-card .woox-team-bio { font-size: 13px; opacity: 0.7; line-height: 1.5; }

/* hide template demo sections / placeholder logos that aren't worth maintaining */
.our-story-section,
.client-section,
.work-progress-section,
.writer-logo-01,
.writer-logo-02,
.banner-heading-text._02,
.banner-heading-text._03 {
  display: none !important;
}

/* ===== Custom WebGL hero ===== */
.banner-section.woox-hero-relative {
  position: relative;
  background-image: none !important;
}
/* inner-page banners: reveal the title the template hides with opacity:0, and trim empty padding */
.banner-section h1,
.banner-section h2,
.banner-section .banner-heading-text,
.banner-section .banner-heading-block > p {
  opacity: 1 !important;
}
.banner-section {
  padding-top: 130px !important;
  padding-bottom: 90px !important;
}
/* template's animated border lines + hero blur are replaced by the WebGL bg */
.banner-bg-border {
  display: none !important;
}
.nav-banner-wrapper > .bg-blur-block {
  display: none !important;
}
.woox-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.woox-hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.banner-section .banner-wrapper,
.banner-section .w-layout-blockcontainer {
  position: relative;
  z-index: 3;
}
.banner-heading-text .kin-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.1;
}
.banner-heading-text .kin {
  display: inline-block;
  will-change: transform;
  transform: translateY(110%);
  opacity: 0;
  animation: kinUp 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes kinUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.banner-heading-text._01.leaving .kin {
  animation: kinDown 0.42s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
@keyframes kinDown {
  to {
    transform: translateY(-110%);
    opacity: 0;
  }
}

/* ===== Article (blog/case/service detail) — readable, news-site typography ===== */
.detail-rich-text {
  text-transform: none !important;
  font-family: Inter, sans-serif !important;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
  letter-spacing: 0 !important;
  color: rgba(243, 243, 243, 0.82) !important;
  max-width: 720px;
}
.detail-rich-text * {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.detail-rich-text p {
  margin: 0 0 1.45em !important;
  font-family: Inter, sans-serif !important;
}
/* lead paragraph — larger, brighter (news-site style) */
.detail-rich-text > p:first-child {
  font-size: 1.28rem !important;
  line-height: 1.6 !important;
  color: #f3f3f3 !important;
  margin-bottom: 1.6em !important;
}
.detail-rich-text h2,
.detail-rich-text h3 {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 1.5rem !important;
  margin: 1.8em 0 0.6em !important;
  color: #f3f3f3 !important;
}
.detail-rich-text strong { color: #f3f3f3 !important; font-weight: 700; }
.detail-rich-text ul,
.detail-rich-text ol { margin: 0 0 1.45em 1.2em; }
.detail-rich-text li { margin-bottom: 0.5em; }
.detail-rich-text blockquote {
  border-left: 3px solid rgba(243, 243, 243, 0.3);
  padding-left: 20px;
  margin: 1.6em 0;
  font-style: italic;
  opacity: 0.85;
}

/* ===== Scroll reveal (fade-up). Only active when JS adds .reveal-on to <html> —
   so if JS fails, all content stays visible (no hidden-content trap). ===== */
.reveal-on .woox-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-on .woox-reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on .woox-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Accessibility: visible keyboard focus (WCAG 2.4.7) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.nav-link:focus-visible,
.locale-link:focus-visible {
  outline: 2px solid #f3f3f3 !important;
  outline-offset: 3px;
  border-radius: 6px;
  cursor: auto !important;
}

/* ===== Award-level interaction layer ===== */
/* custom cursor */
@media (pointer: fine) {
  body.woox-has-cursor,
  body.woox-has-cursor a,
  body.woox-has-cursor button,
  body.woox-has-cursor .primary-button,
  body.woox-has-cursor .secondary-button,
  body.woox-has-cursor .nav-link {
    cursor: none;
  }
}
#woox-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #f3f3f3;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
}
#woox-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(243, 243, 243, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  mix-blend-mode: difference;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
#woox-cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(243, 243, 243, 0.12);
  border-color: rgba(243, 243, 243, 0.9);
}

/* premium micro-interactions */
.service-card,
.blog-card,
.team-card,
.tool-use-card,
.pricing-3d-card,
.work-image-link {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform;
}
.service-card:hover,
.blog-card:hover,
.team-card:hover,
.tool-use-card:hover,
.work-image-link:hover {
  transform: translateY(-6px);
}
@media (prefers-reduced-motion: reduce) {
  #woox-cursor-dot,
  #woox-cursor-ring { display: none; }
  * { scroll-behavior: auto !important; }
}


/* prevent any horizontal overflow (long localized strings widening the page) */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== Lenis smooth-scroll required styles ===== */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* hero heading: allow long localized titles to wrap instead of clipping off-screen */
.banner-heading-text,
.banner-heading-text._01 {
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 7vw, 7.7vw);
  line-height: 1.1;
}
@media (max-width: 767px) {
  .banner-heading-text,
  .banner-heading-text._01 {
    font-size: clamp(1.6rem, 8.5vw, 2.6rem);
  }
}
.locale-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}
.locale-switcher .locale-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(243, 243, 243, 0.55);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.locale-switcher .locale-link:hover {
  color: #f3f3f3;
}
.locale-switcher .locale-link.active {
  color: #f3f3f3;
  background: rgba(243, 243, 243, 0.08);
}

/* inner-page heading band reusing banner styles */
.page-banner {
  padding-top: 160px;
  padding-bottom: 40px;
  text-align: center;
}
.page-section {
  padding: 60px 0;
}
.prose p {
  margin-bottom: 1em;
  line-height: 1.7;
}
.prose h2,
.prose h3 {
  margin: 1.2em 0 0.5em;
}

/* =====================================================================
   CONTACT — live Google Maps embed (Tashkent) with a glass address card
   overlaid at the bottom. Template shipped a wrong-city (Arvada) demo image
   with a broken srcset; inject.ts swaps the <a> for this .woox-map div.
   ===================================================================== */
.contact-map.woox-map {
  display: block !important;
  position: relative;
  padding: 0 !important;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  min-height: 0 !important;
}
.contact-map.woox-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05) brightness(0.98);
}
.contact-map.woox-map .address-link-wrapper {
  position: absolute !important;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: auto !important;
  padding: 0 !important;
  background: none !important;
  z-index: 2;
}
.contact-map.woox-map .contact-link.address {
  position: static !important;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}
/* fallback if any stray template map <img> survives */
.contact-map .image { display: none !important; }

/* =====================================================================
   MOBILE ADAPTATION — consolidated responsive fixes (≤767 / ≤480)
   ===================================================================== */
/* kill any stray horizontal scroll site-wide */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 767px) {
  /* --- hero kinetic heading: let multi-word phrases wrap, never clip --- */
  .banner-heading-text .kin-wrap {
    overflow: visible;          /* the reveal mask clipped wide phrases on mobile */
    white-space: normal;
    max-width: 100%;
  }
  .banner-heading-text .kin {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .banner-section {
    padding-top: 112px !important;
    padding-bottom: 64px !important;
  }

  /* --- hero / banner counters: 2-col that fits, numbers not cut --- */
  .banner-counter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px 14px !important;
    width: 100%;
  }
  .counter-number-block { flex-wrap: nowrap; }
  .counter-number-01, .counter-number-02, .counter-number-03 {
    font-size: 2.4rem !important;
    line-height: 1.05;
  }
  .why-us-counter-text-01, .why-us-counter-text-02, .why-us-counter-text-03 {
    font-size: 12px !important;
    line-height: 1.3;
  }

  /* --- contact info cards + form: single column, nothing cut --- */
  .contact-link-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .contact-component .w-layout-grid,
  .contact-form-grid { grid-template-columns: 1fr !important; }
  .contact-map.woox-map { height: 240px; }
  .contact-map.woox-map .contact-link.address { padding: 12px 16px !important; gap: 12px; }

  /* --- article / detail headings: wrap, scale down, never overflow --- */
  .detail-heading,
  .portfolio-other-detail-heading,
  .blog-detail-heading,
  h1.detail-heading {
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .detail-rich-text img,
  .detail-image,
  .detail-rich-text { max-width: 100%; }

  /* --- generic section heading clamp so nothing overflows --- */
  .section-heading,
  .banner-section h1,
  .page-banner h1 { overflow-wrap: anywhere; }

  /* --- footer: comfortable stacking --- */
  .footer-link-grid,
  .footer-menu-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px 24px; }
}

@media (max-width: 480px) {
  .counter-number-01, .counter-number-02, .counter-number-03 {
    font-size: 2rem !important;
  }
  /* pricing cards full width */
  .pricing-card-wrapper,
  .pricing-grid { grid-template-columns: 1fr !important; }
}
