/*
 * Client Common CSS
 * ─────────────────────────────────────────────────────────────
 * Shared client-side component styles (header, footer, nav, etc.)
 * Add project-specific client styles here.
 */

/* ── HEADER ─────────────────────────────────────────────────── */
.client-header {
    width: 100%;
    background-color: var(--color-surface, #ffffff);
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.1));
    position: sticky;
    top: 0;
    z-index: 100;
}

.client-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.client-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text, #333333);
}

.client-header__logo img {
    height: 2.5rem;
    width: auto;
}

.client-header__nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.client-header__nav-link {
    color: var(--color-text, #333333);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.client-header__nav-link:hover,
.client-header__nav-link.active {
    color: var(--color-primary);
}

.client-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--color-border, rgba(0,0,0,0.1));
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text, #333);
    transition: all 0.2s;
}

.icon-btn:hover {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

html.dark .icon-btn {
    color: var(--color-text, #fff);
    border-color: var(--color-border, rgba(255,255,255,0.1));
}

.client-hamburger {
    display: none; /* hidden on desktop */
}

/* ── CONTENT ────────────────────────────────────────────────── */
#main-content {
    min-height: calc(100vh - 70px - 60px); /* total height - header - footer */
    display: flex;
    flex-direction: column;
}

/* ── STUDIO PRIMITIVES ──────────────────────────────────────── */
.studio-container {
    width: calc(100% - 48px);
    max-width: var(--container-max);
    margin-inline: auto;
}

.studio-section {
    padding: 112px 0;
}

.studio-section--cream {
    background: #fbfaf8;
}

.studio-section--muted {
    background: var(--color-surface-alt);
}

.studio-section__header {
    margin-bottom: 48px;
}

.studio-section__header h2 {
    margin: 0;
    color: var(--color-primary-dark);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.25;
}

.studio-section__header--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.studio-section__header--split p:last-child {
    max-width: 430px;
    margin: 0;
    color: var(--color-text-muted);
    text-align: right;
}

.studio-section__header--center {
    text-align: center;
}

.studio-eyebrow {
    margin: 0 0 12px;
    color: var(--color-clay-text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.studio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 32px;
    border-radius: var(--radius-btn);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.studio-btn:hover {
    transform: translateY(-1px);
}

.studio-btn:active {
    transform: scale(0.98);
}

.studio-btn--dark {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: 0 14px 30px rgba(23, 24, 24, 0.2);
}

.studio-btn--ghost {
    border: 1px solid var(--color-primary);
    background: color-mix(in srgb, var(--color-surface) 18%, transparent);
    color: var(--color-primary);
}

.studio-btn--clay {
    border: 1px solid var(--color-clay-solid);
    background: var(--color-clay-solid);
    color: #ffffff;
}

.studio-btn--light {
    width: 100%;
    background: var(--color-surface);
    color: var(--color-primary);
}

.studio-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-clay-text);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.studio-text-link i {
    font-size: 0.8em;
    transition: transform 180ms ease;
}

.studio-text-link:hover i {
    transform: translateX(3px);
}

.studio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.studio-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--color-surface-alt);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.studio-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 720ms ease var(--reveal-delay, 0ms),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        box-shadow 320ms ease;
    will-change: opacity, transform;
}

.studio-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.studio-reveal--d1 {
    --reveal-delay: 80ms;
}

.studio-reveal--d2 {
    --reveal-delay: 150ms;
}

.studio-reveal--d3 {
    --reveal-delay: 220ms;
}

.studio-reveal--d4 {
    --reveal-delay: 290ms;
}

/* ── SCROLL TO TOP ──────────────────────────────────────────── */
.studio-scroll-top {
    position: fixed;
    left: 18px;
    bottom: 24px;
    z-index: 180;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 38%),
        color-mix(in srgb, var(--color-primary) 92%, #000000);
    color: #fff8f0;
    box-shadow: 0 18px 36px rgba(23, 24, 24, 0.2), 0 8px 18px rgba(188, 138, 112, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.9);
    transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease, background 220ms ease, visibility 220ms ease;
    visibility: hidden;
}

.studio-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.studio-scroll-top i {
    flex: 0 0 auto;
    font-size: 0.82rem;
    line-height: 1;
    transform: translateY(1px);
    transition: transform 220ms ease;
}

.studio-scroll-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.studio-scroll-top:hover,
.studio-scroll-top:focus-visible {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(145deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 76%, var(--color-clay)));
    border-color: color-mix(in srgb, var(--color-clay) 62%, rgba(255, 255, 255, 0.34));
    box-shadow: 0 22px 46px rgba(23, 24, 24, 0.24), 0 8px 18px rgba(188, 138, 112, 0.28);
    color: #ffffff;
    outline: none;
    transform: translateY(-4px) scale(1.04);
}

.studio-scroll-top:hover i,
.studio-scroll-top:focus-visible i {
    transform: translateY(-2px);
}

.studio-scroll-top:active {
    transform: translateY(-1px) scale(0.98);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.client-footer {
    background-color: var(--color-surface, #ffffff);
    border-top: 1px solid var(--color-border, rgba(0,0,0,0.1));
    padding: 1.5rem 0;
    text-align: center;
}

.client-footer__copy {
    color: color-mix(in srgb, var(--color-text) 70%, transparent);
    font-size: 0.875rem;
    margin: 0;
}

/* ── MOBILE SIDEBAR ─────────────────────────────────────────── */
.client-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.client-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.client-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--color-surface, #ffffff);
    z-index: 210;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.client-sidebar.active {
    right: 0;
}

.client-sidebar__header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.1));
    font-weight: 700;
    font-size: 1.1rem;
}

.client-sidebar__nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
}

.client-sidebar__nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text, #333333);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.client-sidebar__nav-link:hover {
    background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .client-header__nav {
        display: none; /* Hide nav links on mobile */
    }

    .client-hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .studio-scroll-top {
        left: 14px;
        bottom: 16px;
    }
}

@media (max-width: 576px) {
    .studio-scroll-top {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .studio-scroll-top,
    .studio-scroll-top i {
        transition: none;
    }
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────────── */
.lumi-animate-fade-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lumi-animate-fade-in {
    opacity: 0 !important;
    transition: opacity 1s ease-out !important;
}

.lumi-animate-fade-left {
    opacity: 0 !important;
    transform: translateX(30px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lumi-animate-fade-right {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lumi-animate-scale {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lumi-animate-fade-up.is-visible,
.lumi-animate-fade-left.is-visible,
.lumi-animate-fade-right.is-visible,
.lumi-animate-scale.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

.lumi-animate-fade-in.is-visible {
    opacity: 1 !important;
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
