/* Indian Craft Supply - Responsive Styles */
/* Mobile-first responsive design for all components */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero Section Mobile Adjustments */
    .hero-section {
        padding: 2rem 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important; /* Smaller on mobile */
    }
    
    .hero-section h2 {
        font-size: 1.5rem !important; /* Smaller on mobile */
    }
    
    .hero-features-container {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }
    
    .hero-features-container h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Stack features vertically on mobile */
    .hero-features-container .row .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .hero-features-container .row .col-md-4:last-child {
        margin-bottom: 0;
    }
    
    /* Adjust feature item spacing */
    /* Why Choose Us Section Mobile */
    .why-choose-card {
        margin-bottom: 1.5rem;
    }
    
    .why-choose-card .card-body {
        padding: 1.25rem !important;
    }
    
    .feature-number-circle {
        width: 2rem !important;
        height: 2rem !important;
        min-width: 2rem !important;
    }
    
    .feature-number-circle span {
        font-size: 0.875rem !important;
    }
    
    .why-choose-card h3 {
        font-size: 1rem !important;
    }
    
    .why-choose-card p {
        font-size: 0.875rem !important;
    }
    
    /* Footer Section Mobile */
    .footer-section {
        padding: 2.5rem 1rem !important;
    }
    
    .footer-brand-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-brand-section .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .footer-certifications {
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .footer-certifications .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    .footer-section h5 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem !important;
    }
    
    .footer-link {
        font-size: 0.875rem !important;
    }
    
    .footer-contact li {
        margin-bottom: 1rem !important;
    }
    
    .footer-contact .small {
        font-size: 0.8rem !important;
    }
    
    .footer-newsletter {
        padding: 1.25rem !important;
        margin-top: 2rem !important;
    }
    
    .footer-newsletter h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer-newsletter p {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-newsletter-form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .newsletter-input {
        margin-bottom: 0.5rem;
    }
    
    .newsletter-btn {
        width: 100% !important;
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .footer-social-link {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    
    /* Stack footer columns vertically */
    .footer-section .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer-section .col-lg-3:last-child {
        margin-bottom: 0;
    }
    
    /* Newsletter section */
    .footer-section .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Resources Section Mobile */
    .resources-section {
        padding: 2.5rem 1rem !important;
    }
    
    .resources-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .resources-section .lead {
        font-size: 0.9rem !important;
        margin-bottom: 2rem !important;
    }
    
    .resource-card {
        margin-bottom: 1rem;
    }
    
    .resource-card .card-body {
        padding: 1.25rem !important;
    }
    
    .resource-card .card-title {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    .resource-card .card-text {
        font-size: 0.875rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .resource-icon {
        width: 2rem !important;
        height: 2rem !important;
        margin-right: 0.75rem !important;
    }
    
    .resource-icon i {
        font-size: 0.75rem !important;
    }
    
    .resource-btn {
        padding: 0.75rem !important;
        font-size: 0.9rem;
    }
    
    /* Stack cards vertically on mobile */
    .resources-section .row.g-4 {
        gap: 1rem !important;
    }
    
    /* Touch-friendly hover effects */
    .resource-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* FAQ Section Mobile */
    .faq-section {
        padding: 2rem 1rem !important;
    }
    
    .faq-section h2 {
        font-size: 1.75rem !important;
    }
    
    .faq-section .lead {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }
    
    .faq-container {
        padding: 0;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
        border-radius: 0.5rem !important;
    }
    
    .faq-item .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .faq-item .accordion-button i {
        font-size: 0.875rem;
        margin-right: 0.5rem !important;
    }
    
    .faq-item .accordion-button::after {
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
    .faq-item .accordion-body {
        padding: 1rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .badge-yellow {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    /* Touch-friendly accordion */
    .faq-item .accordion-button {
        min-height: 48px;
    }
    
    /* Button Stack on Mobile */
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Certification Tabs Mobile */
    .cert-tabs-container .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .cert-tab-button {
        width: 100%;
        text-align: center;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Certification Grid Mobile */
    .certification-content .row.g-3 {
        gap: 0.75rem !important;
    }
    
    .cert-item {
        padding: 1rem !important;
    }
    
    .cert-image {
        width: 60px;
        height: 45px;
    }
    
    /* Product Cards Mobile */
    .product-card .row.g-0 {
        flex-direction: column;
    }
    
    .product-card .card-body {
        padding: 1.5rem !important;
    }
    
    /* Mobile Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0.375rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    /* Quote Form Mobile */
    .quote-form-container {
        margin: 0 1rem;
    }
    
    .quote-form-container .bg-white {
        padding: 1.5rem !important;
    }
    
    .quote-form-container h3 {
        font-size: 1.25rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .btn-ics-primary {
        padding: 0.875rem !important;
        font-size: 0.95rem;
    }
    
    /* Stack form fields on mobile */
    .quote-form-container .row.g-3 {
        gap: 1rem !important;
    }
    
    .quote-form-container .col-md-6 {
        margin-bottom: 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 1.5rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.875rem !important;
    }
    
    .hero-features-container {
        padding: 2rem !important;
        margin-top: 2.5rem !important;
    }
    
    /* Footer Section Tablet */
    .footer-section {
        padding: 3.5rem 1.5rem !important;
    }
    
    .footer-brand-section h3 {
        font-size: 1.75rem !important;
    }
    
    .footer-brand-section .lead {
        font-size: 1rem !important;
    }
    
    .footer-certifications .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .footer-section h5 {
        font-size: 1.125rem !important;
    }
    
    .footer-newsletter {
        padding: 1.75rem !important;
    }
    
    .footer-newsletter-form {
        gap: 0.75rem !important;
    }
    
    /* 2-column layout on tablet */
    .footer-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Resources Section Tablet */
    .resources-section {
        padding: 3.5rem 1.5rem !important;
    }
    
    .resources-section h2 {
        font-size: 2.25rem !important;
    }
    
    .resources-section .lead {
        font-size: 1rem !important;
    }
    
    .resource-card .card-body {
        padding: 1.5rem !important;
    }
    
    .resource-card .card-title {
        font-size: 1.0625rem !important;
    }
    
    .resource-card .card-text {
        font-size: 0.9rem !important;
    }
    
    .resource-icon {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    
    /* Ensure proper 2-column layout on tablet */
    .resources-section .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ Section Tablet */
    .faq-section {
        padding: 3rem 1.5rem !important;
    }
    
    .faq-section h2 {
        font-size: 2.25rem !important;
    }
    
    .faq-section .lead {
        font-size: 1rem !important;
    }
    
    .faq-container {
        max-width: 700px;
    }
    
    .faq-item .accordion-button {
        padding: 1.125rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-item .accordion-body {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Why Choose Us Section Tablet */
    .why-choose-card .card-body {
        padding: 1.5rem !important;
    }
    
    .feature-number-circle {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    
    .cert-tabs-container .d-flex.gap-2 {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cert-tab-button {
        min-width: 160px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 1.5rem !important;
    }
    
    .hero-features-container {
        padding: 2rem !important;
        margin-top: 3rem !important;
    }
    
    /* Maintain 3-column grid on tablets */
    .hero-features-container .row .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 2rem;
    }
    
    .product-tab-button {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    /* Certification Benefits Stack on Tablet */
    .cert-benefits .row.g-4 .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Quote Form Tablet */
    .quote-form-container .bg-white {
        padding: 2.5rem !important;
    }
    
    .form-control,
    .form-select {
        padding: 0.8rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section Desktop Layout */
    .hero-section {
        padding: 4rem 1.5rem !important;
    }
    
    .hero-features-container {
        padding: 2rem !important;
        margin-top: 3rem !important;
        max-width: none;
    }
    
    /* Perfect grid layout for desktop */
    .hero-features-container .row .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 2rem;
    }
    
    /* Footer Section Desktop */
    .footer-section {
        padding: 4.5rem 1.5rem !important;
    }
    
    .footer-brand-section h3 {
        font-size: 2.25rem !important;
    }
    
    .footer-brand-section .lead {
        font-size: 1.125rem !important;
    }
    
    .footer-newsletter {
        padding: 2rem !important;
    }
    
    .footer-newsletter-form {
        gap: 1rem !important;
    }
    
    /* Enhanced hover effects on desktop */
    .footer-link:hover {
        transform: translateX(10px) !important;
    }
    
    .footer-social-link:hover {
        transform: translateY(-5px) scale(1.2) !important;
        box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5) !important;
    }
    
    .footer-certifications .badge:hover {
        transform: translateY(-3px) !important;
    }
    
    /* Perfect 4-column layout */
    .footer-section .col-lg-3 {
        margin-bottom: 0;
    }
    
    /* Resources Section Desktop */
    .resources-section {
        padding: 4.5rem 1.5rem !important;
    }
    
    .resources-section h2 {
        font-size: 2.5rem !important;
    }
    
    .resources-section .lead {
        font-size: 1.125rem !important;
    }
    
    .resource-card .card-body {
        padding: 2rem !important;
    }
    
    .resource-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    }
    
    .resource-icon:hover {
        transform: scale(1.15) !important;
    }
    
    /* Perfect 4-column layout */
    .resources-section .col-lg-3 {
        max-width: 25%;
        flex: 0 0 25%;
    }
    
    /* Enhanced hover animations */
    .resource-btn:hover {
        transform: translateY(-2px) !important;
    }
    
    /* FAQ Section Desktop */
    .faq-section {
        padding: 4rem 1.5rem !important;
    }
    
    .faq-section h2 {
        font-size: 2.5rem !important;
    }
    
    .faq-section .lead {
        font-size: 1.125rem !important;
    }
    
    .faq-container {
        max-width: 800px;
    }
    
    .faq-item {
        margin-bottom: 1.25rem;
    }
    
    .faq-item:hover {
        transform: translateY(-2px);
    }
    
    .faq-item .accordion-button {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .faq-item .accordion-body {
        padding: 1.75rem;
        font-size: 1rem;
    }
    
    /* Why Choose Us Section Desktop */
    .why-choose-card {
        margin-bottom: 0;
    }
    
    .why-choose-card .card-body {
        padding: 2rem !important;
    }
    
    .why-choose-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    /* Product Tabs Desktop Layout */
    .products-tabs-container .d-flex.gap-3 {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .product-tab-button {
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    /* Ensure proper tab spacing */
    .products-tabs-container .d-flex.flex-wrap.gap-3 {
        gap: 1rem !important;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-features-container {
        padding: 3rem 4rem !important;
        max-width: 1000px;
    }
    
    .hero-features-container h3 {
        font-size: 1.3rem;
        margin-bottom: 2rem !important;
    }
    
    .hero-features-container .row {
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 900px;
    }
}

/* Ultra Wide Displays (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-features-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile devices */
    .cert-tab-button,
    .product-tab-button {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .btn {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .cert-tab-button:hover,
    .product-tab-button:hover,
    .feature-card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
    
    /* Touch-friendly form controls */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    input[type="file"].form-control {
        min-height: 48px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cert-image,
    .hero-icon-circle {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel {
        transition: none !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Ready for dark mode implementation */
    :root {
        --dark-bg: #1a1a1a;
        --dark-text: #ffffff;
        --dark-card: #2a2a2a;
    }
}

/* Print Styles */
@media print {
    .carousel,
    .btn,
    nav,
    .cert-tabs-container .d-flex {
        display: none !important;
    }
    
    .hero-section,
    .certification-content,
    .product-content {
        break-inside: avoid;
    }
    
    .hero-features-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}