/* ==========================================================================
   NEXORA TECHNOLOGIES — Responsive Stylesheet
   Breakpoints: 1440px, 1200px, 1024px, 768px, 480px, 320px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LARGE DESKTOPS (<= 1440px)
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* --------------------------------------------------------------------------
   2. DESKTOP / LAPTOPS (<= 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
  
  .mega-menu {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
  }
  
  .mega-menu-grid {
    gap: 16px;
  }
  
  .mega-link-item {
    padding: 8px 6px;
    gap: 10px;
  }
  
  .mega-text h5 {
    font-size: 0.85rem;
  }
  
  .mega-text p {
    font-size: 0.725rem;
  }
  
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .stat-item:nth-child(3) {
    border-right: none;
  }
  
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  
  .footer-top .footer-col:last-child {
    grid-column: span 3;
  }
  
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  
  .process-timeline::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. TABLETS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 72px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .top-bar-links {
    display: none;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-2-1, .grid-1-2, .grid-1-1-custom {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-top .footer-col:last-child {
    grid-column: span 2;
  }
  
  .testimonial-slide {
    padding: 36px 32px;
  }
  
  .testimonial-quote {
    font-size: 1.15rem;
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE LANDSCAPE & PHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --topbar-height: 36px;
  }
  
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  
  .section-header {
    margin-bottom: 36px;
  }
  
  .hero {
    padding-top: 50px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }
  
  .hero-visual {
    height: 360px;
  }
  
  .floating-tech-card {
    padding: 10px 14px;
  }
  
  .floating-tech-card h5 {
    font-size: 0.8rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--navy-border);
    padding-bottom: 20px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    grid-column: span 2;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .transformation-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }
  
  .flow-step-box {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .client-logo-grid {
    justify-content: center;
    gap: 24px;
  }
  
  .client-logo-item {
    font-size: 1.1rem;
  }
  
  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   5. SMALL SMARTPHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .top-bar-announcement {
    font-size: 0.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .card {
    padding: 24px 20px;
  }
  
  .testimonial-slide {
    padding: 28px 20px;
  }
  
  .testimonial-quote {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item:last-child {
    grid-column: span 1;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-brand, .footer-top .footer-col:last-child {
    grid-column: span 1;
  }
  
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
