/* ============================================================================
   RESPONSIVE STYLES FOR SPECIALTY LOOSE-LEAF TEA HOUSE
   ============================================================================ */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .service-card,
  .price-plan,
  .review-card {
    margin-bottom: 1.96rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .price-value {
    font-size: 2.55rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .navbar-brand {
    font-size: 1.23rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .process-item,
  .timeline-item {
    padding-left: 2rem;
  }
  
  .process-item::before,
  .timeline-item::before {
    width: 20px;
    height: 20px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: 95vh;
  }
  
  .hero h1 {
    font-size: 2.35rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .price-value {
    font-size: 2.77rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .contact-form {
    padding: 1.75rem;
  }
  
  .card-body {
    padding: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero h1 {
    font-size: 2.53rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .price-value {
    font-size: 3rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .service-card {
    height: 100%;
  }
  
  .review-card {
    height: 100%;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer {
    padding: 3rem 0 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 100vh;
  }
  
  .price-plan.featured {
    transform: scale(1.03);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .team-member {
    padding: 2rem;
  }
  
  .review-card {
    padding: 2.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .price-plan.featured {
    transform: scale(1.05);
  }
  
  .service-card {
    padding: 3rem 2rem;
  }
  
  .team-member {
    padding: 2.5rem;
  }
  
  .review-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .casestudy-item {
    padding: 3rem;
  }
}

/* Height-based responsive adjustments */
@media (max-height: 700px) {
  .hero {
    min-height: 90vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (max-height: 500px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

/* Print styles */
@media print {
  .hero {
    min-height: auto;
    background: white;
    padding: 2rem 0;
  }
  
  .hero::before {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #dddddd;
  }
  
  .btn {
    display: none;
  }
  
  .footer {
    background: white;
    color: #484848;
    border-top: 1px solid #dbdbdb;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: auto;
  }
  
  .contact-form {
    box-shadow: none;
    border: 1px solid #f5f5f5;
  }
}

/* Focus states for better accessibility */
@media (min-width: 768px) {
  .card:focus-within {
    outline: 2px solid var(--tea-green);
    outline-offset: 2px;
  }
  
  .service-card:focus-within {
    outline: 2px solid var(--tea-green);
    outline-offset: 2px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero {
    background: #f8f9fa;
  }
  
  .hero::before {
    display: none;
  }
  
  .card {
    border: 2px solid #323232;
  }
  
  .btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #343232;
  }
  
  .btn-primary:hover {
    background: #454545;
    color: #fff;
  }
}

/* Reduced motion media query support */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  .card {
    transition: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .service-card {
    transition: none;
  }
  
  .gallery-item img {
    transition: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary {
    transition: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
  
  .service-card:hover {
    background: white;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .btn-primary {
    padding: 1rem 2rem;
  }
  
  .form-control {
    padding: 1rem;
  }
}

/* Dark mode support (if user prefers dark color scheme) */

.hero-content {
    padding-top: 250px;
}