/* ========================================
   WOODEN PUZZLE-BOX MARKETPLACE - RESPONSIVE CSS
   Mobile-First Responsive Design
   ======================================== */

/* ========================================
   EXTRA SMALL DEVICES (Portrait phones, less than 576px)
   ======================================== */

@media (max-width: 575.98px) {
  /* Typography adjustments */
  :root {
    --h1-size: 1.5rem;
    --navbar-brand-size: 1rem;
    --p-size: 0.9rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 1.02rem;
  }
  
  /* Navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.2rem 0;
    padding: 0.5rem;
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.84rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .price-card,
  .team-member,
  .review-card {
    margin-bottom: 1.58rem;
  }
  
  .service-content,
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.32rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
}

/* ========================================
   SMALL DEVICES (Landscape phones, 576px and up)
   ======================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.22rem;
  }
  
  .hero-subtitle {
    font-size: 1.44rem;
  }
  
  .section-title {
    font-size: 2.31rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* ========================================
   MEDIUM DEVICES (Tablets, 768px and up)
   ======================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.62rem;
  }
  
  .hero-subtitle {
    font-size: 1.46rem;
  }
  
  .section-title {
    font-size: 2.36rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  /* Adjust spacing for tablets */
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 50px;
  }
}

/* ========================================
   LARGE DEVICES (Desktops, 992px and up)
   ======================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-image img {
    transform: perspective(1000px) rotateY(-3deg);
  }
}

/* ========================================
   EXTRA LARGE DEVICES (Large desktops, 1200px and up)
   ======================================== */

@media (min-width: 1200px) {
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 3.58rem;
  }
  
  .hero-subtitle {
    font-size: 1.63rem;
  }
  
  .section-title {
    font-size: 2.85rem;
  }
  
  .hero-image img {
    transform: perspective(1000px) rotateY(-8deg);
  }
  
  /* Enhanced spacing for large screens */
  .section {
    padding: 100px 0;
  }
  
  .section-header {
    margin-bottom: 80px;
  }
}

/* ========================================
   EXTRA EXTRA LARGE DEVICES (1400px and up)
   ======================================== */

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ======================================== */

@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 30px 0;
  }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }
  
  .hero-section,
  .section {
    padding: 20px 0;
    background: white !important;
  }
  
  .hero-title,
  .section-title {
    color: black !important;
    font-size: 18pt;
  }
  
  .service-card,
  .feature-card,
  .price-card {
    border: 1px solid #d5d5d5;
    background: white !important;
    box-shadow: none !important;
    margin-bottom: 15px;
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus-visible,
  .btn:focus-visible,
  .form-control:focus-visible {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .price-card,
  .team-member,
  .review-card {
    border: 2px solid;
  }
  
  .btn-submit {
    border: 2px solid;
  }
}

/* Dark mode preference (if supported by user) */

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  /* Touch-friendly sizing */
  .nav-link,
  .btn,
  .form-control {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-member:hover,
  .review-card:hover {
    transform: none;
  }
  
  /* Tap highlights */
  .nav-link,
  .btn,
  .blog-link {
    -webkit-tap-highlight-color: rgba(209, 53, 4, 0.30);
  }
}

/* ========================================
   CONTAINER ADJUSTMENTS
   ======================================== */

/* Custom container max-widths for better visual balance */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1200px;
  }
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
} 

.hero-content {
    padding-top: 275px;
}