/* ==========================================================================
   KRISHANA TECH SOLUTION - Responsive Stylesheet
   Breakpoints: 1280px, 1024px, 768px, 640px, 480px, 375px, 320px
   ========================================================================== */

/* Large Desktops / Laptops (1280px and down) */
@media (max-width: 1280px) {
  :root {
    --max-width: 1120px;
  }
  
  .hero-grid {
    gap: 2.5rem;
  }
}

/* Tablets and Small Laptops (1024px and down) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 780px;
    margin: 0 auto;
  }

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

  .hero-features {
    justify-content: center;
  }

  .hero-visual {
    max-width: 580px;
    margin: 1.5rem auto 0;
  }

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

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

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

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

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

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-col-contact {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Tablets / Mobile Landscape (768px and down) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  /* Navigation Drawer for Mobile */
  .nav-actions {
    display: flex;
    align-items: center;
  }

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

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .nav-menu-footer {
    display: block;
    margin-top: 1.5rem;
    width: 100%;
  }

  .nav-menu-footer .btn {
    width: 100%;
  }

  /* Grids to single column or adapted */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-col-contact {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

  .footer-legal-links {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  .cta-banner-actions {
    justify-content: center;
  }

  .hero-tech-pills {
    justify-content: center;
  }

  .hero-tech-label {
    justify-content: center;
  }
}

/* Mobile Devices (640px and down) */
@media (max-width: 640px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .portfolio-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }
}

/* Small Mobile Screens (375px and 320px) */
@media (max-width: 375px) {
  .brand-logo {
    font-size: 1.05rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.25rem;
  }

  .mockup-body {
    padding: 1rem;
  }
}

@media (max-width: 320px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand-text span {
    display: inline;
  }

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