/*
 * Onix Luxury Page — editorial dark template.
 * Typography: Playfair Display (display) + Inter (body)
 * Palette:    #0a0a0a bg, #f5f2ec text, #c9a66b accent
 */

:root {
    --lux-bg:       #0a0a0a;
    --lux-bg-soft:  #141414;
    --lux-text:     #f5f2ec;
    --lux-muted:    rgba(245, 242, 236, 0.6);
    --lux-faint:    rgba(245, 242, 236, 0.12);
    --lux-accent:   #c9a66b;
    --lux-font-display: 'Playfair Display', 'Canela', 'Didot', Georgia, serif;
    --lux-font-body:    'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;

    --lux-pad-x:   max(1.25rem, 5vw);
    --lux-pad-y:   clamp(4rem, 10vh, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lux-body {
    margin: 0;
    background: var(--lux-bg);
    color: var(--lux-text);
    font-family: var(--lux-font-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Topbar ------------------------------------------------------------- */
.lux-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--lux-pad-x);
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), rgba(10,10,10,0));
    backdrop-filter: blur(6px) saturate(1.2);
    -webkit-backdrop-filter: blur(6px) saturate(1.2);
}
.lux-topbar__brand {
    font-family: var(--lux-font-display);
    font-size: 1.5rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.lux-topbar__nav {
    display: flex;
    gap: 2rem;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lux-muted);
}
.lux-topbar__nav a { transition: color .25s ease; }
.lux-topbar__nav a:hover { color: var(--lux-text); }
.lux-topbar__admin {
    color: var(--lux-accent) !important;
    border: 1px solid var(--lux-accent);
    padding: .4rem .9rem;
}

/* ---- Reveal animation -------------------------------------------------- */
[data-lux-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1);
    will-change: opacity, transform;
}
[data-lux-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Hero -------------------------------------------------------------- */
.lux-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--lux-pad-x) calc(var(--lux-pad-y) * .7);
    color: var(--lux-text);
    overflow: hidden;
}
.lux-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.lux-hero__bg video,
.lux-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 12s ease-out;
}
.lux-hero.is-visible .lux-hero__bg video,
.lux-hero.is-visible .lux-hero__bg img { transform: scale(1); }
.lux-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,0.7) 100%);
}
.lux-hero__text { position: relative; z-index: 1; max-width: 40ch; }
.lux-hero__line1 {
    font-family: var(--lux-font-body);
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--lux-accent);
    margin-bottom: 1rem;
}
.lux-hero__line2 {
    font-family: var(--lux-font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0;
}
.lux-hero__cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}
.lux-hero__cue span {
    display: block;
    width: 1px;
    height: 60px;
    background: var(--lux-text);
    opacity: .35;
    transform-origin: top;
    animation: lux-cue 2.4s ease-in-out infinite;
}
@keyframes lux-cue {
    0%, 100% { transform: scaleY(.2); opacity: .15; }
    50%      { transform: scaleY(1); opacity: .55; }
}

/* Fallback when no hero bg */
.lux-hero:not(:has(.lux-hero__bg video)):not(:has(.lux-hero__bg img)) {
    background: radial-gradient(ellipse at 20% 50%, #1a1a1a 0%, #0a0a0a 70%);
}

/* ---- Split section (text + media) ------------------------------------ */
.lux-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: var(--lux-pad-y) var(--lux-pad-x);
    max-width: 1400px;
    margin: 0 auto;
}
.lux-split--left .lux-split__media  { order: 1; }
.lux-split--left .lux-split__text   { order: 2; }
.lux-split--right .lux-split__text  { order: 1; }
.lux-split--right .lux-split__media { order: 2; }

.lux-split__text h2 {
    font-family: var(--lux-font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -.005em;
    margin: 0 0 1.5rem;
    max-width: 22ch;
}
.lux-split__body p {
    color: var(--lux-muted);
    margin: 0 0 1rem;
    max-width: 46ch;
}
.lux-split__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--lux-bg-soft);
}
.lux-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(.2,.6,.2,1);
}
.lux-split.is-visible .lux-split__media img { transform: scale(1.03); }

/* Fallback placeholder when image missing */
.lux-split:not(:has(.lux-split__media)) {
    grid-template-columns: 1fr;
    max-width: 760px;
}

/* ---- Pull quote ------------------------------------------------------- */
.lux-quote {
    padding: calc(var(--lux-pad-y) * 1.3) var(--lux-pad-x);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.lux-quote blockquote { margin: 0; }
.lux-quote p {
    font-family: var(--lux-font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--lux-text);
    margin: 0 0 1.5rem;
}
.lux-quote cite {
    display: block;
    font-family: var(--lux-font-body);
    font-style: normal;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

/* ---- Gallery ---------------------------------------------------------- */
.lux-gallery {
    padding: var(--lux-pad-y) var(--lux-pad-x);
    max-width: 1500px;
    margin: 0 auto;
}
.lux-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(.75rem, 1.5vw, 1.5rem);
}
.lux-gallery__grid > :nth-child(5n+1) { grid-column: span 2; }
.lux-gallery__item {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--lux-bg-soft);
}
.lux-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter .6s ease;
    filter: brightness(.95);
}
.lux-gallery__item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* ---- Specs ------------------------------------------------------------ */
.lux-specs {
    padding: var(--lux-pad-y) var(--lux-pad-x);
    max-width: 800px;
    margin: 0 auto;
}
.lux-specs table {
    width: 100%;
    border-collapse: collapse;
}
.lux-specs tr {
    border-bottom: 1px solid var(--lux-faint);
}
.lux-specs tr:first-child { border-top: 1px solid var(--lux-faint); }
.lux-specs th,
.lux-specs td {
    padding: 1.1rem 0;
    text-align: left;
    font-weight: 400;
    font-size: .95rem;
}
.lux-specs th {
    color: var(--lux-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    width: 40%;
}
.lux-specs td {
    color: var(--lux-text);
    font-family: var(--lux-font-display);
    font-size: 1.1rem;
}

/* ---- CTA -------------------------------------------------------------- */
.lux-cta {
    padding: calc(var(--lux-pad-y) * 1.5) var(--lux-pad-x);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.lux-cta h2 {
    font-family: var(--lux-font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.01em;
    margin: 0 0 1rem;
}
.lux-cta p {
    color: var(--lux-muted);
    margin: 0 0 2rem;
}
.lux-btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2rem;
    border: 1px solid var(--lux-faint);
    color: var(--lux-text);
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: background .3s ease, border-color .3s ease, color .3s ease, gap .3s ease;
}
.lux-btn:hover {
    background: var(--lux-text);
    color: var(--lux-bg);
    border-color: var(--lux-text);
    gap: 1.2rem;
}
.lux-btn span { transition: transform .3s ease; }
.lux-btn:hover span { transform: translateX(4px); }

/* ---- Footer ----------------------------------------------------------- */
.lux-footer {
    padding: 2rem var(--lux-pad-x);
    border-top: 1px solid var(--lux-faint);
    font-size: .78rem;
    color: var(--lux-muted);
    letter-spacing: .08em;
}
.lux-footer__sep { margin: 0 .7rem; opacity: .4; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 820px) {
    .lux-topbar__nav { gap: 1rem; font-size: .7rem; }
    .lux-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .lux-split--left .lux-split__media,
    .lux-split--right .lux-split__media { order: 2; }
    .lux-split--left .lux-split__text,
    .lux-split--right .lux-split__text { order: 1; }
    .lux-split__media { aspect-ratio: 3 / 2; }
    .lux-gallery__grid { grid-template-columns: 1fr 1fr; }
    .lux-gallery__grid > :nth-child(5n+1) { grid-column: span 2; }
}
@media (max-width: 520px) {
    .lux-gallery__grid { grid-template-columns: 1fr; }
    .lux-gallery__grid > :nth-child(5n+1) { grid-column: auto; }
    .lux-hero__text { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    [data-lux-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .lux-hero__bg video, .lux-hero__bg img { transform: none !important; }
    .lux-hero__cue span { animation: none; }
    html { scroll-behavior: auto; }
}
