/* ==========================================================================
   ZonedOut IT Solutions - Responsive Stylesheet
   Mobile-first breakpoints and overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   Extra Large Devices (1400px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --------------------------------------------------------------------------
   Large Devices (992px - 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .mega-menu {
    width: 600px;
  }

  .floating-card-3 {
    display: none;
  }

  .about-experience-badge {
    right: 10px;
    padding: 20px 24px;
  }

  .about-experience-badge h3 {
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Medium Devices / Tablets (768px - 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  :root {
    --navbar-height: 88px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 60px;
  }

  .hero-visual {
    margin-top: 48px;
  }

  .floating-card-1,
  .floating-card-2 {
    display: none;
  }

  .hero-stats {
    gap: 24px;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 12px 0;
    display: none;
  }

  .nav-item-mega.show .mega-menu {
    display: block;
    transform: none;
  }

  .navbar-zoned .navbar-collapse {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    box-shadow: var(--shadow-md);
    max-height: 80vh;
    overflow-y: auto;
  }

  [data-theme="dark"] .navbar-zoned .navbar-collapse {
    background: var(--bg-white);
  }

  .navbar-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    justify-content: center;
  }

  .about-experience-badge {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: 20px;
  }

  .service-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .join-cta {
    padding: 40px 24px;
  }

  .team-founder-body {
    padding: 28px;
  }

  .team-founder-image {
    min-height: 260px;
  }
}

/* --------------------------------------------------------------------------
   Small Devices (576px - 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .navbar-zoned .brand-logo {
    height: 58px;
  }

  .footer-brand .brand-logo-footer {
    height: 72px;
  }

  .contact-map-wrap iframe {
    height: 320px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-padding-sm {
    padding: 40px 0;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

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

  .hero-stats {
    justify-content: space-between;
    width: 100%;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-number {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }

  .testimonial-card {
    padding: 28px;
  }

  .footer {
    padding-top: 60px;
  }

  .footer-bottom {
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
    border-radius: 50px;
    height: 48px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .stats-section {
    padding: 60px 0;
  }

  .stat-item {
    margin-bottom: 32px;
  }

  .stat-item:last-child {
    margin-bottom: 0;
  }

  .service-detail-card {
    padding: 28px;
  }

  .mission-vision-card {
    padding: 28px;
    margin-bottom: 16px;
  }

  .clients-carousel {
    padding: 0 44px;
  }

  .clients-carousel-viewport {
    min-height: 200px;
  }

  .clients-carousel-track {
    gap: 32px;
  }

  .clients-logo-item img {
    height: 160px;
    max-width: 160px;
  }

  .clients-nav {
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   Extra Small Devices (< 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  body {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 0.8125rem;
  }

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

  .service-card,
  .feature-card {
    padding: 24px;
  }

  .team-card-body {
    padding: 20px;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .floating-card {
    display: none !important;
  }

  .clients-carousel {
    padding: 0 36px;
  }

  .clients-logo-item img {
    height: 120px;
    max-width: 120px;
  }

  .clients-carousel-viewport {
    min-height: 160px;
  }

  .clients-carousel-track {
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .clients-carousel-track {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .navbar-zoned,
  .scroll-top,
  .page-loader,
  .footer-social,
  .newsletter-form,
  .theme-toggle {
    display: none !important;
  }

  .hero-section,
  .page-hero {
    min-height: auto;
    padding: 40px 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}
