/* ==========================================================================
   NEXTRISE ELEVATOR SYSTEM - PROGRESSIVE RESPONSIVE STYLES
   Breakpoints implemented strictly in ascending mobile-first order:
   - XS: min-width: 370px
   - SM: min-width: 600px
   - MD: min-width: 900px
   - LG: min-width: 1200px
   - XL: min-width: 1600px
   ========================================================================== */

/* ==========================================================================
   1. XS BREAKPOINT (min-width: 370px) - Small Mobile Enhancement
   ========================================================================== */
@media (min-width: 370px) {
  .container {
    width: min(100% - 28px, 1400px);
  }





  .stats-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.55rem 1.15rem;
  }
}

/* ==========================================================================
   2. SM BREAKPOINT (min-width: 600px) - Tablets & Large Phones
   ========================================================================== */
@media (min-width: 600px) {
  .container {
    width: min(100% - 36px, 1400px);
  }

  .site-header {
    padding: 1rem 0;
  }

  /* Reveal a compact Quote CTA next to Hamburger on tablet */
  .header-quote-btn {
    display: inline-flex;
    min-height: 42px;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .map-card-actions {
    flex-direction: row;
  }

  .map-card-actions .btn {
    width: auto;
  }

  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .final-cta-buttons .btn {
    width: auto;
  }

  .final-cta-features {
    flex-direction: row;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   3. MD BREAKPOINT (min-width: 900px) - Small Laptops & Landscape Tablets
   ========================================================================== */
@media (min-width: 900px) {
  .container {
    width: min(100% - 48px, 1400px);
  }

  /* Reveal Phone Box alongside Quote CTA */
  .header-phone-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-white);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
  }

  .header-phone-box:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .phone-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 151, 62, 0.2);
    border: 1px solid rgba(201, 151, 62, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-champagne);
  }

  .phone-icon-circle svg {
    width: 16px;
    height: 16px;
  }

  .phone-details {
    display: flex;
    flex-direction: column;
  }

  .phone-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
  }

  .phone-sub {
    font-size: 0.65rem;
    color: var(--color-muted-light);
  }

  /* Hero Showcase Banner Desktop Architecture */
  .hero-mobile-visual-wrap {
    display: none;
  }

  .hero-desktop-visual-wrap {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-text-col {
    max-width: 620px;
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-inner-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: calc(100vh - 170px);
    padding: clamp(2.5rem, 4.5vw, 4rem) clamp(2.5rem, 5.5vw, 6rem);
  }

  .hero-gradient-overlay {
    background: 
      linear-gradient(90deg, #051c18 0%, rgba(5, 28, 24, 0.94) 28%, rgba(5, 28, 24, 0.5) 42%, rgba(5, 28, 24, 0.05) 58%, transparent 72%),
      linear-gradient(180deg, rgba(5, 28, 24, 0.25) 0%, transparent 40%, rgba(5, 28, 24, 0.85) 100%);
  }

  .hero-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 0;
  }



  .tagline-desktop {
    display: block;
  }

  .tagline-mobile {
    display: none;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: #dfbe72;
    margin-bottom: 1.35rem;
  }

  .hero-main-title {
    font-size: clamp(2.8rem, 4.5vw, 4.25rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
  }

  .hero-lead-text {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 2.25rem;
  }

  .lead-desktop {
    display: block;
  }

  .lead-mobile {
    display: none;
  }

  .hero-actions-row {
    flex-direction: row;
    width: auto;
    max-width: none;
    gap: 1.15rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .hero-btn-gold {
    width: auto;
    padding: 0.95rem 2rem;
    font-size: 0.9375rem;
    box-shadow: 0 4px 22px rgba(220, 168, 60, 0.4);
  }

  .hero-btn-outline {
    width: auto;
    padding: 0.95rem 2.2rem;
    font-size: 0.9375rem;
  }

  /* ==========================================================================
     HERO RIGHT WING COMPONENT (DESKTOP)
     ========================================================================== */
  .hero-right-wing {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    z-index: 5;
    pointer-events: auto;
  }

  /* Full-bleed SVG Curved Backdrop */
  .wing-svg-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(-14px 0 28px rgba(0, 0, 0, 0.45));
  }

  .wing-exact-svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Foreground Content Layer */
  .wing-content-layer {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 3rem 2rem 2.25rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Upper Slogan Block */
  .hero-slogan-wrap {
    display: flex;
    align-items: stretch;
    gap: 1.15rem;
    margin-top: 0.25rem;
  }

  .slogan-gold-line {
    width: 2.5px;
    background: #e2ba62;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(226, 186, 98, 0.5);
    flex-shrink: 0;
  }

  .hero-slogan-content {
    display: flex;
    flex-direction: column;
  }

  .slogan-words {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .slogan-words span {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #f7eedd;
    line-height: 1.45;
  }

  .slogan-gold-underline {
    width: 48px;
    height: 3.5px;
    background: #e2ba62;
    border-radius: 2px;
    margin-top: 1.15rem;
    box-shadow: 0 0 8px rgba(226, 186, 98, 0.45);
  }

  /* Bottom Navigation Block */
  .hero-bottom-nav-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 2rem;
    padding-right: 0.5rem;
  }

  /* Circular Arrow Buttons */
  .hero-nav-arrow-btns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .hero-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(5, 24, 20, 0.75);
    border: 1.2px solid rgba(226, 186, 98, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
  }

  .hero-circle-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
  }

  .hero-circle-btn:hover {
    background: #e2ba62;
    color: #06201c;
    border-color: #e2ba62;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(226, 186, 98, 0.5);
  }

  /* Vertical Slider Numbers & Track */
  .hero-numbers-track {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .track-indicator-bar {
    width: 2.5px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .active-gold-segment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background: #e2ba62;
    box-shadow: 0 0 10px rgba(226, 186, 98, 0.8);
    border-radius: 2px;
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .track-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .track-num-btn {
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
  }

  .track-num-btn.active {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
  }

  .hero-highlights-strip {
    background: rgba(4, 20, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-highlights-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.35rem clamp(2.5rem, 5.5vw, 6rem);
    text-align: left;
    width: 100%;
    margin: 0 auto;
  }

  .hero-highlight-item {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .highlight-icon-circle {
    margin: 0;
  }

  .highlight-title {
    font-size: 0.875rem;
    font-weight: 700;
  }

  .highlight-sub {
    display: block;
    font-size: 0.725rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.2;
    margin-top: 2px;
  }

  /* Trust Section 4-Column Grid */
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Stats Section Horizontal Banner */
  .stats-banner-wrap {
    flex-direction: row;
    align-items: stretch;
  }

  .stats-items-grid {
    grid-template-columns: repeat(4, 1fr);
    flex-grow: 1;
    padding: 2.25rem 2rem;
  }

  .stat-item {
    position: relative;
  }

  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .stats-badge-side {
    width: 250px;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    padding: 1.5rem 1.75rem;
    flex-shrink: 0;
  }

  /* About Section 2-Column Split */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .about-floating-card {
    left: auto;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 250px;
    padding: 1.25rem 1.4rem;
  }

  /* Industries 3-Column Grid */
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Projects 3-Column Grid & Header */
  .projects-header-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .project-filter-tabs {
    width: auto;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Why Choose Us 3-Column Grid */
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Quote Form 2-Column Split */
  .quote-wrapper {
    grid-template-columns: 0.95fr 1.05fr;
  }

  /* Contact 2-Column Split */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  /* Footer 4-Column Grid */
  .footer-top-grid {
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
    gap: clamp(2rem, 3.5vw, 3.5rem);
  }
}

/* ==========================================================================
   4. LG BREAKPOINT (min-width: 1200px) - Full Desktop Architecture
   ========================================================================== */
@media (min-width: 1200px) {
  .container {
    width: min(100% - 64px, 1400px);
  }

  .site-header {
    padding: 1.15rem 0;
  }

  .site-header.scrolled {
    padding: 0.75rem 0;
  }

  /* Hide Mobile Drawer Trigger */
  .mobile-toggle {
    display: none;
  }

  /* Desktop Navigation Activated */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .desktop-nav .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.35rem 0;
    transition: color var(--transition-fast);
  }

  .desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-champagne));
    transition: width var(--transition-normal);
    border-radius: 2px;
  }

  .desktop-nav .nav-link:hover,
  .desktop-nav .nav-link.active {
    color: var(--color-champagne);
  }

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

  /* Services Responsive Grid (4-column grid for 8 service cards) */
  .services-header-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  /* Industries 5-Column Row */
  .industries-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }

  /* Stats Badge Side Width */
  .stats-badge-side {
    width: 280px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
  }

  .stats-items-grid {
    padding: 2.25rem 2.75rem;
  }

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

/* ==========================================================================
   5. XL BREAKPOINT (min-width: 1600px) - Ultra-Wide & 4K Displays
   ========================================================================== */
@media (min-width: 1600px) {
  .container {
    width: min(100% - 80px, 1540px);
  }

  .hero-section {
    min-height: 880px;
    display: flex;
    align-items: center;
  }

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

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