/**
 * SIDHIVINAYAK - COMPREHENSIVE RESPONSIVE UPDATES
 * Mobile-First Responsive Design for All Devices
 * 
 * Breakpoints:
 * - Mobile: 320px-480px
 * - Tablet: 481px-768px
 * - Large Tablet: 769px-1024px
 * - Desktop: 1025px+
 */

/* ============================================
   GLOBAL RESPONSIVE FIXES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

body {
    overflow-x: hidden !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
}

.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

.responsive-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 1280px) {
    .responsive-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .responsive-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .responsive-product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .responsive-product-grid .product-card {
        width: 100%;
    }
}

.product-card {
    min-width: 0;
    width: 100%;
}

.product-card img {
    width: 100%;
    display: block;
}

/* Fluid Typography - Mobile Only */
@media (max-width: 1023px) {
    html {
        font-size: clamp(14px, 2vw, 16px);
    }

    /* Container Responsive - Mobile Only */
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
    }

    section {
        padding-top: clamp(2rem, 5vw, 3rem);
        padding-bottom: clamp(2rem, 5vw, 3rem);
    }

    .page-header,
    .header-content,
    .footer-grid,
    .newsletter-form {
        gap: clamp(0.75rem, 2vw, 1rem);
    }
}



/* ============================================
   HERO SECTION - RESPONSIVE
   ============================================ */

.hero-section {
    min-height: clamp(400px, 60vh, 750px);
    padding: clamp(2rem, 5vw, 3rem) 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    width: 100%;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.hero-badge {
    display: inline-block;
    font-size: clamp(9px, 1.5vw, 11px);
    padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 20px);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.hero-description {
    font-size: clamp(13px, 2vw, 16px);
    padding: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.btn-luxury, .btn-luxury-outline {
    padding: clamp(12px, 1.5vw, 16px) clamp(20px, 3vw, 36px);
    font-size: clamp(11px, 1.5vw, 13px);
    min-height: 44px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn-luxury, .btn-luxury-outline {
        width: auto;
    }
}

/* ============================================
   COLLECTIONS GRID - RESPONSIVE
   ============================================ */

.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3.75rem);
}

@media (min-width: 640px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.collection-card {
    height: clamp(250px, 50vw, 400px);
    border-radius: clamp(10px, 2vw, 16px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.collection-card-overlay {
    padding: clamp(1rem, 2vw, 1.75rem);
}

.collection-card-badge {
    font-size: clamp(8px, 1.2vw, 10px);
    padding: clamp(4px, 0.8vw, 6px) clamp(10px, 1.5vw, 16px);
}

.collection-card-title {
    font-size: clamp(16px, 3.5vw, 28px);
}

.collection-card-desc {
    font-size: clamp(12px, 1.5vw, 14px);
}

.collection-card-link {
    font-size: clamp(11px, 1.3vw, 13px);
}

/* ============================================
   FEATURES SECTION - RESPONSIVE
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-top: clamp(2rem, 4vw, 3.75rem);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    text-align: center;
    border-radius: clamp(10px, 1.5vw, 16px);
}

.feature-icon {
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    margin: 0 auto clamp(1rem, 1.5vw, 1.5rem);
}

.feature-title {
    font-size: clamp(14px, 1.8vw, 16px);
}

.feature-desc {
    font-size: clamp(12px, 1.3vw, 14px);
}

/* ============================================
   LEGACY/OUR STORY - RESPONSIVE
   ============================================ */

.legacy-section {
    padding: clamp(3rem, 8vw, 7.5rem) 0;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 1024px) {
    .legacy-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.legacy-content {
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.legacy-title-premium {
    font-size: clamp(24px, 5vw, 48px);
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.legacy-text-premium {
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1.8;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.legacy-stats-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    margin: clamp(2rem, 3vw, 2.5rem) 0;
    padding: clamp(1rem, 1.5vw, 1.25rem) 0;
}

@media (min-width: 640px) {
    .legacy-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

.legacy-stat-number {
    font-size: clamp(20px, 4vw, 32px);
}

.legacy-stat-label {
    font-size: clamp(9px, 1.2vw, 11px);
}

.legacy-composite-container {
    position: relative;
    height: clamp(300px, 60vw, 580px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.legacy-img-frame-main {
    position: static;
    width: 100%;
    height: clamp(250px, 50vw, 440px);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.legacy-img-frame-sub {
    position: static;
    width: 100%;
    height: clamp(200px, 40vw, 320px);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

@media (min-width: 1024px) {
    .legacy-img-frame-main {
        position: absolute;
        width: clamp(180px, 30vw, 320px);
        height: clamp(250px, 45vw, 440px);
        margin-bottom: 0;
        right: 5%;
        top: 20px;
    }
    
    .legacy-img-frame-sub {
        position: absolute;
        width: clamp(140px, 22vw, 240px);
        height: clamp(200px, 32vw, 320px);
        margin-bottom: 0;
        left: 5%;
        bottom: 40px;
    }
}

.legacy-crest-badge {
    position: absolute;
    width: clamp(90px, 18vw, 140px);
    height: clamp(90px, 18vw, 140px);
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

@media (min-width: 1024px) {
    .legacy-crest-badge {
        bottom: auto;
        left: 200px;
        top: 220px;
        transform: none;
    }
}

.legacy-crest-number {
    font-size: clamp(20px, 4vw, 38px);
}

.legacy-crest-text {
    font-size: clamp(7px, 1vw, 9px);
}

/* ============================================
   TESTIMONIALS - RESPONSIVE
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3.75rem);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: clamp(8px, 1.5vw, 12px);
}

.testimonial-text {
    font-size: clamp(12px, 1.3vw, 14px);
}

.testimonial-author {
    font-size: clamp(12px, 1.3vw, 13px);
}

/* ============================================
   SECTION HEADERS - RESPONSIVE
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4.375rem);
}

.section-label {
    font-size: clamp(9px, 1.3vw, 11px);
    padding: clamp(6px, 0.8vw, 8px) clamp(14px, 2vw, 24px);
}

.section-title {
    font-size: clamp(24px, 5vw, 42px);
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.section-subtitle {
    font-size: clamp(12px, 1.5vw, 15px);
    max-width: 650px;
    margin: 0 auto;
}

/* ============================================
   CATEGORY BAR - RESPONSIVE
   ============================================ */

.category-bar {
    padding: clamp(0.75rem, 1.5vw, 1.25rem) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 3rem);
    flex-wrap: wrap;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
}

.category-item {
    font-size: clamp(10px, 1.3vw, 13px);
    padding: clamp(0.5rem, 0.8vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    white-space: nowrap;
}

/* ============================================
   PARTNER SECTION - RESPONSIVE
   ============================================ */

.partner-section {
    padding: clamp(3rem, 8vw, 6.25rem) 0;
}

.partner-title {
    font-size: clamp(20px, 4vw, 36px);
    margin-bottom: clamp(1rem, 1.5vw, 1.25rem);
}

.partner-desc {
    font-size: clamp(12px, 1.3vw, 14px);
    max-width: 600px;
    margin: 0 auto clamp(1.5rem, 2.5vw, 2.5rem);
}

.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    align-items: center;
}

@media (min-width: 640px) {
    .partner-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.btn-mauve-outline, .btn-white-outline {
    padding: clamp(12px, 1.5vw, 16px) clamp(20px, 3vw, 32px);
    font-size: clamp(10px, 1.2vw, 12px);
    min-height: 44px;
    width: 100%;
    max-width: 300px;
}

@media (min-width: 640px) {
    .btn-mauve-outline, .btn-white-outline {
        width: auto;
    }
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 3vw, 2rem);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

footer h5 {
    font-size: clamp(13px, 1.5vw, 14px);
}

footer ul {
    font-size: clamp(12px, 1.3vw, 14px);
}

footer a {
    line-height: 1.8;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    max-width: 100%;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
        gap: clamp(0.5rem, 1vw, 0.75rem);
    }
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    font-size: clamp(12px, 1.3vw, 14px);
    padding: clamp(0.75rem, 1vw, 1rem);
}

.newsletter-form button {
    font-size: clamp(12px, 1.3vw, 14px);
    padding: clamp(0.75rem, 1vw, 1rem) clamp(1.5rem, 2vw, 1.5rem);
    min-height: 44px;
}

/* ============================================
   TOUCH DEVICE OPTIMIZATION
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    button, a, .btn-luxury, .btn-luxury-outline, 
    .collection-card, .feature-item, .testimonial-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Increase tap targets */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ============================================
   EXTRA SMALL DEVICES (320px - 480px)
   ============================================ */

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hide unnecessary elements on very small screens */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Stack all grids to single column */
    .collections-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust spacing */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card,
    .product-card,
    .testimonial-card,
    .feature-item,
    .collection-card,
    .card-stats,
    .review-card,
    .review-form {
        border-radius: 12px;
    }

    .btn-luxury,
    .btn-luxury-outline,
    .luxury-button,
    .newsletter-form button,
    .newsletter-form input {
        width: 100%;
    }
}

/* ============================================
   LARGE SCREENS (1280px+)
   ============================================ */

@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        overflow-x: visible;
    }
    
    header, footer, .mobile-menu {
        display: none;
    }
}
