/* Tea Blending Template - Responsive Styles */

/* ============================================
   MOBILE FIRST RESPONSIVE DESIGN
   ============================================ */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.64rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section .decorative-blob {
    width: 200px;
    height: 200px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .testimonial-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.94rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.96rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.26rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .hero-section .decorative-blob {
    width: 250px;
    height: 250px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.37rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.51rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.57rem;
  }
  
  .container-fluid {
    max-width: 1400px;
  }
}

/* ============================================
   NAVIGATION RESPONSIVE FIXES
   ============================================ */

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(115, 156, 96, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.23rem;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28254, 254, 248, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* ============================================
   HERO SECTION RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    text-align: center;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-image img {
    max-width: 350px;
  }
}

@media (min-width: 768px) {
  .hero-section .row {
    align-items: center;
  }
}

/* ============================================
   CARD RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 575.98px) {
  .card-body {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.15rem;
  }
  
  .service-price {
    font-size: 1.34rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================
   FORM RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 575.98px) {
  .form-control {
    padding: 0.8rem;
    font-size: 0.96rem;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1.03rem;
  }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .footer-title {
    font-size: 1.16rem;
  }
  
  .footer-content {
    font-size: 0.99rem;
  }
}

/* ============================================
   SECTION SPACING RESPONSIVE
   ============================================ */

@media (max-width: 575.98px) {
  .section-desc {
    font-size: 1.04rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .section-desc {
    font-size: 0.99rem;
    margin-bottom: 2.55rem;
  }
}

/* ============================================
   TESTIMONIAL SLIDER RESPONSIVE
   ============================================ */

@media (max-width: 575.98px) {
  .testimonials-slider {
    padding: 3rem 0;
  }
  
  .testimonial-text {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .testimonial-author {
    font-size: 0.97rem;
  }
}

/* ============================================
   ANIMATION RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-section .decorative-blob {
    animation: none;
  }
  
  .gallery-item:hover,
  .card:hover,
  .service-card:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar,
  .footer,
  .decorative-blob,
  .btn {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card,
  .service-card,
  .team-member {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 18pt;
  }
  
  .section-subtitle {
    font-size: 14pt;
  }
  
  a {
    text-decoration: none;
    color: #000 !important;
  }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
   ============================================ */

@media (prefers-contrast: high) {
  .card,
  .service-card,
  .contact-form,
  .faq-item {
    border: 2px solid var(--tea-brown-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--tea-brown-dark);
  }
  
  .form-control {
    border-width: 3px;
  }
  
  .navbar {
    border-bottom: 3px solid var(--tea-brown-dark);
  }
}

/* ============================================
   FOCUS STATES FOR ACCESSIBILITY
   ============================================ */

.nav-link:focus,
.btn:focus,
.form-control:focus,
.faq-question:focus {
  outline: 3px solid var(--tea-gold);
  outline-offset: 2px;
}

/* ============================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2rem;
    margin-bottom: 0.71rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
} 