/* Kremena Atanasova — one-pager customizations on top of the Avlon template */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 12px; }

/* Bulgarian is sentence-case: kill the template's Title Case on headings */
h1, h2, h3, h4, h5,
.heading-one, .heading-two, .heading-three, .heading-four, .heading-five,
.heading-six.change-text, .marquee-text, .marquee-text-2 {
  text-transform: none;
}

/* Text logo must not look like a default link */
.home-three-logo, .logo-link { text-decoration: none; }

/* Nav lockup: gold KA monogram above the stacked wordmark */
.home-three-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.k-logo-mark { width: 44px; height: auto; display: block; }

/* Text wordmark replacing the AVLON SVG logo */
.k-logo {
  font-family: Marcellus, serif; /* aliased to Prata */
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
  width: min-content; /* wraps to two stacked lines inside the bordered box */
  line-height: 1.75;
}

/* Hero CTA under the slide heading */
.k-hero-cta { display: flex; justify-content: center; margin-top: 2.4rem; }
.k-hero-cta .button-style {
  color: #fff;
  border-color: #fff;
  background-color: transparent;
}
.k-hero-cta .button-style:hover {
  background-color: #fff;
  color: #1a1a1a;
}

/* Hero headline: Bulgarian lines are long — cap line length so the h1
   wraps into balanced lines instead of spanning the whole viewport */
.home-three-slider-heading h1 {
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* Legibility scrim: slides 2-3 use light photos; demo assumed dark ones */
.home-three-slider-text {
  background: radial-gradient(ellipse 62% 55% at 50% 58%, rgba(24, 14, 9, 0.38), rgba(24, 14, 9, 0) 78%);
}
.home-three-slider-main-text-wrapper h1,
.home-three-slider-main-text-wrapper .heading-five {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 3px rgba(0, 0, 0, 0.25);
}
.k-hero-cta .button-style { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2); }

/* Mobile kicker: small enough to hold one line (no widow) */
@media (max-width: 991px) {
  .home-three-slider-main-text-wrapper .heading-five.chnage-style {
    font-size: 11px;
    letter-spacing: 0.3em;
    white-space: nowrap;
  }
}

/* The <picture> wrapper must be invisible to the template's layout */
.home-three-slider-image picture { display: contents; }

/* Single static hero: wide (21:9) extended studio image, subject centered */
.home-three-banner-slider .w-slide .home-three-slider-image img { object-position: 50% 38%; }

/* Desktop editorial composition: subject far right, delicate text low-left
   over the empty wall — quiet luxury, no overlap with the portrait. */
@media (min-width: 992px) {
  .home-three-banner-slider .w-slide .home-three-slider-image img {
    object-position: 0% 38%;
  }
  .home-three-slider-text {
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 9vw;
    padding-bottom: 13vh;
    padding-top: 110px;
    background: linear-gradient(90deg, rgba(24, 14, 9, 0.45) 0%, rgba(24, 14, 9, 0.16) 38%, rgba(24, 14, 9, 0) 62%);
  }
  .home-three-slider-main-text-wrapper { max-width: 620px; }
  .home-three-slider-main-text-wrapper .heading-five.chnage-style,
  .home-three-slider-heading h1 {
    text-align: left;
  }
  .home-three-slider-heading h1 {
    margin-left: 0;
    font-size: clamp(38px, 3.3vw, 60px);
    line-height: 1.3;
    letter-spacing: 0.014em;
    max-width: 21ch;
  }
  .home-three-slider-main-text-wrapper .heading-five.chnage-style {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.42em;
    opacity: 0.82;
  }
  .home-three-slider-upper-text { justify-content: flex-start; }
  .home-three-slider-upper-text .heading-three-slider-line:first-child { display: none; }
  .home-three-slider-upper-text .heading-three-slider-line {
    flex: 0 0 48px;
    width: 48px;
    margin-left: 16px;
    opacity: 0.55;
  }
  .k-hero-cta { justify-content: flex-start; margin-top: 2rem; }
}

/* One slide — the slider chrome is off (re-enable if a second slide returns) */
.home-three-banner-left-arrow,
.home-three-banner-right-arrow { display: none !important; }

/* Subtle Ken Burns breathing so the static hero still feels alive */
@keyframes k-hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.home-three-banner-slider .w-slide .home-three-slider-image img {
  animation: k-hero-zoom 20s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .home-three-banner-slider .w-slide .home-three-slider-image img { animation: none; }
}

/* About cards: calm hover reveal for the Виж button and the marquee ribbon.
   (Replaces the template's IX2 cursor-follow, which lagged and looked glitchy.) */
.home-three-about-box,
.home-three-about-box * { cursor: pointer !important; } /* template hid the native cursor */
.home-three-about-box .home-three-image-view-button {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-three-about-box:hover .home-three-image-view-button {
  opacity: 1;
  transform: scale(1);
}
/* JS follow mode: the circle tracks the pointer (set via inline transform) */
.home-three-about-box.k-follow .home-three-about-view-button-wrapper,
.home-three-about-box.k-follow .home-three-image-view-button { pointer-events: none; }
.home-three-about-box.k-follow .home-three-about-view-button-wrapper {
  position: absolute;
  inset: 0;
  display: block;
}
.home-three-about-box.k-follow .home-three-image-view-button {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  transition: opacity 0.25s ease; /* transform is owned by the script */
}
.home-three-about-box .home-three-about-image-merquee-wrapper {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.home-three-about-box:hover .home-three-about-image-merquee-wrapper { opacity: 1; }

/* Gentle photo zoom on card hover (replaces the IX2 version) */
.home-three-about-image { overflow: hidden; }
.home-three-about-image > img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-three-about-box:hover .home-three-about-image > img { transform: scale(1.045); }

/* Intro paragraph inserted in the about section */
.k-about-intro {
  max-width: 680px;
  margin: 1.6rem auto 0;
  text-align: center;
}

/* Inserted section headers (results, testimonials) */
.k-sec-head { padding-top: 3.5rem; }
.k-sec-head h2 { margin-top: 0.6rem; }
.k-sec-head-dark div,
.k-sec-head-dark h2 { color: #fff; }

/* Trust-card icons: keep them tidy at 81px */
.home-three-beauty-item img[src*="/icons/"] {
  width: 81px;
  height: 81px;
  object-fit: contain;
}

/* Golden-ratio motif replaces the template's makeup-prop backgrounds
   (brushes photo in Контакт; powder brush + lipstick smear in Процедури).
   Desktop-only, matching the template's own behavior. */
.home-three-help-slider { background-image: none; } /* lipstick smear, off theme */

/* Big slider photos: template stretched them (demo images matched the box
   natively); ours have varied aspects — cover-fit with an upper focal bias */
.home-three-help-left-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

/* Slimmer services slider (desktop): the template reserved a 913px mask for
   925x793 photos, leaving a dead zone. Capped heights, tighter right column,
   arrows paired in their own strip right under the content. */
@media (min-width: 992px) {
  #proceduri-detail .home-three-help-slider,
  #proceduri-detail .w-slider-mask { height: auto; }
  #proceduri-detail .home-three-help-heading h2 { font-size: 42px; line-height: 1.25; }
  #proceduri-detail .home-three-help-slider { margin-top: -22px; }
  #proceduri-detail .w-slider-mask { padding-bottom: 78px; }
  #proceduri-detail .home-three-help-left-image-wrapper {
    height: 540px;
    background-color: #f4e9e3;
    padding: 26px;
  }
  #proceduri-detail .home-three-right-main-image-wrapper {
    height: 240px;
    overflow: hidden;
    background-color: #f4e9e3;
    padding: 14px;
  }
  #proceduri-detail .home-three-right-image-text .heading-five:first-child {
    font-size: 28px;
  }
  #proceduri-detail .home-three-right-image-text p {
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  #proceduri-detail .home-three-right-image-text .heading-five:last-child {
    font-size: 15px;
    letter-spacing: 0.08em;
    opacity: 0.72;
  }
  #proceduri-detail .home-three-right-main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  #proceduri-detail .home-three-help-left-arrow,
  #proceduri-detail .home-three-help-right-arrow {
    top: auto;
    bottom: 20px;
    width: 72px;
    height: 54px;
  }
  #proceduri-detail .home-three-help-left-arrow { left: 60%; right: auto; }
  #proceduri-detail .home-three-help-right-arrow { left: calc(60% + 92px); right: auto; }
}

@media (min-width: 992px) {
  .home-three-makeup {
    background-image: url('/assets/kremena/icons/phi-motif.svg');
    background-position: -80px calc(100% + 70px);
    background-size: 580px auto;
    background-repeat: no-repeat;
  }
  .home-three-service {
    background-image: url('/assets/kremena/icons/phi-motif.svg');
    background-position: right -90px top 150px;
    background-size: 640px auto;
    background-repeat: no-repeat;
  }
}

/* Service slider: the curtain-wipe overlays are keyed to the template's original
   3 slides via IX2; with 8 slides they never wipe away — disable them. */
.home-three-help-slider .home-three-help-left-image-overlay { display: none !important; }

/* Testimonials: centered, visible prev/next controls under the review */
#otzivi .w-slider { padding-bottom: 96px; }
#otzivi .right-arrow-next {
  top: auto;
  bottom: 8px;
  width: auto;
  height: auto;
  border: 1px solid rgba(102, 58, 48, 0.45);
  padding: 13px 30px;
  transition: background-color 0.25s ease;
}
#otzivi .right-arrow-next.w-slider-arrow-left { left: calc(50% - 128px); right: auto; }
#otzivi .right-arrow-next.w-slider-arrow-right { left: calc(50% + 14px); right: auto; }
#otzivi .right-arrow-next .body-font {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#otzivi .right-arrow-next:hover { background-color: #663a30; }
#otzivi .right-arrow-next:hover .body-font { color: #fff; }

/* Testimonials: drop the demo rotating badge (baked English circular text) */
.home-two-testimonial-design-wrapper { display: none !important; }

/* Contact CTA: keep the paragraph clear of the absolute collage photos */
.home-three-makeup .home-three-makeup-heading + p,
.home-three-makeup p.text-align-center {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
