/* ========================================================
   ADMASS STEEL - RESPONSIVE STYLESHEET
   Carefully calibrated across:
   1440px+, 1200px, 992px, 768px, 576px, 480px, 430px, 412px, 390px, 375px
   ======================================================== */

/* Large Desktops (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-width: 1360px;
  }
  .hero-title {
    font-size: 4rem;
  }
}

/* Standard Desktop to Compact Desktop (1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.25rem;
  }
  .desktop-nav {
    gap: 16px;
  }
  .nav-link {
    font-size: 0.8125rem;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-top > div:last-child {
    grid-column: span 4;
    margin-top: 20px;
  }
}

/* Tablets Landscape & Medium Screens (1024px & 992px) */
@media (max-width: 1080px) {
  :root {
    --header-height: 86px;
    --header-height-scrolled: 72px;
  }
  .brand-logo img {
    height: 72px;
  }
  .site-header.scrolled .brand-logo img {
    height: 58px;
  }
  .desktop-nav,
  .header-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-slider,
  .hero-slider-track,
  .hero-slide {
    min-height: 85vh;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .brand-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-top > div:last-child {
    grid-column: span 2;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .showcase-card {
    flex: 0 0 calc(50% - 12px);
    margin-right: 20px;
  }
}

/* Tablets Portrait (768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
    --header-height-scrolled: 68px;
  }
  .brand-logo img {
    height: 66px;
  }
  .site-header.scrolled .brand-logo img {
    height: 54px;
  }
  .footer-brand-logo {
    height: 84px;
  }
  /* Floating Live Chat Positioning above Mobile Quick Bar */
  .admass-chat-widget {
    right: 16px;
    bottom: 74px;
  }
  .chat-trigger-btn {
    width: 52px;
    height: 52px;
  }
  .chat-icon-wrap {
    width: 24px;
    height: 24px;
  }
  .chat-open-icon,
  .chat-close-icon {
    width: 22px;
    height: 22px;
  }
  .chat-prompt-pill {
    bottom: 64px;
    right: 0;
    width: 210px;
    padding: 10px 12px;
  }
  .chat-window-panel {
    bottom: 62px;
    right: 0;
    width: calc(100vw - 32px);
    height: calc(100vh - 165px);
    max-height: 520px;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 1.875rem;
  }
  .section-desc {
    font-size: 1rem;
  }
  .page-banner {
    padding: 110px 0 45px;
  }
  .page-banner-title {
    font-size: 2.125rem;
  }
  .hero-slider,
  .hero-slider-track,
  .hero-slide {
    min-height: 86vh;
  }
  .hero-slide .hero-content {
    padding: 60px 0 90px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1.0625rem;
  }
  .hero-tagline-box {
    font-size: 1.125rem;
    padding: 8px 16px;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-slider-prev {
    left: 12px;
    width: 42px;
    height: 42px;
  }
  .hero-slider-next {
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .hero-slider-bottom {
    bottom: 16px;
  }
  .hero-slider-bottom-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }
  .showcase-card {
    flex: 0 0 calc(100% - 8px);
    margin-right: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-span-2 {
    grid-column: span 1;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top > div:last-child {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  .callout-box {
    padding: 32px 20px;
  }
}

/* Large Mobile Phones (576px & 480px) */
@media (max-width: 576px) {
  :root {
    --header-height: 76px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-logo img {
    height: 58px;
  }
  .site-header.scrolled .brand-logo img {
    height: 50px;
  }
  .footer-brand-logo {
    height: 78px;
  }
  .hero-slider,
  .hero-slider-track,
  .hero-slide {
    min-height: 88vh;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.15;
  }
  .hero-slider-arrow {
    display: none; /* Rely on fluid touch-swipe on small phones */
  }
  .hero-slider-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 24px 16px;
  }
  .stat-value {
    font-size: 2.25rem;
  }
  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex-shrink: 0;
  }
  .form-card {
    padding: 24px 16px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents auto-zoom in iOS */
    padding: 12px 14px;
  }
}

/* Standard Mobile Devices (430px, 412px, 390px, 375px) */
@media (max-width: 430px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.625rem;
  }
  .page-banner-title {
    font-size: 1.75rem;
  }
  .hero-tagline-box {
    font-size: 1rem;
  }
  .btn {
    padding: 13px 20px;
    font-size: 0.8125rem;
  }
  .product-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .product-card-actions .btn {
    width: 100%;
  }
  .mobile-nav-drawer {
    max-width: 100%;
    padding: 76px 20px 28px;
  }
  .hero-dot-inner {
    width: 20px;
  }
  .hero-dot.active .hero-dot-inner {
    width: 36px;
  }
  .hero-dot-num {
    display: none;
  }
}

@media (max-width: 375px) {
  :root {
    --header-height: 72px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand-logo img {
    height: 50px;
  }
  .site-header.scrolled .brand-logo img {
    height: 44px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .hero-subtitle {
    font-size: 0.9375rem;
  }
  .hero-brand-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .section-label {
    font-size: 0.75rem;
  }
}
