/* Index-specific polish overrides */

/* Keep hero media purely decorative and hide native controls on WebKit UIs */
#bgVideo1 {
  pointer-events: none;
}

#bgVideo1::-webkit-media-controls,
#bgVideo1::-webkit-media-controls-enclosure,
#bgVideo1::-webkit-media-controls-panel,
#bgVideo1::-webkit-media-controls-play-button,
#bgVideo1::-webkit-media-controls-start-playback-button,
#bgVideo1::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

/* Match all gradient text to the 466k+ metric gradient */
:root {
  --metric-text-gradient: linear-gradient(
    90deg,
    rgba(196, 245, 232, 0.92) 0%,
    rgba(120, 231, 201, 0.92) 38%,
    #176c39 68%,
    #176c39 100%
  );
}

.metric-big,
.services-banner-title,
#services .section-title-dark,
.jobs-section-head h2,
.jobs-section-head .section-title-dark,
.jobs-section-head .section-title,
.jobs-banner-title {
  background: var(--metric-text-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Smoother score gradient on operator profile */
.skill-hud-score-num {
  background: linear-gradient(
    100deg,
    rgba(214, 248, 238, 0.96) 0%,
    rgba(146, 228, 205, 0.94) 46%,
    rgba(62, 165, 118, 0.95) 76%,
    #176c39 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Gradient progress bars for Safety / Speed / Quality */
.skill-hud {
  --hud-bar-gradient: linear-gradient(
    90deg,
    rgba(127, 225, 194, 0.95) 0%,
    rgba(65, 174, 125, 0.96) 52%,
    #176c39 100%
  );
}

.skill-hud-bar i {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1) !important;
}

.skill-hud-bar i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: var(--hud-bar-gradient) !important;
  box-shadow: 0 0 10px rgba(23, 108, 57, 0.35);
}

.metric-mini-top {
  background: none !important;
  color: #176c39 !important;
  -webkit-text-fill-color: #176c39 !important;
  opacity: 1 !important;
}

/* Coverage title: same gradient family, lower initial brightness */
.slab-grid-content .section-title {
  background: linear-gradient(
    90deg,
    rgba(37, 86, 61, 0.82) 0%,
    rgba(23, 108, 57, 0.88) 42%,
    #176c39 70%,
    #176c39 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Hero call button: green-tinted glass */
.hero-actions > a:first-child {
  background: #176c39 !important;
  color: #e5e7eb !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(2, 8, 5, 0.34);
}

.hero-actions > a:first-child:hover {
  background: #145f32 !important;
}

/* Remove header focus/outline flashes */
.site-header .site-header-inner,
.site-header.is-docked .site-header-inner,
.site-header.is-undocked .site-header-inner,
html.header-hover .site-header.is-docked .site-header-inner {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.site-header a:focus,
.site-header a:focus-visible,
.site-header button:focus,
.site-header button:focus-visible,
.mobile-burger:focus,
.mobile-burger:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

/* Exact brand-color social glyphs (footer + mobile menu) */
.social-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: #176c39;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.social-icon--phone {
  -webkit-mask-image: url("/static/assets/phone.svg");
  mask-image: url("/static/assets/phone.svg");
}

.social-icon--whatsapp {
  -webkit-mask-image: url("/static/assets/whtasapp.svg");
  mask-image: url("/static/assets/whtasapp.svg");
}

.social-icon--instagram {
  -webkit-mask-image: url("/static/assets/instagram.svg");
  mask-image: url("/static/assets/instagram.svg");
}

/* Mobile menu button aligned with site button language */
.mobile-burger {
  border: 0;
  background: var(--bg);
  box-shadow: none;
}

.mobile-burger:hover {
  background: var(--bg);
}

.site-header.mobile-open .mobile-burger {
  background: var(--bg);
}

/* Three solid burger lines (no outline icon treatment) */
.burger-lines {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0;
  transition: background .18s ease;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0;
  transition: top .18s ease, transform .18s ease, opacity .18s ease;
}

.burger-lines::before {
  top: -6px;
}

.burger-lines::after {
  top: 6px;
}

/* Keep burger as 3 lines when menu is open */
.site-header.mobile-open .burger-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.mobile-open .burger-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header.mobile-open .burger-lines {
  background: transparent;
}

/* Give links breathing room from the expanded wordmark */
@media (min-width: 901px) {
  .main-nav {
    margin-left: 28px;
    gap: 8px;
  }
}

/* Solid mobile drawer style */
@media (max-width: 900px) {
  .site-header.mobile-open .site-header-inner {
    background: var(--bg) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .site-header .mobile-panel {
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .mobile-panel .mobile-nav {
    background: var(--bg);
    border-radius: 0;
    padding: 14px 6px 18px;
    gap: 8px;
    min-height: calc(100svh - var(--header-panel-top) - 28px);
    max-height: calc(100svh - var(--header-panel-top) - 28px);
    overflow: hidden;
  }

  .mobile-link,
  .mobile-login,
  .mobile-cta {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 12px 8px !important;
  }

  .mobile-link,
  .mobile-login,
  .mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: rgba(229, 231, 235, 0.95) !important;
    font-weight: 700;
  }

  .mobile-link > span,
  .mobile-login > span,
  .mobile-cta > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: #176c39;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }

  .mobile-icon-right {
    opacity: 0.9;
    background-color: rgba(229, 231, 235, 0.92) !important;
  }

  .mobile-icon--world {
    -webkit-mask-image: url("/static/assets/tabler/world.svg");
    mask-image: url("/static/assets/tabler/world.svg");
  }

  .mobile-icon--tool {
    -webkit-mask-image: url("/static/assets/tabler/tool.svg");
    mask-image: url("/static/assets/tabler/tool.svg");
  }

  .mobile-icon--briefcase {
    -webkit-mask-image: url("/static/assets/tabler/briefcase.svg");
    mask-image: url("/static/assets/tabler/briefcase.svg");
  }

  .mobile-icon--login {
    -webkit-mask-image: url("/static/assets/tabler/login-2.svg");
    mask-image: url("/static/assets/tabler/login-2.svg");
  }

  .mobile-icon--user-plus {
    -webkit-mask-image: url("/static/assets/tabler/user-plus.svg");
    mask-image: url("/static/assets/tabler/user-plus.svg");
  }

  .mobile-icon--chevron {
    -webkit-mask-image: url("/static/assets/tabler/chevron-right.svg");
    mask-image: url("/static/assets/tabler/chevron-right.svg");
  }

  .mobile-actions {
    border-top: 0 !important;
    padding-top: 6px !important;
  }

  .mobile-social {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 14px;
    padding: 20px 8px 6px;
  }

  .mobile-social-link {
    width: auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
  }

  .mobile-social-link:hover {
    transform: none;
    background: transparent;
  }

  .mobile-link:hover,
  .mobile-login:hover,
  .mobile-cta:hover {
    background: #12161b !important;
    transform: none !important;
  }
}

/* Remove outline/border treatment from button-like controls */
button,
.header-cta,
.mobile-cta,
.mobile-login,
.mobile-link,
.feature-btn,
.services-cta-btn,
.jobs-cta-btn,
.footer-icon-link,
.svc-item-jump {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.footer-icon-link {
  background: transparent !important;
  width: auto !important;
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-icon-link .social-icon,
.mobile-social-link .social-icon {
  background-color: #176c39 !important;
}

/* Employment banner: desktop requirements overlay on worker image */
.jobs-banner-requirements {
  display: none;
}

@media (min-width: 901px) {
  .jobs-banner-requirements {
    position: absolute;
    right: 128px;
    bottom: 28px;
    z-index: 30;
    display: block;
    width: min(320px, 42%);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(11, 13, 15, 0.72);
    color: rgba(229, 231, 235, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .jobs-banner-requirements-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin-bottom: 6px;
  }

  .jobs-banner-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .jobs-banner-requirements li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }

  .jobs-banner-requirements li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 999px;
    background: #176c39;
    flex: 0 0 auto;
  }
}

/* Show labels next to contact/social icons using aria-label text */
.mobile-social-link::after,
.footer-icon-link::after {
  content: attr(aria-label);
  color: rgba(229, 231, 235, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
