html {
    min-height: 100%;
    background-color: #f3f0eb;
}

body {
    position: relative;
    min-height: 100vh;
    background-image: url('./images/marmer.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    font-family: sans-serif;
    font-size: clamp(1rem, 3vw, 1.15rem);
    line-height: 1.7;
    text-align: center;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

.logo-container {
    margin-top: 20px;
}

.logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero {
    max-width: 760px;
    margin: 32px auto 12px;
    padding: 0 24px;
    color: #2b1e0f;
}

.hero h1 {
    margin: 8px 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: 0.02em;
}

.hero p {
    margin: 4px auto;
    line-height: 1.5;
    font-size: 1rem;
}

.hero-cta {
    display: inline-flex;
    margin: 16px auto 12px;
    padding: 10px 20px;
    border-radius: 999px;
    background-color: #2b1e0f;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.hero-link {
    color: inherit;
    text-decoration: none;
}

.gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px 20px 30px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
    background: rgba(43, 30, 15, 0.4);
    border-radius: 999px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.thumb {
    margin: 0;
    border: 2px solid #444;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    position: relative;
    min-height: 220px;
    flex: 0 0 min(280px, 70vw);
    scroll-snap-align: center;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease, filter 0.35s ease;
    transform-origin: center;
}

.thumb figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: #fff;
    font-size: 0.95rem;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.thumb:hover img,
.thumb:focus-within img {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.thumb:hover figcaption,
.thumb:focus-within figcaption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    body {
        padding-bottom: 40px;
    }

    .hero {
        margin-top: 24px;
        padding: 0 16px;
    }

    .hero p {
        font-size: 1.05rem;
        padding: 0 4px;
    }

    .gallery {
        gap: 16px;
        padding: 16px 12px 30px;
    }

    .hero-cta {
        justify-content: center;
        margin-bottom: 12px;
    }
}
