:root {
    --nara-chocolate: #3D1F0D;
    --nara-choc-md: #6B3A1E;
    --nara-gold: #C9A96E;
    --nara-gold-deep: #9A7840;
    --nara-light: #FDF8F0;
}

/* Variables and Setup */
body {
    background-color: #FAF3E8;
    color: #1A0E05;
}

/* Components */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(61, 31, 13, 0.08);
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(61, 31, 13, 0.14);
}

.dark-glass-card {
    background: rgba(253, 248, 240, 0.07);
    border: 1px solid rgba(201, 169, 110, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-gold {
    background: #C9A96E;
    color: #1A0E05;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-gold:hover {
    background: #9A7840;
    color: #FDF8F0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(154, 120, 64, 0.45);
}

.btn-outline-choc {
    border: 1.5px solid var(--nara-chocolate);
    color: var(--nara-chocolate);
    padding: 0.625rem 1.75rem;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 250ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-outline-choc:hover {
    background: var(--nara-chocolate);
    color: var(--nara-light);
}

.btn-outline-cream {
    border: 1.5px solid var(--nara-light);
    color: var(--nara-light);
    padding: 0.625rem 1.75rem;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 250ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline-cream:hover {
    background: var(--nara-light);
    color: var(--nara-chocolate);
}

.nara-divider {
    width: 40px; height: 2px;
    background: var(--nara-gold);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nara-choc-md);
    display: block;
    margin-bottom: 0.75rem;
}

/* =========================================
   HAMBURGER → X ANIMATION
   ========================================= */
#menu-toggle .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 300ms ease, opacity 300ms ease;
    transform-origin: center;
}
#menu-toggle.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#menu-toggle.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Background with linear gradient mapping directly to the specific image */
.hero-bg {
    background-image: linear-gradient(to right, rgba(250,243,232,0.95) 0%, rgba(250,243,232,0.85) 45%, rgba(250,243,232,0.2) 100%), url('../img/salon-1.jpg');
    background-size: cover;
    background-position: center 30%;
}

@media (max-width: 1023px) {
    .hero-bg {
        background-image: linear-gradient(to bottom, rgba(250,243,232,0.97) 0%, rgba(250,243,232,0.92) 55%, rgba(250,243,232,0.6) 100%), url('../img/salon-1.jpg');
        background-position: center 20%;
    }
}

/* Nav states */
#navbar {
    background: rgba(250, 243, 232, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}
#navbar.scrolled {
    background: rgba(250, 243, 232, 0.98);
    box-shadow: 0 4px 24px rgba(61, 31, 13, 0.08);
}

/* Quotes Decorative */
.quote-icon {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 4rem;
    color: rgba(201, 169, 110, 0.2);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

/* =========================================
   HERO PHOTO FRAMES — 3 cadres empilés
   ========================================= */
.hero-frame-container {
    position: relative;
    width: 420px;
    height: 460px;
    flex-shrink: 0;
}
@media (min-width: 1280px) {
    .hero-frame-container { width: 460px; height: 500px; }
}

.hero-frame-back-left,
.hero-frame-back-right {
    position: absolute;
    width: 240px;
    height: 360px;
    bottom: 0;
    left: 50%;
    margin-left: -120px;
    border-radius: 1rem;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.92);
    box-shadow: 0 8px 28px rgba(61,31,13,0.28);
}
.hero-frame-back-left img,
.hero-frame-back-right img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-frame-back-left {
    z-index: 1;
    animation: hero-float-left 5s ease-in-out infinite;
}
.hero-frame-back-right {
    z-index: 2;
    animation: hero-float-right 5.8s ease-in-out infinite 1.1s;
}

.hero-frame-front {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 255px;
    margin-left: -128px;
    height: 360px;
    z-index: 3;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 20px 60px rgba(61,31,13,0.35);
}
@media (min-width: 1280px) {
    .hero-frame-front { width: 280px; margin-left: -140px; height: 395px; }
}
.hero-frame-front img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center 15%;
    display: block;
}

.hero-frame-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: #fff;
    border-radius: 9999px;
    padding: 0.4rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 20px rgba(61,31,13,0.18);
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3D1F0D;
}
.hero-frame-badge svg {
    color: #F5A623;
    fill: currentColor;
    flex-shrink: 0;
}

@keyframes hero-float-left {
    0%, 100% { transform: translateX(-95px) rotate(-15deg); }
    50%       { transform: translateX(-88px) rotate(-12deg); }
}
@keyframes hero-float-right {
    0%, 100% { transform: translateX(95px) rotate(15deg); }
    50%       { transform: translateX(88px) rotate(12deg); }
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61,31,13,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 350ms ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-quote-card {
    background: rgba(253, 248, 240, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   GALLERY CAROUSEL CELLS
   ========================================= */
.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.carousel-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   MOBILE MENU DRAWER — OVERLAY FULL SCREEN
   ========================================= */
#nav-drawer {
    background-color: #FAF3E8 !important;
    z-index: 9999 !important;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}
#nav-drawer.drawer-open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}
/* Hamburger stays above drawer */
#menu-toggle {
    position: relative;
    z-index: 10001 !important;
}

/* =========================================
   MASONRY GALLERY
   ========================================= */
.gallery-masonry {
    columns: 3;
    column-gap: 1rem;
}
.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    height: auto;
}
.gallery-masonry .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 1024px) {
    .gallery-masonry { columns: 2; }
}
@media (max-width: 640px) {
    .gallery-masonry { columns: 2; column-gap: 0.5rem; }
    .gallery-masonry .gallery-item { margin-bottom: 0.5rem; }
}
@media (max-width: 480px) {
    .gallery-masonry { columns: 1; }
}

/* =========================================
   LIGHTBOX
   ========================================= */
#nara-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(18, 8, 2, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
#nara-lightbox.lb-active {
    opacity: 1;
    pointer-events: all;
}
#nara-lightbox .lb-img {
    max-width: min(88vw, 1100px);
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 320ms cubic-bezier(0.4,0,0.2,1);
    display: block;
    user-select: none;
}
#nara-lightbox.lb-active .lb-img { transform: scale(1); }

.lb-close {
    position: absolute;
    top: 1.25rem; right: 1.5rem;
    color: rgba(250,243,232,0.55);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: color 200ms, background 200ms;
    line-height: 0;
    border: none; background: none;
}
.lb-close:hover { color: var(--nara-gold); background: rgba(250,243,232,0.07); }

.lb-prev, .lb-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: rgba(250,243,232,0.50);
    cursor: pointer;
    padding: 1rem 1.1rem;
    border-radius: 0.5rem;
    transition: color 200ms, background 200ms;
    line-height: 0;
    border: none; background: none;
}
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
.lb-prev:hover, .lb-next:hover { color: var(--nara-gold); background: rgba(250,243,232,0.06); }

.lb-counter {
    position: absolute;
    bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    color: rgba(250,243,232,0.35);
    font-size: 0.65rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-lightbox] { cursor: zoom-in !important; }

@media (max-width: 640px) {
    .lb-prev { left: 0.25rem; }
    .lb-next { right: 0.25rem; }
    #nara-lightbox .lb-img { max-width: 96vw; max-height: 80vh; }
}

/* =========================================
   RESPONSIVE — PHOTO PILE
   ========================================= */
@media (min-width: 1024px) and (max-width: 1180px) {
    .photo-pile { width: 280px; height: 360px; }
    .photo-card { width: 210px; height: 250px; }
}

/* =========================================
   RESPONSIVE — GLOBAL MOBILE
   ========================================= */

/* Map responsive height */
.map-responsive {
    position: relative;
    width: 100%;
    height: 280px;
}
@media (min-width: 640px) {
    .map-responsive { height: 380px; }
}
@media (min-width: 1024px) {
    .map-responsive { height: 440px; }
}

/* Salon image responsive height */
.salon-img-responsive {
    height: 260px;
}
@media (min-width: 640px) {
    .salon-img-responsive { height: 360px; }
}
@media (min-width: 1024px) {
    .salon-img-responsive { height: 460px; }
}

/* Hero responsive centering */
@media (max-width: 1023px) {
    .hero-card-mobile-center {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-card-mobile-center .hero-ctas {
        justify-content: center;
    }
}

/* WA FAB — safe area inset on notch phones */
#wa-fab {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
}

/* Prevent horizontal scroll globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
