/*
Theme Name: LaBuccia Pro
Author: Abdullah Choudhary
Author URI: https://varpec.app
version: 1.0.0
Description: La Buccia is a premium WordPress theme crafted for dermatology clinics, skincare brands, and beauty startups. It features a modern, elegant design with powerful customization options to help you build trust, showcase services, and grow your brand online.
*/

:root {
    --bg: #FFFDD0;
    --text: #050505;
    --accent: #660000;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    overflow-x: hidden;
    cursor: auto;
}

h1, h2, h3, .font-display { font-family: 'Syncopate', sans-serif; text-transform: uppercase; }

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}

/* HEADER */
.floating-header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 50px;
    padding: 0 40px; height: 60px; display: flex; align-items: center; gap: 30px;
    z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.05); white-space: nowrap;
}

/* UTILS */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hover-reveal-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}
.hover-reveal-img.active { opacity: 1; transform: scale(1); z-index: 10; }

/* === CAROUSEL LAYOUT === */
/* Force horizontal flex on ALL screens */
.horizontal-wrapper {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    width: 600%; /* Ensure plenty of width */
}

/* Panel Sizing */
.h-panel {
    width: 100vw;   /* Full viewport width */
    height: 100vh;  /* Full viewport height */
    flex-shrink: 0; /* Never shrink */
    display: flex;  /* Internal layout */
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .floating-header {
        width: 90%; padding: 0 20px; justify-content: space-between;
    }
    
    /* On mobile, stack image on top of text INSIDE the sliding panel */
    .h-panel {
        flex-direction: column; 
    }
    
    /* Ensure image and text take up roughly half height each */
    .h-panel .panel-image { height: 50%; width: 100%; }
    .h-panel .panel-text { height: 50%; width: 100%; padding: 2rem; }
    
    /* Adjust text size for mobile */
    .h-panel h3 { font-size: 2.5rem; }
    .h-panel span.price { font-size: 2rem; }
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 769px) {
    /* On desktop, side-by-side */
    .h-panel {
        flex-direction: row; 
    }
    .h-panel .panel-image { height: 100%; width: 50%; }
    .h-panel .panel-text { height: 100%; width: 50%; padding: 5rem; }
}