/* ============================================
   LENS & LIGHT - Responsive Stylesheet
   Mobile-first responsive breakpoints
   ============================================ */

/* ---- Logo Image Responsive ---- */
@media (max-width: 768px) {
  body.logo-mode-image .nav-logo .logo-image {
    height: 32px;
  }
  body.logo-mode-image .footer-brand .footer-logo .logo-image {
    height: 36px;
  }
  body.logo-mode-image .preloader-logo .logo-image {
    height: 48px;
  }
}

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  .about-grid {
    gap: var(--spacing-lg);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-card.large {
    height: 350px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-layout,
  .articles-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .process-timeline::before {
    display: none;
  }

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

  .article-item {
    grid-template-columns: 200px 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .service-detail:nth-child(even) .service-detail-image {
    order: 0;
  }
}

/* ---- Small Tablet (max-width: 768px) ---- */
@media (max-width: 768px) {
  :root {
    --spacing-xxl: 6rem;
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

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

  .hero-scroll-indicator {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    padding-left: 0;
  }

  .about-image img {
    height: 350px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .portfolio-filters {
    gap: 0.8rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-featured-card.small {
    height: 200px;
  }

  .blog-featured {
    gap: 1rem;
  }

  /* Articles */
  .article-featured {
    height: 300px;
  }

  .article-featured-overlay h2 {
    font-size: 1.5rem;
  }

  .article-item {
    grid-template-columns: 1fr;
  }

  .article-item-image {
    height: 200px;
  }

  .article-item-content {
    padding: 1.5rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Process */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Page Hero */
  .page-hero {
    height: 45vh;
    min-height: 300px;
  }

  /* Stats */
  .stat-number {
    font-size: 2rem;
  }

  /* Testimonials */
  .testimonial-quote {
    font-size: 1.1rem;
    padding: 0;
  }

  .testimonial-quote::before {
    font-size: 4rem;
    top: -1rem;
    left: 0;
  }

  /* Custom cursor - disable on touch devices */
  .custom-cursor {
    display: none !important;
  }
}

/* ---- Mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
  :root {
    --spacing-xxl: 4rem;
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
  }

  .container {
    padding: 0 1.2rem;
  }

  /* Hero */
  .hero-content {
    padding: 0 1.2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    letter-spacing: 3px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-align: center;
  }

  /* About */
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    height: 280px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Section Headers */
  .section-header .subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  /* Service Cards */
  .service-card-image {
    height: 220px;
  }

  /* Blog Featured */
  .blog-featured-card.large {
    height: 280px;
  }

  /* Pricing */
  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-card .price {
    font-size: 2.8rem;
  }

  /* FAQ */
  .faq-question h4 {
    font-size: 0.9rem;
  }

  /* Back to top */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  /* Footer */
  .footer-social {
    justify-content: center;
  }
}

/* ---- Large Screens (min-width: 1400px) ---- */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Touch Device Adjustments ---- */
@media (hover: none) and (pointer: coarse) {
  .portfolio-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
  }

  .portfolio-overlay h4,
  .portfolio-overlay .category,
  .portfolio-overlay .view-icon {
    transform: none;
  }

  .portfolio-item img {
    transform: scale(1.05);
  }

  .custom-cursor {
    display: none !important;
  }

  /* Remove hover effects on touch */
  .service-card:hover,
  .blog-card:hover,
  .pricing-card:hover {
    transform: none;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-subtitle,
  .hero-title,
  .hero-description,
  .hero-buttons {
    opacity: 1;
    transform: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ---- Print Styles ---- */
@media print {
  .navbar,
  .hamburger,
  .mobile-menu,
  .back-to-top,
  .preloader,
  .custom-cursor,
  .lightbox {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    height: auto;
    min-height: auto;
  }

  .section {
    padding: 2rem 0;
  }
}
