@import url('variables.css');

/* ============================================================
   PROJECTS PAGE — Cinematic redesign
   ============================================================ */

/* --- Full-width immersive hero --- */
.proj-hero {
    position: relative;
    min-height: 75vh;
    display: flex; align-items: flex-end;
    overflow: hidden;
    background: #1a1815;
}
.proj-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-color: #1a1815;
    transition: transform 8s ease;
}
.proj-hero:hover .proj-hero-bg { transform: scale(1.04); }
.proj-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}
.proj-hero-content {
    position: relative; z-index: 2;
    padding: 0 6% 80px; max-width: 750px;
}
.proj-hero-content .section-eyebrow.light { color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.proj-hero-content .section-eyebrow.light .eyebrow-line { background: rgba(255,255,255,0.2); }
.proj-hero-content h1 {
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400; letter-spacing: 0.08em;
    color: #fff; line-height: 1.05; margin: 0 0 24px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.proj-hero-content p {
    font-family: var(--font-secondary);
    font-size: 1.05rem; line-height: 1.85;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.proj-hero-watermark {
    position: absolute; bottom: -20px; right: 4%;
    font-family: var(--font-primary);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.04); pointer-events: none;
    z-index: 1; line-height: 1;
}

/* Section eyebrow */
.projects-page .section-eyebrow {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: #aaa;
}
.section-eyebrow.light .eyebrow-num,
.projects-page .eyebrow-num { font-family: var(--font-primary); font-size: 1.1rem; font-weight: 400; letter-spacing: 0; }
.section-eyebrow.light .eyebrow-line,
.projects-page .eyebrow-line { width: 40px; height: 1px; background: rgba(0,0,0,0.15); }

/* ============================================================
   FILTER BAR — minimal underline style
   ============================================================ */
.projects-section { padding: 100px 0 120px; background: #f5f0e9; }

.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 60px;
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}
.filter-group select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    font-family: var(--font-secondary);
    font-size: 0.85rem; font-weight: 600;
    color: var(--color-hero);
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23bbb' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.filter-group select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

/* Choices.js overrides — refined dropdown */
.choices { margin-bottom: 0; }
.choices__inner {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
    font-family: var(--font-secondary) !important;
    font-size: 0.85rem !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.choices.is-open .choices__inner,
.choices__inner:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.choices__list--single .choices__item {
    font-weight: 600; color: var(--color-hero);
    font-family: var(--font-secondary);
}
.choices[data-type*="select-one"]::after {
    border-color: #bbb transparent transparent !important;
    right: 14px !important; top: 50% !important;
    margin-top: -3px !important;
}
.choices__list--dropdown {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
    margin-top: 4px; overflow: hidden;
}
.choices__list--dropdown .choices__item {
    font-family: var(--font-secondary) !important;
    font-size: 0.85rem !important;
    padding: 12px 18px !important;
    color: #666;
    transition: background 0.2s, color 0.2s;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: rgba(140,116,97,0.08) !important;
    color: var(--color-hero) !important;
}
.choices__list--dropdown .choices__item--selectable.is-selected {
    color: var(--color-primary); font-weight: 700;
}

/* ============================================================
   PROJECT GRID — tall cinematic cards
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    text-decoration: none; color: inherit;
    display: block; position: relative;
    border-radius: 10px; overflow: hidden;
    aspect-ratio: 3/4;
    background: #1a1815;
}
.project-card .img-container {
    width: 100%; height: 100%;
    overflow: hidden; position: relative;
}
.project-card .img-container img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform 1s cubic-bezier(0.25,0.46,0.45,0.94);
}
.project-card:hover .img-container img { transform: scale(1.07); }

/* Dark gradient overlay */
.project-card .img-container::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
    pointer-events: none; border-radius: 10px;
    transition: background 0.4s;
}
.project-card:hover .img-container::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.8) 100%);
}

/* Footer info */
.project-card .item-footer {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 24px 24px;
    z-index: 2; background: none;
    transform: translateY(8px);
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.project-card:hover .item-footer { transform: translateY(0); }

.project-card .item-footer .building-title {
    font-family: var(--font-primary);
    font-size: 1.3rem; font-weight: 400; letter-spacing: 0.04em;
    color: #fff; margin: 0 0 6px;
}
.project-card .item-footer .building-category {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 10px; border-radius: 10px;
    margin: 0 0 8px; backdrop-filter: blur(6px);
}
.project-card .item-footer .building-address {
    font-family: var(--font-secondary);
    font-size: 0.8rem; color: rgba(255,255,255,0.55);
    margin: 0; letter-spacing: 0.02em;
}

/* Hover: reveal a "View Project" link */
.project-card .item-footer::after {
    content: 'View Project →';
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.project-card:hover .item-footer::after { opacity: 1; transform: translateY(0); }

/* Card lift + shadow */
.project-card {
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.5s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

/* Elegant Animated Inner Border on Hover */
.project-card::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 10;
}
.project-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Status badge */
.project-card .status-badge {
    position: absolute; top: 18px; left: 18px; z-index: 3;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px); color: #fff;
    font-family: var(--font-secondary); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 5px 13px; border-radius: 10px;
}

/* No results */
.no-results {
    grid-column: 1 / -1;
    text-align: center; font-size: 1.1rem;
    padding: 80px 0; color: #aaa;
    font-family: var(--font-secondary);
}

/* ============================================================
   LOAD MORE — minimal
   ============================================================ */
.load-more-container { text-align: center; margin-top: 70px; }
.load-more-btn {
    font-family: var(--font-secondary);
    padding: 16px 44px; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-hero); background: transparent;
    border: 1.5px solid rgba(0,0,0,0.15); border-radius: 10px;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.load-more-btn:hover { background: var(--color-hero); color: #f5f0e9; border-color: var(--color-hero); }
.load-more-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .filter-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .proj-hero { min-height: 60vh; }
    .proj-hero-content { padding: 0 5% 50px; }
    .proj-hero-content h1 { font-size: 2.5rem; }
    .proj-hero-watermark { font-size: 4rem; }
    .projects-section { padding: 60px 0 80px; }
    .filter-bar { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; padding: 16px; }
    .project-card { aspect-ratio: 3/4; }
}
@media (max-width: 600px) {
    .project-grid { grid-template-columns: 1fr; gap: 16px; }
    .project-card { aspect-ratio: 4/5; }
}
