/* ==========================================================================
   EDISH CONNECT PVT. LTD. - RESPONSIVE BREAKPOINTS (RESPONSIVE.CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Laptops & Desktops (Max 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual-card {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* --------------------------------------------------------------------------
   2. Tablets & Small Laptops (Max 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
  }

  .mobile-nav-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    animation: mobileDrawerSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-active .nav-links li {
    width: 100%;
  }

  .mobile-nav-active .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
  }

  .mobile-nav-active .nav-links .nav-link:hover,
  .mobile-nav-active .nav-links .nav-link.active {
    background: rgba(238, 108, 30, 0.12);
    color: var(--primary);
  }

  .mobile-nav-active .nav-links .nav-link::after {
    display: none;
  }

  .mobile-drawer-cta {
    display: flex !important;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .services-grid, .talent-grid, .case-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@keyframes mobileDrawerSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   3. Mobile Devices & Small Tablets (Max 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .brand-slogan-nav {
    display: none;
  }

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

  .brand-logo {
    font-size: 1.2rem;
  }

  .hero-section {
    padding: 7.25rem 0 3.5rem 0;
  }

  .hero-title {
    font-size: clamp(1.9rem, 6.5vw, 2.75rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .hero-pill {
    font-size: 0.825rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.25rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-slogan-banner {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

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

  .stat-label {
    font-size: 0.75rem;
  }

  /* Fix floating badge horizontal overflow */
  .hero-floating-badge {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 1.25rem auto 0 auto;
    width: 100%;
    justify-content: center;
  }

  .services-section, .talent-section, .calculator-section, .process-section, .case-studies-section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .services-grid, .talent-grid, .case-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card, .talent-card, .case-card {
    padding: 1.5rem;
  }

  /* Scrollable Talent Filter Bar on Mobile */
  .talent-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
  }

  .talent-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
  }

  /* Calculator Mobile Styling */
  .calculator-card {
    padding: 1.5rem;
  }

  .calc-results-box {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .calc-amount-main {
    font-size: 2.25rem;
  }

  .calc-savings-badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }

  /* Process Cards */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-step-card {
    padding: 1.5rem;
  }

  .step-num {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
  }

  /* Modals System Mobile Optimization */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-container {
    padding: 1.5rem 1.25rem;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 0.85rem;
    right: 0.85rem;
    width: 34px;
    height: 34px;
  }

  .wizard-progress {
    margin-bottom: 1.75rem;
  }

  .wizard-step-node {
    width: 32px;
    height: 32px;
    font-size: 0.825rem;
  }

  .choice-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .choice-card {
    padding: 0.85rem 0.5rem;
  }

  .choice-icon {
    font-size: 1.4rem;
  }

  .wizard-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .footer {
    padding: 3.5rem 0 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   4. Extra Small Smartphones (Max 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-actions .nav-btn-desktop {
    display: none;
  }

  .hero-section {
    padding: 6.5rem 0 3rem 0;
  }

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

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .stat-item {
    align-items: center;
  }

  .choice-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .choice-card span {
    font-size: 0.8rem;
  }

  .selected-tech-badges {
    padding: 0.6rem;
    min-height: 46px;
  }

  .selected-tech-badge {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
  }

  .modal-container {
    padding: 1.25rem 0.85rem;
  }

  /* Prevent auto zoom on iOS Safari */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   5. Admin Panel Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .admin-card {
    padding: 1.25rem;
  }

  .admin-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .toggle-row {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .toggle-title {
    font-size: 0.9rem;
  }

  .toggle-desc {
    font-size: 0.75rem;
  }
}
