/* Prime Digital World — Mobile & Tablet Responsive Core */

/* ─────────────────────────────────────────────────────────────────────────
   1. TABLET & BELOW LAYER (max-width: 991.98px)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* --- Luxury Splash Screen Tablet Optimizations --- */
  .splash-wrap-premium {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .splash-copy-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    z-index: 10;
  }

  /* FIXED ASPECT CONTAINER: Prevents layout collapse or squishing */
  .collage-stage-premium {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 1 / 1; /* Keeps the entire grid structure a perfect square */
    margin: 0 auto;
    position: relative;
  }

  .luxury-geometry-line {
    top: 5%; left: 5%; right: 5%; bottom: 5%;
  }

  /* FIXED ASPECT CARDS: Eliminates image distortion completely */
  .card-tall { 
    width: 48%;
    height: auto !important;
    aspect-ratio: 2 / 3; /* Standard professional portrait photo ratio */
    left: 0; 
    top: 5%; 
  }
  
  .card-square-top { 
    width: 46%;
    height: auto !important;
    aspect-ratio: 1 / 1; /* Clean square crop */
    right: 0; 
    top: 0; 
  }
  
  .card-square-back { 
    display: none; /* Safely removed to declutter compact viewports */
  } 
  
  .card-landscape-front { 
    width: 52%;
    height: auto !important;
    aspect-ratio: 4 / 3; /* Traditional landscape presentation ratio */
    right: 0; 
    bottom: 5%; 
  }

  /* Navigation */
  .navbar-genz {
    padding: 3px 0;
  }

  .navbar-genz .navbar-brand img,
  .navbar-genz .site-logo {
    max-height: 72px !important;
    width: auto;
  }

  .navbar-genz .navbar-toggler {
    padding: 0.35rem 0.5rem;
  }

  .navbar-genz .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-genz .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-color, rgba(10, 10, 10, 0.08));
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .navbar-genz .navbar-nav {
    gap: 0 !important;
    width: 100%;
    text-align: left;
  }

  .navbar-genz .nav-item {
    width: 100%;
  }

  .navbar-genz .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 0.25rem !important;
    margin: 0 !important;
    font-size: 0.78rem !important;
    letter-spacing: 1.2px !important;
    border-bottom: 1px solid rgba(10, 10, 10, 0.05);
  }

  .navbar-genz .nav-link:not(.active)::after {
    display: none;
  }

  .navbar-genz .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0 0 0.5rem !important;
    padding: 0.25rem 0 0.5rem 0.75rem !important;
    background: var(--bg-off, #F8F9FA) !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .navbar-genz .dropdown-item {
    padding: 0.65rem 0.5rem !important;
    font-size: 0.82rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal;
  }

  .navbar-genz .dropdown-item:hover {
    padding-left: 0.75rem !important;
  }

  .navbar-genz .navbar-collapse > .d-flex {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, rgba(10, 10, 10, 0.08));
  }

  .navbar-genz .btn-action-nav {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  /* Page Heroes */
  .showroom-header,
  .profile-header {
    min-height: auto !important;
    padding: 2.5rem 0 3rem !important;
  }

  .page-hero-grid {
    max-width: 100%;
  }

  .page-hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  /* Index Hero Grid Layout */
  .hero-fashion {
    min-height: auto;
    padding: 2.5rem 0 3rem;
  }

  .collage-wrapper,
  .page-hero-collage {
    height: 280px;
    margin-bottom: 0.5rem;
  }

  .collage-wrapper .img-main,
  .page-hero-collage .img-main,
  .img-main {
    width: 72%;
    height: 220px;
    left: 5%;
  }

  .collage-wrapper .img-sub1,
  .page-hero-collage .img-sub1,
  .img-sub1 {
    width: 50%;
    height: 150px;
    right: 0;
  }

  /* Content Cuts Grid */
  .cut-section {
    padding: 3.5rem 0;
  }

  .cut-box {
    height: 320px;
  }

  .cut-overlay {
    padding: 1.25rem;
  }

  /* Section Layout Adjustments */
  .index-section {
    padding: 3.5rem 0 !important;
  }

  .editorial-contact-section {
    padding: 3rem 0 !important;
  }

  .action-strip {
    padding: 3.5rem 0 !important;
    margin-top: 4rem !important;
  }

  .footer-brutal {
    padding: 2.5rem 0 1.5rem !important;
  }

  .about-img-container,
  .editorial-img-frame {
    height: 320px;
    margin-bottom: 1.5rem;
  }

  /* Filter Systems */
  .filter-pills {
    gap: 8px;
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
  }

  .filter-btn {
    padding: 11px 22px;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
  }

  .gallery-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .gallery-toolbar-main {
    width: 100%;
  }

  .gallery-filters,
  .gallery-media-filters {
    width: 100%;
  }

  .gallery-count {
    white-space: normal;
    text-align: left;
  }

  .display-4 {
    font-size: calc(1.6rem + 3vw);
  }

  section.py-5 .container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   2. STANDARD PHONE LAYER (max-width: 767.98px)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container-fluid.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-title-big,
  .display-giant,
  .page-hero-grid .display-giant {
    font-size: clamp(1.85rem, 9.5vw, 3rem) !important;
    line-height: 1.1 !important;
    white-space: normal !important; 
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  /* --- Luxury Splash Screen Phone Adjustments --- */
  .splash-title-premium {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important;
    letter-spacing: -1px !important;
  }
  
  .splash-line-premium {
    font-size: 0.78rem !important;
    margin: 18px 0 !important;
    letter-spacing: 1px !important;
  }

  .collage-stage-premium {
    max-width: 340px; /* Constrain the photo grid boundary safely on smaller devices */
  }

  .products-hero .page-hero-grid .display-giant {
    font-size: clamp(1.7rem, 9vw, 2.5rem) !important;
  }

  .hero-fashion .fs-5,
  .hero-fashion p.fs-5 {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-top: 0.85rem !important;
    margin-bottom: 1.15rem !important;
  }

  .hero-fashion .btn-action-gold {
    width: 100%;
    justify-content: center;
  }

  .marquee-content {
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
  }

  .marquee-wrapper {
    padding: 12px 0;
  }

  .cut-box {
    height: 260px;
  }

  .cut-overlay h3 {
    font-size: 1.25rem;
  }

  .showroom-header,
  .profile-header {
    padding: 2.75rem 0 1.75rem !important;
  }

  .stark-counters {
    padding: 2.5rem 0;
  }

  .metric-val {
    font-size: 2.25rem;
  }

  .action-strip h2.display-5 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .action-strip .d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch !important;
  }

  .action-strip .btn-action {
    width: 100%;
    justify-content: center;
  }

  /* Touch Swiping Sliders for Filters */
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .gallery-media-filters,
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .gallery-media-filters::-webkit-scrollbar,
  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-note {
    font-size: 0.82rem;
    padding: 1rem;
  }

  .gallery-note code {
    word-break: break-all;
  }

  .footer-brutal .row {
    row-gap: 2rem !important;
  }

  .fashion-card .card-body {
    padding: 1rem !important;
  }

  .col-md-6.col-lg-4 .card.p-5 {
    padding: 1.75rem !important;
  }

  .col-md-6.col-lg-4 .card .display-6 {
    font-size: 1.5rem;
  }

  .editorial-img-frame,
  .about-img-container {
    height: 260px;
  }

  .floating-coords {
    margin-left: 0 !important;
    margin-top: -1.5rem !important;
    width: 100%;
    display: block;
    padding: 1.25rem !important;
  }

  .stark-intake-form .form-group {
    margin-bottom: 2rem !important;
  }

  .col-lg-7.ps-lg-5 {
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  }

  .stark-intake-form .form-control {
    font-size: 1rem;
  }

  .section-label {
    gap: 10px;
    font-size: 0.68rem;
  }

  .section-label::before {
    width: 24px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   3. SMALL PHONE LAYER (max-width: 399.98px)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 399.98px) {
  .navbar-genz .nav-link {
    font-size: 0.72rem !important;
    letter-spacing: 0.8px !important;
  }

  .navbar-genz .btn-action-nav {
    font-size: 0.7rem;
    padding: 12px 14px;
  }

  .navbar-genz .btn-action-nav i {
    font-size: 0.75rem;
  }

  .collage-stage-premium {
    max-width: 280px; /* Scaling down nicely on tiny screens like iPhone SE */
  }

  .collage-wrapper,
  .page-hero-collage {
    height: 230px;
  }

  .collage-wrapper .img-main,
  .page-hero-collage .img-main,
  .img-main {
    height: 180px;
  }

  .collage-wrapper .img-sub1,
  .page-hero-collage .img-sub1,
  .img-sub1 {
    height: 120px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
    4. SERVICES SECTION RESPONSIVE LAYOUT
    ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* Services Section Tablet */
  .luxury-slanted-services {
    padding: 60px 0 !important;
  }

  .slanted-header {
    margin-bottom: 40px !important;
  }

  .slanted-main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem) !important;
  }

  .slanted-lead {
    font-size: 0.95rem !important;
    max-width: 100% !important;
  }

  .slanted-tapestry-stack {
    gap: 35px !important;
  }

  .slanted-row {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .slanted-row.row-reverse .slanted-text-panel {
    padding-left: 0 !important;
  }

  .slanted-clip-mask {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  }

  .gold-shadow-path {
    display: none !important;
  }

  .panel-num-backdrop {
    top: -20px !important;
    font-size: 4rem !important;
  }

  .panel-title {
    font-size: 1.6rem !important;
  }

  .panel-desc {
    font-size: 0.9rem !important;
    max-width: 100% !important;
  }

  .luxury-booking-showcase {
    padding: 60px 25px !important;
    margin-top: 30px !important;
  }

  .showcase-main-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem) !important;
  }

  .showcase-subtitle {
    font-size: 0.95rem !important;
    max-width: 100% !important;
  }

  .showcase-actions-group {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .showcase-btn-gold,
  .showcase-btn-whatsapp {
    width: 100% !important;
    text-align: center !important;
  }

  .showcase-phone-link {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 767.98px) {
  /* Services Section Mobile */
  .luxury-slanted-services {
    padding: 50px 0 !important;
  }

  .slanted-header {
    margin-bottom: 30px !important;
  }

  .slanted-kicker {
    font-size: 0.7rem !important;
    letter-spacing: 3px !important;
  }

  .slanted-main-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    letter-spacing: -1px !important;
  }

  .slanted-lead {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .slanted-tapestry-stack {
    gap: 25px !important;
  }

  .slanted-row {
    gap: 20px !important;
  }

  .slanted-clip-mask {
    aspect-ratio: 4 / 3 !important;
  }

  .panel-num-backdrop {
    top: -15px !important;
    font-size: 3rem !important;
    left: -5px !important;
  }

  .panel-title {
    font-size: 1.4rem !important;
    letter-spacing: -0.3px !important;
  }

  .panel-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
  }

  .panel-link {
    font-size: 0.72rem !important;
    letter-spacing: 0.5px !important;
  }

  .luxury-booking-showcase {
    padding: 50px 20px !important;
    border-radius: 12px !important;
    margin-top: 20px !important;
  }

  .showcase-index-tag {
    font-size: 0.72rem !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px !important;
  }

  .showcase-main-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    margin-bottom: 10px !important;
  }

  .showcase-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
  }

  .showcase-actions-group {
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .showcase-btn-gold {
    padding: 14px 28px !important;
    font-size: 0.75rem !important;
  }

  .showcase-btn-whatsapp {
    padding: 13px 26px !important;
    font-size: 0.75rem !important;
  }

  .showcase-phone-link {
    font-size: 0.82rem !important;
    gap: 6px !important;
  }

  .showcase-phone-link i {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 399.98px) {
  /* Services Section Small Mobile */
  .luxury-slanted-services {
    padding: 40px 0 !important;
  }

  .slanted-header {
    margin-bottom: 25px !important;
  }

  .slanted-kicker {
    font-size: 0.68rem !important;
    letter-spacing: 2px !important;
  }

  .slanted-main-title {
    font-size: 1.5rem !important;
  }

  .slanted-lead {
    font-size: 0.85rem !important;
  }

  .slanted-tapestry-stack {
    gap: 20px !important;
  }

  .panel-num-backdrop {
    top: -12px !important;
    font-size: 2.5rem !important;
  }

  .panel-title {
    font-size: 1.25rem !important;
  }

  .panel-desc {
    font-size: 0.82rem !important;
  }

  .panel-link {
    font-size: 0.7rem !important;
  }

  .luxury-booking-showcase {
    padding: 40px 15px !important;
  }

  .showcase-main-title {
    font-size: 1.3rem !important;
  }

  .showcase-subtitle {
    font-size: 0.85rem !important;
  }

  .showcase-btn-gold,
  .showcase-btn-whatsapp {
    padding: 12px 24px !important;
    font-size: 0.72rem !important;
  }

  .showcase-phone-link {
    font-size: 0.78rem !important;
  }
}
