/**
 * Homepage Header & Hero Improvements
 * Fixes ONLY for mobile and tablet (NOT desktop)
 */

/* ============================================================
   TABLET AND BELOW (1024px and smaller)
   ============================================================ */

@media (max-width: 1024px) {

  /* Header Improvements */
  .site-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  /* Hero Improvements */
  .hero {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .hero__overlay {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%);
  }

  .hero__content {
    padding: 40px 30px 30px;
  }

  .hero_bottom_section {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 30px 30px;
    gap: 30px;
  }

  .hero__right {
    max-width: 100%;
  }
}

/* ============================================================
   MOBILE (768px and smaller)
   ============================================================ */

@media (max-width: 768px) {

  .site-header {
    height: 70px;
  }

  .site-header .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero__headline {
    font-size: clamp(40px, 10vw, 60px);
    margin-bottom: 30px;
  }

  .hero__content {
    padding: 30px 20px 20px;
  }

  .hero_bottom_section {
    padding: 0 20px 30px;
  }

  .hero__stats {
    gap: 20px;
  }

  .hero__stats span {
    font-size: 13px;
    padding-right: 20px;
  }

  .hero__description {
    font-size: 16px;
  }
}

/* ============================================================
   SMALL MOBILE (480px and smaller)
   ============================================================ */

@media (max-width: 480px) {

  .site-header {
    height: 65px;
  }

  .site-logo svg,
  .site-logo img {
    max-height: 35px;
  }

  .hero__headline {
    font-size: clamp(32px, 12vw, 48px);
  }

  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero__stats span {
    border-right: none;
    padding-right: 0;
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .ButtonM {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   STUDIO SLIDER MOBILE NAVIGATION & HOVER EFFECTS
   ============================================================ */

/* Studio Slider Image Hover Effect (Desktop) */
.studio-slider__slide {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.studio-slider__slide img {
  transition: transform 0.6s ease, filter 0.3s ease;
  will-change: transform;
}

/* Zoom effect on hover (Desktop only) */
@media (min-width: 769px) {
  .studio-slider__slide:hover img {
    transform: scale(1.08);
  }

  .studio-slider__slide:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Navigation Arrows & Bullets - HIDDEN on Desktop */
.studio-slider .swiper-button-next,
.studio-slider .swiper-button-prev,
.studio-slider .swiper-pagination {
  display: none;
}

/* ============================================================
   STUDIO LIGHTBOX
   ============================================================ */

.studio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.studio-lightbox.active {
  display: flex;
  opacity: 1;
}

.studio-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.studio-lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.studio-lightbox__image-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxZoomIn 0.4s ease;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.studio-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.studio-lightbox__caption {
  margin-top: 20px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  padding: 0 20px;
}

/* Close Button */
.studio-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.studio-lightbox__close:hover {
  background: #FFC107;
  color: #000;
  transform: rotate(90deg);
}

/* Navigation Buttons */
.studio-lightbox__prev,
.studio-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.studio-lightbox__prev {
  left: 20px;
}

.studio-lightbox__next {
  right: 20px;
}

.studio-lightbox__prev:hover,
.studio-lightbox__next:hover {
  background: #FFC107;
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.studio-lightbox__prev:active,
.studio-lightbox__next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Counter */
.studio-lightbox__counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 24px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.studio-lightbox__current {
  color: #FFC107;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .studio-lightbox__content {
    padding: 60px 10px 50px;
  }

  .studio-lightbox__close {
    width: 44px;
    height: 44px;
    font-size: 20px;
    top: 15px;
    right: 15px;
  }

  .studio-lightbox__prev,
  .studio-lightbox__next {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .studio-lightbox__prev {
    left: 10px;
  }

  .studio-lightbox__next {
    right: 10px;
  }

  .studio-lightbox__caption {
    font-size: 16px;
    margin-top: 16px;
  }

  .studio-lightbox__counter {
    font-size: 14px;
    padding: 8px 20px;
    bottom: 20px;
  }

  .studio-lightbox__image {
    max-height: calc(100vh - 140px);
    border-radius: 8px;
  }
}

/* Desktop - Ensure hover effect works */
@media (min-width: 769px) {

  .studio-slider .swiper-button-next,
  .studio-slider .swiper-button-prev,
  .studio-slider .swiper-pagination {
    display: none !important;
  }
}

@media (max-width: 768px) {

  /* Show navigation on mobile */
  .studio-slider .swiper-button-next,
  .studio-slider .swiper-button-prev {
    display: flex;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  .studio-slider .swiper-button-next:after,
  .studio-slider .swiper-button-prev:after {
    font-size: 18px;
    color: #000;
    font-weight: bold;
  }

  .studio-slider .swiper-button-next:hover,
  .studio-slider .swiper-button-prev:hover {
    background: #FFC107;
    transform: scale(1.1);
  }

  .studio-slider .swiper-button-next.swiper-button-disabled,
  .studio-slider .swiper-button-prev.swiper-button-disabled {
    opacity: 0.3;
  }

  /* Pagination Bullets */
  .studio-slider .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: 0 !important;
  }

  .studio-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
  }

  .studio-slider .swiper-pagination-bullet-active {
    background: #FFC107;
    width: 24px;
    border-radius: 5px;
  }

  /* Adjust slider container on mobile */
  .studio-slider {
    padding-bottom: 20px;
  }

  /* Full width slides on mobile */
  .studio-slider__slide {
    width: 100% !important;
  }

  .page-id-302 #main-content {
    padding-top: 12%;
  }
}

@media (max-width: 480px) {

  /* Smaller arrows on very small screens */
  .studio-slider .swiper-button-next,
  .studio-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .studio-slider .swiper-button-next:after,
  .studio-slider .swiper-button-prev:after {
    font-size: 16px;
  }

  .studio-slider .swiper-pagination {
    margin-top: 24px;
  }

  .studio-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .studio-slider .swiper-pagination-bullet-active {
    width: 20px;
  }
}


/* ============================================================
   NAVIGATION ACTIVE STATE ENHANCEMENTS
   ============================================================ */

/* Desktop Navigation - Active Link Underline */
.nav-desktop .nav-link {
  position: relative;
}

.nav-desktop .nav-link::after {
  content: '';
  position: absolute;
  /*bottom: -8px;*/
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-gold, #FFC107);
  transition: width 0.3s ease;
}

.nav-desktop .nav-link:hover::after,
.nav-desktop .nav-link.active::after {
  width: 100%;
}

.nav-desktop .nav-link.active {
  color: var(--color-accent-gold, #FFC107);
  font-weight: 500;
}

/* Light header active state */
.site-header.is-light .nav-desktop .nav-link.active {
  color: var(--color-accent-gold, #FFC107);
  font-weight: 500;
}

/* Desktop navigation reset */
.nav-desktop,
.nav-desktop ul,
.nav-desktop li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top-level nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Parent item */
.nav-desktop>li {
  position: relative;
}

/* Links */
.nav-desktop .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown */
.nav-desktop .sub-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;

  min-width: 270px;
  padding: 10px 0;
  margin: 0;

  list-style: none;

  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.25s ease;

  z-index: 999;
}

/* Show dropdown */
.nav-desktop .menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  color: #000
}

/* Dropdown items */
.nav-desktop .sub-menu li {
  display: block;
  width: 100%;
}

/* Dropdown links */
.nav-desktop .sub-menu a {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border-bottom: 1px dashed #ffc010;
}

/* Mobile Navigation - Active Link */
.nav-mobile__link.active {
  color: var(--color-accent-gold, #FFC107);
  font-weight: 500;
  position: relative;
}

/* .nav-mobile__link.active::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold, #FFC107);
  font-size: 10px;
} */


/* ============================================================
   CONTACT OFFICE SECTION - MOBILE FIXES
   ============================================================ */

@media (max-width: 768px) {

  .contact-office {
    padding: 50px 20px;
  }

  .contact-office__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 0 20px;
  }

  .contact-office__eyebrow {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .contact-office__city {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-office__thumb {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 16/9;
  }

  .contact-office__city-name {
    font-size: clamp(28px, 7vw, 40px);
  }

  .contact-office__right {
    text-align: left;
    gap: 12px;
    width: 100%;
  }

  .contact-office__detail {
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-office__detail br {
    display: inline;
  }
}

@media (max-width: 480px) {

  .contact-office {
    padding: 40px 16px;
  }

  .contact-office__inner {
    padding: 0 16px;
    gap: 24px;
  }

  .contact-office__eyebrow {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .contact-office__city {
    text-align: center;
    display: flex;
    align-items: center;
    row-gap: 24px;
  }

  .contact-office__eyebrow {
    opacity: 1;
    justify-content: center;
    font-size: 16px;
  }

  .contact-office__thumb {
    max-width: 100%;
    border-radius: 8px;
  }

  .contact-office__city-name {
    font-size: clamp(24px, 8vw, 32px);
  }

  .contact-office__right {
    gap: 10px;
  }

  .contact-office__detail {
    font-size: 14px;
  }
}