/* ═══════════════════════════════════════════════════════
   ASJ Joyería — Editorial Luxury Theme
   Vibe: Warm cream + gold. High-contrast variable serif.
   Layout: Editorial Split + Asymmetrical Bento
   ═══════════════════════════════════════════════════════ */

:root {
    --bg: #fdfbf7;
    --bg-card: #f7f4ee;
    --bg-card-inner: #ffffff;
    --white: #ffffff;
    --cream: #f5f3ef;
    --gold: #b8924a;
    --gold-light: #d4af6e;
    --gold-muted: rgba(184, 146, 74, 0.12);
    --text: #1a1715;
    --text-secondary: #6b645a;
    --text-muted: #a09888;
    --border: rgba(26, 23, 21, 0.06);
    --border-strong: rgba(26, 23, 21, 0.1);
    --radius-xl: 2rem;
    --radius-inner: calc(2rem - 0.375rem);
    --radius-pill: 100px;
    --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-serif: 'Playfair Display', 'DM Serif Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ─── Noise Overlay (fixed, pointer-events-none) ─── */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.025;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════
   NAVBAR — Floating Glass Pill
   ═══════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    transition: padding-top 0.5s var(--ease-out);
}

.navbar.scrolled {
    padding-top: 12px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 12px 12px 28px;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.5s var(--ease-out);
}

.navbar.scrolled .nav-pill {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 3px;
    line-height: 1;
}

.logo-divider {
    width: 1px;
    height: 18px;
    background: var(--border-strong);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.4s var(--ease-out);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Button-in-Button CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 20px;
    background: var(--text);
    color: var(--white);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    transition: all 0.5s var(--ease-out);
}

.nav-cta:hover {
    background: #2a2520;
}

.nav-cta:active {
    transform: scale(0.98);
}

.cta-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.5s var(--ease-out);
}

.nav-cta:hover .cta-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px) translateY(-1px) scale(1.05);
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.4s var(--ease-out);
}

.line-1 { top: 12px; }
.line-2 { top: 19px; }

.nav-toggle.active .line-1 {
    top: 15px;
    transform: rotate(45deg);
}
.nav-toggle.active .line-2 {
    top: 15px;
    transform: rotate(-45deg);
}

/* ─── Mobile Menu Overlay ─── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--ease-out);
    transition-delay: var(--delay);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link:hover {
    color: var(--gold);
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(253, 251, 247, 0.15) 0%,
            rgba(253, 251, 247, 0.0) 30%,
            rgba(253, 251, 247, 0.0) 50%,
            rgba(253, 251, 247, 0.7) 80%,
            var(--bg) 100%
        ),
        linear-gradient(to right,
            var(--bg) 0%,
            rgba(253, 251, 247, 0.0) 15%,
            rgba(253, 251, 247, 0.0) 85%,
            var(--bg) 100%
        );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 48px clamp(24px, 6vw, 80px) 40px;
    background: linear-gradient(to top, rgba(253, 251, 247, 0.85) 0%, rgba(253, 251, 247, 0.5) 60%, rgba(253, 251, 247, 0.0) 100%);
    transition: transform 0.1s linear, opacity 0.1s linear;
    will-change: transform, opacity;
}

.eyebrow-pill {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-muted);
    border-radius: var(--radius-pill);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-top: 12px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    justify-content: center;
}

/* ─── Primary Button (Button-in-Button) ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 16px 32px;
    background: var(--text);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
}

.btn-primary:hover {
    background: #2a2520;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.5s var(--ease-out);
}

.btn-primary:hover .btn-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px) translateY(-1px) scale(1.05);
}

/* ─── Scroll Indicator ─── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════
   MARQUEE
   ═══════════════════════════════════ */

.marquee-section {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.marquee-dot {
    color: var(--gold);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════
   FEATURES — Double-Bezel Cards
   ═══════════════════════════════════ */

.features {
    padding: clamp(80px, 10vw, 140px) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-outer {
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.6s var(--ease-out);
}

.feature-card:hover .feature-card-outer {
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.feature-card-inner {
    padding: clamp(32px, 4vw, 48px);
    background: var(--bg-card-inner);
    border-radius: var(--radius-inner);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.feature-number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-style: italic;
}

.feature-card-inner h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 14px;
    line-height: 1.3;
}

.feature-card-inner p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════════
   COLLECTION — Asymmetrical Bento
   ═══════════════════════════════════ */

.collection {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--white);
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header .eyebrow-pill {
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.collection-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-item.bento-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-item.bento-tall {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-item:not(.bento-large):not(.bento-tall) {
    grid-column: span 4;
}

.bento-item:nth-child(4) {
    grid-column: 5 / span 4;
}

/* Double-Bezel */
.bento-outer {
    height: 100%;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.6s var(--ease-out);
}

.bento-item:hover .bento-outer {
    border-color: var(--border-strong);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
}

.bento-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-card-inner);
    border-radius: var(--radius-inner);
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.bento-image {
    position: relative;
    flex: 1;
    min-height: 200px;
    background: var(--cream);
    overflow: hidden;
}

.bento-large .bento-image {
    min-height: 420px;
}

.bento-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold-light);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 23, 21, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

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

.overlay-tag {
    padding: 10px 24px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    transition: all 0.4s var(--ease-out);
}

.bento-item:hover .overlay-tag {
    border-color: rgba(255, 255, 255, 0.8);
}

.bento-info {
    padding: 20px 24px;
}

.bento-info h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.bento-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════
   ABOUT — Editorial Split
   ═══════════════════════════════════ */

.about {
    padding: clamp(80px, 10vw, 160px) 0;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.about-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: 24px;
}

.about-title em {
    font-style: italic;
    color: var(--gold);
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Double-Bezel image */
.about-image-outer {
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.about-image-inner {
    aspect-ratio: 4/5;
    background: var(--cream);
    border-radius: var(--radius-inner);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.about-placeholder {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 8px;
}

.about-text p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */

.contact {
    padding: clamp(80px, 10vw, 160px) 0;
    background: var(--white);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text);
}

/* Double-Bezel Form */
.form-outer {
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.form-inner {
    padding: clamp(32px, 4vw, 48px);
    background: var(--bg-card-inner);
    border-radius: var(--radius-inner);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.form-field {
    margin-bottom: 16px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    transition: all 0.4s var(--ease-out);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-inner .btn-primary {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.footer {
    padding: 60px 0 40px;
    background: var(--text);
    color: rgba(255, 255, 255, 0.6);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.footer .logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 3px;
}

.footer .logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 32px 0 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════ */

.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
    transition: all 0.8s var(--ease-out);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition: all 0.9s var(--ease-out);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-pill {
        width: calc(100% - 40px);
        justify-content: space-between;
        padding: 12px 20px;
    }

    .hero {
        min-height: 90dvh;
        padding: 120px 20px 80px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .marquee-section {
        padding: 20px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .collection-bento {
        grid-template-columns: 1fr;
    }

    .bento-item.bento-large,
    .bento-item.bento-tall,
    .bento-item:not(.bento-large):not(.bento-tall),
    .bento-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-large .bento-image {
        min-height: 280px;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
