/* Responsive CSS for Artisan Honey Template */

/* Mobile First Approach - Base styles are for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --h1-size: 1.8rem;
    --h2-size: 1.5rem;
    --h3-size: 1.3rem;
    --navbar-brand-size: 1.2rem;
  }

  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }

  .hero-decorative-blob {
    display: none;
  }

  .service-card,
  .price-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  .services-section {
    margin-bottom: 0;
    padding-bottom: 5rem;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }

  .contact-form {
    padding: 2rem 1rem;
  }

  .gallery-image {
    height: 200px;
  }

  .navbar-brand {
    font-size: var(--navbar-brand-size) !important;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .blog-card {
    margin-bottom: 1.5rem;
  }

  .additional-section {
    padding: 2rem 0;
  }

  .process-step,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .casestudy-item {
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }

  .service-card {
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .contact-form {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }

  .hero-decorative-blob {
    display: block;
  }

  .service-card,
  .price-card {
    margin-bottom: 0;
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }

  .gallery-image {
    height: 250px;
  }

  .contact-form {
    max-width: 600px;
  }

  .additional-section {
    padding: 3rem 0;
  }

  .navbar-nav {
    margin-left: auto;
  }

  .hero-content .row {
    align-items: center;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .service-card {
    min-height: 450px;
  }

  .price-card {
    height: 400px;
  }

  .team-photo {
    width: 200px;
    height: 200px;
  }

  .gallery-image {
    height: 280px;
  }

  .contact-form {
    max-width: 800px;
  }

  .hero-section .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .additional-section {
    padding: 4rem 0;
  }

  .process-step {
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .coreinfo-item {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-section {
    padding: 0;
  }

  .service-card {
    min-height: 480px;
  }

  .price-card {
    height: 450px;
  }

  .gallery-image {
    height: 300px;
  }

  .additional-section {
    padding: 5rem 0;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-decorative-blob.blob-1 {
    width: 250px;
    height: 250px;
  }

  .hero-decorative-blob.blob-2 {
    width: 200px;
    height: 200px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-decorative-blob,
  .footer {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  body { overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }

  .service-card,
  .price-card,
  .review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .review-card,
  .blog-card,
  .contact-form {
    border: 2px solid #000;
  }

  .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
  }

  .navbar {
    border-bottom: 2px solid #000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative-blob {
    animation: none !important;
  }

  .service-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: none !important;
  }

  .gallery-image:hover {
    transform: none !important;
  }

  .btn-primary:hover {
    transform: none !important;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-amber);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-amber);
  color: white;
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-to-content:focus {
  top: 0;
}

/* Container adjustments for better mobile experience */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .col,
  [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Landscape phone specific styles */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 120vh;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section .col-md-6 {
    margin-bottom: 2rem;
  }

  .service-card {
    max-width: 350px;
    margin: 0 auto 2rem;
  }

  .price-card {
    max-width: 300px;
    margin: 0 auto 2rem;
  }
} 