/* =============================================
   PORTFOLIO.CSS
   Brand: #fe6e00 orange, #1a1a2e navy
   ============================================= */

/* ---- Page Hero ---- */
.page-hero {
    background: #1a1a2e;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    border-bottom: 3px solid #fe6e00;
}

.page-hero-container {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fe6e00;
    margin-bottom: 0.75rem;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: #b0b6c8;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto;
}

/* ---- Stats Bar ---- */
.pf-stats-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8e8f0;
}

.pf-stats-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3rem;
}

.pf-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #fe6e00;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.pf-stat-label {
    font-size: 0.78rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pf-stat-divider {
    width: 1px;
    height: 40px;
    background: #e8e8f0;
}

/* ---- Filter Bar ---- */
.pf-filter-section {
    background: #f7f7fb;
    border-bottom: 1px solid #e8e8f0;
    padding: 1.25rem 1.5rem;
}

.pf-filter-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pf-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.pf-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 1.5px solid #e8e8f0;
    color: #555;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn:focus-visible {
    border-color: #fe6e00;
    color: #fe6e00;
    background: #fff8f2;
}

.filter-btn.active {
    background: #fe6e00;
    border-color: #fe6e00;
    color: #ffffff;
    font-weight: 600;
}

/* ---- Portfolio Grid ---- */
.pf-grid-section {
    background: #ffffff;
    padding: 3rem 0 4rem;
}

.pf-grid-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ---- Portfolio Card ---- */
.pf-card {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.pf-card:hover {
    box-shadow: 0 6px 24px rgba(254, 110, 0, 0.1);
    transform: translateY(-3px);
    border-color: #fe6e00;
}

.pf-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pf-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.pf-card-meta {
    flex: 1;
    min-width: 0;
}

.pf-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.pf-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pf-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pf-tag-sector {
    background: rgba(254, 110, 0, 0.1);
    color: #c45200;
}

.pf-tag-stage {
    background: #f0f0f8;
    color: #3a3a6e;
}

.pf-card-desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.65;
    flex: 1;
}

.pf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f5;
}

.pf-card-year {
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
}

.pf-card-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.active-status {
    background: #dcfce7;
    color: #15803d;
}

.exit-status {
    background: #e0f0ff;
    color: #1a4ab5;
}

/* No results */
.pf-no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1rem;
}

.pf-reset-btn {
    background: none;
    border: none;
    color: #fe6e00;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: underline;
    padding: 0;
}

/* ---- Hidden cards (filtered out) ---- */
.pf-card.hidden {
    display: none;
}

/* ---- Investment Thesis ---- */
.pf-thesis-section {
    background: #f7f7fb;
    padding: 5rem 1.5rem;
}

.pf-thesis-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fe6e00;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.pf-thesis-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.pf-thesis-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pf-thesis-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.pf-thesis-icon {
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
}

/* Stages */
.pf-stages-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #fe6e00;
    display: inline-block;
}

.pf-stage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e8f0;
}

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

.pf-stage-dot {
    width: 12px;
    height: 12px;
    background: #fe6e00;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.pf-stage-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
    margin-bottom: 0.2rem;
}

.pf-stage-desc {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
}

/* ---- Portfolio CTA ---- */
.pf-cta-section {
    background: #fe6e00;
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.pf-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-primary-light {
    display: inline-block;
    background: #ffffff;
    color: #fe6e00;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary-light:hover,
.btn-primary-light:focus-visible {
    background: #f5f5f5;
    transform: translateY(-1px);
    color: #fe6e00;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-thesis-container { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-stat { padding: 0.75rem 1.5rem; }
    .pf-stat-divider { display: none; }
    .pf-filter-container { flex-direction: column; align-items: flex-start; }
}
