/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: #333;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.logo-sub {
    font-size: 0.875rem;
    font-weight: 300;
    color: #666;
    display: block;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #333;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
}

.hero-description em {
    font-style: italic;
    color: #333;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 3rem 2rem 2rem;
}

.slide-content h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.play-pause-btn {
    top: 20px;
    right: 20px;
    transform: none;
    width: 40px;
    height: 40px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Hero CTA */
.hero-cta {
    text-align: center;
}

.btn-primary {
    background: #333;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #555;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #333;
    border-color: #333;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.gallery-card-link:hover .gallery-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-card-content {
    padding: 1.5rem;
}

.gallery-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category,
.series {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.series {
    background: #e8f4f8;
    color: #2c5aa0;
}

.gallery-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.gallery-card p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
}

.price {
    color: #333 !important;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #333;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-menu-btn {
        display: block;
    }

    .nav-mobile.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .slideshow {
        height: 300px;
    }

    .slide-content {
        padding: 2rem 1rem 1rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .slide-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .slideshow {
        height: 250px;
    }

    .gallery {
        padding: 60px 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ================================================
   Elegance pass — serif display type, gold accents,
   header search, card hover, reveal, gallery CTA
   ================================================ */
:root {
    --ink: #292420;
    --gold: #a8834b;
    --gold-soft: #c9a96a;
    --cream: #faf8f4;
    --paper: #ffffff;
    --line: #e9e1d2;
    --muted-warm: #6f675e;
}

body { background-color: var(--cream); color: var(--ink); }

/* -- Display typography -- */
.logo-main,
.hero-title,
.section-header h2,
.gallery-card h3,
.card-info h3,
.artwork-info-section h1,
.gallery-cta h2,
.page-title,
.artwork-header h1 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
.logo-main { font-weight: 600; font-size: 1.65rem; letter-spacing: 0.02em; }
.hero-title { font-weight: 500; letter-spacing: 0.05em; }
.hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--gold);
}
.hero-description { color: var(--muted-warm); }
.hero-description::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    background: var(--gold-soft);
    margin: 1.6rem auto 0;
}
.section-header h2 { font-weight: 500; font-size: 2.3rem; letter-spacing: 0.03em; }
.gallery-card h3, .card-info h3 { font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em; }

/* -- Category chips -- */
.gallery-card-meta .category,
.artwork-meta .category,
.card-type {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

/* -- Gallery card polish -- */
.gallery-card, .card-showcase {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(41, 36, 32, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    height: 100%;
}
.gallery-item:hover .gallery-card,
.card-item:hover .card-showcase {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(41, 36, 32, 0.13);
}
.gallery-card img, .card-showcase img {
    transition: transform 0.6s ease;
    display: block;
}
.gallery-item:hover .gallery-card img,
.card-item:hover .card-showcase img {
    transform: scale(1.045);
}
.gallery-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }

/* -- Filter buttons -- */
.filter-btn {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted-warm);
    border-radius: 999px;
    transition: all 0.25s ease;
}
.filter-btn:hover {
    background: #46566b;
    border-color: #46566b;
    color: #fff;
}
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

/* -- Header search -- */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3efe8;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    margin-left: 1.5rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav-search:focus-within {
    background: #fff;
    border-color: var(--gold-soft);
    box-shadow: 0 0 0 3px rgba(168, 131, 75, 0.14);
}
.nav-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--ink);
    width: 9.5rem;
}
.nav-search input::placeholder { color: #a89a86; }
.nav-search-icon { color: #a89a86; font-size: 0.8rem; }
.nav-search input[type="search"]::-webkit-search-decoration { display: none; }
@media (max-width: 768px) {
    .nav-search { margin-left: auto; margin-right: 0.75rem; padding: 0.3rem 0.75rem; }
    .nav-search input { width: 6.5rem; }
}

/* -- Search empty state -- */
.search-no-results {
    display: none;
    text-align: center;
    color: var(--muted-warm);
    font-style: italic;
    padding: 2.5rem 1rem;
}

/* -- Gallery CTA -- */
.gallery-cta {
    text-align: center;
    padding: 4.5rem 1.25rem 5rem;
    background: linear-gradient(var(--paper), var(--cream));
    border-top: 1px solid var(--line);
}
.gallery-cta h2 { font-weight: 500; font-size: 2.1rem; margin-bottom: 0.6rem; }
.gallery-cta p { color: var(--muted-warm); max-width: 36em; margin: 0 auto 1.75rem; }
.gallery-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* -- Scroll reveal (JS adds body.js-reveal; reduced-motion users skip it) -- */
body.js-reveal .gallery-item:not(.revealed),
body.js-reveal .card-item:not(.revealed) {
    opacity: 0;
    transform: translateY(18px);
}
body.js-reveal .gallery-item,
body.js-reveal .card-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-reveal .gallery-item.revealed,
body.js-reveal .card-item.revealed {
    opacity: 1;
    transform: none;
}

/* -- Focus visibility -- */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}


/* ================================================
   Museum-quality pass (2026)
   Warm gallery light · gilded name · living slideshow ·
   "under-glass" cards · drawn-in header rules · visible footer CTA
   Every motion below is disabled under prefers-reduced-motion.
   ================================================ */

/* Warm gallery-wall light in place of the cool blue gradient */
.hero {
    background: radial-gradient(130% 120% at 50% -12%,
        #fdfbf7 0%, #f4eee2 55%, #ece2d1 100%);
    position: relative;
}

/* The name in gold leaf — a single soft highlight sweeps across on load
   (guarded so browsers without background-clip:text keep solid ink) */
.hero-title { color: var(--ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title {
        background: linear-gradient(95deg,
            #7d602f 0%, #a8834b 22%, #ecd9ac 46%, #b98f4f 62%, #866831 100%);
        background-size: 220% 100%;
        background-position: 0 0;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        animation: lw-gild 2.8s cubic-bezier(.4, 0, .2, 1) .35s 1 both;
    }
    @keyframes lw-gild { from { background-position: 100% 0; } to { background-position: 0 0; } }
}

/* Living hero — a slow museum "Ken Burns" drift, framed like hung work */
.slideshow-container {
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(41, 36, 32, .16), 0 2px 6px rgba(41, 36, 32, .08);
}
.slide.active img {
    animation: lw-kenburns 7s ease-out both;
    transform-origin: 50% 45%;
}
@keyframes lw-kenburns { from { transform: scale(1.001); } to { transform: scale(1.07); } }

/* A fine gold rule that draws itself beneath each section header on reveal */
.section-header::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    background: var(--gold-soft);
    margin: 1.4rem auto 0;
}
body.js-reveal .section-header::after { width: 0; transition: width .9s ease .15s; }
body.js-reveal .section-header.fade-in::after { width: 64px; }

/* Gallery cards as physical objects under glass */
.gallery-item { perspective: 1000px; }
.gallery-card, .card-showcase { position: relative; }
.gallery-item:hover .gallery-card,
.card-item:hover .card-showcase {
    box-shadow: 0 16px 38px rgba(41, 36, 32, .15), inset 0 0 0 1px rgba(201, 169, 106, .55);
}
.gallery-card.is-tilting, .card-showcase.is-tilting {
    transition: transform .12s ease-out, box-shadow .35s ease;
    will-change: transform;
}
/* raking gallery light on the "glass", tracking the cursor (see main.js) */
.gallery-card::after, .card-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .45s ease;
    mix-blend-mode: soft-light;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 46%);
}
.gallery-item:hover .gallery-card::after,
.card-item:hover .card-showcase::after { opacity: 1; }

/* Footer: reveal the "Get in Touch" button + a whisper of gold */
.footer { border-top: 1px solid rgba(201, 169, 106, .35); }
.footer .btn-secondary {
    background: transparent;
    color: var(--cream);
    border-color: rgba(201, 169, 106, .75);
}
.footer .btn-secondary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .hero-title { animation: none; }
    .slide.active img { animation: none; }
    .section-header::after { width: 64px; }
    .gallery-card.is-tilting, .card-showcase.is-tilting { will-change: auto; }
}

/* Playful gold-glow menu — links warm to gold with a soft halo, and a
   gold underline draws itself out from the centre on hover (full + glowing
   when active). Reduced-motion users still get the colour, just no easing. */
.nav-link { transition: color .3s ease, text-shadow .3s ease; }
.nav-link:hover { color: var(--gold); text-shadow: 0 0 14px rgba(201, 169, 106, .55); }
.nav-link.active { color: var(--gold); }
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    transition: left .3s ease, right .3s ease, box-shadow .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    box-shadow: 0 0 9px rgba(201, 169, 106, .65);
}
@media (prefers-reduced-motion: reduce) {
    .nav-link, .nav-link::after { transition: none; }
}
