/* ==========================================================================
   RESTOVUE — PHOTO ENHANCER
   Responsive Media Queries Stylesheet
   ========================================================================== */

/* Large Desktops & Laptops (1024px to 1399px) */
@media (max-width: 1399px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* Laptop & Large Tablets (max-width: 1199px) */
@media (max-width: 1199px) {
  .use-cases-items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .hero-grid {
    gap: 30px;
  }
}

/* Tablets (max-width: 1023px) */
@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .feature-card {
    height: 225px;
    padding: 20px 16px 18px;
  }
}

/* Tablets (max-width: 991px) */
@media (max-width: 991px) {
  .nav-inner {
    height: 70px;
  }

  .developer-badge {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(8, 14, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  /* Hero Single Column on Tablet & Below */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-benefits-row {
    justify-content: center;
    width: 100%;
    max-width: 540px;
  }

  .hero-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
    margin-bottom: 24px;
    max-width: 600px;
    text-align: left;
  }

  .hero-benefit-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .benefit-card-title {
    font-size: 0.98rem;
  }

  .benefit-card-desc {
    font-size: 0.78rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-phones-stage {
    height: 420px;
  }

  .phone-mockup-composite {
    max-height: 400px;
  }

  /* Comparison Side-by-Side to Stacked on Tablet */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 30px 24px;
  }

  .comparison-info {
    padding-left: 0;
  }

  /* Use Cases */
  .use-cases-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .use-cases-heading-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 0;
    padding-bottom: 18px;
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    padding: 100px 0 35px;
  }

  .footer-top-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .footer-brand-wrap {
    flex-direction: column;
  }

  .footer-links-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
  .features-section {
    padding: 60px 0;
  }

  .features-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .feature-tabs-wrap {
    margin-bottom: 20px;
    gap: 8px;
  }

  .feature-tab {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-card {
    height: 220px;
    padding: 18px 14px 16px;
    border-radius: 16px;
  }

  .feature-icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .feature-title {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }

  .feature-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .feature-link-indicator {
    font-size: 0.78rem;
  }

  .use-cases-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-benefits-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 22px;
    max-width: 360px;
    width: 100%;
  }

  .hero-benefit-card {
    padding: 14px 14px;
    border-radius: 14px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .benefit-card-title {
    font-size: 0.98rem;
    margin-bottom: 3px;
  }

  .benefit-card-desc {
    font-size: 0.80rem;
    line-height: 1.35;
  }

  .benefit-card-icon-wrap {
    width: 38px;
    height: 38px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .benefit-card-icon {
    width: 18px;
    height: 18px;
  }

  .benefit-item {
    width: 100%;
  }

  .hero-phones-stage {
    height: 350px;
  }

  .phone-mockup-composite {
    max-height: 330px;
  }

  .before-after-component {
    min-height: 200px;
  }

  .footer-inner {
    padding: 75px 0 30px;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .brand-logo-img {
    height: 34px;
    max-width: 140px;
  }

  .footer-logo-img {
    height: 38px;
    max-width: 155px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  /* Keep 2 cards per row on mobile down to 350px for compact readable layout */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-card {
    height: 215px;
    padding: 16px 12px 14px;
    border-radius: 14px;
  }

  .feature-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .feature-icon-box i,
  .feature-icon-box svg {
    width: 20px !important;
    height: 20px !important;
  }

  .feature-title {
    font-size: 0.88rem;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .feature-desc {
    font-size: 0.74rem;
    line-height: 1.3;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
  }

  .feature-link-indicator {
    font-size: 0.75rem;
  }

  .comparison-grid {
    padding: 20px 16px;
  }

  .before-after-component {
    min-height: 150px;
    border-radius: 14px;
  }

  .ba-handle {
    width: 38px;
    height: 38px;
  }

  .ba-handle svg {
    width: 16px;
    height: 16px;
  }

  .ba-label {
    top: 10px;
    padding: 4px 12px;
    font-size: 0.7rem;
  }

  .ba-label-before {
    left: 10px;
  }

  .ba-label-after {
    right: 10px;
  }

  .use-cases-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-cta-btn span {
    display: none;
  }

  .header-cta-btn {
    padding: 8px 14px;
  }
}

/* Extra Small Screens (max-width: 349px) */
@media (max-width: 349px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    height: auto;
    min-height: 180px;
  }
}
