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

:root {
    --color-ivory: #FDFBF7;
    --color-warm-white: #F4F0EA;
    --color-sand: #EAE6DF;
    --color-stone: #CDC8C2;
    --color-taupe: #A29B93;
    --color-soft-mocha: #80766B;
    --color-espresso: #4A4036;
    --color-olive: #686F5D;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-espresso);
    background-color: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-soft-mocha);
    font-size: 1.05rem;
}

a {
    color: var(--color-espresso);
    text-decoration: none;
    transition: var(--transition-medium);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-stone);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--color-espresso);
    background-color: transparent;
    color: var(--color-espresso);
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn:hover {
    background-color: var(--color-espresso);
    color: var(--color-ivory);
}

.btn-primary {
    background-color: var(--color-espresso);
    color: var(--color-ivory);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-espresso);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 6rem 0;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-slow);
}

header.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-espresso);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0.3), rgba(253, 251, 247, 0.6));
    z-index: -1;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-espresso);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Atelier Section */
.atelier {
    background-color: var(--color-warm-white);
}

.atelier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.atelier-text h2 {
    font-size: 2.5rem;
}

.atelier-img-wrapper {
    position: relative;
}

.atelier-img-wrapper img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.atelier-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-stone);
    z-index: -1;
}

/* Collections */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.collection-card {
    position: relative;
    overflow: hidden;
    height: 700px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background-color: rgba(253, 251, 247, 0.95);
    padding: 1.5rem 2.5rem;
    backdrop-filter: blur(5px);
}

.collection-info h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 5;
}

/* Zigzag banner: full-width band at its native ratio */
.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 1100 / 614;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Custom Orders Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-stone);
    z-index: 0;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: var(--color-ivory);
    padding: 0 1rem;
    width: 25%;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-espresso);
    color: var(--color-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}

/* Contact Section */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-control {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-stone);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-espresso);
    transition: var(--transition-medium);
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--color-espresso);
}

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

/* Footer */
footer {
    background-color: var(--color-espresso);
    color: var(--color-warm-white);
    text-align: center;
    padding: 4rem 5% 2rem;
}

footer .brand-logo {
    color: var(--color-ivory);
    margin-bottom: 1rem;
}

.footer-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-stone);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--color-ivory);
}

/* Responsive */
@media (max-width: 900px) {
    .atelier-grid, .collections-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
        gap: 2rem;
    }
    .timeline::before {
        display: none;
    }
    .timeline-step {
        width: 100%;
    }

    /* Single column: let every card fall back to its natural ratio */
    .gallery-item, .gallery-item-wide {
        grid-column: auto;
        aspect-ratio: auto;
    }
    .gallery-item img {
        height: auto;
    }

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