/* 
  Archetype: Luxury/Editorial
  Colors: #FBF9F7 (Warm White), #1C1917 (Stone Black), #C4A484 (Gold)
  Fonts: Playfair Display, Cormorant Garamond, EB Garamond
*/

:root {
    --bg-paper: #FBF9F7;
    --text-main: #333333;
    --accent-gold: #C4A484;
    --stone-black: #1C1917;
    --off-white: #FAFAFA;

    --grid-base: 8px;
    --spacing-xs: calc(var(--grid-base) * 2);
    /* 16px */
    --spacing-sm: calc(var(--grid-base) * 4);
    /* 32px */
    --spacing-md: calc(var(--grid-base) * 8);
    /* 64px */
    --spacing-lg: calc(var(--grid-base) * 12);
    /* 96px */
    --spacing-xl: calc(var(--grid-base) * 16);
    /* 128px */

    --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--stone-black);
}

.sub-heading {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: var(--spacing-xs);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Structural Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Navigation - Refined Minimal */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-xs) 0;
    transition: var(--transition-slow);
}

header.scrolled {
    background: rgba(251, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 25, 23, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap img {
    height: 48px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone-black);
    padding: 8px;
    transition: var(--transition-fast);
}

.mobile-toggle:active {
    transform: scale(0.9);
}

@media (min-width: 1025px) {
    .mobile-toggle {
        display: none;
    }
}

.header-inquire {
    white-space: nowrap;
}

/* Mobile Menu Overlay Flare */
.nav-links.mobile-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    gap: 30px;
    animation: slideDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links.mobile-active a {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--stone-black);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Tactile Flare for Buttons */
.btn-luxe {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-luxe:active {
    transform: scale(0.96);
    background: var(--stone-black);
    color: white;
}

/* Premium Card Flare */
.collection-item,
.service-item,
.image-reveal {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.collection-item:active,
.service-item:active {
    transform: scale(0.98);
}

/* Improved Typography for Mobile */
h2 {
    font-size: 2.2rem;
}

@media (min-width: 1025px) {
    h2 {
        font-size: 3.5rem;
    }
}

/* Hero Section - Cinematic Editorial */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.hero-visual {
    width: 100%;
    height: 40vh;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

.hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-xs);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
    transition-delay: 0.2s;
}

@media (min-width: 1025px) {
    .hero {
        height: 100vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        flex-direction: row;
        align-items: center;
    }

    .hero-visual {
        height: 100%;
    }

    .hero-content {
        padding-left: var(--spacing-lg);
        text-align: left;
        max-width: 600px;
    }

    .hero-content h1 {
        font-size: 4.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
}

.hero.active h1,
.hero.active p,
.hero.active .btn-wrap {
    opacity: 1;
    transform: translateY(0);
}

.btn-luxe {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid var(--stone-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-luxe:hover {
    background: var(--stone-black);
    color: white;
}

/* Asymmetric Grid Layouts */
.editorial-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 1025px) {
    .editorial-grid {
        display: grid;
        grid-template-columns: 7fr 5fr;
        gap: var(--spacing-lg);
        align-items: center;
    }

    .editorial-grid.reverse {
        grid-template-columns: 5fr 7fr;
    }
}

.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal img {
    width: 100%;
    transition: var(--transition-slow);
}

.image-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-paper);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: right;
}

.image-reveal.revealed::after {
    transform: scaleX(0);
}

/* Services - Vertical Typography focus */
.services-editorial {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 1025px) {
    .services-editorial {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

.service-item {
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(28, 25, 23, 0.1);
}

.service-item lucide-icon {
    width: 24px;
    height: 24px;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-gold);
}

.service-item h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
}

/* Collection - Asymmetric masonry-like */
.collection-editorial {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.collection-item {
    position: relative;
    height: 400px;
}

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

@media (min-width: 1025px) {
    .collection-editorial {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--grid-base);
    }

    .item-1 {
        grid-column: span 8;
        height: 600px;
    }

    .item-2 {
        grid-column: span 4;
        height: 300px;
        margin-top: auto;
    }

    .item-3 {
        grid-column: span 4;
        height: 300px;
        margin-top: calc(var(--spacing-md) * -1);
    }
}

/* Contact Section - Clean & Geometric */
.contact-editorial {
    background: var(--stone-black);
    color: var(--off-white);
}

.contact-editorial h2 {
    color: white;
    font-size: 3rem;
}

.contact-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 1025px) {
    .contact-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.info-node {
    display: flex;
    gap: 16px;
}

.info-node lucide-icon {
    color: var(--accent-gold);
}

/* Forms */
input,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 0;
    color: white;
    font-family: inherit;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

/* Studio Section & Gallery Overlay */
#galleryTrigger {
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 25, 23, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

#galleryTrigger:hover .gallery-overlay {
    opacity: 1;
}

#galleryTrigger:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--stone-black);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.lightbox-main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-main img {
    max-width: 100%;
    max-height: calc(100% - 60px);
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    width: 100%;
    text-align: center;
    color: white;
    margin-top: 20px;
}

.lightbox-caption span {
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent-gold);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-gold);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    max-width: 1000px;
}

.lightbox-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    opacity: 0.4;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.lightbox-thumbs img.active {
    opacity: 1;
    border-color: var(--accent-gold);
}

.lightbox-thumbs img:hover {
    opacity: 0.8;
}

/* Responsive Lightbox */
@media (max-width: 1200px) {

    .lightbox-prev,
    .lightbox-next {
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 60px);
    }

    .lightbox-next {
        right: calc(50% - 60px);
    }

    .lightbox-content {
        height: 50vh;
    }

    .lightbox-thumbs {
        padding: 0 20px;
        justify-content: flex-start;
    }
}

/* Premium Reveal Flare */
.image-reveal:hover img {
    transform: scale(1.1);
}

.image-reveal:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 50vh;
        order: -1;
    }

    .hero-content {
        padding: var(--spacing-md) var(--spacing-sm);
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .editorial-grid,
    .editorial-grid.reverse,
    .services-editorial,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .item-1,
    .item-2,
    .item-3 {
        grid-column: span 12;
        height: auto;
        margin-top: 0;
    }

    .nav-links {
        display: none;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

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