/* ==========================================================================
   SHREE GANESH SCALE WORKS - RESPONSIVE STYLESHEET
   Breakpoints: 1920px, 1440px, 1200px, 1024px, 768px, 480px, 375px, 360px
   ========================================================================== */

/* --- 1. LARGE DESKTOPS (Max 1440px) --- */
@media (max-width: 1440px) {
  :root {
    --container-width: 1200px;
  }
  
  .hero-grid {
    gap: 40px;
  }
  
  .hero-image-wrapper img {
    height: auto;
  }
}

/* --- 2. STANDARD DESKTOPS (Max 1200px) --- */
@media (max-width: 1200px) {
  :root {
    --container-width: 1000px;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card-large {
    grid-column: span 12;
  }

  .product-card-medium {
    grid-column: span 6;
  }

  .product-card-regular {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* --- 3. TABLETS & SMALL DESKTOPS (Max 1024px) --- */
@media (max-width: 1024px) {
  .section {
    padding: 72px 0;
  }

  /* Navigation Header Switch to Mobile */
  .main-nav,
  .header-support {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero Section Stacks */
  .hero-spec-tag {
    top: 14px;
    right: 14px;
  }
  .hero-trust-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image-wrapper img {
    height: auto;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-card {
    padding: 32px 24px;
  }

  .about-image-card img {
    height: auto;
    max-height: 320px;
  }

  /* Services Layout */
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-nav {
    display: none;
  }

  .service-detail-panel {
    display: none;
  }

  .services-accordion {
    display: flex;
  }

  .calibration-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calibration-action-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-grid::before {
    display: none;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }

  .process-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .sister-card {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* --- 4. TABLETS PORTRAIT (Max 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-bar {
    gap: 16px;
  }

  .trust-divider {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-spec-tag {
    position: static;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .hero-tech-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 16px;
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .tech-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr;
  }

  .trust-stat-box {
    border-left: none;
    border-bottom: 1px solid var(--steel);
    padding-bottom: 16px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .product-card-large,
  .product-card-medium,
  .product-card-regular {
    grid-column: span 12;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.col-span-2 {
    grid-column: span 1;
  }

  .why-card {
    padding: 24px 20px;
  }

  .why-card-img-box {
    margin: -24px -20px 18px -20px;
    width: calc(100% + 40px);
    height: 190px;
    padding: 12px 16px;
  }

  .enquiry-form-card {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* --- 5. MOBILE DEVICES (Max 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    font-size: 0.62rem;
  }

  .logo-symbol {
    width: 38px;
    height: 38px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-image-wrapper img {
    height: auto;
  }

  .about-image-card {
    padding: 24px 16px;
  }

  .about-image-card img {
    height: auto;
    max-height: 240px;
  }

  .about-badge {
    padding: 8px 14px;
    bottom: -14px;
    right: 16px;
    top: auto;
    left: auto;
  }

  .about-badge-year {
    font-size: 1.2rem;
  }

  .sister-card {
    padding: 24px 16px;
  }

  .sister-info h3 {
    font-size: 1.6rem;
  }

  .sister-year {
    font-size: 2.4rem;
  }

  .phone-number-link {
    font-size: 1.4rem;
  }

  .client-logo-item {
    width: calc(50% - 16px);
  }
}

/* --- 6. SMALL MOBILES (Max 375px & 360px) --- */
@media (max-width: 375px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .product-image-box {
    height: 200px;
  }

  .client-logo-item {
    width: 100%;
  }
}
