/* 
 * Premium Vibe CSS for Artsynthesis (True Sway Aesthetic)
 * Fonts: Montserrat (Headings), Inter (Body)
 */

:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f4f4f4;
    --color-bg-alt: #000000;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-primary: #000000;
    --color-primary-hover: #333333;
    --color-accent: #2e8b57; /* Teal/Cyan hint from the logo */
    
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --radius-lg: 0px; 
    --radius-md: 0px;
    
    --transition: all 0.3s ease;
}

/* Base Reset */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.py-sm { padding: 3rem 0; }
.py-md { padding: 6rem 0; }
.py-lg { padding: 8rem 0; }

.bg-none { background: var(--color-bg); color: var(--color-text); }
.bg-soft { background: var(--color-bg-soft); color: var(--color-text); }
.bg-alt { background: var(--color-bg-alt); color: #ffffff; }

/* Invert heading colors on dark backgrounds */
.bg-alt h1, .bg-alt h2, .bg-alt h3, .bg-alt h4, .bg-alt h5, .bg-alt h6 {
    color: #ffffff;
}
.bg-alt .lead-text {
    color: #cccccc;
}
.bg-alt .text-muted {
    color: #999999;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.bg-alt .glass-panel {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
}
.bg-alt .btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.bg-alt .btn-primary:hover {
    background: transparent;
    color: #fff;
}

/* Header */
.sway-header {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.sway-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

/* Hero Block */
.block-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end; /* Move down */
    justify-content: flex-start; /* Move left */
    padding-bottom: 15vh; /* Spacing from bottom */
    padding-left: 10vw; /* 10% from the left */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes slideInLeftHero {
    from {
        opacity: 0;
        transform: translateX(-15vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-heading {
    position: relative;
    font-family: 'Neucha', 'Caveat', cursive; /* Calligraphic font */
    font-size: clamp(3.5rem, 8vw, 6rem); /* Made it slightly larger to compensate for the thinner handwritten style */
    font-weight: 400; /* Handwritten fonts usually look better at normal or medium weight */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    animation: slideInLeftHero 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-heading::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -100vw; /* Stretches infinitely to the left */
    background-color: #000;
    z-index: -1;
}

.hero-intro {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Gallery Block */
.block-gallery {
    padding: 0; /* Sway galleries often go edge to edge */
}
.block-gallery .container {
    max-width: 100%; /* Full width */
    padding: 0;
}
.block-gallery h2, .block-gallery .lead-text {
    padding: 2rem; /* Add padding back to text if it's full width */
    text-align: center;
    margin-bottom: 0;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; /* Tight look */
    margin-top: 0;
}

.gallery-grid::after {
    content: '';
    flex-grow: 10; /* Prevents the last row from stretching items too wide */
    min-width: 20%;
}

.gallery-item {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #000;
    flex-grow: 1;
    height: 300px;
}

.gallery-item img {
    min-width: 100%;
    height: 100%;
    object-fit: cover; /* Required for the flush edges */
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }
}

.gallery-item:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Quote Block */
.block-quote blockquote {
    font-size: 2rem;
    font-style: italic;
    font-family: var(--font-hero);
    color: var(--color-accent);
    text-align: center;
    border-left: none;
    margin: 0;
}
.quote-author {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    font-style: normal;
    font-weight: 600;
}

/* Split Block */
.grid-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .grid-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .split-reverse .split-content { grid-column: 1; grid-row: 1; }
    .split-reverse .split-image { grid-column: 2; grid-row: 1; }
}
.split-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 4px;
}

/* Overlap Block */
.block-overlap { padding: 4rem 0; }
.overlap-container { position: relative; display: flex; flex-direction: column; }
.overlap-image-wrap { width: 90%; align-self: flex-end; }
.overlap-image-wrap img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.overlap-content { margin-top: -3.5rem; z-index: 2; align-self: flex-start; width: 85%; }
.overlap-heading {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 0.2rem 1.5rem;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    position: relative;
    animation: slideInLeftHero 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.overlap-heading::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -100vw;
    background-color: #000;
    z-index: -1;
}
.overlap-text { padding-left: 5%; }
@media (max-width: 768px) {
    .overlap-image-wrap { width: 100%; }
    .overlap-content { width: 100%; margin-top: -2rem; }
    .overlap-text { padding-left: 0; }
}

/* Lightbox */
.artsynthesis-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.artsynthesis-lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.2rem;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--color-accent);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0,0,0,0.9);
    color: var(--color-accent);
}
.lightbox-prev {
    left: -60px;
}
.lightbox-next {
    right: -60px;
}
@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
