/* ============================================================
   BISHNU KHADKA PORTFOLIO — CLEAN ADDITIONAL CSS
   Integrated from the user's WordPress Additional CSS (audited November 2026).
   Exact duplicate "Homepage Services Layout" block removed.
   Conflicting service-icon declarations consolidated.
   Mobile services gap placed last so it works as intended.
   Bundled into theme; after installation back up then clear the older Customizer Additional CSS.
   ============================================================ */

/* 01 — HEADER TYPOGRAPHY */
@media (min-width: 801px) {
  .site-header .container {
    width: min(1360px, calc(100% - 48px));
  }
  .nav-shell { gap: 18px; }
  .brand-mark { min-width: 150px; }
  .site-menu { gap: 16px; }
  .site-menu a { font-size: 14px; font-weight: 700; }
  .bkp-language-switcher a { font-size: 12px; padding: 9px 10px; }
  .header-cta { font-size: 13px; }
}

/* 02 — ABOUT: PHOTO, BADGE, VALUES, LINK */
.about-section .about-real-image {
  transition: transform 0.8s ease, filter 0.8s ease;
}
.about-section .about-art:hover .about-real-image {
  transform: scale(1.035);
  filter: saturate(1.08);
}
.about-section .about-caption {
  animation: bkFloat 4.5s ease-in-out infinite;
}
@keyframes bkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.about-section .about-values > div {
  transition: padding-left 0.3s ease, background-color 0.3s ease;
  border-radius: 8px;
}
.about-section .about-values > div:hover {
  padding-left: 12px;
  background-color: rgba(255, 126, 94, 0.08);
}
.about-section .text-link-large span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.about-section .text-link-large:hover span {
  transform: translate(5px, -5px);
}

/* Scroll entry reveal is provided by BK Cinematic Scroll (one owner, no duplicate). */

/* 03 — SERVICES: PREMIUM CARDS + ICONS + 3-COLUMN GRID */
.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  border: none;
}
.services-section .service-item {
  height: 100%;
}
.services-section .service-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 335px;
  padding: 32px 27px 36px;
  background: linear-gradient(145deg, #242a36 0%, #1a202b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transition: background 0.35s ease, border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.services-section .service-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 27px;
  width: 45px;
  height: 3px;
  background: #fa8561;
  border-radius: 0 0 4px 4px;
  transition: width 0.4s ease;
}
.services-section .service-item:hover {
  background: linear-gradient(145deg, #2e3542 0%, #202633 100%);
  border-color: rgba(250, 133, 97, 0.65);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25),
              0 0 25px rgba(250, 133, 97, 0.08);
}
.services-section .service-item:hover::after { width: calc(100% - 54px); }
.services-section .service-top {
  color: #fa8561;
  font-size: 14px;
  font-weight: 800;
}
.services-section .service-asterisk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(250, 133, 97, 0.1);
  border: 1px solid rgba(250, 133, 97, 0.25);
  border-radius: 50%;
  font-size: 29px;
  transition: transform 0.5s ease, background 0.3s ease;
}
.services-section .service-item:hover .service-asterisk {
  /* The last original hover rule overrides rotation with translateY. */
  transform: translateY(-4px);
  background: rgba(250, 133, 97, 0.2);
}
/* Emoji fallback only for bundled demo Services. Real Services display the
   SVG or uploaded icon selected in Dashboard → Services (no extra overlay). */
.services-section .service-item:not(.bk-service-link-card) .service-asterisk {
  font-size: 0;
}
.services-section .service-item:not(.bk-service-link-card) .service-asterisk::before {
  display: block;
  font-size: 27px;
  line-height: 1;
}
.services-section .service-item:not(.bk-service-link-card):nth-child(1) .service-asterisk::before { content: "🎬"; }
.services-section .service-item:not(.bk-service-link-card):nth-child(2) .service-asterisk::before { content: "🎨"; }
.services-section .service-item:not(.bk-service-link-card):nth-child(3) .service-asterisk::before { content: "🎵"; }
.services-section .service-item:not(.bk-service-link-card):nth-child(4) .service-asterisk::before { content: "🖼️"; }
.services-section .service-item h3 {
  color: #ffffff;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.services-section .service-item p {
  color: #b8c1d0;
  font-size: 14px;
  line-height: 1.8;
}
.services-section .demo-hint { display: none; }

/* 04 — VIEW ALL SERVICES BUTTON (ONE COPY ONLY) */
.services-section .services-action {
  margin-top: 32px;
  text-align: center;
}
.services-section .services-action a {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fa8561;
  color: #ffffff;
  transition: all 0.3s ease;
}
.services-section .services-action a:hover {
  transform: translateY(-2px);
  background: #ff7448;
  color: #ffffff;
}

/* 05 — GALLERY CAPTIONS */
.bkp-gallery-content .wp-block-gallery figure.wp-block-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.bkp-gallery-content .wp-block-gallery figure.wp-block-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 36px 14px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
}

/* 06 — HERO BUTTON / SLIDER CONTROLS SPACING */
.hero .hero-copy {
  position: relative;
  top: -55px;
}
.hero .hero-description { margin-bottom: 18px; }
.hero .hero-controls { bottom: 14px; }

/* 07 — COMPACT TESTIMONIALS */
.home .reviews-section.section-pad {
  padding-top: 55px;
  padding-bottom: 55px;
}
.home .compact-reviews > .section-kicker { margin-bottom: 12px; }
.home .compact-reviews h2 {
  margin-bottom: 24px;
  font-size: clamp(30px, 3.5vw, 45px);
}
.home .avatar-strip { gap: 12px; padding-bottom: 12px; }
.home .avatar-button { width: 48px; height: 48px; }
.home .review-focus { margin-top: 0; }
.home .review-quote-symbol {
  font-size: 52px;
  line-height: 0.8;
  margin-bottom: 10px;
}
.home .review-entry { min-height: 0; }
.home .review-entry p {
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
  margin-bottom: 14px;
}
.home .review-nav { margin-top: 16px; gap: 18px; }

/* 08 — AWARDS ORANGE LABEL RULE */
.bkast-awards-section .bkast-overline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bkast-awards-section .bkast-overline::before {
  content: "";
  display: block;
  width: 31px;
  height: 2px;
  flex: 0 0 31px;
  background: #fa8561;
}

/* 09 — PRESS / NEWS ORANGE LABEL RULE */
.bkph-home-press-head small,
.bkph-news-intro > p {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bkph-home-press-head small::before,
.bkph-news-intro > p::before {
  content: "";
  display: block;
  width: 31px;
  height: 2px;
  flex: 0 0 31px;
  background-color: #fa8561;
}

/* 10 — RESPONSIVE: TABLET, MOBILE */
@media (max-width: 991px) {
  .services-section .services-grid,
  .home-services .services-grid,
  .section-services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .services-section .services-grid,
  .home-services .services-grid,
  .section-services .services-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .services-section .services-grid,
  .home-services .services-grid,
  .section-services .services-grid {
    gap: 14px;
  }
  .services-section .service-item {
    min-height: 260px;
    padding: 27px 23px;
  }
  .hero .hero-copy { top: -25px; }
  .hero .hero-description { margin-bottom: 14px; }
  .hero .hero-controls { bottom: 12px; }
  .home .reviews-section.section-pad {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .home .compact-reviews h2 { margin-bottom: 20px; }
  .home .avatar-button { width: 44px; height: 44px; }
  .home .review-entry p { font-size: 17px; }
}

/* 11 — REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .about-section .about-caption { animation: none; }
  .about-section .about-real-image,
  .about-section .about-values > div,
  .about-section .text-link-large span,
  .services-section .service-item,
  .services-section .service-item::after,
  .services-section .service-asterisk {
    transition: none;
  }
}
