/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    --accent: #e37b44; /* Hardcoded Orange */
    --bg: transparent; 
    --overlay-bg: #FFFFFF;
    --text: #111827;
    --muted: #6B7280;
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 16px; 
    --tap: 44px;
}

html, body { 
    background-color: transparent !important; 
    background: transparent !important;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    overflow-x: hidden; 
}

.wed-grid-wrapper { 
    position: relative; 
    color: var(--text); 
    line-height: 1.5; 
    width: 100%;
    overflow: visible; 
}
.wed-grid-wrapper * { box-sizing: border-box; }

/* =========================================
   2. RESPONSIVE VISIBILITY
   ========================================= */
.wed-grid-wrapper .wed-tabs-mobile { display: block !important; z-index: 999; }
.wed-grid-wrapper .wed-tabs-desktop { 
    display: none !important; 
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .wed-grid-wrapper .wed-tabs-mobile { display: none !important; }
    .wed-grid-wrapper .wed-tabs-desktop { display: block !important; }
}

.wed-navbar-logo {
    display: block; height: auto; max-height: 40px; width: auto; 
    object-fit: contain; transition: max-height 0.3s ease;
}
@media (min-width: 768px) { .wed-navbar-logo { max-height: 72px; } }

/* =========================================
   3. TABS & PILLS STYLING (HARDCODED ORANGE)
   ========================================= */
#primary-tabs-container { padding: 0; margin-bottom: 20px; }
#primary-tabs { padding: 12px 6px !important; margin: -12px -6px !important; }

.pill {
    appearance: none;
    background-color: #e37b44 !important; /* HARDCODED ORANGE */
    border: 1px solid #e37b44 !important;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important; /* HARDCODED WHITE TEXT */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .pill { padding: 0.6rem 1.25rem; font-size: 0.9rem; gap: 0.5rem; } }

.pill i { width: 14px; height: 14px; opacity: 1; color: white; }
@media (min-width: 768px) { .pill i { width: 16px; height: 16px; } }

/* Improved Hover/Active Effects */
.pill:hover {
    background-color: #f08c5a !important; /* Brighter orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 123, 68, 0.3); /* Softer shadow glow */
}
.pill.is-active {
    background-color: #c25e2d !important; /* Deep contrast for active */
    border-color: #c25e2d !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); /* Inset shadow for pressed feel */
    transform: translateY(0);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================
   4. SEARCH BAR
   ========================================= */
#wed-search-input {
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}
#wed-search-input:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #e37b44;
    outline: none;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
#hero-shell { 
    position: relative; z-index: 20; 
    will-change: clip-path, height; 
    height: 420px; 
    margin-bottom: 2rem; 
    transition: height 0.3s ease; 
}
@media (min-width: 768px) { #hero-shell { height: 550px; } }

#hero { 
    position: relative; width: 100%; height: 100%;
    overflow: hidden; background: #000; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 20;
}
#hero.is-fullscreen {
    position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
    z-index: 999999 !important; border-radius: 0 !important; margin: 0 !important;
}
#hero-content {
    justify-content: center !important; text-align: center !important; padding: 1.5rem !important;
}

/* =========================================
   6. STATS CARDS
   ========================================= */
.stat-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .stat-card { min-height: 140px; padding: 1rem; }
    .stat-counter { font-size: 2rem; white-space: nowrap !important; } 
}

/* =========================================
   7. GRID & CARDS
   ========================================= */
#bento-grid { 
    opacity: 1; min-height: 200px; width: 100%; 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; 
    grid-auto-rows: 200px; grid-auto-flow: dense; 
    transition: opacity 0.2s ease;
}
.span-1x1 { grid-column: span 1; grid-row: span 1; }
.span-1x2 { grid-column: span 1; grid-row: span 2; }
.span-1x3 { grid-column: span 1; grid-row: span 3; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x3 { grid-column: span 2; grid-row: span 3; }
.span-3x1 { grid-column: span 2; grid-row: span 1; } 
.span-3x2 { grid-column: span 2; grid-row: span 2; }
.span-3x3 { grid-column: span 2; grid-row: span 3; }

@media (max-width: 640px) { 
    #bento-grid { grid-template-columns: 1fr; } 
    .span-1x2, .span-1x3, .span-2x1, .span-2x2, .span-2x3, .span-3x1, .span-3x2, .span-3x3 {
        grid-column: span 1; grid-row: span 1;
    }
}
@media (min-width: 768px) { 
    #bento-grid { grid-template-columns: repeat(3, 1fr); } 
    .span-2x1 { grid-column: span 2; }
    .span-2x2 { grid-column: span 2; grid-row: span 2; }
    .span-3x1 { grid-column: span 3; }
    .span-3x2 { grid-column: span 3; grid-row: span 2; }
}
@media (min-width: 1024px) { 
    #bento-grid { grid-template-columns: repeat(4, 1fr); } 
}

.wed-card, .card { 
    position: relative; width: 100%; height: 100%; 
    background: var(--card-bg); 
    border-radius: 16px !important; 
    overflow: hidden; cursor: pointer; display: block; 
    text-decoration: none; transform: translateZ(0);
    margin: 7px !important; 
    width: calc(100% - 14px) !important; 
    height: calc(100% - 14px) !important;
}

.thumb {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    line-height: 0; margin: 0; padding: 0;
}
.thumb img, .thumb video {
    width: 100% !important; height: 100% !important; 
    object-fit: cover !important; display: block !important; 
    transition: transform 0.7s ease; margin: 0 !important; padding: 0 !important;
}
.card:hover .thumb img, .card:hover .thumb video { transform: scale(1.05); }

.card h3 {
    position: relative; z-index: 10; margin: 0; color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wed-custom-tab-content { display: none; opacity: 1; visibility: visible; }
.wed-custom-tab-content.active-tab { display: block !important; animation: wedFadeIn 0.3s ease forwards; }
@keyframes wedFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   8. MOBILE FILTER OVERLAY
   ========================================= */
#wed-filter-overlay { transition: opacity 0.3s ease, visibility 0.3s ease; }
#wed-filter-overlay.wed-open { opacity: 1 !important; visibility: visible !important; }
.wed-menu-item { 
    font-size: 1.75rem; font-weight: 700; color: #9CA3AF; margin: 0.5rem 0; 
    cursor: pointer; transition: color 0.2s ease; 
}
@media(min-width: 768px) { .wed-menu-item { font-size: 3rem; } }
.wed-menu-item.active { color: var(--text); transform: scale(1.05); }
.wed-menu-item:hover { color: #e37b44; }

/* =========================================
   9. DETAILS SHEET & CAROUSEL (FIXED POSITION)
   ========================================= */
#sheet-backdrop { background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); transition: opacity 0.4s ease; }

#child-sheet { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15); 
    color: #0f172a; 
    z-index: 1000;
    /* FIX: Force off screen using Viewport Height (120vh) */
    /* REMOVED !important to allow GSAP control */
    transform: translateY(120vh); 
}
@media (min-width: 768px) { 
    #child-sheet { 
        width: 90%; max-width: 1200px; 
        left: 50%; bottom: 40px; 
        /* FIX: Ensure it is off screen here too (120vh) */
        /* REMOVED !important here too */
        transform: translateX(-50%) translateY(120vh); 
        border-radius: 24px; 
    } 
}

/* Colors for Sheet */
.wed-hero-title { color: #e37b44 !important; }
.wed-reveal-line { background-color: #000000 !important; }

.wed-carousel-card {
    position: relative; flex-shrink: 0;
    width: 260px; aspect-ratio: 4 / 3;
    border-radius: 16px; overflow: hidden;
    background: #000; cursor: pointer; text-decoration: none;
    display: block; margin-right: 12px; scroll-snap-align: center;
}
@media (min-width: 768px) { .wed-carousel-card { width: 340px; margin-right: 16px; } }

.wed-carousel-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease; display: block;
}
.wed-carousel-card:hover img { transform: scale(1.1); }
.wed-carousel-card h4 { color: white !important; position: relative; z-index: 10; font-size: 1rem; }

.wed-sheet-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 50; transition: transform 0.2s;
}
@media (min-width: 768px) { .wed-sheet-arrow { width: 48px; height: 48px; } }
.wed-sheet-arrow:hover { transform: translateY(-50%) scale(1.1); }
.wed-sheet-arrow.left { left: 10px; }
.wed-sheet-arrow.right { right: 10px; }
@media (min-width: 768px) { .wed-sheet-arrow.left { left: 20px; } .wed-sheet-arrow.right { right: 20px; } }

.wed-lightbox-overlay { background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); }

/* =========================================
   10. UTILITIES
   ========================================= */
.hidden { display: none !important; }
.block { display: block !important; }