/* ==========================================================================
   Restoration Beauty Studio - Core Design System & Styling
   ========================================================================== */

/* Modern CSS Reset & Variable Tokens */
:root {
    --color-primary: #c5a880;      /* Warm Gold accent */
    --color-primary-dark: #b38e5d; /* Deeper Gold */
    --color-bg-dark: #131315;      /* Deep Slate/Charcoal background */
    --color-bg-light: #f7f6f3;     /* Warm off-white spa-like background */
    --color-text-dark: #1c1d1f;    /* Elegant charcoal text */
    --color-text-muted: #666666;   /* Muted grey body text */
    --color-white: #ffffff;
    --color-black: #080809;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-hero-title: 'Castoro Titling', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --hero-stage-scale: 1;
    --hero-title-size: clamp(3rem, 14vw, 17.5rem);
    --hero-title-width: calc(100vw - 40px);
    --hero-head-gap: 80px;
    --woman-image-height: min(90vh, calc((100vw - 10px) * 1.1499));
    --studio-image-size: min(90vh, 90vw);
    --salon-square-size: clamp(260px, 32vw, 460px);
    --salon-quote-size: clamp(1.25rem, 1.45vw, 1.75rem);
    --hero-subtitle-size: clamp(0.9rem, 2vw, 1.5rem);
    --hero-feature-gap: 5rem;
    --hero-quote-gap: 1rem;
    
    /* Parallax translation states - will be updated via JS */
    --studio-offset: 0px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto !important;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg-dark);
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    color: var(--color-text-dark);
}

body.gallery-lightbox-open {
    overflow: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Utility Containers */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   1. Hero Section (Spa Stone Texture, Layered Parallax & Navbar)
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: min(600px, 100svh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-dark);
}

/* Seamless generated Spa Stone Texture with Infinite scroll to top-right */
.stone-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 48%;
}

.stone-texture::before {
    content: '';
    position: absolute;
    inset: -24%;
    background-image: url("assets/images/stone_texture.png");
    background-repeat: repeat;
    background-size: 780px 780px;
    image-rendering: auto;
    will-change: background-position;
}

.stone-texture::before {
    filter: url("#magma-warp");
    transform: scale(1.05);
    animation: scrollStoneBackground 320s linear infinite;
}

.stone-texture::after {
    display: none;
}

.hero-filter-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Transparent Header & Nav Buttons */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    padding: 10px 0;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    color: var(--color-primary);
}

.nav-btn:hover::after {
    width: 100%;
}

/* Hero Content Area & Layer Ordering */
.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.layer-studio,
.salon-feature {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.75s ease, visibility 0s linear 0s;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Allows scrolling and hovering elements through images */
}

/* Studio Background Image (Z-Index 1) */
.layer-studio {
    z-index: 1;
    align-items: center;
    transform: translateY(var(--studio-offset));
    will-change: transform;
}

.studio-img {
    aspect-ratio: 1 / 1;
    height: var(--studio-image-size);
    width: var(--studio-image-size);
    max-width: calc(100vw - 40px);
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    /* Cinematic Expand Out Mask Zoom Out Transition */
    opacity: 0;
    clip-path: inset(45% 45% 45% 45% round 12px);
    animation: studioMaskReveal 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.6s;
}

/* White title sits behind the woman; the gold swipe is layered above her. */
.title-box-container {
    position: absolute;
    top: 88px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.title-box {
    width: var(--hero-title-width);
    max-width: calc(100vw - 40px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-hero-title);
    opacity: 0;
    animation: titleBoxFadeInSlide 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.hero-title {
    font-family: var(--font-hero-title);
    font-size: var(--hero-title-size);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0.01em;
    line-height: 0.9;
    margin: 0;
    max-width: calc(100vw - 40px);
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--hero-subtitle-size);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.45em;
    align-self: flex-end;
    margin-top: 0rem;
    margin-right: 1.2em;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.salon-feature {
    position: absolute;
    width: var(--salon-square-size);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    animation: squareLayerFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3.6s;
}

.salon-feature-left {
    left: max(20px, calc(55% - (var(--hero-title-width) / 2)));
    top: calc(88px + (var(--hero-title-size) * 0.9) + var(--hero-feature-gap));
}

.salon-feature-right {
    left: min(calc(100vw - var(--salon-square-size) - 20px), calc(45% + (var(--hero-title-width) / 2) - var(--salon-square-size)));
    top: calc(88px + (var(--hero-title-size) * 0.9) + var(--hero-feature-gap));
}

.salon-square {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 10px solid var(--color-white);
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

.salon-quote {
    width: min(100%, 38ch);
    font-family: var(--font-heading);
    font-size: var(--salon-quote-size);
    font-style: italic;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 0.02em;
    color: var(--color-white);
    text-shadow: 0 7px 18px rgba(0, 0, 0, 0.48);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.salon-quote-left {
    margin: 0 0 var(--hero-quote-gap) 0;
    text-align: left;
}

.salon-quote-right {
    margin: var(--hero-quote-gap) 0 0 auto;
    text-align: right;
}

.salon-quote.is-changing {
    opacity: 0;
    transform: translateY(-18px);
}

.salon-square-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.salon-square-img.is-current {
    opacity: 1;
    transform: translateY(0);
}

.salon-square-img.is-exiting {
    opacity: 0;
    transform: translateY(-26px);
}

/* Woman Foreground Image */
.layer-woman {
    z-index: 4;
    align-items: flex-end;
}

.woman-img {
    height: var(--woman-image-height);
    width: min(calc(var(--woman-image-height) * 0.8696), calc(100vw - 10px));
    object-fit: contain;
    opacity: 0;
    animation: womanFadeIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.6s;
}

.title-box-swipe-container {
    z-index: 5;
}

.title-box-swipe {
    opacity: 1;
    animation: none;
}

.hero-title-swipe {
    color: var(--color-primary);
    opacity: 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85), 0 0 20px rgba(255, 255, 255, 0.55), 0 0 38px rgba(197, 168, 128, 0.6);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0) 39%, rgba(0, 0, 0, 0.35) 44%, #000 50%, rgba(0, 0, 0, 0.35) 56%, rgba(0, 0, 0, 0) 61%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0) 39%, rgba(0, 0, 0, 0.35) 44%, #000 50%, rgba(0, 0, 0, 0.35) 56%, rgba(0, 0, 0, 0) 61%, transparent 100%);
    -webkit-mask-size: 260% 100%;
    mask-size: 260% 100%;
    -webkit-mask-position: 125% 0;
    mask-position: 125% 0;
    animation: titleOpacitySwipe 10s ease-in-out infinite;
    animation-delay: 3s;
}

/* ==========================================================================
   2. About Section (White Background & Golden Accents)
   ========================================================================== */

.about-section {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    padding: 9rem 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.about-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-primary-dark);
    display: block;
    margin-bottom: 1rem;
}

/* Shiny Metallic Gold Gradient for Title */
.gold-gradient-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #b8860b 0%, #e8d08d 25%, #b38e5d 50%, #f9e7be 75%, #966919 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 6s linear infinite;
    display: inline-block;
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.about-text-column p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text-column p.about-lead {
    font-size: clamp(1.2rem, 1.35vw, 1.45rem);
    line-height: 1.65;
    color: var(--color-text-dark);
    font-weight: 400;
}

.about-subheading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text-dark);
    margin: 2.5rem 0 1.2rem;
}

/* ==========================================================================
   3. Outside Showcase Section (Parallax Facade Window)
   ========================================================================== */

.outside-section {
    position: relative;
    height: 65vh;
    min-height: 480px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: none;
}

.outside-section::before {
    content: "";
    position: absolute;

    /*
      Make the background taller than the section so it has
      extra room to move without exposing an empty edge.
    */
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;

    background-image: url("assets/images/outside.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: translateY(var(--parallax-y, 0px));
    will-change: transform;

    z-index: -1;
}

/* Semi-transparent overlay to ensure contrast and premium feel */
.outside-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.outside-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 2rem;
}

/* ==========================================================================
   4. Gallery Section (Layered Photo Floor)
   ========================================================================== */

.gallery-section {
    background: #e3e3df;
    color: var(--color-text-dark);
    padding: 9rem 2rem;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.gallery-section .section-container {
    max-width: 1600px;
    padding: 0;
}

.gallery-moodboard {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: clamp(1280px, 96vw, 1660px);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #e3e3df;
}

.gallery-piece {
    position: absolute;
    width: 20%;
    cursor: grab;
    touch-action: none;
    user-select: none;
    overflow: hidden;
    border: 10px solid var(--color-white);
    border-radius: 2px;
    background: var(--color-white);
    box-sizing: border-box;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    transform:
        translate(
            calc(var(--push-x, 0px) + var(--hover-x, 0px)),
            calc(var(--push-y, 0px) + var(--hover-y, 0px))
        )
        scale(var(--gallery-scale, 1))
        translateZ(0);
    transform-origin: center;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.gallery-piece.is-dragging {
    cursor: grabbing;
    transition: box-shadow 0.25s ease;
}

.gallery-piece.is-active {
    box-shadow: 0 38px 75px rgba(0, 0, 0, 0.42);
}

.gallery-piece img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: var(--color-white);
    transform-origin: center;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1401px) {
    .gallery-piece:hover,
    .gallery-piece:focus-within {
        box-shadow: 0 38px 75px rgba(0, 0, 0, 0.42);
    }
}

.gallery-piece:nth-child(1) { top: 0; left: 0; width: 22%; z-index: 4; }
.gallery-piece:nth-child(2) { top: 0; left: 21%; width: 24%; z-index: 3; }
.gallery-piece:nth-child(3) { top: 0; left: 44%; width: 18%; z-index: 6; }
.gallery-piece:nth-child(4) { top: 0; left: 61%; width: 20%; z-index: 4; }
.gallery-piece:nth-child(5) { top: 0; right: 0; width: 20%; z-index: 7; }
.gallery-piece:nth-child(6) { top: 13%; left: 0; width: 18%; z-index: 8; }
.gallery-piece:nth-child(7) { top: 12%; left: 17%; width: 23%; z-index: 6; }
.gallery-piece:nth-child(8) { top: 15%; left: 39%; width: 21%; z-index: 9; }
.gallery-piece:nth-child(9) { top: 13%; left: 59%; width: 19%; z-index: 6; }
.gallery-piece:nth-child(10) { top: 12%; right: 0; width: 23%; z-index: 8; }
.gallery-piece:nth-child(11) { top: 28%; left: 0; width: 24%; z-index: 5; }
.gallery-piece:nth-child(12) { top: 27%; left: 23%; width: 18%; z-index: 10; }
.gallery-piece:nth-child(13) { top: 29%; left: 40%; width: 22%; z-index: 7; }
.gallery-piece:nth-child(14) { top: 27%; left: 61%; width: 18%; z-index: 11; }
.gallery-piece:nth-child(15) { top: 29%; right: 0; width: 22%; z-index: 6; }
.gallery-piece:nth-child(16) { top: 44%; left: 0; width: 20%; z-index: 9; }
.gallery-piece:nth-child(17) { top: 43%; left: 19%; width: 23%; z-index: 6; }
.gallery-piece:nth-child(18) { top: 45%; left: 41%; width: 18%; z-index: 12; }
.gallery-piece:nth-child(19) { top: 43%; left: 58%; width: 23%; z-index: 8; }
.gallery-piece:nth-child(20) { top: 45%; right: 0; width: 20%; z-index: 10; }
.gallery-piece:nth-child(21) { top: 60%; left: 0; width: 23%; z-index: 6; }
.gallery-piece:nth-child(22) { top: 58%; left: 22%; width: 18%; z-index: 10; }
.gallery-piece:nth-child(23) { top: 61%; left: 39%; width: 22%; z-index: 8; }
.gallery-piece:nth-child(24) { top: 59%; left: 60%; width: 18%; z-index: 11; }
.gallery-piece:nth-child(25) { top: 60%; right: 0; width: 23%; z-index: 7; }
.gallery-piece:nth-child(26) { bottom: 0; left: 0; width: 32%; z-index: 9; }
.gallery-piece:nth-child(27) { bottom: 0; left: 31%; width: 30%; z-index: 7; }
.gallery-piece:nth-child(28) { bottom: 0; right: 0; width: 40%; z-index: 10; }

@media (max-width: 1400px) {
    .gallery-moodboard {
        columns: 3;
        column-gap: 5px;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .gallery-piece {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: block;
        width: 100% !important;
        margin: 0 0 5px;
        break-inside: avoid;
        cursor: default;
        touch-action: auto;
        transform: none !important;
        transition: none;
        z-index: auto !important;
    }

    .gallery-piece:hover,
    .gallery-piece:focus-within,
    .gallery-piece.is-active {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    }
}

.outside-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 1.2rem;
}

.outside-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.outside-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ==========================================================================
   4. Booking Section (Booksy Button & Centered Slideshow)
   ========================================================================== */

.booking-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    padding: 9rem 0;
    position: relative;
    z-index: 5;
}

.booking-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.booking-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-primary-dark);
    display: block;
    margin-bottom: 1rem;
}

.booking-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.booking-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.6;
}

.booking-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "form"
        "slideshow";
    align-items: center;
    justify-items: center;
    gap: 2.5rem;
    max-width: 980px;
}

.booking-header {
    grid-area: header;
}

.booking-form-wrapper {
    grid-area: form;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: auto;
    position: relative;
    overflow: visible;
}

.booking-widget-wrapper {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booking-widget-wrapper iframe,
.booking-widget-wrapper > div {
    width: auto;
    max-width: 100%;
}

.booking-widget-wrapper .booksy-widget-container-dialog,
.booking-widget-wrapper .booksy-widget-container-default,
.booking-widget-wrapper [class*="booksy-widget-container"] {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.booking-widget-wrapper .booksy-widget-button,
.booking-widget-wrapper [class*="booksy-widget-button"] {
    position: relative;
    min-width: 250px;
    min-height: 56px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem !important;
    border: 1px solid rgba(197, 168, 128, 0.85) !important;
    border-radius: 999px !important;
    background: var(--color-bg-dark) !important;
    color: transparent !important;
    font-family: var(--font-body) !important;
    font-size: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    box-shadow: 0 18px 36px rgba(19, 19, 21, 0.18), 0 0 28px rgba(197, 168, 128, 0.2) !important;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease !important;
}

.booking-widget-wrapper .booksy-widget-button::before,
.booking-widget-wrapper [class*="booksy-widget-button"]::before {
    content: 'Book Now';
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #b8860b 0%, #e8d08d 25%, #b38e5d 50%, #f9e7be 75%, #966919 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 7px rgba(197, 168, 128, 0.65));
    animation: goldShine 6s linear infinite;
}

.booking-widget-wrapper .booksy-widget-button:hover,
.booking-widget-wrapper [class*="booksy-widget-button"]:hover {
    background: #0f0f11 !important;
    color: transparent !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(179, 142, 93, 0.24), 0 0 36px rgba(197, 168, 128, 0.38) !important;
}

.booking-widget-wrapper .booksy-business-link,
.booking-widget-wrapper [class*="booksy-business-link"] {
    display: none !important;
}

.booksy-fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.5rem;
    border-radius: 999px;
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
}

.booking-slideshow {
    grid-area: slideshow;
    position: relative;
    min-height: 0;
    width: min(100%, 760px);
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    background: var(--color-bg-dark);
}

.booking-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-slide-img.is-current {
    opacity: 1;
    transform: translateX(0);
}

.booking-slide-img.is-exiting {
    opacity: 0;
    transform: translateX(-32px);
}

.booking-slideshow.is-reverse .booking-slide-img {
    transform: translateX(-32px);
}

.booking-slideshow.is-reverse .booking-slide-img.is-current {
    transform: translateX(0);
}

.booking-slideshow.is-reverse .booking-slide-img.is-exiting {
    transform: translateX(32px);
}

.booking-slide-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(8, 8, 9, 0.36);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.booking-slide-arrow::before {
    display: block;
    font-size: 2.1rem;
    line-height: 1;
    transform: translateY(-1px);
}

.booking-slide-arrow-left::before {
    content: '\2039';
}

.booking-slide-arrow-right::before {
    content: '\203A';
}

.booking-slide-arrow:hover,
.booking-slide-arrow:focus-visible {
    background: rgba(8, 8, 9, 0.62);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.booking-slide-arrow-left {
    left: 18px;
}

.booking-slide-arrow-right {
    right: 18px;
}

.booking-form {
    transition: opacity 0.5s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-dark);
    background-color: #fafafa;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
}

/* Custom Dropdown Styling styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '▾';
    font-size: 0.8rem;
    color: var(--color-primary-dark);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Book Button */
.form-submit-container {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 18px 48px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(197, 168, 128, 0.45);
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Success Message State */
.success-message {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--color-primary-dark);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--color-primary);
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.success-message p {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   5. Contact Section (Black Background Footer)
   ========================================================================== */

.contact-section {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 7rem 0 3rem 0;
    position: relative;
    z-index: 5;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col {
    padding-right: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--color-white);
}

.footer-logo-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--color-primary);
    margin-top: 0.4rem;
    margin-bottom: 1.5rem;
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #999;
    font-weight: 300;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #333;
    color: #ccc;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--color-white);
    border-color: var(--color-primary);
    background-color: rgba(197, 168, 128, 0.08);
    transform: translateY(-3px);
}

/* Footer Link Columns */
.footer-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 1px;
    background-color: var(--color-primary-dark);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

/* Location details column */
.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}

.contact-icon {
    margin-right: 12px;
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-details span {
    display: inline-block;
}

/* Hours detail column */
.hours-list {
    list-style: none;
    max-width: 320px;
}

.hours-list li {
    display: grid;
    grid-template-columns: minmax(6.5rem, 1fr) auto;
    align-items: baseline;
    gap: 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    color: #bbb;
    font-weight: 300;
}

.hours-list .day {
    color: #999;
    letter-spacing: 0.01em;
}

.hours-list .hours {
    color: var(--color-white);
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
}

.hours-notice {
    max-width: 320px;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    color: #bbb;
    background-color: #1a1a1c;
    border: 1px solid #242427;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Bottom Bar Copyrights */
.footer-bottom {
    border-top: 1px solid #1a1a1c;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    font-weight: 300;
}

.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: #bbb;
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */

.privacy-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(197, 168, 128, 0.14), transparent 34rem),
        var(--color-bg-light);
    color: var(--color-text-dark);
}

.privacy-shell {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem) 2rem;
}

.privacy-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(197, 168, 128, 0.85);
    border-radius: 999px;
    background-color: var(--color-bg-dark);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(19, 19, 21, 0.16), 0 0 22px rgba(197, 168, 128, 0.18);
    transition: var(--transition-smooth);
}

.privacy-back-button:hover {
    transform: translateY(-3px);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 18px 38px rgba(19, 19, 21, 0.22), 0 0 30px rgba(197, 168, 128, 0.26);
}

.privacy-card {
    background-color: var(--color-white);
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(197, 168, 128, 0.25);
    box-shadow: 0 28px 70px rgba(19, 19, 21, 0.08);
}

.privacy-card h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    line-height: 0.95;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.privacy-effective-date {
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.privacy-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 400;
    color: var(--color-primary-dark);
    margin: 2.5rem 0 1rem;
}

.privacy-card h3 {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 2.3rem 0 0.9rem;
}

.privacy-card p,
.privacy-card li {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.privacy-card ul {
    margin: 0 0 1.4rem 1.2rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes squareLayerFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollStoneBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 1560px -1560px;
    }
}

@keyframes titleBoxFadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-120px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleOpacitySwipe {
    0%, 10% {
        opacity: 0;
        -webkit-mask-position: 125% 0;
        mask-position: 125% 0;
    }
    12% {
        opacity: 1;
        -webkit-mask-position: 125% 0;
        mask-position: 125% 0;
    }
    52% {
        opacity: 1;
        -webkit-mask-position: -25% 0;
        mask-position: -25% 0;
    }
    60%, 100% {
        opacity: 0;
        -webkit-mask-position: -25% 0;
        mask-position: -25% 0;
    }
}

@keyframes studioMaskReveal {
    from {
        opacity: 0;
        clip-path: inset(45% 45% 45% 45% round 12px);
    }
    to {
        opacity: 1;
        clip-path: inset(0% 0% 0% 0% round 12px);
    }
}

@keyframes womanFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Media Queries (Mobile & Tablet Adjustments)
   ========================================================================== */

@media (max-width: 1200px) {
    .navbar {
        padding: 0 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .brand-col {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 1600px) {
    .stone-texture::before {
        filter: none;
    }

    .layer-studio,
    .salon-feature {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.75s ease, visibility 0s linear 0.75s;
    }
}

@media (max-width: 1300px) {
    .booking-container {
        max-width: 950px;
    }

    .booking-slideshow {
        width: min(100%, 760px);
    }
}




@media (max-width: 900px) {
    :root {
        --woman-mobile-top: calc(88px + (var(--hero-title-size) * 0.9) + 5rem);
        --woman-image-height: min(calc(800px - var(--hero-head-gap)), calc((100vw - 10px) * 1.1499));
        --hero-mobile-height: calc(var(--woman-mobile-top) + var(--woman-image-height));
        --studio-image-size: min(calc(var(--hero-mobile-height) - 40px), calc(100vw - 40px));
        --salon-square-size: min(42vw, calc(var(--hero-title-width) * 0.46));
    }

    .hero-section {
        height: var(--hero-mobile-height);
        min-height: var(--hero-mobile-height);
    }

    .hero-subtitle {
        margin-right: 0.2em;
    }

    .layer-woman {
        z-index: 2;
        align-items: flex-start;
        padding-top: var(--woman-mobile-top);
    }

    .title-box-container {
        z-index: 4;
    }

    .title-box-swipe-container {
        z-index: 5;
    }

    .studio-img {
        height: var(--studio-image-size);
        width: var(--studio-image-size);
        max-width: calc(100vw - 40px);
    }

    .salon-feature-left {
        left: max(20px, calc(50% - (var(--hero-title-width) / 2)));
        bottom: 8%;
    }

    .salon-feature-right {
        left: min(calc(100vw - var(--salon-square-size) - 20px), calc(50% + (var(--hero-title-width) / 2) - var(--salon-square-size)));
        top: calc(88px + (var(--hero-title-size) * 0.9) + 4rem);
    }

    .booking-slideshow {
        width: 100%;
        min-height: 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-moodboard {
        columns: 3;
        height: auto;
    }

    .gallery-piece {
        border-width: 8px;
    }
    
    .booking-form-wrapper {
        padding: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-group-full {
        grid-column: span 1;
    }

    .outside-section {
        height: 400px;
        min-height: 0;
    }

    .outside-section::before {
        top: -20%;
        height: 140%;

        /*
          Use the setting that fixed the excessive mobile zoom.
          Change this to "cover" if it crops too little.
        */
        background-size: cover;
        background-position: center;
    }


}

@media (max-width: 600px) {
    .navbar {
        padding: 0 1.5rem;
        height: 80px;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
    }
    
    /* Adjust text alignment for readability on small devices */
    .title-box {
        width: var(--hero-title-width);
        padding: 0;
    }
    
    .hero-title {
        font-size: var(--hero-title-size);
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }
    
    .about-section {
        padding: 6rem 0;
    }

    .gallery-moodboard {
        columns: 3;
        height: auto;
    }

    .gallery-piece {
        border-width: 7px;
    }

    .gallery-piece img {
        cursor: zoom-in;
    }
    
    .booking-section {
        padding: 6rem 0;
    }

    .booking-slideshow {
        min-height: 0;
    }
    
    .booking-form-wrapper {
        padding: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .brand-col {
        grid-column: span 1;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links a {
        margin: 0 0.8rem;
    }
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background-color: rgba(8, 8, 9, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.gallery-lightbox.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-img {
    display: block;
    max-width: min(92vw, 920px);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 10px solid var(--color-white);
    background-color: var(--color-white);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(197, 168, 128, 0.75);
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

@media (min-width: 601px) {
    .gallery-lightbox {
        display: none !important;
    }
}
