/* ===========================================
   FELUXE CAT LITTER - RESPONSIVE STYLES
   Media Queries for Mobile, Tablet, Desktop
   =========================================== */

/* Large Desktop Styles */
@media (min-width: 1400px) {
  .container {
    max-width: 1600px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    gap: 3rem;
  }

  .cat-center {
    width: 90px;
    height: 90px;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 90px !important;
    height: 90px !important;
  }
}

/* Desktop - 1200px to 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
  }

  .about-content,
  .process-content {
    gap: 4rem;
  }
}

/* Medium Desktop - 1024px to 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }

  .about-content,
  .process-content {
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Small Desktop/Large Tablet - 900px to 1023px */
@media (max-width: 1023px) and (min-width: 900px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .cat-center {
    width: 70px;
    height: 70px;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 70px !important;
    height: 70px !important;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .process-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Tablet - 768px to 899px */
@media (max-width: 899px) and (min-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .cat-center {
    grid-column: 2;
    justify-self: center;
    position: static !important;
    transform: none !important;
    width: 65px;
    height: 65px;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    justify-self: end;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 65px !important;
    height: 65px !important;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-content,
  .process-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto 3rem;
  }
}

/* Mobile Large - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .logo h1 {
    font-size: 1.4rem;
    color: var(--primary-blue) !important;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .cat-center {
    grid-column: 2;
    justify-self: center;
    position: static !important;
    transform: none !important;
    width: 60px;
    height: 60px;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    justify-self: end;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 60px !important;
    height: 60px !important;
  }

  .hero {
    padding: 6rem 1rem 4rem;
    min-height: 85vh;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 0.95rem;
    min-height: 48px;
    min-width: 160px;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-card {
    margin: 0 auto;
    max-width: 450px;
  }

  .product-image {
    height: 280px;
  }

  .about-content,
  .process-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 350px;
    margin: 0 auto 3rem;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .gallery-item {
    max-width: 450px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Production Process - Mobile */
  .process-intro h3 {
    font-size: 1.6rem;
  }

  .process-intro p {
    font-size: 1.1rem;
  }

  .process-step {
    padding: 1.5rem;
    gap: 1rem;
  }

  .process-step:hover {
    transform: translateX(5px);
  }

  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .step-content h4 {
    font-size: 1.2rem;
  }

  .step-content p {
    font-size: 0.95rem;
  }

  .process-highlights {
    grid-template-columns: 1fr;
  }

  .highlight-item {
    padding: 1.2rem;
  }

  .highlight-item i {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .highlight-item span {
    font-size: 0.9rem;
  }
}

/* Mobile Medium - 480px to 575px */
@media (max-width: 575px) and (min-width: 480px) {
  nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .logo h1 {
    font-size: 1.2rem;
    color: var(--primary-blue) !important;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .cat-center {
    width: 55px;
    height: 55px;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 55px !important;
    height: 55px !important;
  }

  .hero {
    padding: 5rem 0.75rem 3rem;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .cta-button {
    min-width: 140px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .product-card {
    max-width: 400px;
    padding: 1.5rem;
  }

  .product-image {
    height: 250px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .mobile-menu-links a {
    font-size: 1.4rem;
  }

  .about-text h3 {
    font-size: 1.4rem;
  }

  /* Production Process - Small Mobile */
  .process-intro h3 {
    font-size: 1.4rem;
  }

  .process-intro p {
    font-size: 1rem;
  }

  .process-step {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    align-self: center;
  }

  .step-content h4 {
    font-size: 1.1rem;
  }

  .step-content p {
    font-size: 0.9rem;
  }

  .highlight-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .highlight-item i {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    align-self: center;
  }

  .email-cta-card {
    padding: 2rem 1.5rem;
  }

  .email-primary-btn {
    min-width: 200px;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
}

/* Mobile Small - 360px to 479px */
@media (max-width: 479px) and (min-width: 360px) {
  nav {
    padding: 0 0.5rem;
    gap: 0.25rem;
  }

  .logo h1 {
    font-size: 1rem;
    color: var(--primary-blue) !important;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .cat-center {
    width: 50px;
    height: 50px;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 50px !important;
    height: 50px !important;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-card {
    max-width: 320px;
  }

  .container {
    padding: 0 0.5rem;
  }

  .mobile-menu-links a {
    font-size: 1.2rem;
  }

  .catalog-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .service-card {
    padding: 1.5rem;
  }

  .about-text h3 {
    font-size: 1.4rem;
  }

  .catalog-info h3 {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .contact-item.enhanced {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    align-self: center;
  }

  .partnership-benefits {
    padding: 1.5rem;
  }

  .gallery-item img {
    height: 220px;
  }

  .gallery-label {
    font-size: 1rem;
  }
}

/* Mobile Extra Small - below 360px */
@media (max-width: 359px) {
  nav {
    padding: 0 0.25rem;
  }

  .logo h1 {
    font-size: 0.9rem;
    color: var(--primary-blue) !important;
  }

  .logo img {
    width: 25px;
    height: 25px;
  }

  .cat-center {
    width: 45px;
    height: 45px;
  }

  #catWrapper lottie-player,
  #catAnimation {
    width: 45px !important;
    height: 45px !important;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 0.25rem;
  }

  .cta-button {
    min-width: 120px;
    padding: 8px 16px;
  }

  .catalog-btn {
    min-height: 42px;
    padding: 10px 18px;
  }
}

/* Standard Mobile Styles - 768px and below */
@media (max-width: 768px) {
  /* Show mobile menu toggle, hide desktop nav */
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero {
    padding: 6rem 1rem 4rem;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 1rem;
    min-height: 50px;
    min-width: 180px;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .product-image {
    height: 280px;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text h3 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto 3rem;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .gallery-item {
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-item img {
    height: 250px;
  }

  .gallery-item:hover {
    transform: translateY(-5px) rotateY(0deg);
  }

  .gallery-label {
    font-size: 1.1rem;
  }

  /* Production Process - Mobile */
  .process-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-intro h3 {
    font-size: 1.6rem;
  }

  .process-intro p {
    font-size: 1.1rem;
  }

  .process-step {
    padding: 1.5rem;
    gap: 1rem;
  }

  .process-step:hover {
    transform: translateX(5px);
  }

  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .step-content h4 {
    font-size: 1.2rem;
  }

  .step-content p {
    font-size: 0.95rem;
  }

  .process-highlights {
    grid-template-columns: 1fr;
  }

  .highlight-item {
    padding: 1.2rem;
  }

  .highlight-item i {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .highlight-item span {
    font-size: 0.9rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Catalog Section */
  .catalog-info {
    padding: 2.5rem;
  }

  .catalog-info h3 {
    font-size: 1.8rem;
  }

  .catalog-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .catalog-btn {
    font-size: 0.95rem;
    padding: 14px 24px;
    min-height: 48px;
  }

  /* Contact Section */
  .email-cta-card {
    flex-direction: column;
    padding: 2.5rem 2rem;
    text-align: center;
  }

  .email-cta-content h3 {
    font-size: 1.8rem;
  }

  .email-cta-content p {
    font-size: 1.1rem;
  }

  .email-primary-btn {
    min-width: 250px;
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  .email-cta-icon {
    display: none;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-item.enhanced {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-icon {
    align-self: center;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .partnership-benefits {
    padding: 2rem;
  }

  .partnership-benefits h3 {
    font-size: 1.6rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Spacing Adjustments */
  .products-showcase,
  .about,
  .production-process,
  .services,
  .catalog,
  .contact {
    padding: 4rem 0;
  }

  /* Footer */
  footer {
    padding: 2rem 0;
  }

  .footer-content p {
    font-size: 0.9rem;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .hero,
  .services,
  footer {
    background: white !important;
    color: black !important;
  }

  .nav-links,
  .mobile-menu-toggle,
  .mobile-menu,
  .cta-button,
  .catalog-buttons,
  .submit-btn {
    display: none;
  }

  .section-title {
    color: black !important;
  }

  a {
    text-decoration: underline;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before {
    animation: none;
  }

  .hero::after {
    animation: none;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    display: none !important;
  }
}

/* --- Hard hide desktop nav on phones & tablets --- */
@media (max-width: 1199px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* --- KILL SWITCH: never show desktop nav under 1200px & prevent side scroll --- */
@media (max-width: 1199px) {
  header nav .nav-links {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  /* Belt & suspenders to stop any horizontal scroll */
  html,
  body,
  header,
  nav {
    max-width: 100%;
    overflow-x: hidden !important;
  }
}
