/* ==========================================================================
   COMPUZEE TECHNOLOGIES - STANDARD DEVICE FRAME ENGINE
   Engineered for:
   1. Mobile Phones (Figma: 360px & 390px | Viewports: 360x800, 390x844, 430x932)
   2. Windows Laptops (Figma: 1366px & 1920px | Viewports: 1366x768, 1536x864, 1920x1080)
   3. MacBook Air & Pro (Figma: 1440px & 1512px | Viewports: 1280x800, 1440x900, 1512x982)
   ========================================================================== */

:root {
  /* Frame Target Breakpoint Variables */
  --frame-mobile-compact: 360px;
  --frame-mobile-standard: 390px;
  --frame-mobile-pro: 430px;
  --frame-tablet: 768px;
  --frame-laptop-win-sm: 1366px;
  --frame-macbook-air: 1440px;
  --frame-macbook-pro: 1512px;
  --frame-desktop-fhd: 1920px;

  /* Fluid Responsive Scaling Tokens */
  --site-max-width: 1240px;
  --site-gutter: 24px;
}

/* ==========================================================================
   1. GLOBAL CONTAINER FRAME SCALING
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

.wrap,
.container,
.site-content-inner,
.features-container,
.cloud-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  box-sizing: border-box;
}

/* ==========================================================================
   2. DEVICE FRAME: WINDOWS LAPTOPS & DESKTOPS (1920px Full HD Viewport)
   ========================================================================== */
@media screen and (min-width: 1920px) {
  :root {
    --site-max-width: 1560px;
    --site-gutter: 36px;
  }

  header,
  .site-header {
    max-width: 1200px !important;
  }

  .hero h1,
  .page-title-inner {
    font-size: 3.8rem !important;
    line-height: 1.18 !important;
  }

  .banner-container,
  .career-banner-wrapper {
    max-width: 1560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .lens-comms-box {
    max-width: 600px !important;
  }

  .grid-columns-3,
  .service-boxes-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
  }

  .grid-columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;
  }
}

/* ==========================================================================
   3. DEVICE FRAME: MACBOOK PRO (1512px / 1536px Viewports)
   ========================================================================== */
@media screen and (min-width: 1441px) and (max-width: 1919px) {
  :root {
    --site-max-width: 1380px;
    --site-gutter: 30px;
  }

  header,
  .site-header {
    max-width: 1080px !important;
  }

  .hero h1 {
    font-size: 3.2rem !important;
  }

  .grid-columns-3,
  .service-boxes-grid,
  .features-grid {
    gap: 24px !important;
  }
}

/* ==========================================================================
   4. DEVICE FRAME: MACBOOK AIR & WINDOWS LAPTOPS (1366px - 1440px Viewports)
   ========================================================================== */
@media screen and (min-width: 1200px) and (max-width: 1440px) {
  :root {
    --site-max-width: 1220px;
    --site-gutter: 24px;
  }

  header,
  .site-header {
    max-width: 980px !important;
  }

  .hero h1 {
    font-size: 2.85rem !important;
  }

  nav ul {
    gap: 1.6rem !important;
  }

  .site-logo {
    height: 48px !important;
  }
}

/* ==========================================================================
   5. DEVICE FRAME: TABLETS & COMPACT LAPTOPS (769px - 1199px)
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1199px) {
  :root {
    --site-max-width: 100%;
    --site-gutter: 20px;
  }

  header,
  .site-header {
    width: 94% !important;
    max-width: 900px !important;
  }

  .grid-columns-3,
  .service-boxes-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .location-map-block {
    margin-top: 24px !important;
  }
}

/* ==========================================================================
   6. DEVICE FRAME: MOBILE PHONES - PRO / MAX (430px Viewports e.g. 430x932)
   ========================================================================== */
@media screen and (max-width: 768px) {
  :root {
    --site-gutter: 18px;
  }

  /* Header & Navigation */
  header,
  .site-header {
    width: 92% !important;
    top: 12px !important;
    padding: 0.4rem 1rem !important;
    border-radius: 40px !important;
  }

  .site-logo {
    height: 42px !important;
    margin-left: 0 !important;
  }

  /* Grid Conversions to Single Column */
  .grid-columns-2,
  .grid-columns-3,
  .grid-columns-4,
  .service-boxes-grid,
  .features-grid,
  .pricing-grid,
  .blog-entries {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .vc_row,
  .row,
  .hero-content-split,
  .footer-widgets-inner {
    flex-direction: column !important;
  }

  .vc_col-sm-6,
  .vc_col-sm-4,
  .vc_col-sm-3,
  .col-6,
  .col-4,
  .col-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Typography */
  .hero h1,
  .page-title-inner,
  .cd-headline {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }

  .hero p,
  .contact-subtitle {
    font-size: 1rem !important;
  }

  /* Comms & Location Cards */
  .lens-comms-box,
  .map-inner-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
  }

  /* Footer */
  .footer-widgets-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }
}

/* ==========================================================================
   7. DEVICE FRAME: MOBILE PHONES - STANDARD (390px Viewports e.g. 390x844)
   ========================================================================== */
@media screen and (max-width: 430px) {
  :root {
    --site-gutter: 16px;
  }

  header,
  .site-header {
    width: 94% !important;
    top: 10px !important;
    padding: 0.35rem 0.9rem !important;
  }

  .site-logo {
    height: 38px !important;
  }

  .hero h1 {
    font-size: 1.95rem !important;
    letter-spacing: -0.5px !important;
  }

  .hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }

  .comms-row {
    gap: 12px !important;
  }

  .comms-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  .comms-digits {
    font-size: 1.05rem !important;
  }

  /* Support Modal Frame for 390px */
  .support-modal-backdrop {
    padding: 12px !important;
  }

  .support-modal-card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
    max-width: 100% !important;
  }

  .support-modal-title {
    font-size: 1.3rem !important;
  }

  .support-channel-card {
    padding: 14px 14px !important;
    gap: 12px !important;
  }

  .support-channel-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .support-channel-value {
    font-size: 0.88rem !important;
  }

  .support-action-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   8. DEVICE FRAME: MOBILE PHONES - COMPACT (360px Viewports e.g. 360x800)
   ========================================================================== */
@media screen and (max-width: 360px) {
  :root {
    --site-gutter: 12px;
  }

  header,
  .site-header {
    width: 96% !important;
    top: 8px !important;
    padding: 0.3rem 0.75rem !important;
  }

  .site-logo {
    height: 34px !important;
  }

  .hero h1 {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }

  .hero p {
    font-size: 0.9rem !important;
  }

  .banner-content h2 {
    font-size: 1.55rem !important;
  }

  .banner-container {
    padding: 20px 14px !important;
    margin: 15px 8px !important;
  }

  .cta-button {
    font-size: 0.88rem !important;
    padding: 12px 14px !important;
  }

  .comms-digits {
    font-size: 0.95rem !important;
  }

  /* Support Modal Frame for 360px */
  .support-modal-card {
    padding: 18px 14px !important;
  }

  .support-channel-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .support-channel-info {
    width: 100% !important;
  }

  .support-action-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 12px !important;
  }

  .support-modal-footer {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
  }

  /* AyraAI chat input on 360px */
  .chat-input-wrapper {
    padding: 8px 10px !important;
  }

  .chat-input-wrapper input {
    font-size: 0.85rem !important;
  }

  .quick-chip {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
  }
}
