/* ========================================
   PPADDL.com — Luxury-Premium Vintage
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --midnight-forest: #1B3A2D;
    --burnished-copper: #C47A3A;
    --aged-gold: #D4A843;
    --darkroom-black: #12110F;
    --antique-cream: #F0E8DA;
    --linen-white: #E8E0D4;
    --weathered-stone: #8A7F72;
    --cinematic-red: #A63D2F;
    --text-on-light: #2A2520;
    --section-alt: #1A1917;

    --font-display: 'Josefin Sans', sans-serif;
    --font-body: 'Libre Baskerville', serif;
    --font-mono: 'DM Mono', monospace;

    --cursor-x: 50%;
    --cursor-y: 50%;

    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--darkroom-black);
    color: var(--linen-white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Animated Film Grain Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grain-fade-in 0.8s 0.6s ease forwards, grain-shift 0.5s steps(5) infinite;
}

@keyframes grain-fade-in {
    from { opacity: 0; }
    to { opacity: 0.08; }
}

@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 2px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-2px, 1px); }
    80% { transform: translate(1px, -2px); }
    100% { transform: translate(0, 0); }
}

/* --- Cursor-Follow Light --- */
#cursor-light-wrapper {
    position: relative;
}

#cursor-light-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(400px circle at var(--cursor-x) var(--cursor-y), rgba(196, 122, 58, 0.05), transparent 100%);
    transition: background 150ms ease;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10000;
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

#main-nav.scrolled {
    background: rgba(27, 58, 45, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logotype {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--linen-white);
}

#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--linen-white);
    transition: all 0.3s var(--ease-luxury);
    transform-origin: center;
}

#hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

#hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- Overlay Menu --- */
#overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 17, 15, 0.96);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.overlay-menu-list {
    list-style: none;
    text-align: center;
}

.overlay-menu-item {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury);
}

#overlay-menu.active .overlay-menu-item {
    opacity: 1;
    transform: translateX(0);
}

#overlay-menu.active .overlay-menu-item:nth-child(1) { transition-delay: 0.08s; }
#overlay-menu.active .overlay-menu-item:nth-child(2) { transition-delay: 0.16s; }
#overlay-menu.active .overlay-menu-item:nth-child(3) { transition-delay: 0.24s; }
#overlay-menu.active .overlay-menu-item:nth-child(4) { transition-delay: 0.32s; }
#overlay-menu.active .overlay-menu-item:nth-child(5) { transition-delay: 0.40s; }
#overlay-menu.active .overlay-menu-item:nth-child(6) { transition-delay: 0.48s; }

.overlay-menu-item a {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--linen-white);
    text-decoration: none;
    display: inline-block;
    padding: 0.4em 0;
    transition: color 0.3s ease;
}

.overlay-menu-item a:hover {
    color: var(--aged-gold);
}

/* --- Hero Section (Act I: The Arrival) --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--darkroom-black);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--midnight-forest) 0%, var(--darkroom-black) 70%);
    opacity: 0;
    animation: hero-bg-bloom 1.5s 1.4s var(--ease-luxury) forwards;
}

@keyframes hero-bg-bloom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-monogram {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 30rem;
    letter-spacing: 0.1em;
    color: transparent;
    -webkit-text-stroke: 1px var(--aged-gold);
    opacity: 0.05;
    z-index: 1;
    user-select: none;
    animation: monogram-drift 30s ease-in-out infinite alternate;
}

@keyframes monogram-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-40px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    animation: hero-content-in 1s 2.2s var(--ease-luxury) forwards;
}

@keyframes hero-content-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logotype {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--linen-white);
    line-height: 1;
}

.hero-rule {
    width: 0;
    height: 1px;
    background: var(--aged-gold);
    margin: 1.5rem auto;
    animation: rule-grow 0.8s 3.7s var(--ease-luxury) forwards;
}

@keyframes rule-grow {
    from { width: 0; }
    to { width: 200px; }
}

.hero-tagline {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--weathered-stone);
    opacity: 0;
    animation: fade-in 0.6s 4.2s ease forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero zoom animation */
#hero {
    animation: hero-zoom 25s ease-in-out forwards;
}

@keyframes hero-zoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.03); }
}

/* --- Sections General --- */
.section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.section[data-bg="dark"] {
    background-color: var(--darkroom-black);
}

.section[data-bg="darker"] {
    background-color: var(--section-alt);
}

/* --- Salon Sections --- */
.salon-inner {
    position: relative;
    max-width: 760px;
    width: 100%;
    text-align: center;
    padding: 4rem 2rem;
}

.section-headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--linen-white);
    margin-bottom: 0.5rem;
}

/* --- Gold Rule (Section Divider) --- */
.gold-rule {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--aged-gold), transparent);
    margin: 1.5rem auto;
}

.section-body {
    color: var(--linen-white);
    margin-bottom: 1.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-detail {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--weathered-stone);
    margin-top: 2rem;
}

.detail-label {
    text-transform: uppercase;
    margin-right: 1em;
}

.detail-value {
    color: var(--aged-gold);
}

/* --- Corner Ornaments --- */
.corner-ornament {
    position: absolute;
    width: 16px;
    height: 16px;
}

.corner-top-left {
    top: 0;
    left: 0;
    border-top: 1px solid var(--burnished-copper);
    border-left: 1px solid var(--burnished-copper);
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--burnished-copper);
    border-right: 1px solid var(--burnished-copper);
}

/* Corner ornaments animate in */
.corner-ornament {
    width: 0;
    height: 0;
    transition: width 0.4s var(--ease-luxury) 0.3s, height 0.4s var(--ease-luxury) 0.3s;
}

.salon-inner.in-view .corner-ornament,
.gallery-text.in-view .corner-ornament {
    width: 16px;
    height: 16px;
}

/* --- Gallery Sections --- */
.gallery-inner {
    display: flex;
    align-items: center;
    gap: 6vw;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.gallery-visual {
    flex: 0 0 58%;
    position: relative;
}

.gallery-text {
    flex: 1;
    position: relative;
    padding: 3rem 2rem;
    margin-top: 10vh;
}

.gallery-reverse .gallery-inner {
    flex-direction: row-reverse;
}

.gallery-reverse .gallery-text {
    margin-top: -10vh;
}

/* --- Image Frames --- */
.image-frame {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    border-radius: 2px;
}

.vintage-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: contrast(1.1) saturate(0.75) sepia(0.12) brightness(0.95);
}

#img-terrace {
    background: linear-gradient(135deg, var(--midnight-forest) 0%, #2a5c47 30%, #1B3A2D 60%, var(--darkroom-black) 100%);
}

#img-interior {
    background: linear-gradient(225deg, var(--section-alt) 0%, #3d2a1a 30%, var(--burnished-copper) 60%, var(--darkroom-black) 100%);
    filter: contrast(1.1) saturate(0.75) sepia(0.12) brightness(0.85);
}

.image-grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--midnight-forest);
    opacity: 0.1;
    mix-blend-mode: multiply;
}

/* --- Entrance Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in.visible:nth-child(2) { transition-delay: 0.1s; }
.animate-in.visible:nth-child(3) { transition-delay: 0.2s; }
.animate-in.visible:nth-child(4) { transition-delay: 0.3s; }
.animate-in.visible:nth-child(5) { transition-delay: 0.4s; }
.animate-in.visible:nth-child(6) { transition-delay: 0.5s; }

.animate-slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Footer (Act III: The Signature) --- */
#footer {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--midnight-forest);
    overflow: hidden;
}

.footer-monogram {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 25rem;
    letter-spacing: 0.1em;
    color: transparent;
    -webkit-text-stroke: 1px var(--aged-gold);
    opacity: 0.08;
    user-select: none;
    animation: monogram-drift 30s ease-in-out infinite alternate;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-logotype {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--linen-white);
}

.footer-rule {
    margin: 1.5rem auto;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--linen-white);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-year {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--weathered-stone);
}

/* --- Radial Spotlight for Dark Sections --- */
.section[data-bg="dark"]::before,
.section[data-bg="darker"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, rgba(196, 122, 58, 0.03), transparent 60%);
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-logotype {
        font-size: 3.5rem;
        letter-spacing: 0.15em;
    }

    .hero-monogram {
        font-size: 15rem;
    }

    .section-headline {
        font-size: 2rem;
    }

    .gallery-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .gallery-visual {
        flex: 0 0 auto;
        width: 100%;
    }

    .gallery-text {
        margin-top: 0;
        padding: 2rem 1rem;
    }

    .gallery-reverse .gallery-inner {
        flex-direction: column;
    }

    .gallery-reverse .gallery-text {
        margin-top: 0;
    }

    .overlay-menu-item a {
        font-size: 2rem;
    }

    .footer-monogram {
        font-size: 12rem;
    }

    .footer-logotype {
        font-size: 2rem;
    }

    /* Disable animations on mobile */
    .animate-in,
    .animate-slide-left,
    .animate-slide-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .corner-ornament {
        width: 16px;
        height: 16px;
        transition: none;
    }

    #cursor-light-wrapper::before {
        display: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in,
    .animate-slide-left,
    .animate-slide-right {
        opacity: 1;
        transform: none;
    }

    .corner-ornament {
        width: 16px;
        height: 16px;
    }

    body::after {
        opacity: 0.08;
    }
}

/* --- Selection Color --- */
::selection {
    background-color: var(--burnished-copper);
    color: var(--darkroom-black);
}
