/* ==========================================================================
   Tea House Template - Responsive CSS
   Mobile-First Design
   ========================================================================== */

/* Base Mobile Styles (320px+) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  
  /* Spacing */
  section {
    padding: 2rem 0;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    text-align: center;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-section .container {
    padding-top: 5rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-group .btn {
    width: auto;
  }
  
  /* Forms */
  .form-control {
    padding: 0.6rem;
    font-size: 1rem;
  }
  
  .contact-form .row {
    margin-bottom: 1rem;
  }
  
  /* Team Members */
  .team-member {
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  /* Timeline */
  .timeline-year {
    width: 70px;
    height: 70px;
    font-size: 1rem;
  }
  
  /* Gallery */
  .gallery .col-lg-4,
  .gallery .col-md-6 {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  footer .col-lg-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  footer h5 {
    margin-bottom: 1rem;
  }
  
  /* Accordion */
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
  
  /* Utility Classes */
  .text-center-mobile {
    text-align: center;
  }
  
  .mb-mobile {
    margin-bottom: 1.5rem;
  }
  
  .px-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  
  .display-5 { font-size: 1.75rem; }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  .hero-section .lead {
    font-size: 1.15rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 200px;
  }
  
  /* Buttons */
  .btn {
    width: auto;
    margin-bottom: 0;
  }
  
  /* Team Members */
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  /* Process Steps */
  .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  /* Timeline */
  .timeline-year {
    width: 75px;
    height: 75px;
    font-size: 1.1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.25rem; }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section .lead {
    font-size: 1.2rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 220px;
  }
  
  /* Team Members */
  .team-member img {
    width: 115px;
    height: 115px;
  }
  
  /* Process Steps */
  .step-number {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }
  
  /* Timeline */
  .timeline-year {
    width: 78px;
    height: 78px;
    font-size: 1.15rem;
  }
  
  /* Navigation */
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container */
  .container {
    max-width: 960px;
  }
  
  /* Cards */
  .card-img-top {
    height: 200px;
  }
  
  /* Team Members */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Process Steps */
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Timeline */
  .timeline-year {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container */
  .container {
    max-width: 1140px;
  }
  
  /* Typography */
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.5rem; }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.25rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 220px;
  }
  
  /* Spacing */
  section {
    padding: 4rem 0;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  /* Container */
  .container {
    max-width: 1320px;
  }
  
  /* Typography */
  h1 { font-size: 3rem; }
  h2 { font-size: 2.75rem; }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .hero-section .lead {
    font-size: 1.3rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 240px;
  }
  
  /* Spacing */
  section {
    padding: 5rem 0;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section .container {
    padding-top: 4rem;
  }
  
  .card-img-top {
    height: 180px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-section .container {
    padding-top: 3rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .nav-link {
    padding: 1rem !important;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  /* Remove hover effects */
  .card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .team-member:hover img {
    transform: none;
  }
  
  .gallery img:hover {
    transform: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images are crisp on high-DPI displays */
  .card-img-top,
  .hero-section img,
  .team-member img,
  .gallery img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  /* Hide interactive elements */
  .navbar,
  .btn,
  .accordion-button,
  .breadcrumb-nav {
    display: none !important;
  }
  
  /* Optimize layout for print */
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  section {
    padding: 1rem 0;
  }
  
  /* Ensure text is readable */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove animations for users who prefer reduced motion */
  .card,
  .btn,
  .team-member img,
  .gallery img {
    transition: none !important;
  }
  
  .card:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* Custom Responsive Utilities */
.visible-mobile {
  display: none;
}

.hidden-mobile {
  display: block;
}

@media (max-width: 767.98px) {
  .visible-mobile {
    display: block;
  }
  
  .hidden-mobile {
    display: none;
  }
  
  .text-center-mobile {
    text-align: center;
  }
  
  .mb-4-mobile {
    margin-bottom: 1.5rem;
  }
}

/* Grid Adjustments */
@media (max-width: 991.98px) {
  .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }
  
  .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

/* Responsive Typography Scale */
@media (max-width: 575.98px) {
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }
  .display-6 { font-size: 1.1rem; }
  
  .lead {
    font-size: 1.1rem;
  }
}

/* Responsive Spacing */
@media (max-width: 767.98px) {
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .my-5 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2.5rem !important;
  }
  
  .mt-5 {
    margin-top: 2.5rem !important;
  }
}

/* Responsive Images */
@media (max-width: 767.98px) {
  .img-fluid {
    max-width: 100%;
    height: auto;
  }
  
  .rounded-circle {
    width: 80px;
    height: 80px;
  }
}

/* Container Responsive Padding */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Responsive Tables */
@media (max-width: 767.98px) {
  .table-responsive {
    border: none;
  }
  
  .table {
    font-size: 0.875rem;
  }
}

/* Responsive Modals */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-content {
    border-radius: 0.5rem;
  }
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
  }
} 