@charset "UTF-8";

/* ==========================================================================
   Projetos — extends cSS.css
   ========================================================================== */

.proj-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Featured project ---- */
.proj-featured {
    padding: 3.5rem 1.5rem 4rem;
    background-color: var(--si);
}

.proj-featured__visual {
    aspect-ratio: 4/3;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.proj-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
    text-decoration: none;
    color: inherit;
}

.proj-placeholder-img {
    width: 100%;
    height: 100%;
    background: #212427;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.proj-placeholder-series {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.proj-placeholder-label {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
}

.proj-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.proj-featured__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 300;
    color: #212427;
    line-height: 1.1;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.proj-featured__year {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.proj-featured__desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 0.875rem;
}

.proj-featured__meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.proj-meta-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.proj-meta-label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    min-width: 4.5rem;
    flex-shrink: 0;
}

.proj-meta-value {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 400;
}

/* ---- Projects grid ---- */
.proj-grid-section {
    padding: 3.5rem 1.5rem 4rem;
    background-color: var(--fi);
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.proj-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.photo-section {
    background-color: var(--si);
}

.proj-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.proj-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    border-color: #e0e0e0;
}

.proj-card__visual {
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
}

.proj-card__visual--dark   { background: #212427; }
.proj-card__visual--mid    { background: #3d4148; }
.proj-card__visual--slate  { background: #4a5568; }
.proj-card__visual--warm   { background: #5c4b3a; }
.proj-card__visual--sage   { background: #5a6b58; }
.proj-card__visual--green  { background: #3d7a50; }

.proj-card__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-card__bg-img--contain {
    object-fit: contain;
    padding: 1.25rem;
}

/* Scrim so the year stays legible over photos */
.proj-card__visual:has(.proj-card__bg-img:not(.proj-card__bg-img--contain))::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    pointer-events: none;
}

.proj-card__year {
    position: relative;
    z-index: 1;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

.proj-card__content {
    padding: 1.25rem 1.25rem 1.5rem;
}

.proj-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: #212427;
    margin: 0.4rem 0 0.5rem;
    line-height: 1.35;
}

.proj-card__desc {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ---- Events ---- */
.events-section {
    padding: 3.5rem 1.5rem 5rem;
    background-color: var(--si);
}

.events-section .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
}

.event-item {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.125rem;
}

.event-day {
    font-size: 1.625rem;
    font-weight: 200;
    color: #212427;
    line-height: 1;
    letter-spacing: -0.02em;
}

.event-month {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.event-tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.event-title {
    font-size: 1rem;
    font-weight: 500;
    color: #212427;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.event-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

.event-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.event-meta span::before {
    content: '·';
    margin-right: 1.25rem;
}

.event-meta span:first-child::before {
    content: none;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    white-space: nowrap;
    margin-top: 0.25rem;
}

.event-badge--upcoming {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.event-badge--past {
    background: #f9fafb;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--fo);
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-back-icon {
    width: 11px;
    height: auto;
    vertical-align: middle;
    padding-top: 2px;
}

.breadcrumb-back:hover .breadcrumb-back-icon {
    filter: brightness(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .proj-featured__card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proj-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        grid-template-columns: 3.5rem 1fr;
        gap: 1rem;
    }

    .event-item__cta {
        grid-column: 2;
    }
}
