/* ==========================================================================
   KOPIC PRECISION - RESPONSIVE STYLESHEET
   Mobile, Tablet, Small Laptop Adaptation
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-header-bar {
    padding: 0 2rem;
  }

  .hero-body-content {
    padding: 0 2rem;
  }

  .bento-strip-section {
    grid-template-columns: 220px 1fr 260px;
  }

  .bento-card-black {
    padding: 1.75rem 1.5rem;
    min-height: 220px;
  }

  .bento-card-cream {
    padding: 1.5rem 1.75rem 0 1.75rem;
    min-height: 220px;
  }

  .bento-card-right {
    padding: 1.75rem 1.75rem;
    min-height: 220px;
  }

  .cream-technician-portrait img {
    max-height: 210px;
  }

  .bento-service-card.span-8,
  .bento-service-card.span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 1024px) {
  .hero-full-viewport {
    height: auto;
    min-height: 580px;
    padding-bottom: 2rem;
  }

  .hero-grid-overlay {
    display: none;
  }

  .hero-header-spacer {
    height: 76px;
  }

  .hero-header-bar {
    padding: 0 1.5rem;
    height: 76px;
  }

  .hero-header-bar.is-scrolled {
    height: 68px;
  }

  .site-header.dark-header .mobile-nav-toggle {
    display: flex;
  }

  .site-header.dark-header .main-nav {
    display: none;
  }

  .site-header.dark-header .main-nav.active {
    display: flex;
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    background: #0c1017;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding: 2rem 1.5rem;
    z-index: 99;
  }

  .site-header.dark-header .main-nav.active .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .site-header.dark-header .main-nav.active .nav-link {
    font-size: 1.1rem;
    color: #ffffff;
  }

  .hero-nav-menu {
    display: none;
  }

  .hero-nav-menu.active {
    display: flex;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 2rem 1.5rem;
    z-index: 50;
  }

  .nav-menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .mobile-nav-burger {
    display: flex;
  }

  .hero-body-content {
    padding: 3rem 1.5rem 2rem 1.5rem;
    max-width: 100%;
  }

  .hero-main-title {
    font-size: 2.25rem;
  }

  .hero-main-description {
    font-size: 1rem;
  }

  .hero-bottom-bar {
    padding: 1rem 1.5rem;
  }

  /* Bento Strip on tablet/mobile */
  .bento-strip-section {
    grid-template-columns: 1fr;
  }

  .bento-card-black,
  .bento-card-cream,
  .bento-card-right {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .bento-card-black {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.75rem 1.5rem;
    min-height: 180px;
  }

  .bento-black-stat {
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .bento-card-cream {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .cream-technician-portrait {
    display: none;
  }

  /* Horizontal Strips on Tablet */
  .service-strip-item {
    height: 165px;
    transition: height 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .service-strip-item:hover,
  .service-strip-item:focus,
  .service-strip-item.active {
    height: 215px;
  }

  .stripe-content-wrap {
    padding: 0 2.5rem;
  }

  .stripe-meta-left {
    gap: 2rem;
  }

  .stripe-index-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 52px;
  }

  .stripe-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
  }

  .bento-card-right {
    padding: 1.75rem 1.5rem;
    min-height: 180px;
    gap: 1.25rem;
  }

  .machinery-grid-layout,
  .quality-grid,
  .quote-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .quote-layout {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand-col {
    grid-column: span 2;
  }

  /* About Page Tablet */
  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Horizontal Strips on Mobile */
  .service-strip-item {
    height: auto;
    min-height: 120px;
    padding: 1.5rem 0;
    transition: min-height 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.38s ease;
  }

  .service-strip-item:hover,
  .service-strip-item:focus,
  .service-strip-item.active {
    min-height: 155px;
    padding: 1.85rem 0;
  }

  .stripe-content-wrap {
    padding: 0 1.5rem;
  }

  .stripe-meta-left {
    gap: 1.25rem;
  }

  .stripe-index-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 42px;
  }

  .stripe-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
  }

  .stripe-arrow-icon {
    width: 48px;
    height: 48px;
  }

  .stripe-arrow-icon svg {
    width: 20px;
    height: 20px;
  }

  /* About Page Mobile */
  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .about-highlights-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-hero-simple {
    padding: 3.5rem 0;
  }

  .cta-simple-box {
    padding: 2.5rem 1.5rem;
  }

  /* Modal Popup Mobile */
  .service-popup-backdrop {
    padding: 1rem;
  }

  .service-popup-window {
    max-height: 92vh;
    border-radius: 10px;
  }

  .service-popup-header {
    padding: 0.85rem 1.25rem;
  }

  .service-popup-hero {
    height: 180px;
  }

  .service-popup-hero-overlay {
    padding: 1.25rem;
  }

  .service-popup-body {
    padding: 1.5rem 1.25rem;
    gap: 1.35rem;
  }

  .service-popup-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .service-popup-details-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-popup-footer {
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }

  .service-popup-actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .btn-popup-secondary,
  .btn-popup-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-main-title {
    font-size: 1.95rem;
  }

  .btn-hire-experts {
    width: 100%;
  }

  .bento-service-card.span-8,
  .bento-service-card.span-4,
  .bento-service-card.span-6 {
    grid-column: span 1;
  }

  .services-bento-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .quality-metrics-bento,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .review-box {
    width: 300px;
    padding: 1.25rem;
  }

  .contact-cta-card {
    padding: 2.75rem 1.25rem;
  }

  .phone-spotlight-box {
    padding: 2rem 1.25rem;
  }

  .phone-spotlight-num-link {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    margin-bottom: 1.25rem;
  }

  .btn-phone-call-action {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
  }

  .contact-info-boxes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

