/* Fixnow reference-style animated hero slider */
.fixnow-hero-stage {
  position: relative;
  background: #263e85;
  color: #fff;
  isolation: isolate;
}
.fixnow-hero-stage .topbar {
  position: relative;
  z-index: 5;
  background: rgba(24, 48, 111, 0.42);
  color: #fff;
}
.fixnow-hero-stage .topbar-inner {
  min-height: 62px;
  font-size: 14px;
  font-weight: 700;
}
.fixnow-hero-stage .topbar strong {
  font-size: 22px;
  letter-spacing: 0.01em;
}
.fixnow-hero-stage .site-header {
  position: relative;
  z-index: 10;
  background: transparent;
  box-shadow: none;
  padding: 0 0 0;
}
.fixnow-hero-stage .header-inner {
  min-height: 74px;
  width: min(1280px, calc(100% - 40px));
  background: #111027;
  border-radius: 4px;
  padding: 0 24px;
  gap: 22px;
}
.fixnow-hero-stage .brand {
  align-self: stretch;
  margin-left: -24px;
  padding: 0 22px;
  background: #080916;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.fixnow-hero-stage .brand-mark {
  background: transparent;
  color: #fff;
  font-size: 29px;
  width: 28px;
}
.fixnow-hero-stage .primary-nav {
  gap: clamp(10px, 1.65vw, 30px);
  color: #d4d7e6;
  font-size: 14px;
  white-space: nowrap;
}
.fixnow-hero-stage .primary-nav > a:not(.nav-call) {
  padding: 24px 0;
}
.fixnow-hero-stage .primary-nav > a:not(.nav-call):after {
  bottom: 13px;
}
.fixnow-hero-stage .primary-nav > a.active {
  color: var(--secondary-color);
}
.fixnow-hero-stage .nav-search {
  display: grid;
  place-items: center;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 18px;
  font-size: 20px;
}
.hero-slider {
  height: clamp(650px, calc(100vh - 55px), 850px);
  min-height: 650px;
  position: relative;
  display: block;
  overflow: hidden;
  background: #293f88;
  color: #fff;
  isolation: isolate;
}
.hero-slider .hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/background/2.jpg");; background-image: image-set(url("../images/background/2__w768.webp") 1x, url("../images/background/2__w1440.webp") 2x);
  background-size: cover;
  background-position: center center;
}
.hero-slider:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Blue brand overlay matching the Fixnow reference hero treatment. */
  background: linear-gradient(
    112deg,
    rgba(29, 48, 125, 0.94) 0%,
    rgba(35, 67, 145, 0.88) 42%,
    rgba(40, 83, 166, 0.78) 68%,
    rgba(27, 49, 126, 0.88) 100%
  );
  pointer-events: none;
}
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.75s ease,
    visibility 0.75s;
  overflow: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide-inner {
  height: 100%;
  position: relative;
  width: min(1280px, calc(100% - 40px));
  display: flex;
  align-items: center;
}
.hero-slide-copy {
  position: relative;
  z-index: 3;
  width: min(560px, 53%);
  padding-bottom: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition:
    opacity 0.7s ease 0.25s,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.hero-slide.is-active .hero-slide-copy {
  opacity: 1;
  transform: translateY(0);
}
.hero-slide-copy h1,
.hero-slide-copy h2 {
  font-size: clamp(38px, 3.2vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 22px;
  max-width: 560px;
}
.hero-slide-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: #f0f2fb;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-slide-copy .button {
  border-radius: 2px;
  min-height: 47px;
  padding: 13px 32px;
  font-size: 15px;
}
.hero-slide .hero-person {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -3px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  opacity: 0;
  transform: translateX(80px);
  transition:
    opacity 0.8s ease 0.15s,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.hero-slide.is-active .hero-person {
  opacity: 1;
  transform: translateX(0);
}
.hero-person-older,
.hero-person-young {
  height: min(96%, 790px);
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: bottom center;
}
.hero-person-young {
  height: min(96%, 790px);
  right: 2% !important;
}
.hero-circle-image {
  position: absolute;
  right: 5%;
  top: 50%;
  width: clamp(280px, 31vw, 490px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: translate(70px, -45%) scale(0.88);
  opacity: 0;
  transition:
    opacity 0.75s ease 0.2s,
    transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.hero-slide.is-active .hero-circle-image {
  opacity: 1;
  transform: translate(0, -45%) scale(1);
}
.hero-appointment {
  position: absolute;
  right: 0;
  top: 28%;
  z-index: 5;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--secondary-color);
  color: #fff;
  padding: 22px 13px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-controls {
  position: absolute;
  right: max(calc((100% - 1280px) / 2), 20px);
  bottom: 0;
  z-index: 6;
  display: flex;
  gap: 7px;
}
.hero-controls button {
  width: 52px;
  height: 52px;
  border: 0;
  background: #fff;
  color: #172044;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.hero-controls button:hover {
  background: var(--secondary-color);
  color: #fff;
}
.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 6;
}
.hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--secondary-color);
}
.hero-progress.is-running span {
  animation: fixnow-progress 5.8s linear forwards;
}
@keyframes fixnow-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@media (max-width: 1000px) {
  .fixnow-hero-stage .header-inner {
    padding: 0 16px;
  }
  .fixnow-hero-stage .brand {
    margin-left: -16px;
    padding: 0 14px;
  }
  .fixnow-hero-stage .primary-nav {
    gap: 12px;
    font-size: 12px;
  }
  .hero-slide-copy {
    width: 54%;
  }
  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    font-size: clamp(34px, 4.2vw, 46px);
  }
  .hero-person-older,
  .hero-person-young {
    height: 88%;
    max-width: 48%;
  }
  .hero-person-young {
    right: 0 !important;
  }
  .hero-circle-image {
    right: 1%;
    width: 36vw;
  }
}
@media (max-width: 760px) {
  .fixnow-hero-stage .topbar-inner {
    min-height: 44px;
    font-size: 10px;
  }
  .fixnow-hero-stage .topbar strong {
    font-size: 13px;
  }
  .fixnow-hero-stage .header-inner {
    min-height: 64px;
    width: calc(100% - 24px);
    border-radius: 3px;
  }
  .fixnow-hero-stage .brand {
    font-size: 21px;
  }
  .fixnow-hero-stage .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .fixnow-hero-stage .primary-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% - 1px);
    padding: 12px;
    background: #111027;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    white-space: normal;
  }
  .fixnow-hero-stage .primary-nav.is-open {
    display: flex;
  }
  .fixnow-hero-stage .primary-nav > a:not(.nav-call) {
    padding: 10px 8px;
  }
  .fixnow-hero-stage .primary-nav > a:not(.nav-call):after {
    display: none;
  }
  .fixnow-hero-stage .nav-search {
    display: none;
  }
  .hero-slider {
    height: 690px;
    min-height: 690px;
  }
  .hero-slider .hero-background {
    background-position: 42% center;
  }
  .hero-slide-inner {
    width: calc(100% - 32px);
    align-items: flex-start;
    padding-top: 68px;
  }
  .hero-slide-copy {
    width: 100%;
    max-width: 500px;
    padding-bottom: 0;
  }
  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    font-size: clamp(32px, 8vw, 44px);
    max-width: 400px;
    margin-bottom: 15px;
  }
  .hero-slide-copy p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 20px;
  }
  .hero-slide-copy .button {
    min-height: 42px;
    padding: 10px 22px;
  }
  .hero-slide .hero-person {
    height: 360px;
    width: auto;
    max-width: 88vw;
    right: -12px;
    bottom: 0;
    object-fit: contain;
    object-position: bottom right;
    opacity: 0.96;
  }
  .hero-person-older,
  .hero-person-young {
    height: 360px;
    max-width: 88vw;
  }
  .hero-person-young {
    right: 0 !important;
  }
  .hero-circle-image {
    width: 250px;
    right: 8px;
    top: auto;
    bottom: 25px;
    transform: translate(45px, 0) scale(0.88);
  }
  .hero-slide.is-active .hero-circle-image {
    transform: translate(0, 0) scale(1);
  }
  .hero-appointment {
    top: 35%;
    padding: 17px 9px;
    font-size: 11px;
  }
  .hero-controls {
    right: 16px;
  }
  .hero-controls button {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 420px) {
  .hero-slider {
    height: 650px;
    min-height: 650px;
  }
  .hero-slide-inner {
    padding-top: 48px;
  }
  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    font-size: 32px;
  }
  .hero-slide .hero-person {
    height: 320px;
    right: -20px;
    max-width: 92vw;
  }
  .hero-person-older,
  .hero-person-young {
    height: 320px;
  }
  .hero-circle-image {
    width: 220px;
    bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-copy,
  .hero-slide .hero-person,
  .hero-circle-image {
    transition: none;
  }
  .hero-progress.is-running span {
    animation: none;
    width: 100%;
  }
}

/* Layout update: topbar + navbar overlay the hero; shared 1160px content width */
.fixnow-hero-stage .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: transparent;
}
.fixnow-hero-stage .topbar-inner {
  width: min(1160px, calc(100% - 40px));
  max-width: 1160px;
  margin-inline: auto;
}
.fixnow-hero-stage .site-header {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  width: min(1160px, calc(100% - 40px));
  max-width: 1160px;
  margin-inline: auto;
  z-index: 21;
}
.fixnow-hero-stage .header-inner {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}
.fixnow-hero-stage .header-inner {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}
.hero-slide-inner {
  width: min(1160px, calc(100% - 40px));
  max-width: 1160px;
  margin-inline: auto;
}
@media (max-width: 760px) {
  .fixnow-hero-stage .site-header {
    top: 44px;
    width: calc(100% - 24px);
  }
  .fixnow-hero-stage .topbar-inner {
    width: calc(100% - 24px);
  }
  .hero-slide-inner {
    width: calc(100% - 32px);
  }
}
@media (max-width: 420px) {
  .fixnow-hero-stage .site-header {
    top: 44px;
  }
}

/* Final header adjustment: transparent topbar and four-item navigation */
.fixnow-hero-stage .topbar {
  background: transparent !important;
}
.fixnow-hero-stage .topbar-inner,
.fixnow-hero-stage .header-inner,
.hero-slide-inner {
  width: min(1160px, calc(100% - 40px));
  max-width: 1160px;
  margin-inline: auto;
}
.fixnow-hero-stage .primary-nav {
  gap: clamp(20px, 3vw, 42px);
}
.fixnow-hero-stage .nav-search {
  display: none !important;
}
@media (max-width: 760px) {
  .fixnow-hero-stage .topbar-inner,
  .fixnow-hero-stage .header-inner {
    width: calc(100% - 24px);
  }
  .hero-slide-inner {
    width: calc(100% - 32px);
  }
}

.site-header .header-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto !important;
  box-sizing: border-box;
}
