/* TeaZen - Responsive Design CSS */

/* Extra Small Devices (Phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .price-card,
    .team-member,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .service-card .card-body,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-content {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Team Section */
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    .team-member {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 1rem;
        padding: 1.5rem;
    }
    
    .timeline-year {
        left: -1rem;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    /* Gallery */
    .gallery-img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Blog */
    .blog-img {
        height: 150px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 0.6rem;
    }
    
    /* Spacing */
    .py-5 {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Accordion */
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    /* Cards */
    .service-card .card-body,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-content {
        padding: 1.3rem;
    }
    
    /* Team Section */
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 2rem;
    }
    
    .timeline-year {
        left: -2rem;
    }
    
    /* Gallery */
    .gallery-img {
        height: 220px;
    }
    
    /* Blog */
    .blog-img {
        height: 180px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Cards Layout */
    .service-card,
    .feature-card,
    .price-card,
    .team-member,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team Section */
    .team-photo {
        width: 75px;
        height: 75px;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 2.5rem;
    }
    
    .timeline-year {
        left: -2.5rem;
    }
    
    /* Gallery */
    .gallery-img {
        height: 240px;
    }
    
    /* Blog */
    .blog-img {
        height: 190px;
    }
    
    /* Process Steps - Adjust for medium screens */
    .process-step {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    /* Cards have more space */
    .service-card,
    .feature-card,
    .price-card,
    .team-member,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* Team Section */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 3rem;
    }
    
    .timeline-year {
        left: -3rem;
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.2rem;
    }
    
    .hero-section p {
        font-size: 1.3rem;
    }
    
    /* Container adjustments for very large screens */
    .container {
        max-width: 1200px;
    }
    
    /* Cards spacing */
    .service-card,
    .feature-card,
    .price-card,
    .team-member,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        margin-bottom: 2.5rem;
    }
    
    /* Enhanced padding for large screens */
    .service-card .card-body,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-content {
        padding: 2rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
    
    /* Team Section */
    .team-photo {
        width: 90px;
        height: 90px;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 3.5rem;
        padding: 2.5rem;
    }
    
    .timeline-year {
        left: -3.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Hero Section adjustments for landscape mobile */
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Reduce spacing for landscape */
    .py-5 {
        padding: 1.5rem 0;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text on high DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Image optimization for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .breadcrumb-nav,
    .btn,
    .contact-form,
    footer {
        display: none !important;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Ensure proper page breaks */
    .service-card,
    .feature-card,
    .price-card,
    .team-member,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Remove shadows and gradients for print */
    * {
        box-shadow: none !important;
        background: #fff !important;
    }
}

/* Dark Mode Support (if user preferences allow) */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .service-card:hover,
    .feature-card:hover,
    .price-card:hover,
    .team-member:hover,
    .blog-card:hover,
    .gallery-img:hover,
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    /* Enhanced focus styles for keyboard navigation */
    .navbar-nav .nav-link:focus,
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 2px solid var(--accent-golden);
        outline-offset: 2px;
    }
}

/* Container Adjustments for Different Screen Sizes */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Flexbox Adjustments for Different Screen Sizes */
@media (max-width: 767.98px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Navigation Adjustments for Mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-tea-green);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 