/* =========================================================
   BOOKING FLOW MOTION
   ========================================================= */

/* Keep it mounted so the fullscreen panel can actually transition */
.booking{
  display:block !important;
  visibility:hidden;
  pointer-events:none;
  opacity:0;
  transform:translateX(100%);
  transition:
    transform .58s cubic-bezier(.22,.78,.16,1),
    opacity .28s ease,
    visibility 0s linear .58s;
  overscroll-behavior:contain;
}

.booking.open{
  visibility:visible;
  pointer-events:auto;
  opacity:1;
  transform:translateX(0);
  transition:
    transform .58s cubic-bezier(.22,.78,.16,1),
    opacity .28s ease,
    visibility 0s;
}

/* A booking restored during page startup should already be in place on first paint. */
.booking.booking-restored,
.booking.booking-restored::before,
.booking.booking-restored .booking-top,
.booking.booking-restored .booking-wrap{
  transition:none!important;
}

.booking.booking-restored .step{
  animation:none!important;
}

/* small acid edge that travels in with the panel */
.booking::before{
  content:"";
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  z-index:20;
  background:var(--accent);
  transform:scaleY(0);
  transform-origin:top;
  transition:transform .48s cubic-bezier(.22,.78,.16,1) .18s;
  pointer-events:none;
}

.booking.open::before{
  transform:scaleY(1);
}

/* top bar arrives just after the main panel */
.booking-top{
  transform:translateY(-16px);
  opacity:0;
  transition:
    transform .42s cubic-bezier(.22,.78,.16,1) .18s,
    opacity .32s ease .18s;
}

.booking.open .booking-top{
  transform:translateY(0);
  opacity:1;
}

/* wrapper settles into place */
.booking-wrap{
  opacity:0;
  transform:translateY(18px);
  transition:
    opacity .38s ease .24s,
    transform .48s cubic-bezier(.22,.78,.16,1) .24s;
}

.booking.open .booking-wrap{
  opacity:1;
  transform:translateY(0);
}

/* progress bar */
.progress{
  overflow:hidden;
}

.progress div{
  position:relative;
  transition:
    background .28s ease,
    color .28s ease,
    border-color .28s ease,
    transform .28s ease;
}

.progress div.active{
  transform:translateY(-1px);
}

.progress div.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:rgba(0,0,0,.34);
  transform-origin:left;
  animation:bookingProgressLine .36s cubic-bezier(.22,.78,.16,1) both;
}

@keyframes bookingProgressLine{
  from{transform:scaleX(0)}
  to{transform:scaleX(1)}
}

/* Step motion */
.step{
  display:none;
  will-change:transform,opacity;
}

.step.active{
  display:block;
}

.step.step-enter-forward{
  animation:bookingStepForward .46s cubic-bezier(.22,.78,.16,1) both;
}

.step.step-enter-back{
  animation:bookingStepBack .46s cubic-bezier(.22,.78,.16,1) both;
}

.step.step-enter-open{
  animation:bookingStepOpen .52s cubic-bezier(.22,.78,.16,1) both;
}

.step.step-enter-success{
  animation:bookingStepSuccess .56s cubic-bezier(.22,.78,.16,1) both;
}

@keyframes bookingStepForward{
  0%{
    opacity:0;
    transform:translateX(42px);
  }
  100%{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes bookingStepBack{
  0%{
    opacity:0;
    transform:translateX(-42px);
  }
  100%{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes bookingStepOpen{
  0%{
    opacity:0;
    transform:translateX(28px) translateY(8px);
  }
  100%{
    opacity:1;
    transform:translateX(0) translateY(0);
  }
}

@keyframes bookingStepSuccess{
  0%{
    opacity:0;
    transform:translateY(22px) scale(.985);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* Headline has a small secondary entrance */
.step.step-animating h2{
  animation:bookingHeadingIn .46s cubic-bezier(.22,.78,.16,1) both;
}

@keyframes bookingHeadingIn{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Stagger the selectable cards */
.step.step-animating .option{
  opacity:0;
  animation:bookingChoiceIn .38s cubic-bezier(.22,.78,.16,1) forwards;
}

.step.step-animating .option:nth-child(1){animation-delay:.055s}
.step.step-animating .option:nth-child(2){animation-delay:.095s}
.step.step-animating .option:nth-child(3){animation-delay:.135s}
.step.step-animating .option:nth-child(4){animation-delay:.175s}
.step.step-animating .option:nth-child(5){animation-delay:.215s}
.step.step-animating .option:nth-child(6){animation-delay:.255s}

@keyframes bookingChoiceIn{
  from{
    opacity:0;
    transform:translateY(14px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Time step pieces */
.step.step-animating .days{
  animation:bookingMinorIn .4s cubic-bezier(.22,.78,.16,1) .06s both;
}

.step.step-animating .time-label,
.step.step-animating .times,
.step.step-animating .form,
.step.step-animating .summary,
.step.step-animating .booking-actions{
  animation:bookingMinorIn .42s cubic-bezier(.22,.78,.16,1) both;
}

.step.step-animating .time-label:nth-of-type(1){animation-delay:.08s}
.step.step-animating .times:nth-of-type(1){animation-delay:.11s}
.step.step-animating .time-label:nth-of-type(2){animation-delay:.14s}
.step.step-animating .times:nth-of-type(2){animation-delay:.17s}
.step.step-animating .time-label:nth-of-type(3){animation-delay:.20s}
.step.step-animating .times:nth-of-type(3){animation-delay:.23s}
.step.step-animating .form{animation-delay:.06s}
.step.step-animating .summary{animation-delay:.11s}
.step.step-animating .booking-actions{animation-delay:.18s}

@keyframes bookingMinorIn{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Controls feel a little more physical */
.option,
.day,
.time-btn,
.back,
.booking-actions .primary{
  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

@media(hover:hover){
  .option:hover,
  .day:hover,
  .time-btn:hover{
    transform:translateY(-2px);
  }

  .booking-actions .primary:hover,
  .back:hover{
    transform:translateY(-2px);
  }

  .close{
    transition:transform .26s ease,color .2s ease;
  }

  .close:hover{
    transform:rotate(90deg);
    color:var(--accent);
  }
}

/* success */
.step[data-step="6"].step-animating .success-badge{
  animation:bookingBadgeIn .52s cubic-bezier(.22,.78,.16,1) .08s both;
}

@keyframes bookingBadgeIn{
  0%{
    opacity:0;
    transform:scale(.65) rotate(-10deg);
  }
  72%{
    transform:scale(1.08) rotate(2deg);
  }
  100%{
    opacity:1;
    transform:scale(1) rotate(0);
  }
}

/* Tablet / mobile */
@media(max-width:760px){
  .booking{
    /* still lateral, but shorter travel feels better on phones */
    transform:translateX(100%);
  }

  .booking-wrap{
    width:calc(100% - 28px);
    padding:26px 0 54px;
  }

  .progress{
    display:flex !important;
    grid-template-columns:none !important;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    margin-bottom:36px;
  }

  .progress::-webkit-scrollbar{
    display:none;
  }

  .progress div{
    flex:0 0 auto;
    min-width:112px;
    padding:11px 12px;
  }

  .options{
    grid-template-columns:1fr;
  }

  .option{
    min-height:108px;
  }

  .booking-actions{
    width:100%;
  }

  .booking-actions .primary{
    flex:1 1 170px;
  }

  .back{
    flex:0 0 auto;
  }

  .step.step-enter-forward{
    animation-name:bookingStepForwardMobile;
  }

  .step.step-enter-back{
    animation-name:bookingStepBackMobile;
  }

  @keyframes bookingStepForwardMobile{
    from{opacity:0;transform:translateX(24px)}
    to{opacity:1;transform:translateX(0)}
  }

  @keyframes bookingStepBackMobile{
    from{opacity:0;transform:translateX(-24px)}
    to{opacity:1;transform:translateX(0)}
  }
}

@media(max-width:480px){
  .booking-top{
    height:64px;
  }

  .booking-wrap{
    width:calc(100% - 24px);
    padding-top:22px;
  }

  .progress{
    margin-bottom:30px;
  }

  .progress div{
    min-width:104px;
    font-size:8px;
  }

  .step h2{
    margin-bottom:26px;
  }

  .booking-actions{
    gap:7px;
  }

  .booking-actions .primary,
  .back{
    padding-left:16px;
    padding-right:16px;
  }
}


/* booking brand alignment */
.booking-brand{
  display:flex;
  align-items:center;
  gap:12px;
  height:100%;
}

.booking-brand-mark{
  flex:0 0 30px;
  width:30px !important;
  height:38px;
  display:flex !important;
  align-items:center;
  justify-content:center;
}

.booking-brand-mark svg{
  display:block;
  width:30px !important;
  height:38px !important;
  object-fit:contain;
  overflow:visible;
}

.booking-brand-title{
  display:flex;
  align-items:center;
  height:38px;
  color:var(--ink);
  font-size:10px;
  font-weight:800;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  padding-top:1px;
}

/* desktop back-to-top control */
.back-to-top{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:55;
  width:58px;
  height:58px;
  display:none;
  grid-template-rows:1fr auto;
  place-items:center;
  padding:8px 6px 7px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(10,10,10,.88);
  color:var(--ink);
  backdrop-filter:blur(14px);
  opacity:0;
  visibility:hidden;
  transform:translateY(14px);
  transition:
    opacity .24s ease,
    transform .32s cubic-bezier(.22,.78,.16,1),
    visibility .24s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.back-to-top.visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.back-to-top-arrow{
  display:block;
  font-size:23px;
  line-height:1;
  transform:translateY(1px);
  transition:transform .28s cubic-bezier(.22,.78,.16,1);
}

.back-to-top-label{
  font-size:7px;
  font-weight:900;
  line-height:1;
  letter-spacing:.16em;
}

@media(hover:hover){
  .back-to-top:hover{
    background:var(--accent);
    color:var(--accent-ink);
    border-color:var(--accent);
  }

  .back-to-top:hover .back-to-top-arrow{
    transform:translateY(-3px);
  }
}

@media(min-width:1000px){
  .back-to-top{
    display:grid;
  }
}

/* never float the site control over the appointment overlay */
body.booking-open .back-to-top{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none;
}

@media(max-width:480px){
  .booking-brand{
    gap:9px;
  }

  .booking-brand-mark{
    flex-basis:27px;
    width:27px !important;
    height:34px;
  }

  .booking-brand-mark svg{
    width:27px !important;
    height:34px !important;
  }

  .booking-brand-title{
    height:34px;
    font-size:9px;
    letter-spacing:.15em;
  }
}


/* EN / BG language switch */
.lang-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:0 0 auto;
  height:34px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.018);
}

.lang-btn{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.42);
  padding:0;
  min-width:21px;
  font:inherit;
  font-size:9px;
  font-weight:900;
  line-height:1;
  letter-spacing:.10em;
  cursor:pointer;
  transition:color .18s ease,transform .18s ease;
}

.lang-btn.active{
  color:var(--accent);
}

.lang-divider{
  color:rgba(255,255,255,.18);
  font-size:9px;
  line-height:1;
}

@media(hover:hover){
  .lang-btn:hover{
    color:var(--ink);
    transform:translateY(-1px);
  }
}

.booking-top-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.lang-switch--booking{
  height:32px;
  background:rgba(255,255,255,.012);
}

/* Bulgarian copy is naturally wider than English in a few hero-scale areas */
html[lang="bg"] .hero h1{
  font-size:clamp(60px,8.35vw,126px);
  line-height:.82;
  letter-spacing:-.075em;
}

html[lang="bg"] .services-title,
html[lang="bg"] .section-title{
  letter-spacing:-.055em;
}

html[lang="bg"] .cta-big{
  letter-spacing:-.055em;
}

@media(max-width:950px){
  .nav-links{
    gap:12px;
  }
}

@media(max-width:620px){
  .nav-inner{
    gap:8px;
  }

  .prime-logo{
    width:128px !important;
  }

  .nav-links{
    gap:7px;
  }

  .lang-switch{
    height:30px;
    padding:0 6px;
    gap:3px;
  }

  .lang-btn{
    min-width:18px;
    font-size:8px;
  }

  .nav-book-btn{
    padding:10px 9px !important;
    font-size:9px !important;
    letter-spacing:.045em !important;
  }

  .booking-top-actions{
    gap:8px;
  }

  .lang-switch--booking{
    display:none;
  }

  html[lang="bg"] .hero h1{
    font-size:clamp(46px,12.4vw,64px);
    line-height:.82;
  }
}


/* Keep hero artwork visually identical when switching language.
   Text can reflow, but the image frame/crop stays fixed. */
@media(min-width:951px){
  .hero-main{
    height:700px !important;
    min-height:700px !important;
  }

  .hero-copy{
    height:700px;
    min-height:0;
    overflow:visible;
  }

  .hero-art{
    height:700px !important;
    min-height:700px !important;
    background-position:center center !important;
    background-size:cover !important;
  }
}

@media(max-width:950px){
  .hero-main{
    height:auto !important;
    min-height:0 !important;
  }

  .hero-copy{
    height:auto;
  }

  .hero-art{
    height:440px !important;
    min-height:440px !important;
    background-position:center center !important;
    background-size:cover !important;
  }
}

@media(max-width:620px){
  .hero-art{
    height:390px !important;
    min-height:390px !important;
  }
}


/* Photo-free hero artwork: graphic PRIME brand panel */
.hero-art--graphic{
  min-height:100%;
  position:relative;
  overflow:hidden;
  border-left:1px solid var(--line);
  background:
    radial-gradient(circle at 68% 28%,rgba(184,239,43,.075),transparent 25%),
    radial-gradient(circle at 28% 76%,rgba(255,255,255,.028),transparent 22%),
    #0a0a0a !important;
  filter:none !important;
  isolation:isolate;
}

.hero-art--graphic::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 42px,
      rgba(255,255,255,.018) 42px 43px
    );
  pointer-events:none;
}

.hero-art--graphic::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.01),transparent 38%,rgba(0,0,0,.18)),
    linear-gradient(90deg,rgba(0,0,0,.18),transparent 24%);
  pointer-events:none;
}

.hero-graphic-grid{
  position:absolute;
  inset:20px;
  z-index:1;
  border:1px solid rgba(255,255,255,.055);
}

.hero-graphic-grid::before,
.hero-graphic-grid::after{
  content:"";
  position:absolute;
  background:rgba(255,255,255,.045);
}

.hero-graphic-grid::before{
  left:50%;
  top:0;
  bottom:0;
  width:1px;
}

.hero-graphic-grid::after{
  left:0;
  right:0;
  top:50%;
  height:1px;
}

.hero-graphic-word{
  position:absolute;
  left:-22px;
  bottom:42px;
  z-index:1;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(86px,8.6vw,142px);
  font-weight:700;
  line-height:.8;
  letter-spacing:-.07em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.075);
  text-stroke:1px rgba(255,255,255,.075);
  transform:rotate(-90deg) translateY(100%);
  transform-origin:left bottom;
  user-select:none;
}

.hero-symbol-frame{
  position:absolute;
  left:50%;
  top:49%;
  z-index:3;
  width:min(64%,300px);
  aspect-ratio:1 / 1;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 50% 50%,rgba(184,239,43,.04),transparent 42%),
    rgba(7,7,7,.58);
  box-shadow:
    0 24px 70px rgba(0,0,0,.36),
    inset 0 0 0 1px rgba(255,255,255,.012);
  transition:
    transform .55s cubic-bezier(.22,.78,.16,1),
    border-color .35s ease;
}

.hero-symbol-frame::before{
  content:"";
  position:absolute;
  inset:12px;
  border:1px solid rgba(255,255,255,.035);
  pointer-events:none;
}

.hero-symbol-frame .hero-watermark{
  position:static !important;
  width:42% !important;
  color:var(--ink) !important;
  opacity:.96 !important;
  z-index:2 !important;
  pointer-events:none;
  transition:
    transform .55s cubic-bezier(.22,.78,.16,1),
    color .35s ease;
}

.hero-symbol-frame .hero-watermark svg{
  display:block;
  width:100%;
  height:auto;
}

.hero-frame-cut{
  position:absolute;
  z-index:4;
  display:block;
  background:var(--accent);
}

.hero-frame-cut--a{
  width:72px;
  height:4px;
  left:-1px;
  top:-1px;
}

.hero-frame-cut--b{
  width:4px;
  height:72px;
  right:-1px;
  bottom:-1px;
}

.hero-graphic-slash{
  position:absolute;
  z-index:2;
  width:1px;
  height:190px;
  background:linear-gradient(
    180deg,
    transparent,
    rgba(184,239,43,.68) 25%,
    rgba(184,239,43,.15) 78%,
    transparent
  );
  transform:rotate(34deg);
  pointer-events:none;
}

.hero-graphic-slash--one{
  right:15%;
  top:5%;
}

.hero-graphic-slash--two{
  left:17%;
  bottom:4%;
  height:128px;
  opacity:.46;
}

.hero-corner-mark{
  position:absolute;
  z-index:2;
  width:58px;
  height:58px;
  pointer-events:none;
}

.hero-corner-mark::before,
.hero-corner-mark::after{
  content:"";
  position:absolute;
  background:rgba(255,255,255,.13);
}

.hero-corner-mark::before{
  width:58px;
  height:1px;
}

.hero-corner-mark::after{
  width:1px;
  height:58px;
}

.hero-corner-mark--tl{
  left:20px;
  top:20px;
}

.hero-corner-mark--br{
  right:20px;
  bottom:20px;
  transform:rotate(180deg);
}

.hero-dot-matrix{
  position:absolute;
  right:31px;
  bottom:31px;
  z-index:2;
  width:42px;
  display:grid;
  grid-template-columns:repeat(4,4px);
  gap:7px;
}

.hero-dot-matrix i{
  width:4px;
  height:4px;
  border-radius:50%;
  background:rgba(184,239,43,.52);
  display:block;
}

@media(hover:hover){
  .hero-art--graphic:hover .hero-symbol-frame{
    transform:translate(-50%,-50%) rotate(-2deg) scale(1.025);
    border-color:rgba(184,239,43,.42);
  }

  .hero-art--graphic:hover .hero-watermark{
    color:var(--accent) !important;
    transform:scale(1.035);
  }
}

@media(max-width:950px){
  .hero-art--graphic{
    min-height:390px !important;
    height:390px !important;
    border-left:0;
    border-top:1px solid var(--line);
  }

  .hero-symbol-frame{
    width:min(48%,250px);
  }

  .hero-graphic-word{
    font-size:100px;
    bottom:30px;
  }
}

@media(max-width:620px){
  .hero-art--graphic{
    min-height:310px !important;
    height:310px !important;
  }

  .hero-graphic-grid{
    inset:12px;
  }

  .hero-symbol-frame{
    width:190px;
  }

  .hero-frame-cut--a{
    width:52px;
  }

  .hero-frame-cut--b{
    height:52px;
  }

  .hero-graphic-word{
    font-size:72px;
    left:-12px;
    bottom:24px;
  }

  .hero-graphic-slash--one{
    right:12%;
    top:-4%;
  }

  .hero-graphic-slash--two{
    left:12%;
    bottom:-6%;
  }

  .hero-corner-mark{
    width:38px;
    height:38px;
  }

  .hero-corner-mark::before{
    width:38px;
  }

  .hero-corner-mark::after{
    height:38px;
  }

  .hero-corner-mark--tl{
    left:12px;
    top:12px;
  }

  .hero-corner-mark--br{
    right:12px;
    bottom:12px;
  }

  .hero-dot-matrix{
    right:19px;
    bottom:19px;
  }
}
