/* Responsive CSS for Ice Cream Parlor Template */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item,
  .price-plan,
  .review-item {
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .service-item,
  .price-plan {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .review-item {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 2.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575px) {
  :root {
    --font-size-base: 0.85rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .section-desc {
    font-size: 0.8rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .service-item,
  .price-plan {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .service-price,
  .price-plan-price {
    font-size: 1.25rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-name {
    font-size: 0.9rem;
  }
  
  .team-role {
    font-size: 0.75rem;
  }
  
  .contact-form {
    padding: 1.25rem;
  }
  
  .form-control {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .review-item {
    padding: 1.25rem;
  }
  
  .review-item::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
  
  .review-text {
    font-size: 0.8rem;
    padding-left: 1.5rem;
  }
  
  .review-author {
    font-size: 0.75rem;
  }
  
  .faq-question {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .faq-answer {
    padding: 0.75rem;
    font-size: 0.75rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 12px;
    height: 12px;
  }
  
  .timeline-item::after {
    left: 5px;
  }
  
  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .blog-content {
    padding: 1.25rem;
  }
  
  .blog-title {
    font-size: 0.9rem;
  }
  
  .blog-excerpt {
    font-size: 0.75rem;
  }
  
  .card-body {
  overflow-x: hidden;
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-text {
    font-size: 0.75rem;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-title {
    font-size: 0.9rem;
  }
  
  .footer-link {
    font-size: 0.75rem;
  }
  
  #site-copyright {
    font-size: 0.7rem;
  }
}

/* Ultra Small Devices (less than 400px) */
@media (max-width: 399px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .service-item,
  .price-plan,
  .contact-form,
  .review-item {
    padding: 1rem;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
}

/* Landscape Phone Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-desc {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn,
  #hero {
    display: none !important;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .section-title {
    font-size: 18pt;
    color: black !important;
  }
  
  .card,
  .service-item,
  .price-plan {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none !important;
  }
  
  .card:hover,
  .service-item:hover,
  .price-plan:hover,
  .blog-post:hover,
  .gallery-item:hover {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
  
  * {
    transition: none !important;
  }
}
