/*
 * KK Fashion additions, loaded after the template's style.css. The only edits
 * to that file itself are two background images removed along with the
 * theme's unused stock photos; the service-hover one is set here instead.
 */

/* Header logo: the KK Fashion House lockup is wider than the template's, so
   it is sized by height rather than the template's fixed width. */
.home-03-logo img,
.logo-inner img {
  width: auto;
  max-width: none;
  height: 46px;
}

/* Mobile header: the template's 30px padding around a tall logo made the bar
   126px high. A short, wide logo and slimmer padding bring it to about 58px. */
.activemobile {
  padding: 10px 0;
}
.mobile-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 38px;
}

/* "How an order works" cards: the hover photo, now one of the owner's. */
.service-hover {
  background-image: url("../img/kk/service-hover.jpg");
}

/* Footer message box: a WhatsApp icon where the template had an envelope. */
.subscribe-box .fa-whatsapp.mail-btn-3 {
  width: auto;
  font-size: 32px;
  color: #25D366;
}

/* Sidebar "Talk to us": TikTok's icon tile, alongside the template's colours. */
.tiktokbg {
  background: #000 !important;
}

/* TikTok videos are portrait; the academy's plays inline in a 9:16 frame. */
.kk-tiktok {
  max-width: 340px;
  margin: 0 auto 30px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.kk-tiktok iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.kk-tiktok-link {
  display: inline-block;
  padding: 8px 20px;
  background: #000;
  color: #fff;
  transition: all 0.3s ease-out 0s;
}
.kk-tiktok-link:hover {
  background: #DC1559;
  color: #fff;
}

/* Contact form: the line under the WhatsApp button. */
.kk-form-note {
  margin-top: 15px;
  font-size: 14px;
}

/* Side panel "Our work" thumbnails are sized 100x90 in the markup; crop the
   portrait photos to fit instead of squashing them. */
.insta-gallery img {
  object-fit: cover;
  object-position: center top;
}

/* Gallery collection filter (gallery.php), in the template's pink. */
.kk-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.kk-filter a {
  display: block;
  padding: 8px 20px;
  border: 1px solid #DC1559;
  color: #DC1559;
  font-size: 14px;
  transition: all 0.3s ease-out 0s;
}
.kk-filter a:hover,
.kk-filter a.active {
  background: #DC1559;
  color: #fff;
}
@media (max-width: 575px) {
  .kk-filter {
    gap: 8px;
  }
  .kk-filter a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Home hero on phones held upright: one tall photo per slide, edge to edge,
   with the words set over its lower third — a magazine cover rather than the
   desktop banner shrunk to a strip. A phone on its side keeps the banner,
   which suits that shape; wider screens are untouched. */
.kk-hero-caption {
  display: none;
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero-three-area {
    padding-top: 0;
    padding-bottom: 26px;
  }
  .hero-three-area .containerr {
    padding: 0;
  }
  .hero-three-area .slider-nav,
  .hero-slider-item .wrapper-slider-meta {
    display: none;
  }

  .hero-slider-item .slider-single {
    position: relative;
    overflow: hidden;
  }
  .hero-slider-item .slider-single img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 0;
  }
  /* the fade the words sit on */
  .hero-slider-item .slider-single::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 38%, rgba(10, 10, 10, 0.35) 56%, rgba(10, 10, 10, 0) 74%);
    pointer-events: none;
  }

  .kk-hero-caption {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 22px 26px;
    color: #fff;
    text-align: left;
  }
  .kk-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #d9a93c;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }
  .kk-hero-tag::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
  }
  .kk-hero-title {
    margin: 0 0 10px;
    font-family: "Prata", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
    color: #fff;
  }
  .kk-hero-text {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
    text-transform: none;
    color: rgba(255, 255, 255, 0.82);
  }
  .kk-hero-cta {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.3s ease-out 0s;
  }
  .kk-hero-cta:hover,
  .kk-hero-cta:focus {
    background: #fff;
    color: #111;
  }

  /* a slow push-in on the photo in view */
  .hero-slider-item .slick-current img {
    animation: kk-hero-zoom 8s ease-out both;
  }
}

/* Which slide is showing, as thin gold bars. main.js turns the dots on below
   768px in either orientation. */
@media (max-width: 767px) {
  .hero-slider-item .slick-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }
  .hero-slider-item .slick-dots li {
    margin: 0;
    line-height: 0;
  }
  .hero-slider-item .slick-dots button {
    width: 22px;
    height: 3px;
    padding: 0;
    border: 0;
    font-size: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-out 0s;
  }
  .hero-slider-item .slick-dots .slick-active button {
    width: 36px;
    background: #d9a93c;
  }
}

@keyframes kk-hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-item .slick-current img {
    animation: none;
  }
}
