/* Shared layout for service + work showcase pages */

.showcase-page {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #0a0a0a;
}

.showcase-page .font-display {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.showcase-page .page {
    min-height: 100vh;
    background: #ffffff;
    color: #0a0a0a;
    padding: 40px 24px 80px;
}

.showcase-page .nav-back {
    max-width: 1100px;
    margin: 0 auto 30px;
}

.showcase-page .nav-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.showcase-page .nav-back a:hover {
    color: #000;
}

.showcase-page .hero {
    max-width: 1100px;
    margin: 0 auto 56px;
    text-align: center;
}

.showcase-page .showcase-hero-inner {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
}

.showcase-page .showcase-hero-spacer {
    margin-top: 2rem;
}

.showcase-page .product-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 780px) {
    .showcase-page .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .showcase-page .product-grid {
        grid-template-columns: 1fr;
    }

    .showcase-page .page {
        padding: 32px 16px 64px;
    }
}

.showcase-page .card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 18px;
    overflow: hidden;
    transition: opacity 0.7s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transform-style: preserve-3d;
}

.showcase-page .card:hover {
    box-shadow: 0 24px 48px -16px rgba(42, 58, 255, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
}

.showcase-page .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-page .card:hover img {
    transform: scale(1.06);
}

.showcase-page .card.full-width {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.showcase-page .card-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0a0a0a;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.showcase-page .card:hover .card-label {
    opacity: 1;
    transform: translateY(0);
}

.showcase-page .foot {
    text-align: center;
    margin-top: 48px;
    padding-bottom: 2rem;
    color: #888;
    font-size: 13px;
}

.showcase-page .showcase-eyebrow {
    color: #f0c040;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.showcase-page .showcase-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-top: 0.75rem;
    line-height: 1.15;
}

/* Inline SVG icon sizing */
.showcase-page .ma-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
}

.showcase-page .ma-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Quick-view modal */
.showcase-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.showcase-modal__panel {
    background: #fff;
    border-radius: 1.5rem;
    max-width: 42rem;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.showcase-modal__image-wrap {
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.showcase-modal__image-wrap img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 0.75rem;
}

.showcase-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-modal__close:hover {
    background: #fff;
    transform: scale(1.05);
}

.showcase-modal__body {
    padding: 2rem;
}

.showcase-modal__brand {
    font-size: 0.875rem;
    color: #f0c040;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase-modal__title {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.2;
}

.showcase-modal__actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
}

.showcase-modal__btn {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.showcase-modal__btn--primary {
    background: #0a0a0a;
    color: #fff;
}

.showcase-modal__btn--primary:hover {
    background: #000;
}

.showcase-modal__btn--secondary {
    background: transparent;
    color: #0a0a0a;
    border: 1px solid #e2e8f0;
}

.showcase-modal__btn--secondary:hover {
    background: #f8fafc;
}