/* Responsive Design Overrides - Mobile First */

/* Very Small Devices (320px and up) */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 4%;
    }

    h1, .header-title {
        font-size: 1.8rem !important;
    }

    h2, .section-title {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .section-padding {
        padding: 50px 0 !important;
    }
}

/* Small Devices (481px to 768px) */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .container {
        padding: 0 4%;
    }

    /* Header */
    #site-header {
        padding: 15px 0;
    }

    .logo-link {
        font-size: 1.4rem !important;
        letter-spacing: 2px;
    }


    /* Typography */
    h1, .header-title {
        font-size: 2rem !important;
        letter-spacing: 0;
    }

    h2, .section-title {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    p {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 13px 25px;
        font-size: 0.85rem;
    }

    /* Forms */
    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .input-group label {
        font-size: 0.9rem;
    }

    /* Grids */
    .contact-grid,
    .custom-grid,
    .saree-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .section-padding {
        padding: 60px 0 !important;
    }

    /* Cards */
    .saree-card-img-wrapper {
        padding-top: 130% !important;
    }

    /* Page Headers */
    .page-header {
        padding: 80px 0 50px !important;
        margin-top: 70px;
    }

    .header-subtitle {
        font-size: 1rem !important;
    }

    .breadcrumbs {
        font-size: 0.85rem;
    }

    /* Info Items */
    .info-item {
        gap: 15px !important;
        margin-bottom: 35px !important;
    }

    .icon-box {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    /* Maps */
    .map-section {
        height: 300px !important;
    }

    /* Custom Steps */
    .custom-steps li {
        padding-left: 70px !important;
        margin-bottom: 25px !important;
    }

    .step-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }

    /* Filter Controls */
    .filter-controls {
        gap: 8px !important;
    }

    .filter-btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* Medium Devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 70px 0;
    }

    .contact-grid,
    .custom-grid {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .saree-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

/* Large Devices (1025px and up) */
@media (min-width: 1025px) {
    .container {
        padding: 0 5%;
    }
}

/* Landscape Tablets */
@media (max-height: 600px) and (orientation: landscape) {
    .page-header {
        padding: 60px 0 40px;
        margin-top: 60px;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 0.95rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .breadcrumbs,
    .btn,
    button {
        display: none;
    }

    body {
        background: white;
    }

    .page-header {
        background: none;
        border: none;
        padding: 20px 0;
    }

    .container {
        max-width: 100%;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .nav-links a::before {
        height: 3px;
    }

    .saree-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .saree-card:active {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .btn {
        padding: 14px 32px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accessibility - High Contrast */
@media (prefers-contrast: more) {
    body {
        background: #fff;
    }

    .nav-links a {
        font-weight: 700;
    }

    .form-select,
    .input-group input,
    .input-group textarea {
        background-color: #fff;
        border-color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    header {
        background: linear-gradient(135deg, rgba(30, 27, 23, 0.98) 0%, rgba(45, 42, 36, 0.98) 100%) !important;
    }

    .page-header {
        background: linear-gradient(135deg, #2a2520 0%, #3a3530 100%) !important;
    }

    .custom-section,
    .contact-section {
        background: #1a1915 !important;
    }

    body {
        background: #0f0d0a;
        color: #e0ddd8;
    }

    .input-group input,
    .input-group textarea,
    .input-group select {
        background: #2a2520;
        color: #e0ddd8;
        border-color: #544d44;
    }

    .luxury-form {
        background: #1a1915;
        border-color: rgba(212, 175, 55, 0.2);
    }

    h1, h2, h3, h4, h5, h6 {
        color: #f5f1e8;
    }
}
@media (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    h1 { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    
}

@media (max-width: 600px) {
    .container {
        padding: 0 5%;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
