/* =========================================================
   SALÓN DE TÉ — Custom Styles (Pixel Perfect)
   ========================================================= */

/* Custom easings */
:root {
    --ease-in-out: cubic-bezier(.22, 1, .36, 1);
    --ease-ui: cubic-bezier(.4, 0, .2, 1);
    --salon-cream: #F2E6D9;
    --salon-cafe: #6B4630;
    --salon-border: rgba(255, 255, 255, 0.12);
    --salon-border-hover: rgba(255, 255, 255, 0.3);
    --salon-highlight: rgba(255, 255, 255, 0.05);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Frame layout */
html.salon-html,
body.salon-page {
    height: 100%;
    margin: 0;
    background-color: #050505;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.salon-frame {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.salon-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* Base Card Style */
.salon-card {
    background: rgba(10, 10, 10, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s var(--ease-ui), border-color 0.4s var(--ease-ui), box-shadow 0.4s var(--ease-ui);
    opacity: 0;
    transform: translateY(14px);
}

/* Interactive Card Hover */
.salon-card.interactive:hover {
    border-color: var(--salon-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.salon-card.interactive:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, var(--salon-highlight), transparent 60%);
    pointer-events: none;
    z-index: 10;
}

/* Hero Section */
.hero-card {
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    /* Fades in via JS */
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 5;
    transform: scale(1.015);
    /* Intro scale */
    opacity: 0;
    /* JS fade */
}

.hero-content h1 {
    font-family: var(--sans);
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 700;
    color: var(--salon-cream);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.salon-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: var(--salon-cream);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s var(--ease-ui), border-color 0.3s var(--ease-ui);
    cursor: pointer;
}

.salon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.salon-btn .arrow-icon {
    display: inline-block;
    transition: transform 0.3s var(--ease-ui), filter 0.3s var(--ease-ui);
}

.salon-btn:hover .arrow-icon {
    transform: translateX(2px);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Leaves Parallax */
.leaf {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.1s linear;
    /* Smooth lerp override by JS */
}

.leaf.leaf-1 {
    bottom: 5%;
    left: 0%;
    width: 22vmin;
    max-width: 200px;
    opacity: 0.85;
    animation: swayLeft 8s ease-in-out infinite alternate;
}

.leaf.leaf-2 {
    top: 15%;
    left: 10%;
    width: 14vmin;
    max-width: 120px;
    opacity: 0.6;
    animation: swayRight 7s ease-in-out infinite alternate-reverse;
    transform: rotate(15deg);
}

.leaf.leaf-3 {
    top: 40%;
    left: -2%;
    width: 18vmin;
    max-width: 160px;
    opacity: 0.8;
    animation: swayLeft 9s ease-in-out infinite alternate;
    transform: rotate(-30deg);
}

.leaf.leaf-4 {
    top: 8%;
    right: 8%;
    width: 15vmin;
    max-width: 140px;
    opacity: 0.7;
    animation: swayRight 8.5s ease-in-out infinite alternate;
}

.leaf.leaf-5 {
    bottom: 8%;
    right: 2%;
    width: 24vmin;
    max-width: 240px;
    opacity: 0.85;
    animation: swayLeft 7.5s ease-in-out infinite alternate-reverse;
    transform: scaleX(-1) rotate(10deg);
}

.leaf.leaf-6 {
    top: 30%;
    right: -2%;
    width: 12vmin;
    max-width: 100px;
    opacity: 0.5;
    animation: swayRight 6s ease-in-out infinite alternate;
}

.leaf.leaf-7 {
    bottom: 35%;
    left: 15%;
    width: 10vmin;
    max-width: 90px;
    opacity: 0.4;
    animation: swayLeft 8s ease-in-out infinite alternate;
    transform: rotate(45deg);
}

.leaf.leaf-8 {
    top: 55%;
    right: 15%;
    width: 18vmin;
    max-width: 150px;
    opacity: 0.7;
    animation: swayRight 9s ease-in-out infinite alternate;
    transform: rotate(-20deg);
}

@keyframes swayLeft {
    0% {
        transform: rotate(-1.5deg) translate(-6px, 2px);
    }

    100% {
        transform: rotate(1.5deg) translate(6px, -2px);
    }
}

@keyframes swayRight {
    0% {
        transform: rotate(1.5deg) translate(6px, -2px);
    }

    100% {
        transform: rotate(-1.5deg) translate(-6px, 2px);
    }
}

/* Teacup & Steam */
.teacup-wrapper {
    position: absolute;
    bottom: -35%;
    left: 47%;
    transform: translateX(-47%);
    width: 100%;
    max-width: 500px;
    z-index: 4;
}

.teacup-img {
    width: 600px;
    height: auto;
    display: block;
    animation: cupBreathe 4.5s ease-in-out infinite;
}

@keyframes cupBreathe {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.012) translateY(-4px);
    }
}

.steam-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: steamContainerFade 0.16s forwards;
    animation-delay: 2.5s;
    z-index: 5;
}

@keyframes steamContainerFade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.steam {
    position: absolute;
    top: 20%;
    left: 45%;
    width: 60px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(230, 230, 220, 0.15) 0%, transparent 70%);
    filter: blur(12px);
    opacity: 0;
    pointer-events: none;
}

.steam-1 {
    animation: steamRise 2.8s linear infinite;
    left: 35%;
    top: 10%;
}

.steam-2 {
    animation: steamRise 3.4s linear infinite;
    left: 55%;
    top: 15%;
    animation-delay: 1.2s;
}

.steam-3 {
    animation: steamRise 4.1s linear infinite;
    left: 45%;
    top: 5%;
    animation-delay: 2.2s;
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    30% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-80px) scale(1.5) rotate(15deg);
        opacity: 0;
    }
}

/* Menu Section */
.menu-card {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.menu-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

/* Mobile Pill Row */
@media (max-width: 767px) {
    .menu-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        width: 100%;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
    }

    .menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .menu-tabs button {
        scroll-snap-align: start;
        flex-shrink: 0;
    }


    .teacup-img {
        width: 300px;
        position: absolute;
        bottom: -130px;
        left: 7%;
        transform: translateX(-7%);
    }
}

.menu-tabs button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease-ui);
}

.menu-tabs button:hover,
.menu-tabs button.active {
    color: var(--salon-cream);
    border-color: rgba(255, 255, 255, 0.4);
}

.menu-view {
    width: 100%;
    max-width: 900px;
    opacity: 1;
    transition: opacity 0.16s ease-out, transform 0.22s ease-out;
}

.menu-view.hidden {
    opacity: 0;
    transform: translateY(6px);
    position: absolute;
    pointer-events: none;
    visibility: hidden;
}

.menu-view.entering {
    opacity: 1;
    transform: translateY(0);
}

.cat-title {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--salon-cream);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
}

.cat-title::before,
.cat-title::after {
    content: "◇";
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.menu-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .menu-content-grid.has-sidebar {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }
}

.menu-item {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    /* invisible by default */
    transition: border-color 0.3s var(--ease-ui), transform 0.3s var(--ease-ui), background-color 0.3s var(--ease-ui);
}

.menu-item:hover {
    border-color: var(--salon-border-hover);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.02);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.menu-item-title {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--salon-cream);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-item-icons {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-left: 8px;
}

.menu-item-price {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--salon-cream);
}

.menu-item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
    max-width: 85%;
}

.menu-sidebar-block {
    margin-bottom: 40px;
}

.menu-sidebar-title {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--salon-cream);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--salon-cream);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.3s, background-color 0.3s;
}

.sidebar-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Mobile overrides */
@media (max-width: 767px) {
    .salon-card {
        border-radius: 12px;
    }

    .hero-card {
        min-height: 500px;
        padding-top: 80px;
        height: 100vh;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .leaf.leaf-parallax {
        opacity: 0.25 !important;
        width: 50vw !important;
    }

    .teacup-wrapper {
        width: 80vmin;
        bottom: -5%;
    }

    .menu-card {
        padding: 40px 20px;
    }
}

/* Entry Animation Classes */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
}