/* ==========================================================================
   Ruby Stones Pvt. Ltd. - Comprehensive Responsive Media Queries System
   Breakpoints: 1400px, 1200px, 992px, 768px, 576px, 480px, 375px, 320px
   ========================================================================== */

/* 1. Extra Large Desktops (max-width: 1399.98px) */
@media (max-width: 1399.98px) {
  .container-fluid.px-lg-5 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

/* 2. Desktops & Laptops (max-width: 1199.98px) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    white-space: normal;
  }

  .hero-desc {
    max-width: 750px;
    font-size: 1.05rem;
  }
  
  .timeline-horizontal::before {
    width: 86%;
    left: 7%;
  }
}

/* 3. Tablets & Offcanvas Trigger (max-width: 991.98px) */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 64px; /* Space for Mobile Bottom Navigation */
  }

  .section-padding {
    padding: 4.5rem 0;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
  
  .hero-carousel .carousel-item {
    height: 85vh;
    min-height: 520px;
  }
  
  .hero-content {
    top: 50%;
    transform: translateY(-40%);
  }

  .hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    white-space: normal;
  }
  
  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
  }
  
  .top-bar {
    display: none !important; /* Clean header on tablet/mobile */
  }

  .navbar-ruby {
    padding: 0.6rem 0;
  }

  .navbar-ruby .container,
  .navbar-ruby .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .navbar-ruby .navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    max-width: calc(100% - 60px) !important;
    margin-right: 0 !important;
    overflow: hidden;
  }

  .navbar-ruby .navbar-brand img {
    height: 50px;
    max-height: 55px;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .navbar-ruby .navbar-toggler {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    padding: 4px 8px !important;
  }

  /* Responsive Horizontal Timeline -> Vertical Stacking */
  .timeline-horizontal {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .timeline-horizontal::before {
    width: 2px;
    height: 80%;
    left: 30px;
    top: 10%;
    background: linear-gradient(180deg, var(--gold) 0%, rgba(201,162,39,0.2) 100%);
  }

  .timeline-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    padding: 0;
  }

  .timeline-node {
    margin: 0;
    flex-shrink: 0;
  }

  .page-header-banner {
    height: 35vh;
    min-height: 260px;
  }

  .page-header-title {
    font-size: 2.2rem;
  }

  /* Mobile Bottom Quick Navigation Bar */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 64px;
    background-color: #111111;
    border-top: 1px solid rgba(201, 162, 39, 0.35);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1080;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
    padding: 0;
    overflow: hidden;
  }

  .nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.68rem;
    font-family: var(--body-font);
    font-weight: 500;
    transition: var(--transition-smooth);
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 0 2px;
  }

  .nav-item-mobile i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: var(--transition-smooth);
  }

  .nav-item-mobile.active,
  .nav-item-mobile:hover {
    color: var(--gold);
  }

  .nav-item-mobile.active i {
    transform: translateY(-2px);
  }

  .nav-call-mobile {
    color: var(--gold);
  }
}

/* 4. Small Tablets & Large Mobiles (max-width: 767.98px) */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-carousel .carousel-item {
    height: 85vh;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    line-height: 1.25;
    white-space: normal;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .carousel-control-prev {
    left: 8px;
  }

  .carousel-control-next {
    right: 8px;
  }

  .stat-number {
    font-size: 2.6rem;
  }

  .gallery-item {
    height: 260px;
  }

  .btn-gold,
  .btn-outline-gold,
  .btn-outline-light-custom {
    padding: 0.75rem 1.6rem;
    font-size: 0.8rem;
    width: auto;
    max-width: 100%;
  }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
}

/* 5. Mobile Phones (max-width: 575.98px) */
@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 44px;
    max-height: 48px;
  }

  .navbar-brand .brand-text {
    display: none !important;
  }

  .page-header-title {
    font-size: 1.75rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .gallery-filters {
    gap: 6px;
  }

  .btn-filter {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* 6. Compact Mobile Screens (max-width: 479.98px) */
@media (max-width: 479.98px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .subtitle-badge {
    font-size: 0.725rem;
  }

  .stat-box {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

/* 7. iPhone Standard Viewports (max-width: 375px) */
@media (max-width: 375px) {
  .container-fluid,
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .navbar-brand img {
    height: 38px;
  }

  .btn-gold,
  .btn-outline-gold,
  .btn-outline-light-custom {
    padding: 0.65rem 1.2rem;
    font-size: 0.75rem;
  }

  .mobile-bottom-nav {
    height: 58px;
  }

  .nav-item-mobile {
    font-size: 0.62rem;
  }

  .nav-item-mobile i {
    font-size: 1.1rem;
  }
}

/* 8. Small Mobiles (max-width: 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.2rem;
  }

  .hero-desc {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .navbar-brand img {
    height: 34px;
  }
}


