/* ========== Sialkot Central – Custom styles ========== */

/* Hero gradient overlay */
.hero-gradient {
  background-image: linear-gradient(-0.61deg, rgba(0, 0, 0, 0) 31.5%, rgba(0, 0, 0, 0.3) 90.223%);
}

.header-cta {
  border: 0.5px solid rgba(255, 255, 255, 0.9);
}

/* Header: transparent over hero, dark when scrolled */
.component-header {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.09);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.component-header.header-scrolled {
  background: #1a1a1a;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
}

/* Logo visible on dark header: force white */
.header-logo-img {
  filter: brightness(0) invert(1);
}

/* Footer logo: keep original (dark) on light background */
.footer-logo-img {
  filter: none;
}

/* Mobile menu: clearer dividers and tap targets */
.nav-mobile-link {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.125rem;
  line-height: 1.5;
}

.nav-mobile-link:last-of-type {
  border-bottom: none;
}

/* Mobile nav open: show menu */
.nav-menu {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Our Projects dropdown: trigger highlight when open */
.nav-dropdown.group:hover .nav-dropdown-trigger,
.nav-dropdown.group:focus-within .nav-dropdown-trigger {
  color: #D29806;
  border-bottom: 1px solid #D29806;
}

.nav-dropdown-panel {
  pointer-events: none;
}

.nav-dropdown.group:hover .nav-dropdown-panel,
.nav-dropdown.group:focus-within .nav-dropdown-panel {
  pointer-events: auto;
}

#excellence-carousel::-webkit-scrollbar {
  display: none;
}

/* Booking form: category option selected state (radio dot) */
.booking-category-option:has(input:checked) .booking-radio-dot,
.booking-category-option .booking-radio-dot {
  transition: opacity 0.2s ease;
}
.booking-category-option .booking-radio-dot {
  opacity: 0;
}
.booking-category-option:has(input:checked) .booking-radio-dot {
  opacity: 1;
}

/* Multi-step invalid (e.g. no category selected) */
.booking-step-invalid .booking-category-option {
  border-color: rgba(220, 38, 38, 0.5);
}

@media (max-width: 1023px) {
  #nav-mobile-panel {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #nav-mobile-panel::-webkit-scrollbar {
    display: none;
  }

  #nav-mobile-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-toggle-open {
    display: flex !important;
  }

  .nav-toggle-close {
    display: none !important;
  }

  header.menu-open .nav-toggle-open {
    display: none !important;
  }

  header.menu-open .nav-toggle-close {
    display: flex !important;
  }

  /* Mobile: Our Projects dropdown list */
  .nav-mobile-projects-list {
    max-height: 0;
    transition: max-height 0.25s ease;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
    border-left: 3px solid transparent;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
    margin-bottom: 4px;
  }

  .nav-mobile-projects.open .nav-mobile-projects-list {
    max-height: 520px;
    border-left-color: #D29806;
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .nav-mobile-project-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 12px 16px 12px 28px;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav-mobile-project-link:last-child {
    border-bottom: none;
  }

  .nav-mobile-project-link:hover,
  .nav-mobile-project-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav-mobile-projects.open .nav-mobile-projects-trigger {
    color: #D29806;
  }

  .nav-mobile-projects-list .nav-mobile-link {
    min-height: 0;
  }

  .nav-mobile-projects.open #nav-mobile-projects-chevron {
    transform: rotate(180deg);
  }
}

/* Mobile-only: improve readability and touch targets */
@media (max-width: 639px) {
  .component-hero {
    min-height: 60vh;
    padding-bottom: 1.5rem;
  }

  .component-hero .relative.z-10 {
    padding-top: 5rem;
  }

  .component-feature {
    overflow-x: hidden;
  }

  /* Feature block images: prevent horizontal overflow on mobile */
  .component-feature .flex-col .overflow-hidden {
    max-width: 100%;
  }

  .component-feature-img {
    max-width: 100%;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  .component-feature .flex-col.h-\[652px\],
  .component-feature .flex-col.lg\:flex-row.h-\[652px\],
  .component-feature .flex-col.lg\:flex-row-reverse.items-stretch {
    height: auto !important;
    min-height: 0 !important;
  }
}
