@import url('https://fonts.googleapis.com/css2?family=Afacad:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Nevada Serial Light';
    src: url('assets/fonts/Nevada-Serial-Light%20Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #000000;
    --white: #c0c0c0;
    --silver: #c0c0c0;
    --silver-soft: rgba(192, 192, 192, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Afacad', sans-serif;
    background: var(--black);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.page-shell {
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(ellipse at 12% 4%, rgba(255, 255, 255, 0.16), transparent 32%),
        radial-gradient(ellipse at 88% 48%, rgba(255, 255, 255, 0.09), transparent 36%),
        radial-gradient(ellipse at 34% 82%, rgba(255, 255, 255, 0.065), transparent 28%),
        linear-gradient(
            118deg,
            #020202 0%,
            #0b0b0b 18%,
            #242424 30%,
            #090909 43%,
            #030303 56%,
            #1d1d1d 70%,
            #080808 84%,
            #010101 100%
        );
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.page-shell::before,
.page-shell::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid var(--silver-soft);
    pointer-events: none;
}

.page-shell::after {
    inset: 32px;
    border-color: rgba(192, 192, 192, 0.22);
}

.hero {
    position: relative;
    min-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) 8rem;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: none;
}

.hero-logo {
    position: relative;
    width: min(72vw, 820px);
    height: auto;
    margin: 0;
    object-fit: contain;
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 28px rgba(192, 192, 192, 0.22));
}

.morph-logo {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 20;
    width: var(--mark-logo-width, 72px);
    height: var(--mark-logo-width, 72px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    display: block;
    transform: translateX(-50%);
    will-change: top, opacity;
}

.sticky-logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 19;
    width: 100%;
    height: 110px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.18);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.morph-logo img {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.75));
    will-change: width, opacity;
}

.morph-logo-full {
    width: var(--full-logo-width, 820px);
}

.morph-logo-mark {
    width: var(--mark-logo-width, 72px);
}

.morph-logo:focus-visible .morph-logo-mark {
    outline: 1px solid var(--silver);
    outline-offset: 4px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    width: 100%;
    text-align: center;
    margin-top: clamp(1rem, 3vw, 2rem);
}

.kicker {
    margin: 0 0 1.2rem;
    color: var(--silver);
    font-size: clamp(0.8rem, 1.6vw, 1rem);
}

.text-block {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0 1rem;
}

.text-block p {
    margin: 0;
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.7;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.text-block .intro-line {
    font-family: 'Nevada Serial Light', 'Times New Roman', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 40px;
}

.scroll-more {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #888;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-decoration: none;
    text-transform: none;
    transform: translateX(-50%);
    transition: color 0.2s ease;
}

.scroll-more:hover {
    color: var(--silver);
}

.scroll-more-line {
    width: 1px;
    height: clamp(2rem, 5vh, 3.5rem);
    background: currentColor;
}

.gallery-section {
    position: relative;
    z-index: 1;
    padding: clamp(7rem, 12vw, 11rem) clamp(2.2rem, 6vw, 6.5rem);
    scroll-margin-top: 110px;
    padding-bottom: 1.5rem;
}

.gallery-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    text-align: center;
}

.gallery-heading p {
    margin: 2.5rem 0 1rem;
    color: #777;
    font-size: 0.66rem;
    letter-spacing: 0.34em;
}

.gallery-heading h2 {
    margin: 0;
    color: var(--silver);
    font-family: 'Nevada Serial Light', Georgia, serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: none;
}

.gallery-ornament {
    position: relative;
    display: block;
    width: min(170px, 35vw);
    height: 1px;
    background: linear-gradient(to right, transparent, #777, transparent);
}

.gallery-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid #777;
    background: #080808;
    transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-ornament-bottom {
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: clamp(150px, 15vw, 240px);
    gap: clamp(0.8rem, 1.8vw, 1.5rem);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    grid-column: span 4;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.24);
    background: #111;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-card::before,
.gallery-card::after {
    content: '';
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.gallery-card::before {
    top: 9px;
    left: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.gallery-card::after {
    right: 9px;
    bottom: 9px;
    border-right: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.gallery-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card-wide {
    grid-column: span 8;
}

.gallery-card-tall {
    grid-row: span 2;
}

.gallery-card-panorama {
    grid-column: span 12;
    grid-row: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) saturate(55%) contrast(1.05) brightness(0.82);
    transition: filter 0.7s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-card:hover img {
    filter: grayscale(5%) saturate(85%) contrast(1.04) brightness(0.92);
    transform: scale(1.035);
}

.gallery-card figcaption {
    position: absolute;
    right: 1.4rem;
    bottom: 1.2rem;
    left: 1.4rem;
    z-index: 3;
    color: #dedede;
    font-size: clamp(0.62rem, 1vw, 0.75rem);
    letter-spacing: 0.24em;
    text-shadow: 0 2px 14px #000;
}

/* Galerie editorială Art Deco */
.gallery-editorial {
    max-width: 1180px;
    margin: 0 auto;
    border-top: 1px solid rgba(192, 192, 192, 0.18);
}

.gallery-editorial .gallery-card {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.gallery-editorial .gallery-card::before,
.gallery-editorial .gallery-card::after {
    content: none;
}

.gallery-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding: clamp(2rem, 5vw, 4rem) clamp(0.5rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(192, 192, 192, 0.18) !important;
}

.gallery-feature::after {
    content: '' !important;
    position: absolute !important;
    right: auto !important;
    bottom: -4px !important;
    left: 50% !important;
    z-index: 3 !important;
    width: 7px !important;
    height: 7px !important;
    border: 1px solid #666 !important;
    background: #080808 !important;
    transform: translateX(-50%) rotate(45deg);
}

.gallery-feature-reverse .gallery-image-frame {
    order: 2;
}

.gallery-feature-reverse .gallery-copy {
    order: 1;
}

.gallery-feature-garden {
    grid-template-columns: minmax(180px, 2fr) minmax(0, 8fr);
}

.gallery-feature-lounge {
    grid-template-columns: minmax(180px, 2fr) minmax(0, 8fr);
}

.gallery-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.gallery-feature .gallery-image-frame {
    aspect-ratio: 16 / 9;
}

.gallery-image-frame::before,
.gallery-image-frame::after {
    content: '';
    position: absolute;
    z-index: 2;
    width: 25px;
    height: 25px;
    pointer-events: none;
}

.gallery-image-frame::before {
    top: 8px;
    left: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-image-frame::after {
    right: 8px;
    bottom: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-editorial .gallery-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(45%) saturate(45%) contrast(1.08) brightness(0.76);
    transition: filter 0.7s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-editorial .gallery-card:hover img {
    filter: grayscale(10%) saturate(80%) contrast(1.04) brightness(0.9);
    transform: scale(1.025);
}

.gallery-editorial .gallery-copy {
    position: static;
    color: var(--silver);
    text-align: left;
    text-shadow: none;
}

.gallery-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    color: #777;
    font-family: Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
}

.gallery-number::after {
    content: '';
    width: 28px;
    height: 1px;
    background: #555;
}

.gallery-copy h3 {
    margin: 0;
    color: var(--silver);
    font-family: 'Nevada Serial Light', Georgia, serif;
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.gallery-copy p {
    max-width: 28ch;
    margin: 1rem 0 0;
    color: #858585;
    font-size: clamp(0.78rem, 1.15vw, 0.95rem);
    letter-spacing: 0.05em;
    line-height: 1.7;
    text-transform: none;
}

.gallery-triptych {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 2rem);
    padding: clamp(3rem, 6vw, 5rem) clamp(0.5rem, 3vw, 2rem) 0;
}

.gallery-mini .gallery-image-frame {
    aspect-ratio: 3 / 4;
}

.gallery-mini .gallery-copy {
    padding-top: 1.2rem;
}

.gallery-mini .gallery-copy h3 {
    font-size: clamp(1.1rem, 1.9vw, 1.5rem);
}

.gallery-mini .gallery-copy p {
    margin-top: 0.65rem;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
}

.gallery-finale {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin: 6rem auto 0;
}

.gallery-finale h2 {
    margin: 0;
    color: var(--silver);
    font-family: 'Nevada Serial Light', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
}

.finale-ornament {
    position: relative;
    width: clamp(150px, 24vw, 290px);
    height: 9px;
}

.finale-ornament::before {
    content: '';
    position: absolute;
    inset: 1px 0;
    border-top: 1px solid #666;
    border-bottom: 1px solid #444;
    opacity: 0.9;
    clip-path: polygon(0 40%, 42% 40%, 46% 0, 54% 0, 58% 40%, 100% 40%, 100% 60%, 58% 60%, 54% 100%, 46% 100%, 42% 60%, 0 60%);
}

.finale-ornament:last-child::before {
    transform: scaleY(-1);
}

.finale-ornament::after {
    content: none;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    text-transform: none;
    letter-spacing: 0.04em;
}

.site-footer h2 {
    margin: 0;
    color: var(--silver);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(0.75rem, 2vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.site-footer h2 span {
    color: #777;
}

.footer-diamond {
    display: block;
    width: 7px;
    height: 7px;
    margin: 2rem auto 2.6rem;
    background: #555;
    transform: rotate(45deg);
}

.site-footer address,
.footer-phones,
.footer-contact,
.footer-copyright {
    font-style: normal;
}

.site-footer address {
    margin: 0;
    color: var(--silver);
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
}

.footer-phones {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin: 0;
    color: var(--silver);
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.footer-contact {
    margin: 0.65rem 0;
    color: var(--silver);
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
}

.footer-email {
    margin: 0.65rem 0 0;
    color: var(--silver);
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 1.8rem;
}

.footer-socials a {
    display: inline-flex;
    color: #888;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--silver);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-socials .social-dot,
.footer-socials path {
    stroke: none;
}

.footer-socials rect,
.footer-socials circle:not(.social-dot) {
    fill: none;
}

.footer-copyright {
    margin: 4.5rem 0 0;
    color: #4f4f4f;
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    font-weight: 600;
}

/* Footer Art Deco */
.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 3rem;
}

.footer-deco {
    display: grid;
    grid-template-columns: minmax(40px, 150px) 10px minmax(40px, 150px);
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.footer-deco span {
    height: 1px;
    background: linear-gradient(to right, transparent, #666);
}

.footer-deco span:last-child {
    background: linear-gradient(to left, transparent, #666);
}

.footer-deco i {
    width: 8px;
    height: 8px;
    border: 1px solid #777;
    transform: rotate(45deg);
}

.footer-intro {
    margin: 1.8rem 0 3rem;
    color: #8d8d8d;
    font-size: clamp(0.85rem, 1.35vw, 1rem);
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1050px;
    margin: 0 auto;
}

.footer-contact-item {
    min-width: 0;
    padding: 0 clamp(1rem, 3vw, 2.8rem);
}

.footer-contact-item + .footer-contact-item {
    border-left: 1px solid rgba(192, 192, 192, 0.2);
}

.footer-contact-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 1rem;
    fill: none;
    stroke: #888;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-item h3 {
    margin: 0 0 0.8rem;
    color: var(--silver);
    font-family: 'Nevada Serial Light', Georgia, serif;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-contact-item address,
.footer-contact-item a {
    color: #8d8d8d;
    font-size: clamp(0.78rem, 1.15vw, 0.95rem);
    line-height: 1.7;
}

.footer-phone-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    white-space: nowrap;
}

.footer-phone-list a + a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 0.9rem;
    border: 1px solid #666;
    transform: rotate(45deg) translateY(-1px);
}

.footer-deco-bottom {
    margin-top: 3.5rem;
}

.site-footer .footer-socials {
    margin-top: 2rem;
}

.site-footer .footer-copyright {
    margin-top: 2.6rem;
}

@media (max-width: 768px) {
    .sticky-logo-bar {
        height: 88px;
    }

    .page-shell {
        padding: 16px;
    }

    .hero {
        padding: 1.5rem 0.5rem 7rem;
    }

    .hero-logo {
        width: min(78vw, 620px);
        opacity: 0.9;
    }

    .hero-content {
        margin-top: 1rem;
    }

    .text-block .intro-line {
        font-size: clamp(1rem, 5vw, 1.5rem);
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .text-block p:not(.intro-line) {
        font-size: clamp(0.48rem, 2.2vw, 0.75rem);
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .scroll-more {
        font-size: 0.6rem;
    }

    .gallery-section {
        padding: 6rem 1.5rem;
        padding-bottom: 1rem;
        scroll-margin-top: 88px;
    }

    .gallery-heading h2 {
        font-size: clamp(1.8rem, 10vw, 3rem);
        white-space: nowrap;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-card,
    .gallery-card-wide,
    .gallery-card-tall,
    .gallery-card-panorama {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-card:nth-child(2),
    .gallery-card:nth-child(6) {
        aspect-ratio: 3 / 4;
    }

    .gallery-card-panorama {
        aspect-ratio: 16 / 10;
    }

    .gallery-editorial {
        border-top-color: rgba(192, 192, 192, 0.18);
    }

    .gallery-editorial .gallery-card {
        aspect-ratio: auto;
    }

    .gallery-feature,
    .gallery-feature-reverse {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr);
        align-items: center;
        gap: 0.9rem;
        padding: 2rem 0 2.5rem;
    }

    .gallery-feature-reverse .gallery-image-frame {
        order: 2;
    }

    .gallery-feature-reverse .gallery-copy {
        order: 1;
    }

    .gallery-feature-garden {
        grid-template-columns: minmax(90px, 1fr) minmax(0, 2.4fr);
    }

    .gallery-feature-lounge {
        grid-template-columns: minmax(90px, 1fr) minmax(0, 2.4fr);
    }

    .gallery-feature .gallery-image-frame {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .gallery-copy h3 {
        font-size: clamp(0.78rem, 3.5vw, 1.1rem);
        letter-spacing: 0.05em;
    }

    .gallery-feature .gallery-number {
        margin-bottom: 0.55rem;
        font-size: 0.58rem;
    }

    .gallery-feature .gallery-copy p {
        margin-top: 0.55rem;
        font-size: clamp(0.62rem, 2.45vw, 0.76rem);
        line-height: 1.45;
    }

    .gallery-triptych {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
        padding: 3rem 0 0;
    }

    .gallery-mini .gallery-image-frame {
        aspect-ratio: 3 / 4;
    }

    .gallery-mini .gallery-copy {
        padding-top: 0.75rem;
    }

    .gallery-mini .gallery-number {
        margin-bottom: 0.45rem;
        font-size: 0.55rem;
    }

    .gallery-mini .gallery-copy h3 {
        font-size: clamp(0.65rem, 2.9vw, 0.9rem);
        line-height: 1.25;
    }

    .gallery-mini .gallery-copy p {
        margin-top: 0.45rem;
        font-size: clamp(0.58rem, 2.3vw, 0.72rem);
        line-height: 1.4;
    }

    .gallery-finale {
        gap: 1.1rem;
        margin-top: 5.5rem;
    }

    .gallery-finale h2 {
        font-size: clamp(1.35rem, 7vw, 2.2rem);
    }

    .finale-ornament {
        width: clamp(130px, 50vw, 210px);
    }

    .site-footer {
        padding-inline: 1rem;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .footer-contact-item {
        padding: 1.8rem 0;
    }

    .footer-contact-item + .footer-contact-item {
        border-top: 1px solid rgba(192, 192, 192, 0.18);
        border-left: 0;
    }

    .footer-intro {
        margin-bottom: 1rem;
    }

    .footer-deco-bottom {
        margin-top: 2rem;
    }

    .site-footer h2 {
        line-height: 1.4;
        letter-spacing: 0.08em;
    }

    .site-footer address {
        line-height: 1.7;
    }

    .footer-copyright {
        line-height: 1.6;
    }
}
