/*
Theme Name: Laminates Valley
Theme URI: https://techmates-solutions.com
Author: Techmates Solutions
Description: Custom premium theme for Laminates Valley built with Tailwind CSS.
Version: 1.0
Text Domain: laminatesvalley
*/

/* General Resets */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.hero-gradient {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.4), rgba(17, 24, 39, 0.85));
}

.nav-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Product Card Zoom & Image Zoom */
.card-zoom-img, .img-zoom {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-zoom:hover .card-zoom-img, .group:hover .img-zoom {
    transform: scale(1.08);
}

/* Editorial Drop Cap (For Blog) */
.drop-cap::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: #1f3a8a;
    font-weight: 600;
}

/* Reading Progress Bar */
#progress-bar {
    transform-origin: 0% 50%;
    transform: scaleX(0);
}

/* The Arch Gallery Architecture (From Homepage) */
.arch-container {
    position: relative;
    width: 100%;
    height: clamp(750px, 60vh, 750px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background-color: #ffffff;
    padding-bottom: 2rem;
}

.arch-pivot {
    position: absolute;
    bottom: -5%; 
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
}

.arch-card {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(100px, 12vw, 180px);
    height: clamp(130px, 15vw, 240px);
    --radius: clamp(300px, 38vw, 600px);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius)));
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #fff;
    animation: floatArch 5s ease-in-out infinite alternate;
    animation-delay: var(--delay);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.arch-card:hover {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius) - 20px)) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    z-index: 20;
}

.arch-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floatArch {
    0% { margin-top: 0px; }
    100% { margin-top: 15px; }
}

/* Carousel Stack Transitions */
.stack-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Header & Navigation Dynamic Styles
   ========================================================================== */

/* The Sticky Header Scrolled State */
.header-scrolled {
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding-top: 1rem !important; /* py-4 equivalent */
    padding-bottom: 1rem !important;
}

/* Color toggle classes applied via JS */
.text-scrolled {
    color: #1A1A1A !important;
}

/* ==========================================================================
   Desktop Dropdown Menus (WordPress default classes)
   ========================================================================== */

/* Keep the parent links relative for absolute positioning of sub-menus */
.desktop-nav-menu > li {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hide WP Sub-menus initially */
.desktop-nav-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: -1rem;
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 220px;
    border-radius: 0.5rem;
    padding: 0.75rem 0;
    z-index: 50;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Smooth open on hover */
.desktop-nav-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Style the links inside the desktop dropdown */
.desktop-nav-menu .sub-menu li {
    display: block;
    width: 100%;
}

.desktop-nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #1A1A1A !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.desktop-nav-menu .sub-menu a:hover {
    color: #d8b38a !important; /* Accent color */
    background-color: #f9fafb;
}

/* ==========================================================================
   Mobile Menu Specific Styling
   ========================================================================== */

/* Structure the mobile links */
.mobile-nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f3f4f6; /* Gray-100 */
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1A1A1A;
    transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
    color: #1f3a8a; /* Primary Blue */
}

/* Indent sub-menus on mobile */
.mobile-nav-menu .sub-menu {
    padding-left: 1rem;
    border-left: 2px solid #f3f4f6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-menu .sub-menu a {
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0;
    color: #4b5563; /* Gray-600 */
}

/* Stop body scroll when mobile menu is active */
body.menu-open {
    overflow: hidden !important;
}