/* ============================================
   RESPONSIVE.CSS — Dyansa Website
   ============================================ */

/* ============================================
   DESKTOP & LARGE SCREENS — min 1025px
   ============================================ */
@media (min-width: 1025px) {
  .site-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
  }
  .site-logo-svg {
    height: 44px;
    width: auto;
  }
}

/* ============================================
   TABLET — max 1024px
   ============================================ */
@media (max-width: 1024px) {
  :root { --container-padding: 1.5rem; }
  .hero { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 3rem; min-height: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; padding-top: 0; padding-bottom: 0; }
  .hero-visual { width: 100%; max-width: 580px; margin: 0 auto; }
  .hero-desc { max-width: 100%; }
  .security-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .security-visual { width: 100%; max-width: 580px; margin: 0 auto; }
  .security-capabilities { grid-template-columns: 1fr 1fr; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-items-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SMALL TABLET — max 834px
   ============================================ */
@media (max-width: 834px) {
  :root { --space-3xl: 4.5rem; --space-2xl: 3rem; --header-height: 68px; }
  
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }

  .main-nav { display: none !important; }
  .header-cta { display: none !important; }
  .hamburger { 
    display: flex !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
    z-index: 1005 !important; 
  }
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .site-logo-img { height: 44px; max-width: 200px; object-fit: contain; }
  .site-logo-svg { height: 42px; width: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE LARGE — max 768px
   ============================================ */
@media (max-width: 768px) {
  :root { --container-padding: 1.125rem; --space-3xl: 2.75rem; --space-2xl: 2rem; --header-height: 64px; }
  
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container, .page-hero, .hero, .site-header, main, section {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force all animated reveal elements to be 100% visible on mobile */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Force ALL Grids to 1 Single Column on Mobile */
  .grid, .grid-2, .grid-3, .grid-4, .bento-grid, .hero-grid-2x2, .hero-services-page-grid {
    grid-template-columns: 1fr !important;
    gap: 1.125rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .bento-hero {
    grid-column: span 1 !important;
  }
  
  .executive-card, .bento-card, .hero-service-box, .service-item, .why-us-card, .about-card-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  
  .executive-card-title, .hero-service-title {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }
  
  .executive-card .btn, .hero-service-link {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  
  .section { padding: 2.5rem 0 !important; }
  .section-header { margin-bottom: 1.5rem !important; }
  .section-title { 
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important; 
    line-height: 1.25 !important; 
    margin-bottom: 0.625rem !important; 
    word-break: break-word !important;
  }
  .section-desc { font-size: 0.875rem !important; line-height: 1.55 !important; word-break: break-word !important; }
  .site-logo-img { height: 42px; max-width: 190px; object-fit: contain; }
  .site-logo-svg { height: 40px; width: auto; }
  
  /* Compact Mobile Hero Spacing & No Overflow */
  .hero, .page-hero { 
    padding-top: calc(var(--header-height) + 1.25rem) !important; 
    padding-bottom: 2.25rem !important; 
    min-height: auto !important; 
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  
  .page-hero-eyebrow, .hero-badge {
    font-size: 0.6875rem !important;
    letter-spacing: 0.06em !important;
    padding: 0.3rem 0.625rem !important;
    margin-bottom: 0.875rem !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }
  
  .page-hero-title, .hero-title { 
    font-size: clamp(1.45rem, 5.2vw, 1.85rem) !important; 
    margin-bottom: 0.875rem !important; 
    line-height: 1.22 !important; 
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero-title-gradient, .page-hero-title .highlight {
    display: block !important;
    background: linear-gradient(135deg, #00E676 0%, #00B0FF 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0.15rem 0 !important;
    word-break: break-word !important;
  }
  
  .page-hero-desc, .hero-desc { 
    font-size: 0.875rem !important; 
    line-height: 1.6 !important; 
    margin-bottom: 1.25rem !important; 
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-actions { 
    flex-direction: column !important; 
    width: 100% !important; 
    max-width: 100% !important;
    gap: 0.625rem !important; 
  }
  .hero-actions .btn { 
    width: 100% !important; 
    max-width: 100% !important;
    justify-content: center !important; 
    text-align: center !important; 
    box-sizing: border-box !important;
  }
  .hero-tagline-pills { 
    margin-top: 1.25rem !important; 
    padding-top: 0.875rem !important; 
    gap: 0.375rem !important; 
    justify-content: flex-start !important; 
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-tag-pill { 
    font-size: 0.625rem !important; 
    letter-spacing: 0.05em !important; 
    padding: 0.2rem 0.45rem !important; 
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
  }
  
  .services-grid { grid-template-columns: 1fr !important; }
  .service-items-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .capabilities-grid { grid-template-columns: 1fr !important; }

  /* Zero Blank Space Security Section Fix */
  .security-section { padding: 2.5rem 0 !important; width: 100% !important; }
  .security-layout { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; width: 100% !important; }
  .security-content { width: 100% !important; max-width: 100% !important; }
  .security-capabilities { grid-template-columns: 1fr !important; gap: 0.625rem !important; margin-top: 1.125rem !important; margin-bottom: 1.25rem !important; width: 100% !important; }
  .security-cap-item { padding: 0.75rem 0.875rem !important; gap: 0.75rem !important; }
  .security-cap-text { font-size: 0.875rem !important; }
  .security-cap-sub { font-size: 0.75rem !important; }
  .security-visual { width: 100% !important; max-width: 100% !important; margin-top: 0 !important; }
  .cyber-console-card { width: 100% !important; max-width: 100% !important; margin-top: 0 !important; }
  .security-content .mt-lg { margin-top: 1rem !important; }
  .security-content .btn { width: 100% !important; justify-content: center !important; }
  
  .why-us-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  
  .cta-actions { flex-direction: column; align-items: center; width: 100%; gap: 0.625rem; }
  .cta-actions .btn { width: 100%; }
  .contact-form-card { padding: 1.125rem; }
  .service-cat-header { flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
  .process-steps { grid-template-columns: 1fr !important; gap: 1rem; }
}

/* ============================================
   MOBILE SMALL — max 480px
   ============================================ */
@media (max-width: 480px) {
  :root { --container-padding: 0.875rem; --header-height: 60px; }
  .page-hero, .hero { 
    padding-top: calc(var(--header-height) + 1rem) !important; 
    padding-bottom: 1.75rem !important; 
  }
  .site-logo-img { height: 38px; max-width: 175px; object-fit: contain; }
  .site-logo-svg { height: 36px; width: auto; }
  .page-hero-title, .hero-title { font-size: 1.4rem !important; line-height: 1.22 !important; margin-bottom: 0.75rem !important; }
  .page-hero-desc, .hero-desc { font-size: 0.84375rem !important; line-height: 1.5 !important; }
  .section-title { font-size: 1.3rem !important; }
  .executive-card, .bento-card, .hero-service-box, .service-item, .why-us-card { padding: 1rem 0.875rem !important; }
  .security-cap-item { padding: 0.625rem 0.75rem !important; }
  .cyber-console-header { padding: 0.75rem 1rem !important; }
  .cyber-console-body { padding: 0.75rem !important; }
  .cyber-feature-row { padding: 0.5rem 0.625rem !important; gap: 0.625rem !important; }
  .cyber-feature-name { font-size: 0.78125rem !important; }
  .cyber-feature-sub { font-size: 0.6875rem !important; }
}

/* ============================================
   EXTRA SMALL — max 390px
   ============================================ */
@media (max-width: 390px) {
  :root { --container-padding: 0.75rem; }
  .site-logo-img { height: 36px; max-width: 160px; }
  .site-logo-svg { height: 34px; width: auto; }
  .section-title { font-size: 1.25rem !important; }
  .hero-title, .page-hero-title { font-size: 1.25rem !important; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .mobile-nav, .hero-bg, .hamburger { display: none; }
  body { font-size: 12pt; }
  .section { padding: 2rem 0; }
}
