/* Responsive CSS for ArtisanScents Template */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-bg-shapes .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero-bg-shapes .shape-2 {
        width: 200px;
        height: 200px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2, .display-5 {
        font-size: 1.875rem;
    }
    
    .hero-bg-shapes .shape-1 {
        width: 180px;
        height: 180px;
    }
    
    .hero-bg-shapes .shape-2 {
        width: 120px;
        height: 120px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .display-5 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 80vh;
    }
    
    .hero-bg-shapes .shape-1 {
        width: 120px;
        height: 120px;
        top: 5%;
        right: 5%;
    }
    
    .hero-bg-shapes .shape-2 {
        width: 100px;
        height: 100px;
        bottom: 10%;
        left: 3%;
    }
    
    /* Section spacing */
    section {
        padding: 4rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 220px;
    }
    
    /* Team member photos */
    .team-photo img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Gallery grid adjustments */
    #gallery img {
        height: 200px;
    }
    
    /* Timeline adjustments */
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-content {
        margin-left: 70px;
    }
    
    .timeline-item .row {
        flex-direction: column;
    }
    
    .timeline-item .col-md-6.order-md-2,
    .timeline-item .col-md-6.order-md-1 {
        order: 1;
    }
    
    .timeline-content.text-md-end {
        text-align: left !important;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 1.875rem;
    }
    
    h2, .display-5 {
        font-size: 1.625rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Disable animations on mobile */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-bg-shapes,
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Team photos */
    .team-photo img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 150px;
    }
    
    /* Contact form */
    .contact-form .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Timeline mobile layout */
    .timeline-container::before {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    /* Footer adjustments */
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Price cards */
    .price {
        font-size: 1.75rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2, .display-5 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, .fs-5 {
        font-size: 1.125rem;
    }
    
    .navbar-brand {
        font-size: 0.95rem !important;
    }
    
    p, .lead {
        font-size: 0.95rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    /* Completely disable animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Hide decorative elements */
    .hero-bg-shapes,
    .hero-shape-1,
    .hero-shape-2 {
        display: none !important;
    }
    
    /* Header adjustments */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Section spacing */
    section {
        padding: 2.5rem 0;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 160px;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team section */
    .team-photo img {
        width: 70px;
        height: 70px;
    }
    
    .team-member h5 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .team-member p {
        font-size: 0.825rem;
    }
    
    /* Process steps */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .process-step h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .process-step p {
        font-size: 0.825rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 120px;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 0 !important;
    }
    
    footer h5, footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer p, footer li {
        font-size: 0.875rem;
    }
    
    /* Price display */
    .price {
        font-size: 1.5rem;
    }
    
    /* Icon adjustments */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.5rem !important;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 0.75rem 0;
        margin-top: 70px !important;
    }
    
    /* Lightbox mobile optimization */
    .lb-container {
        padding: 0.5rem;
    }
    
    .lb-nav {
        height: 100vh;
    }
    
    /* Ensure text is readable */
    .text-muted {
        color: #64748b !important;
    }
    
    /* Spacing adjustments */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Grid adjustments */
    .g-4 > * {
        margin-bottom: 1.5rem;
    }
    
    .g-5 > * {
        margin-bottom: 2rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 50vh;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg-shapes .shape-1,
    .hero-bg-shapes .shape-2,
    .hero-bg-shapes .shape-3 {
        transform: translateZ(0);
    }
}

/* Print media queries */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .breadcrumb-section,
    footer,
    .hero-bg-shapes,
    [data-sal] {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Dark mode support (future-proofing) */