@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Base Styles & Utility overrides */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        linear-gradient(180deg, #f8f6f1 0%, #eeebe4 45%, #f7f5f2 100%);
    color: #161616;
}

::selection {
    background: rgba(184, 155, 94, 0.28);
}

a, button, input {
    -webkit-tap-highlight-color: transparent;
}

.editorial-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 24px 80px rgba(26, 26, 26, 0.08);
}

.fine-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quiet-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 18px 50px rgba(26, 26, 26, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.quiet-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 155, 94, 0.42);
    box-shadow: 0 28px 70px rgba(26, 26, 26, 0.12);
}

/* Responsive Fluid Typography */
.text-fluid-h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem); line-height: 1.1; }
.text-fluid-h2 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: 1.2; }
.text-fluid-h3 { font-size: clamp(1.25rem, 2vw + 1rem, 2rem); line-height: 1.3; }
.text-fluid-p { font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem); }

/* Custom Microinteractions */

/* Subtle image zoom on hover for cards */
.hover-zoom-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .hover-zoom-img {
    transform: scale(1.05);
}

/* Room Visualizer Masking Technique */
.visualizer-container {
    position: relative;
    width: 100%;
    /* Mobile-friendly aspect ratio, expands on larger screens */
    aspect-ratio: 4/3; 
    background-color: #f7f5f2;
    overflow: hidden;
    border-radius: 0.5rem;
}

@media (min-width: 1024px) {
    .visualizer-container {
        aspect-ratio: 16/9;
    }
}

/* The actual stone texture that changes */
.visualizer-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.4s ease-in-out;
}

/* The room image with transparent cutout for the surface */
.visualizer-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Base64 encoded SVG placeholder representing a room with a wall to be masked */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cpath fill='%23f7f5f2' d='M0 0h1600v900H0z'/%3E%3Cpath fill='transparent' stroke='%23e5e5e5' stroke-width='4' d='M300 200h1000v500H300z'/%3E%3Ctext x='800' y='450' font-family='sans-serif' font-size='24' fill='%238e8e8e' text-anchor='middle'%3E[Transparent Wall Cutout Area]%3C/text%3E%3Cpath fill='%231a1a1a' opacity='0.05' d='M0 700l300-100v-400L0 0v700zM1600 700l-300-100v-400l300-200v700z'/%3E%3Cpath fill='%231a1a1a' opacity='0.1' d='M0 700h1600v200H0z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    pointer-events: none; /* Let clicks pass through if needed */
    z-index: 10;
}

/* High-Res Loupe Magnifier */
.loupe-container {
    position: relative;
    cursor: crosshair;
    touch-action: pan-y;
}

.loupe-glass {
    position: absolute;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15), inset 0 0 10px rgba(0,0,0,0.1);
    background-color: white;
    background-repeat: no-repeat;
    /* initial hide */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
    /* Will be styled dynamically by JS */
}

.loupe-container:hover .loupe-glass {
    opacity: 1;
}

/* Hide scrollbar for swatch tray */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Nav Toggle Utility */
.mobile-menu {
    display: none;
}
.mobile-menu.flex,
.mobile-menu.open {
    display: flex;
}

.showroom-shell {
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 90px rgba(10, 13, 18, 0.34);
}

.showroom-control {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #15171d;
    color: rgba(255, 255, 255, 0.82);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.showroom-control:hover,
.showroom-control.active {
    background: rgba(255, 255, 255, 0.95);
    color: #171717;
    border-color: rgba(255, 255, 255, 0.95);
}

.showroom-control.unavailable,
.showroom-control:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.showroom-control.unavailable:hover,
.showroom-control:disabled:hover {
    background: #15171d;
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
    .sticky-cta-text {
        font-size: 0.82rem;
        line-height: 1.25;
    }
}
