/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .service-card .card-img-top {
        height: 150px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .price-card .price {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .reviews-swiper .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        transition: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px;
        margin: 0 0.3rem;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Enable Swiper effects for tablets and up */
    .reviews-swiper {
        overflow: hidden;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px;
        margin: 0 0.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .feature-box {
        padding: 2.5rem;
    }
    
    .service-card .card-body {
        padding: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../PRI_images/hero-candles@2x.webp');
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
}

/* Print styles for responsive design */
@media print {
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-3 {
        width: 100% !important;
        display: block !important;
        margin-bottom: 1rem;
    }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none !important;
    }
    
    .service-card:hover,
    .feature-box:hover,
    .team-member:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    .gallery-section img:hover {
        transform: none !important;
    }
    
    .swiper-wrapper {
        transition: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --dark-text: #e5e5e5;
        --medium-text: #b3b3b3;
        --border-light: #333;
    }
    
    body {
        background-color: var(--light-bg);
        color: var(--dark-text);
    }
    
    .feature-box,
    .service-card,
    .price-card,
    .team-member,
    .review-card,
    .contact-form {
        background: #2a2a2a;
        border: 1px solid #333;
    }
    
    .accordion-button {
        background: #2a2a2a;
        color: var(--dark-text);
    }
    
    .accordion-body {
        background: #2a2a2a;
    }
    
    .form-control {
        background: #2a2a2a;
        border-color: #333;
        color: var(--dark-text);
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .service-card:hover,
    .feature-box:hover,
    .team-member:hover {
        transform: none;
    }
}

/* Container adjustments for very small screens */
@media (max-width: 320px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .service-card .card-img-top {
        height: 220px;
    }
    
    .gallery-section .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Large desktop optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 5rem 0;
    }
}

/* Ensure touch targets are adequately sized on mobile */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .accordion-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Optimize images for different screen sizes */
@media (max-width: 575.98px) {
    .hero-image img,
    .service-card .card-img-top,
    .gallery-section img {
        max-width: 100%;
        height: auto;
    }
}

/* Prevent horizontal scroll on small screens */
@media (max-width: 575.98px) {
    body {
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12,
    .col-md-6,
    .col-lg-4,
    .col-lg-3 {
        padding-left: 10px;
        padding-right: 10px;
    }
} 