/* ========================================
   Beach Rock Atelier — Style Sheet
   Quiet Luxury Design System
   ======================================== */

/* --- Custom Properties --- */
:root {
    --color-bg: #F7F4F0;
    --color-bg-alt: #EFEBE5;
    --color-text: #1C2331;
    --color-text-light: #5A6275;
    --color-accent: #8B7355;
    --color-border: #DDD6CC;
    --color-white: #FFFFFF;

    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --nav-height: 72px;
    --max-width: 1200px;
    --max-width-narrow: 720px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding: 120px 0;
}

.section__title {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 20px auto 0;
}

/* --- Button --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 40px;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn--outline {
    border-color: var(--color-border);
    color: var(--color-text-light);
}

.btn--outline:hover {
    border-color: var(--color-text);
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background-color: rgba(247, 244, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.nav--scrolled {
    border-bottom-color: var(--color-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav__links {
    display: flex;
    gap: 40px;
}

.nav__links a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav__links a:hover {
    color: var(--color-text);
}

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

/* Mobile Toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 110;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle span:first-child {
    top: 4px;
}

.nav__toggle span:last-child {
    bottom: 4px;
}

.nav__toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav__toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
}

.hero__image {
    width: 100%;
    max-width: 900px;
    margin-bottom: 64px;
}

.hero__title {
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-light);
    margin-bottom: 48px;
    font-weight: 300;
}

/* --- Placeholder: Hero Interior Image --- */
.placeholder-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #E8E2DA 0%, #D4CCC1 40%, #C8BFB2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, transparent 65%, rgba(200, 191, 178, 0.4) 100%),
        linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
}

.placeholder-hero__frame {
    width: 35%;
    aspect-ratio: 2 / 1;
    background: linear-gradient(135deg, #2C3040 0%, #1C2331 50%, #3A3550 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.placeholder-hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
}

/* ========================================
   Collection
   ======================================== */
.collection {
    background-color: var(--color-bg);
}

.collection__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px;
}

.artwork {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.artwork:nth-child(even) {
    direction: rtl;
}

.artwork:nth-child(even) > * {
    direction: ltr;
}

.artwork__image {
    width: 100%;
    aspect-ratio: 2 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.artwork__info {
    padding-top: 12px;
}

.artwork__title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.artwork__desc {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.artwork__sizes {
    margin-bottom: 20px;
    border-top: 1px solid var(--color-border);
}

.artwork__size {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.artwork__size span:last-child {
    font-weight: 400;
    color: var(--color-text);
}

.artwork__edition {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.artwork__cert {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
    font-style: italic;
}

/* --- Placeholder: Artwork Images --- */
.placeholder-art__label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.placeholder-art--01 {
    background: linear-gradient(135deg, #2C3040 0%, #1A1E2A 40%, #3A3550 70%, #252837 100%);
}

.placeholder-art--02 {
    background: linear-gradient(160deg, #8B7355 0%, #A68B6B 30%, #7A6248 60%, #9C8465 100%);
}

.placeholder-art--03 {
    background: linear-gradient(180deg, #7A8B8F 0%, #95A5A6 35%, #B0BEC5 65%, #8E9EAB 100%);
}

.placeholder-art--04 {
    background: linear-gradient(120deg, #D5CDC3 0%, #BFB5A8 25%, #C8BFB2 50%, #E0D8CF 75%, #BAB0A2 100%);
}

.placeholder-art--05 {
    background: linear-gradient(145deg, #1A1A2E 0%, #16213E 30%, #0F3460 60%, #1A1A2E 100%);
}

.placeholder-art--06 {
    background: linear-gradient(170deg, #E8E2DA 0%, #D4CCC1 30%, #E0D8CF 60%, #C8BFB2 100%);
}

/* ========================================
   Craftsmanship
   ======================================== */
.craftsmanship {
    background-color: var(--color-bg-alt);
}

.craftsmanship__intro {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 64px;
    line-height: 1.6;
}

.craftsmanship__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
}

.craftsmanship__item h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 8px;
}

.craftsmanship__item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   About
   ======================================== */
.about {
    background-color: var(--color-bg);
}

.about__content {
    text-align: center;
}

.about__content p {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 24px;
}

.about__content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Private Inquiry
   ======================================== */
.inquiry {
    background-color: var(--color-bg-alt);
}

.inquiry__intro {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin-top: -40px;
    margin-bottom: 56px;
}

/* --- Form --- */
.form {
    display: grid;
    gap: 28px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.form__input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form__input:focus {
    border-bottom-color: var(--color-text);
}

.form__input::placeholder {
    color: var(--color-border);
}

.form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6275' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 28px;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form__success {
    text-align: center;
    padding: 48px 0;
}

.form__success p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text);
}

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

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 960px) {
    .artwork {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .artwork:nth-child(even) {
        direction: ltr;
    }

    .craftsmanship__details {
        gap: 36px 48px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    :root {
        --nav-height: 60px;
    }

    .section {
        padding: 80px 0;
    }

    .section__title {
        margin-bottom: 48px;
    }

    /* Nav mobile */
    .nav__toggle {
        display: block;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

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

    .nav__links a {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 40px) 24px 60px;
    }

    .hero__image {
        margin-bottom: 40px;
    }

    .hero__subtitle {
        margin-bottom: 36px;
    }

    /* Collection mobile */
    .collection__grid {
        gap: 64px;
    }

    .artwork__image {
        aspect-ratio: 16 / 9;
    }

    /* Craftsmanship mobile */
    .craftsmanship__details {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .craftsmanship__intro {
        margin-bottom: 48px;
    }

    /* Footer mobile */
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.75rem;
    }
}
