/* Serviqo site utilities — edit here instead of inline styles */

/* Home hero: animated background (soft teal / tech gradient, like brand “Technologies” energy) */
.section_home-hero {
  position: relative;
  overflow: hidden;
  background-color: #f3fafb;
  background-image:
    radial-gradient(ellipse 100% 80% at 15% 15%, rgba(8, 151, 176, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 70% at 92% 8%, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 60% at 75% 95%, rgba(8, 151, 176, 0.12), transparent 55%),
    linear-gradient(128deg, #f5fbfc 0%, #eef6ff 38%, #f0fdfc 72%, #f8f9ff 100%);
  background-size: 220% 220%, 200% 200%, 200% 200%, 400% 400%;
  background-position: 0% 20%, 100% 0%, 60% 100%, 0% 50%;
  animation: home-hero-bg-drift 18s ease-in-out infinite alternate;
}

@keyframes home-hero-bg-drift {
  0% {
    background-position: 0% 20%, 100% 0%, 60% 100%, 0% 50%;
  }
  100% {
    background-position: 100% 40%, 0% 30%, 40% 0%, 100% 50%;
  }
}

.section_home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 42%,
    rgba(240, 253, 252, 0.45) 100%
  );
  animation: home-hero-bg-shimmer 22s ease-in-out infinite alternate;
}

@keyframes home-hero-bg-shimmer {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
  }
}

.section_home-hero .home-hero_wrapper {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section_home-hero {
    animation: none;
    background-size: auto, auto, auto, 100% 100%;
    background-position: center;
  }

  .section_home-hero::before {
    animation: none;
  }
}

/* Home hero: real photo replaces SVG mockup */
.section_home-hero .home-hero_right {
  width: 100%;
  max-width: min(36rem, 100%);
  margin-inline: auto;
}

.section_home-hero .home-hero_image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(520px, 70vh);
  object-fit: cover;
  object-position: center 28%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.12), 0 0 0 1px rgba(8, 151, 176, 0.08);
}

@media (max-width: 991px) {
  .section_home-hero .home-hero_image {
    max-height: 420px;
    object-position: center center;
  }

  /* main.css keeps .home-hero_content as a row flex until 767px — too narrow on phones */
  .home-hero_content {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
  }

  .home-hero_right {
    max-width: 100% !important;
    width: 100%;
  }
}

.h3-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.h3-card-title--lg {
  font-size: 1.1rem;
}

.h2-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
}

/* Services listing cards (/services/) */
.h2-service-card {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

/* ── Service pages (web-development, etc.): hero + feature rows ── */
.feature-hero_content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .feature-hero_content {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.feature-hero_left {
  min-width: 0;
}

.feature-hero_right {
  min-width: 0;
}

.feature-hero_right .feature-hero_img {
  width: 100%;
  display: block;
}

/* Scoped to service detail rows only — home .section_features also uses .features_content */
.section_feature .features_content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .section_feature .features_content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .section_feature--reverse .features_left {
    order: 2;
  }

  .section_feature--reverse .features_right {
    order: 1;
  }
}

.section_feature .features_left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.section_feature .features_right {
  min-width: 0;
}

.section_feature .features_right .features_img {
  width: 100%;
  display: block;
}

/* ── About page: Mission & values (about-2_right) ── */
.section_about-2 {
  background: linear-gradient(180deg, #f5fbfc 0%, #f8f9ff 50%, #f0f9fb 100%);
}

.about-2_content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
}

@media (min-width: 900px) {
  .about-2_content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
  }
}

.about-values-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.about-value-item {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(8, 151, 176, 0.12);
  box-shadow: 0 2px 12px rgba(8, 151, 176, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.about-value-item:hover {
  border-color: rgba(8, 151, 176, 0.35);
  box-shadow: 0 10px 32px rgba(8, 151, 176, 0.1);
  transform: translateY(-2px);
}

.about-value-item__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #0897b0 0%, #067a90 100%);
  border-radius: 10px;
  line-height: 1;
}

.about-value-item__body {
  min-width: 0;
  padding-top: 0.1rem;
}

.about-value-item__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.about-value-item__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5c5c6e;
}

/* ── Home: Our Services — layout + card density (overrides main.css) ── */
.section_features {
  overflow: visible;
}

.section_features .features_content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
}

.section_features .features_top {
  max-width: 48rem;
}

.section_features .features_bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.section_features .features_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  width: 100%;
}

/* Last card (IT Outsourcing): own row, centered when grid has multiple columns */
.section_features .features_cards .features_card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 22rem;
  text-align: center;
  align-items: center;
}

.section_features .features_cards .features_card:last-child .features_card-text {
  align-items: center;
}

.section_features .features_card {
  gap: 1rem;
  row-gap: 1rem;
  grid-row-gap: 1rem;
  min-width: 0;
  justify-content: flex-start;
}

.section_features .features_card-text {
  min-width: 0;
  width: 100%;
}

.section_features .features_card-text > .text-2xl {
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.section_features .features_card-intro {
  padding-right: 0;
}

/* main.css hides .features_bottom.pc below 768px but no .mb markup exists */
@media screen and (max-width: 767px) {
  .section_features .features_bottom.pc {
    display: flex !important;
    flex-direction: column;
  }

  .section_features .features_cards {
    grid-template-columns: 1fr;
  }

  .section_features .features_card {
    width: 100%;
    max-width: none;
  }

  .section_features .features_cards .features_card:last-child {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    text-align: left;
    align-items: flex-start;
  }

  .section_features .features_cards .features_card:last-child .features_card-text {
    align-items: flex-start;
  }
}

/* ── Phones & tablets: keep page content off the viewport edges ─────────── */
@media screen and (max-width: 991px) {
  .w-layout-blockcontainer {
    padding-left: max(1.25rem, 4vw, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, 4vw, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
}

/* main.css sets global horizontal padding to 0.75rem below 479px — too tight */
@media screen and (max-width: 479px) {
  body {
    --_quix-s-variables---global-variables--global-padding: 1.125rem !important;
  }
}

/* ── Careers page — responsive grids & imagery ─────────────────────────── */
.page-careers .about-hero_top {
  overflow-wrap: anywhere;
}

@media screen and (max-width: 767px) {
  .page-careers .about-hero_top {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

.careers-hero-photo-section {
  padding: 0 0 clamp(2.5rem, 10vw, 5rem);
}

.careers-hero-img {
  width: 100%;
  height: clamp(220px, 52vh, 520px);
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.careers-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media screen and (max-width: 991px) {
  .careers-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* “Why join”: copy before photo collage on small screens */
  .careers-split--photos-first > div:first-child {
    order: 2;
  }

  .careers-split--photos-first > div:nth-child(2) {
    order: 1;
  }

  .careers-split--text-first img {
    max-height: min(420px, 55vh);
    width: 100%;
    object-fit: cover;
  }
}

.careers-why-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
  border-radius: 16px;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .careers-why-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(200px, 42vw);
  }

  .careers-why-mosaic > div:first-child {
    grid-row: auto !important;
    min-height: 220px;
  }
}

.careers-life-band {
  padding: 0 0 clamp(2.5rem, 10vw, 5rem);
  background: #f8f9ff;
}

.careers-life-intro {
  padding-top: clamp(2.5rem, 10vw, 5rem);
}

.careers-life-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
  border-radius: 16px;
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .careers-life-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(130px, 26vw));
  }

  .careers-life-mosaic > div {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 120px;
  }
}

@media screen and (max-width: 479px) {
  .careers-life-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(160px, 42vw);
  }
}

@media screen and (max-width: 767px) {
  .page-careers .careers-mobile-comfort {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .page-careers .section_about.careers-mobile-comfort {
    padding-top: 0 !important;
  }
}
