/* ===================================================================
 * projects.css — All Projects page
 * =================================================================== */

/* ---- Hero ---- */
.proj-hero {
    padding: 14rem 0 5rem;
    background: var(--color-3);
    position: relative;
    overflow: hidden;
}
.proj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 70% 40%, hsla(12,75%,45%,.12) 0%, transparent 70%);
    pointer-events: none;
}
.proj-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3.2rem;
}
.proj-hero__eyebrow {
    font-size: 1.1rem;
    font-family: var(--font-1);
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--color-1);
    margin-bottom: 1.6rem;
}
.proj-hero__title {
    font-size: clamp(4.4rem, 8vw, 8.8rem);
    font-family: var(--font-2);
    font-weight: 400;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 1.6rem;
    letter-spacing: -.02em;
}
.proj-hero__sub {
    font-size: 1.8rem;
    color: rgba(255,255,255,.55);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3.2rem;
}

/* ---- Filter tabs ---- */
.proj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}
.proj-filter {
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.6);
    font-family: var(--font-1);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .05em;
    padding: .7rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all .25s;
}
.proj-filter:hover {
    border-color: var(--color-1);
    color: #fff;
}
.proj-filter.active {
    background: var(--color-1);
    border-color: var(--color-1);
    color: #fff;
}

/* ---- Grid section ---- */
.proj-grid-section {
    background: #f5f4f0;
    padding: 4rem 3.2rem 8rem;
}
.proj-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3.2rem;
}

/* ---- Card base ---- */
.proj-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    transform: translateY(24px);
}
.proj-card--visible {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
}
.proj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
}

/* ---- Featured card ---- */
.proj-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) {
    .proj-card--featured { grid-template-columns: 1fr; }
}

/* ---- Card image ---- */
.proj-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #111;
}
.proj-card--featured .proj-card__img-wrap {
    aspect-ratio: auto;
    min-height: 260px;
}
.proj-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.proj-card:hover .proj-card__img-wrap img {
    transform: scale(1.05);
}
.proj-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.proj-card:hover .proj-card__overlay { opacity: 1; }
.proj-card__cta {
    color: #fff;
    font-family: var(--font-1);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: 2px solid #fff;
    padding: 1rem 2.4rem;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.proj-card__cta:hover { background: #fff; color: #111; }

/* ---- Card body ---- */
.proj-card__body {
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.proj-card--featured .proj-card__body {
    padding: 4rem;
    justify-content: center;
}

.proj-card__badge {
    display: inline-block;
    font-size: 1.1rem;
    font-family: var(--font-1);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem 1.2rem;
    border-radius: 100px;
    background: hsla(12,75%,45%,.1);
    color: var(--color-1);
    width: fit-content;
}
.proj-card__badge--shopify { background: hsla(145,63%,32%,.1); color: #2a7a4b; }
.proj-card__badge--wp      { background: hsla(204,70%,42%,.1); color: #1a6b9a; }

.proj-card__title {
    font-family: var(--font-2);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-3);
    line-height: 1.25;
    margin: 0;
}
.proj-card--featured .proj-card__title { font-size: 3rem; }

.proj-card__desc {
    font-family: var(--font-1);
    font-size: 1.5rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.proj-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .4rem;
}
.proj-card__tags span {
    font-size: 1.1rem;
    font-family: var(--font-1);
    font-weight: 500;
    padding: .3rem 1rem;
    background: #f0f0ee;
    color: #444;
    border-radius: 4px;
}
.proj-card__link {
    font-size: 1.3rem;
    font-family: var(--font-1);
    font-weight: 600;
    color: var(--color-1);
    text-decoration: none;
    margin-top: .8rem;
    transition: opacity .2s;
}
.proj-card__link:hover { opacity: .7; }

/* ---- Empty state ---- */
.proj-empty {
    text-align: center;
    padding: 6rem 2rem;
    font-family: var(--font-1);
    color: #888;
    font-size: 1.6rem;
}

/* ---- Add hint ---- */
.proj-add-hint {
    max-width: 1240px;
    margin: 4rem auto 0;
    background: #fff;
    border-left: 3px solid var(--color-1);
    padding: 2rem 2.4rem;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-1);
    font-size: 1.4rem;
    color: #555;
    line-height: 1.7;
}
.proj-add-hint code {
    background: #f0f0ee;
    padding: .2rem .6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-1);
}

/* ---- Back row ---- */
.proj-back-row {
    background: #f5f4f0;
    padding: 0 3.2rem 6rem;
    display: flex;
    justify-content: center;
}

/* ---- Footer strip ---- */
.proj-footer {
    background: var(--color-3);
    text-align: center;
    padding: 2.4rem;
    font-family: var(--font-1);
    font-size: 1.3rem;
    color: rgba(255,255,255,.4);
}
.proj-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.proj-footer a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .proj-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}
@media (max-width: 600px) {
    .proj-grid { grid-template-columns: 1fr; gap: 2rem; }
    .proj-hero { padding: 10rem 0 4rem; }
}

/* ---- Coming Soon strip ---- */
.proj-coming-soon {
    max-width: 1240px;
    margin: 4rem auto 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    border-left: 3px solid var(--color-1);
    padding: 1.8rem 2.4rem;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-1);
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}
.proj-coming-soon__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-1);
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(1.5); }
}
