/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS - ATELIÊ SARON CROCHÊ
   ========================================================================== */

/* PREVENT HORIZONTAL SCROLL ON BODY AND HTML */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========================================================================
   LAPTOP / SMALL DESKTOP BREAKPOINT (<= 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-container,
  .differentials-grid,
  .products-grid,
  .about-container,
  .gallery-grid,
  .testimonials-grid,
  .contact-grid,
  .catalog-controls-bar,
  .footer-container {
    width: 92%;
  }

  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   TABLET BREAKPOINT (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 4%;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text-side {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text-content {
    align-items: center;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .modal-product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-container {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   TABLET PORTRAIT / MOBILE BREAKPOINT (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 30px rgba(42, 33, 29, 0.12);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-burger {
    display: block;
    touch-action: manipulation;
  }

  .mobile-burger.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-burger.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-burger.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 95px;
    padding-bottom: 50px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 14px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(30px, 7vw, 42px);
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .hero-image-frame {
    max-width: 100%;
  }

  .hero-img {
    height: 340px;
  }

  .hero-floating-card {
    left: 10px;
    right: 10px;
    bottom: -15px;
    padding: 10px 14px;
    justify-content: center;
    max-width: calc(100% - 20px);
  }

  .differentials-section {
    padding: 50px 4%;
  }

  .differentials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .diff-card {
    padding: 24px 18px;
  }

  .products-section {
    padding: 60px 4%;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-image-wrapper {
    height: 280px;
  }

  .about-section {
    padding: 60px 4%;
  }

  .about-img {
    height: 320px;
  }

  .about-badge {
    right: 10px;
    bottom: -10px;
    padding: 8px 18px;
    font-size: 13px;
  }

  .gallery-section {
    padding: 60px 4%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    height: 300px;
  }

  .testimonials-section {
    padding: 60px 4%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  /* Catalog Page Filters */
  .catalog-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 30px;
  }

  .search-box {
    min-width: 100%;
    width: 100%;
  }

  .filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
  }

  .filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 16px;
    font-size: 12.5px;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-card-box {
    padding: 24px 18px;
  }

  /* Footer */
  .footer {
    padding: 32px 4% 20px 4%;
  }

  .footer-compact-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-bottom: 24px;
  }

  .footer-brand-info p {
    max-width: 100%;
  }

  .footer-bottom {
    text-align: center;
  }

  /* Modal */
  .modal-overlay {
    padding: 12px;
  }

  .modal-container {
    padding: 24px 16px;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .modal-main-image-box {
    height: 260px;
  }

  .thumb-img {
    width: 56px;
    height: 56px;
  }

  .modal-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   SMALL MOBILE BREAKPOINT (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .nav-brand-text {
    font-size: 17px;
  }

  .nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }

  .btn-nav-wa {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-title {
    font-size: 27px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-floating-card {
    padding: 8px 12px;
    gap: 10px;
  }

  .hero-floating-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .hero-floating-text h4 {
    font-size: 13px;
  }

  .hero-floating-text p {
    font-size: 11px;
  }

  .section-title {
    font-size: 24px;
  }

  .card-content {
    padding: 18px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-footer {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .btn-card-wa {
    width: 100%;
    justify-content: center;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-price {
    font-size: 20px;
  }

  .btn-modal-wa {
    padding: 12px 20px;
    font-size: 14px;
  }
}
