/* ============================================================
   Artsy — Static Landing Page
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background-color: #f4f2ed;
    color: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(244, 242, 237, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 16px 40px 12px;
    }
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 3rem;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .nav {
        gap: 40px;
    }
}

.nav-link {
    display: none;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111;
    transition: color 200ms ease;
}

.nav-link:hover {
    color: #777;
}

@media (min-width: 768px) {
    .nav-link {
        display: inline;
    }
}

/* Hamburger / Close button */
.menu-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    margin-right: -4px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    z-index: 60;
}

.menu-toggle .bar {
    display: block;
    height: 1px;
    background-color: #111;
    transition:
        transform 300ms ease,
        opacity 200ms ease,
        width 200ms ease;
}

.menu-toggle .bar-1 {
    width: 24px;
}

.menu-toggle .bar-2 {
    width: 24px;
}

.menu-toggle .bar-3 {
    width: 16px;
}

/* Active (X) state */
.menu-toggle.is-open .bar-1 {
    width: 24px;
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .bar-2 {
    opacity: 0;
}

.menu-toggle.is-open .bar-3 {
    width: 24px;
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   Overlay menu
   ============================================================ */

.overlay-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: #f4f2ed;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 500ms ease,
        visibility 500ms ease;
    overflow-y: auto;
}

.overlay-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.overlay-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 68px;
}

@media (min-width: 768px) {
    .overlay-inner {
        padding-top: 76px;
    }
}

.overlay-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

@media (min-width: 768px) {
    .overlay-nav {
        padding: 32px 48px;
    }
}

.overlay-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .overlay-list {
        gap: 12px;
    }
}

.overlay-item {
    transform: translateY(24px);
    opacity: 0;
    transition:
        transform 700ms ease,
        opacity 700ms ease;
    transition-delay: 0ms;
}

.overlay-menu.is-open .overlay-item {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(120ms + var(--i, 0) * 80ms);
}

.overlay-link {
    display: block;
    padding: 6px 0;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(1.875rem, 6vw, 3.75rem);
    line-height: 1.05;
    color: #111;
    transition: transform 500ms ease;
}

.overlay-link:hover {
    transform: translateX(8px);
}

.sublist {
    margin: 8px 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .sublist {
        margin: 12px 0 0 8px;
        gap: 6px;
    }
}

.sublink {
    display: inline-flex;
    align-items: center;
    color: #555;
    font-size: 1rem;
    font-style: italic;
    transition: color 200ms ease;
}

@media (min-width: 768px) {
    .sublink {
        font-size: 1.125rem;
    }
}

.sublink:hover {
    color: #111;
}

.sublink .dash {
    display: inline-block;
    width: 0;
    height: 1px;
    margin-right: 0;
    background-color: #111;
    transition:
        width 300ms ease,
        margin-right 300ms ease;
}

.sublink:hover .dash {
    width: 24px;
    margin-right: 12px;
}

.overlay-secondary {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d4d2cd;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(24px);
    opacity: 0;
    transition:
        transform 700ms ease,
        opacity 700ms ease;
    transition-delay: 0ms;
}

.overlay-menu.is-open .overlay-secondary {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(120ms + var(--i, 5) * 80ms);
}

@media (min-width: 768px) {
    .overlay-secondary {
        margin-top: 56px;
        padding-top: 32px;
        flex-direction: row;
        gap: 40px;
    }
}

.secondary-link {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #444;
    transition: color 200ms ease;
}

@media (min-width: 768px) {
    .secondary-link {
        font-size: 13px;
    }
}

.secondary-link:hover {
    color: #111;
}

.overlay-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 24px 24px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777;
}

@media (min-width: 768px) {
    .overlay-footer {
        padding: 0 48px 32px;
        font-size: 12px;
    }
}

.hide-on-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-on-mobile {
        display: inline;
    }
}

/* ============================================================
   Main grid
   ============================================================ */

.main-grid {
    padding: 8px 8px;
    padding-top: 68px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .main-grid {
        padding: 12px 12px;
        padding-top: 76px;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   Tile
   ============================================================ */

.tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

@media (min-width: 1024px) {
    .tile {
        aspect-ratio: 3 / 5;
    }
}

@media (min-width: 1280px) {
    .tile {
        aspect-ratio: 2 / 3;
    }
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.tile:hover .tile-image {
    transform: scale(1.04);
}

.tile-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

.tile-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.tile-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 18%;
    z-index: 3;
    pointer-events: none;
}

.tile-content .tile-link {
    pointer-events: auto;
}

@media (min-width: 768px) {
    .tile-content {
        padding: 0 24px;
        padding-top: 18%;
    }
}

.tile-title-bg {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    background-color: rgba(132, 132, 132, 0.45);
}

.tile-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.06em;
    line-height: 1.15;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .tile-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .tile-title {
        font-size: 1.25rem;
    }
}

.tile-title strong {
    font-weight: 800;
}

.tile-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .tile-links {
        margin-top: 32px;
    }
}

.tile-link {
    display: inline-block;
    color: #fff;
    font-size: 1rem;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    transition: opacity 200ms ease;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .tile-link {
        font-size: 1.125rem;
    }
}

.tile-link:hover {
    opacity: 0.8;
}

/* WhatsApp button — bottom of tile */
.tile-whatsapp {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 12px;
    background-color: #ffffff;
    color: #111;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        background-color 200ms ease;
    text-decoration: none;
    white-space: nowrap;
}

.tile-whatsapp:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    background-color: #fafafa;
}

.tile-whatsapp .wa-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .tile-whatsapp {
        font-size: 14px;
        padding: 7px 16px 7px 10px;
        bottom: 18px;
    }
    .tile-whatsapp .wa-icon {
        width: 20px;
        height: 20px;
    }
}

/* Footer social inline links */
.footer-social .secondary-link {
    color: #888;
    transition: color 200ms ease;
}
.footer-social .secondary-link:hover {
    color: #111;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    border-top: 1px solid #d4d2cd;
    padding: 24px 20px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 24px 40px;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================================
   Body lock when menu is open
   ============================================================ */

body.menu-open {
    overflow: hidden;
}
