/* ============================================
   Studio Artily - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f8f6f3;
    --color-bg-alt: #eeeae4;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #6b6560;
    --color-accent: #8b6f4e;
    --color-accent-dark: #6d5740;
    --color-border: #e0dbd4;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
    --gap: clamp(1.5rem, 4vw, 3rem);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--color-text);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.nav--scrolled {
    background: rgba(248, 246, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav__logo span {
    font-style: italic;
    color: var(--color-accent);
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: var(--transition);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 111, 78, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 111, 78, 0.06) 0%, transparent 50%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero__subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero__desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 460px;
    margin: 0 auto 2.5rem;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero__scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.section__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section__desc {
    color: var(--color-text-muted);
    font-weight: 300;
    font-size: 1.05rem;
}

/* ============================================
   Grid / Cards
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.card__img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-border);
}

.card__placeholder svg {
    width: 48px;
    height: 48px;
}

.card__placeholder--lg {
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    min-height: 400px;
}

.card__placeholder--lg svg {
    width: 64px;
    height: 64px;
}

.atelier__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    min-height: 400px;
}

.card__body {
    padding: 1.25rem 1.5rem;
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.card__text {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Atelier Section
   ============================================ */
.atelier {
    background: var(--color-bg-alt);
}

.atelier__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.atelier__text {
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.atelier__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-accent);
}

.stat__label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ============================================
   Contact
   ============================================ */
.contact__links {
    display: flex;
    justify-content: center;
    gap: clamp(3rem, 8vw, 6rem);
    text-align: center;
}

.contact__item {
    margin-bottom: 2rem;
}

.contact__item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.contact__item a {
    color: var(--color-accent);
    transition: var(--transition);
}

.contact__item a:hover {
    color: var(--color-accent-dark);
}

.contact__social {
    display: flex;
    gap: 1rem;
}

.contact__social a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-accent);
}

.contact__item address {
    font-style: normal;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}



/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

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

.footer__copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   Animations (scroll reveal)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
        z-index: 1001;
    }

    .nav__links {
        position: fixed;
        inset: 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav__links--open {
        opacity: 1;
        visibility: visible;
    }

    .nav__links a {
        font-size: 1.2rem;
    }

    .nav__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav__toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .atelier__grid {
        grid-template-columns: 1fr;
    }

    .atelier__stats {
        gap: 1.5rem;
    }

    .contact__links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .atelier__stats {
        flex-direction: column;
        gap: 1rem;
    }
}
