/* =========================================================
   ZENDIOTECH — RESPONSIVE DESIGN
   Breakpoints: 1100px, 820px, 560px
   ========================================================= */

/* =========================================================
   BREAKPOINT 1: 1100px (Tablet/Laptop)
   ========================================================= */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 60px 0 80px;
  }

  .hero-visual {
    min-height: 350px;
  }

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

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

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  .footer-content {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
  }

  .nav-links {
    gap: 18px;
  }
}

/* =========================================================
   BREAKPOINT 2: 820px (Mobile/Tablet)
   Mobile menu activation, significant layout changes
   ========================================================= */

@media (max-width: 820px) {
  .container {
    width: calc(100% - 40px);
  }

  .nav {
    height: 76px;
  }

  .logo {
    font-size: 23px;
  }

  .logo img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed !important;
    inset-inline-start: 16px !important;
    inset-inline-end: 16px !important;
    top: 84px !important;
    display: grid !important;
    gap: 2px !important;
    padding: 12px !important;
    background: rgba(5, 38, 73, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(-12px) scale(0.98) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: 250ms ease !important;
    z-index: 99;
  }

  .nav-links.active {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-links a {
    padding: 13px 15px !important;
    border-radius: 12px !important;
    display: block;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .language-toggle {
    display: block !important;
    width: 100%;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
  }

  .hero-visual {
    min-height: 300px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .card {
    padding: 24px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .form-group {
    margin-bottom: 16px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }

  .hide-mobile {
    display: none !important;
  }

  .hide-desktop {
    display: block !important;
  }
}

/* =========================================================
   BREAKPOINT 3: 560px (Small Mobile)
   Maximum simplification for small screens
   ========================================================= */

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.75rem) !important;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 2rem) !important;
  }

  h3 {
    font-size: 1.1rem;
  }

  body {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
    gap: 20px;
    min-height: auto;
  }

  .hero-content > p {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button,
  .hero-actions a.button {
    width: 100%;
  }

  .hero-visual {
    min-height: 250px;
  }

  .orbit {
    width: 250px !important;
    height: 250px !important;
  }

  .core {
    width: 100px !important;
    height: 100px !important;
  }

  .node {
    display: none !important;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .card {
    padding: 20px 16px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .button {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-column h3 {
    margin-bottom: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 0.8rem;
  }

  .back-to-top {
    inset-inline-end: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .nav {
    padding: 16px 0;
  }

  .logo {
    font-size: 20px;
  }

  .logo img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  @media (pointer: fine) {
    .card:hover {
      transform: perspective(900px) rotateX(-1deg) rotateY(2deg) translateY(-2px);
    }
  }
}

/* =========================================================
   UTILITY: NO HORIZONTAL OVERFLOW
   ========================================================= */

body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* =========================================================
   TOUCH TARGET MINIMUM (44px)
   Ensure interactive elements meet accessibility minimum
   ========================================================= */

.button,
.menu-toggle,
.language-toggle,
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"] {
  min-width: 44px;
  min-height: 44px;
}

/* =========================================================
   FLEX ITEM FIX FOR OVERFLOW
   ========================================================= */

.nav-links a {
  min-width: 0;
}
