/* ==========================================================================
   EVALD OKAS - "MASTERPIECE UNVEILED" V2 DESIGN
   A high-end digital gallery experience.
   ========================================================================== */

:root {
    /* Color Palette */
    --color-dark: #070707;
    /* Deep, rich black for drama */
    --color-light: #F7F5F0;
    /* Ivory/warm canvas white for reading */
    --color-text-dark: #F7F5F0;
    /* Text on dark bg */
    --color-text-light: #1A1A1A;
    /* Text on light bg */
    --color-text-muted-dark: #aaaaaa;
    --color-text-muted-light: #555555;
    --color-accent: #C5A059;
    /* Subtle champagne gold/bronze */
    --color-border-dark: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(0, 0, 0, 0.1);

    /* Typography */
    /* Primary: Cormorant Garamond - elegant, high contrast serif */
    --font-primary: 'Cormorant Garamond', serif;
    /* Secondary: Inter - clean, modern sans-serif for UI and specs */
    --font-secondary: 'Inter', sans-serif;

    /* Spacing System */
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 10rem;
    --space-xxl: 15rem;

    /* Transitions */
    --transition-slow: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-medium: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Native smooth scroll fallback */
}

body {
    background-color: var(--color-dark);
    /* Start dark */
    color: var(--color-text-dark);
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 1s ease, color 1s ease;
    /* Smooth transition between dark/light sections */
}

/* Body classes for theme switching via JS */
body.theme-light {
    background-color: var(--color-light);
    color: var(--color-text-light);
}

body.theme-light .fixed-nav {
    color: #1A1A1A;
}

body.theme-light .contact-link {
    color: var(--color-text-muted-light);
}

body.theme-light .contact-link:hover {
    color: #1A1A1A;
}

/* Typography Base */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    position: relative;
    padding: var(--space-xl) 0;
}

/* Theme observer targets */
.theme-trigger {
    position: absolute;
    top: 20%;
    height: 1px;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
    color: #fff;
}

.lang-selector {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lang-selector a {
    padding: 0 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-selector a:hover {
    opacity: 0.8;
}

.lang-selector a.active {
    opacity: 1;
    font-weight: 600;
}

.lang-selector .divider {
    opacity: 0.3;
}

/* ==========================================================================
   SECTION 1: HERO (THE REVEAL) - Dark
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) max(var(--space-md), calc((100% - 1100px) / 2 + var(--space-md)));
    gap: var(--space-lg);
}

.hero-art-container {
    position: relative;
    flex: 0 1 45%;
    max-width: 420px;
    z-index: 2;
}

/* The actual image */
.art-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    opacity: 0;
    animation: revealArt 1.5s var(--transition-slow) forwards;
}

/* Subtle spotlight effect behind the art */
.hero-art-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    opacity: 0;
    animation: fadeIn 3s ease forwards 1s;
}

.hero-titles {
    flex: 1 1 50%;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.5s;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* SALE INFO IN HERO */
.hero-sale-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: 1.5rem;
    animation: fadeUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-price {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-accent);
}

.hero-cta {
    font-size: 1rem !important;
    padding: 1rem 2.5rem !important;
    border-color: var(--color-text-light) !important;
    color: var(--color-text-light) !important;
    background: transparent;
}

.hero-cta:hover {
    background: var(--color-text-light) !important;
    color: var(--color-light) !important;
}

/* Scroll Indicator */
.scroll-indicator {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-sm);
    opacity: 0;
    animation: fadeIn 2s ease forwards 2.5s;
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    color: var(--color-text-muted-dark);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent) 0%, transparent 100%);
    animation: scrollPulse 2s infinite ease-in-out;
}

/* ==========================================================================
   SECTION 2: THE NARRATIVE (STICKY SCROLL) - Light
   ========================================================================== */
.narrative-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.sticky-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .sticky-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Sticky Left Side (Image) */
.sticky-art {
    width: 100%;
    margin-bottom: var(--space-md);
}

@media (min-width: 992px) {
    .sticky-art {
        width: 45%;
        position: sticky;
        top: 15vh;
        height: 70vh;
        margin-bottom: 0;
    }
}

.sticky-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents cutting the frame */
    object-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    /* Light shadow for canvas bg */
}

/* Scrolling Right Side (Text) */
.scrolling-text {
    width: 100%;
}

@media (min-width: 992px) {
    .scrolling-text {
        width: 45%;
        padding-top: 10vh;
        padding-bottom: 20vh;
    }
}

.text-block {
    margin-bottom: var(--space-xl);
}

.text-block:last-child {
    margin-bottom: 0;
}

.text-block p {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: inherit;
}

.text-block .author-highlight {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
    margin-top: 2rem;
    color: var(--color-text-muted-light);
}

/* ==========================================================================
   SECTION 3: THE PROOF & DETAILS - Light
   ========================================================================== */
.proof-section {
    padding: var(--space-lg) 0;
    /* Reduced padding */
    border-top: 1px solid var(--color-border-light);
}

.proof-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.proof-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.proof-subtitle {
    font-size: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Asymmetric Grid for Details */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(12, 1fr);
        align-items: center;
    }
}

.detail-block {
    display: flex;
    flex-direction: column;
}

/* Grid placements */
@media (min-width: 768px) {
    .detail-1 {
        grid-column: 2 / 7;
    }

    /* Signature - Left */
    .detail-2 {
        grid-column: 7 / 12;
    }

    .detail-3 {
        grid-column: 2 / 7;
        margin-top: 4rem;
    }

    .detail-4 {
        grid-column: 7 / 12;
        margin-top: 4rem;
    }

    /* Frame - Wide center-left */
}

.detail-img-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.detail-img-wrap img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.detail-img-wrap:hover img {
    transform: scale(1.05);
    /* Interactive zoom */
}

.detail-caption {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: inherit;
    border-top: 1px solid var(--color-border-light);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.detail-caption span:last-child {
    color: var(--color-text-muted-light);
    text-transform: none;
    letter-spacing: normal;
    font-style: italic;
}

/* Specs Table - Clean & Minimal */
.specs-table {
    margin-top: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid var(--color-border-light);
    padding: 1.5rem 0;
}

.spec-label {
    width: 30%;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted-light);
}

.spec-value {
    width: 70%;
    font-size: 1rem;
}

/* Premium Inline Link Styling */
.spec-link {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(197, 160, 89, 0.4);
    text-decoration-thickness: 1px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.spec-link:hover {
    color: var(--color-text-dark);
    text-decoration-color: var(--color-text-dark);
}

/* ==========================================================================
   SECTION 4: THE CLOSER (INVESTMENT & CTA)
   Christie's / Sotheby's inspired: warm light background, high-contrast text
   ========================================================================== */
.closer-section {
    padding: var(--space-xl) 0;
    text-align: center;
    display: flex;
    align-items: center;
    background-color: #FAF8F5;
    color: #1a1a1a;
    border-top: 1px solid #e0dbd4;
}

.investment-box {
    max-width: 720px;
    margin: 0 auto;
}

.price-label {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8b7355;
    margin-bottom: 1rem;
    display: block;
}

.price-value {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #1a1a1a;
}

.investment-argument {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-style: italic;
}

.closing-statement {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: #555;
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1.4rem 3.5rem;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* CTA Hover Fill Effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8b7355;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.cta-button:hover {
    color: #fff;
    border-color: #8b7355;
}

.cta-button:hover::before {
    transform: scaleX(1);
}

/* Hero CTA: outlined style on dark background */
.hero-cta {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-cta:hover {
    color: #1a1a1a;
    border-color: #8b7355;
}


.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: #666;
}

.direct-contact {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.contact-link {
    color: #333;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: #8b7355;
}

.whatsapp-link:hover {
    color: #25D366;
}

.contact-info a {
    color: #333;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-info a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    color: #fff;
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
.delay-200ms {
    transition-delay: 0.2s !important;
}

.text-center-mb-2 {
    text-align: center;
    margin-bottom: 2rem;
}

.text-center-muted-mb-4 {
    text-align: center;
    color: var(--color-text-muted-dark);
    margin-bottom: 4rem;
}

.form-actions-mt-1 {
    text-align: center;
    margin-top: 1rem;
}

.form-actions-mt-3 {
    text-align: center;
    margin-top: 3rem;
}

.btn-contact-submit {
    cursor: pointer;
    background: transparent;
    width: 100%;
}

.btn-contact-submit-auto {
    cursor: pointer;
    background: transparent;
}

@keyframes revealArt {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Fade Up Observer Class */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    color: var(--color-text-muted-dark);
    border-top: 1px solid var(--color-border-dark);
}

/* ==========================================================================
   MOBILE TYPOGRAPHY OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .text-block {
        margin-bottom: 2rem !important;
        /* Reduce massive gap between text blocks on mobile */
        font-size: 1.15rem !important;
    }

    .scrolling-text {
        padding-top: 1rem !important;
    }
}

/* Hero mobile: vertical stacking */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: var(--space-md) var(--space-sm);
        gap: var(--space-md);
        text-align: center;
    }

    .hero-art-container {
        flex: none;
        max-width: 280px;
        width: 80%;
        margin: 0 auto;
    }

    .hero-titles {
        text-align: center;
    }

    .hero-sale-info {
        align-items: center;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-price {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   SOCIAL PROOF QUOTE
   ========================================================================== */
.social-proof-quote {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-accent);
    margin: var(--space-md) 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-accent);
    line-height: 1.4;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .social-proof-quote {
        font-size: 1.25rem;
        margin: var(--space-sm) 0;
    }
}

/* ==========================================================================
   MODAL (CONTACT FORM)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(7, 7, 7, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-dark);
    margin: auto;
    padding: 3rem 2rem;
    border: 1px solid var(--color-border-dark);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
    text-align: left;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--color-text-muted-dark);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-accent);
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-text-dark);
}

.modal-subtitle {
    text-align: center;
    color: var(--color-text-muted-dark);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-dark);
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL
   ========================================================================== */
.zoomable {
    cursor: zoom-in;
    transition: transform var(--transition-medium);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--color-text-dark);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}