/* =============================================================
   ATELIER NOIR — styles.css
   Completely standalone. No dependency on SiteFolk or Tailwind.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
    /* Palette */
    --an-black:         #0a0a0a;
    --an-near-black:    #121212;
    --an-charcoal:      #2c2c2c;
    --an-stone:         #8e8d8a;
    --an-light-grey:    #e5e4e2;
    --an-ivory:         #f9f8f6;
    --an-white:         #ffffff;

    /* Typography */
    --an-font-serif:    'Playfair Display', Georgia, serif;
    --an-font-sans:     'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --an-section-py:    8rem;
    --an-container-px:  2rem;
    --an-container-max: 1400px;

    /* Misc */
    --an-transition:    .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ---------- RESET / BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--an-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--an-charcoal);
    background-color: var(--an-ivory);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--an-font-serif);
    font-weight: 400;
    line-height: 1.1;
    color: var(--an-black);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

::selection {
    background-color: var(--an-black);
    color: var(--an-white);
}

/* ---------- LAYOUT ---------- */
.an-container {
    width: 100%;
    max-width: var(--an-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--an-container-px);
    padding-right: var(--an-container-px);
}

/* ---------- BUTTONS ---------- */
.an-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--an-font-sans);
    font-weight: 400;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid transparent;
    transition: all var(--an-transition);
    white-space: nowrap;
}

.an-btn--solid {
    background-color: var(--an-black);
    color: var(--an-white);
    border-color: var(--an-black);
}

.an-btn--solid:hover {
    background-color: transparent;
    color: var(--an-black);
}

.an-btn--outline {
    background-color: transparent;
    color: var(--an-black);
    border-color: var(--an-black);
}

.an-btn--outline:hover {
    background-color: var(--an-black);
    color: var(--an-white);
}

.an-btn--light {
    background-color: transparent;
    color: var(--an-white);
    border-color: var(--an-white);
}

.an-btn--light:hover {
    background-color: var(--an-white);
    color: var(--an-black);
}

/* ---------- ANIMATION UTILS ---------- */
.an-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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


/* =============================================================
   HEADER
   ============================================================= */
.an-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color .4s, padding .4s, color .4s;
}

/* When over dark hero */
.an-header--dark-mode {
    color: var(--an-white);
}

/* Scrolled state */
.an-header--scrolled {
    background-color: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    color: var(--an-black);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

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

.an-logo {
    font-family: var(--an-font-sans);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    z-index: 101;
}

.an-nav {
    display: none;
}

.an-nav__list {
    display: flex;
    gap: 3rem;
}

.an-nav__list a {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.an-nav__list a:hover {
    opacity: .6;
}

.an-header__actions {
    display: none;
}

.an-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    z-index: 101;
}

.an-hamburger__line {
    width: 24px;
    height: 1px;
    background-color: currentColor;
    margin: 0 auto;
    transition: transform .3s, opacity .3s;
}

.an-hamburger[aria-expanded="true"] .an-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.an-hamburger[aria-expanded="true"] .an-hamburger__line:nth-child(2) {
    opacity: 0;
}
.an-hamburger[aria-expanded="true"] .an-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.an-nav--mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background-color: var(--an-ivory);
    color: var(--an-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    animation: an-fadeIn .4s ease;
}

@keyframes an-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.an-nav--mobile-open .an-nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.an-nav--mobile-open .an-nav__list a {
    font-family: var(--an-font-serif);
    font-size: 2rem;
    text-transform: none;
    letter-spacing: 0;
}


/* =============================================================
   HERO
   ============================================================= */
.an-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--an-near-black);
    color: var(--an-white);
    overflow: hidden;
}

.an-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    animation: an-scale 20s ease-out forwards;
}

@keyframes an-scale {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.an-hero__inner {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.an-hero h1 {
    color: var(--an-white);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.an-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.an-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}


/* =============================================================
   INTRODUCTION
   ============================================================= */
.an-intro {
    padding: var(--an-section-py) 0;
    text-align: center;
}

.an-intro__inner {
    max-width: 800px;
    margin: 0 auto;
}

.an-eyebrow {
    display: block;
    font-family: var(--an-font-sans);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--an-stone);
    margin-bottom: 2rem;
}

.an-intro h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.an-intro p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--an-charcoal);
}


/* =============================================================
   FEATURED COLLECTION
   ============================================================= */
.an-collection {
    padding: 0 0 var(--an-section-py);
}

.an-collection__header {
    text-align: center;
    margin-bottom: 5rem;
}

.an-collection__header h2 {
    font-size: 2rem;
}

.an-collection__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.an-collection__item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.an-collection__img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--an-light-grey);
}

.an-collection__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.an-collection__item:hover .an-collection__img {
    transform: scale(1.05);
}

.an-collection__meta h3 {
    font-family: var(--an-font-sans);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.an-collection__meta p {
    font-family: var(--an-font-serif);
    font-size: 1.25rem;
    color: var(--an-near-black);
}


/* =============================================================
   LARGE EDITORIAL IMAGE
   ============================================================= */
.an-editorial {
    padding: var(--an-section-py) 0;
}

.an-editorial__inner {
    position: relative;
}

.an-editorial__img {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    object-fit: cover;
}

.an-editorial__overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--an-ivory);
    padding: 3rem 2rem 0 3rem;
    max-width: 500px;
}

.an-editorial__overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* =============================================================
   PROPERTY
   ============================================================= */
.an-property {
    padding: var(--an-section-py) 0;
    background-color: var(--an-near-black);
    color: var(--an-white);
}

.an-property h2 {
    color: var(--an-white);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
}

.an-property__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.an-property__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.an-property__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.an-property__title {
    color: var(--an-white);
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.an-property__location {
    font-family: var(--an-font-sans);
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--an-stone);
    margin-bottom: 2rem;
}

.an-property__specs {
    font-family: var(--an-font-serif);
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.an-property__desc {
    color: #b0b0b0;
    margin-bottom: 3rem;
}


/* =============================================================
   JOURNAL
   ============================================================= */
.an-journal {
    padding: var(--an-section-py) 0;
}

.an-journal__header {
    margin-bottom: 4rem;
}

.an-journal__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.an-article {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.an-article__img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.an-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.an-article:hover .an-article__img {
    transform: scale(1.03);
}

.an-article__meta {
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--an-stone);
}

.an-article__title {
    font-size: 1.5rem;
}


/* =============================================================
   BRAND STATEMENT
   ============================================================= */
.an-statement {
    padding: calc(var(--an-section-py) * 1.5) 0;
    text-align: center;
}

.an-statement h2 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    letter-spacing: -0.02em;
}


/* =============================================================
   ABOUT
   ============================================================= */
.an-about {
    padding: var(--an-section-py) 0;
    background-color: var(--an-white);
}

.an-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.an-about__img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.an-about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.an-about__content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.an-about__content p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 480px;
}


/* =============================================================
   FINAL CTA
   ============================================================= */
.an-cta {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--an-white);
}

.an-cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.an-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.4);
    z-index: 2;
}

.an-cta__inner {
    position: relative;
    z-index: 3;
}

.an-cta h2 {
    color: var(--an-white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 3rem;
}


/* =============================================================
   FOOTER
   ============================================================= */
.an-footer {
    padding: 6rem 0 2rem;
    background-color: var(--an-near-black);
    color: var(--an-white);
}

.an-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.an-footer__brand {
    font-family: var(--an-font-serif);
    font-size: 2rem;
    color: var(--an-white);
}

.an-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.an-footer__col a {
    font-family: var(--an-font-sans);
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--an-stone);
}

.an-footer__col a:hover {
    color: var(--an-white);
}

.an-footer__col p {
    font-size: .875rem;
    color: var(--an-stone);
}

.an-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 2rem;
    font-size: .75rem;
    color: var(--an-stone);
    text-transform: uppercase;
    letter-spacing: .05em;
}


/* =============================================================
   MEDIA QUERIES
   ============================================================= */
@media (min-width: 768px) {
    .an-collection__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Asymmetric sizing */
    .an-collection__item:nth-child(1) .an-collection__img-wrapper {
        aspect-ratio: 3/4;
    }
    .an-collection__item:nth-child(2) {
        margin-top: 4rem;
    }
    .an-collection__item:nth-child(2) .an-collection__img-wrapper {
        aspect-ratio: 4/5;
    }
    .an-collection__item:nth-child(3) .an-collection__img-wrapper {
        aspect-ratio: 1/1;
    }

    .an-property__grid {
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .an-journal__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .an-about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 6rem;
    }
    .an-about__content {
        padding-right: 4rem;
    }

    .an-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .an-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .an-hamburger {
        display: none;
    }
    .an-nav, .an-header__actions {
        display: block;
    }
    .an-editorial__overlay {
        position: absolute;
        bottom: -4rem;
        right: 10%;
    }
}
