/* ========================================================================
   portfolio.css
   포트폴리오 메인페이지 전용 스타일
   ======================================================================== */

:root {
  --pf-bg:       #fafaf7;
  --pf-surface:  #ffffff;
  --pf-ink:      #1c1c1c;
  --pf-muted:    #6b6b6b;
  --pf-line:     rgba(0, 0, 0, 0.08);
  --pf-accent:   #1a1714;
  --pf-accent-2: #c89968;
}

body { background: var(--pf-bg); color: var(--pf-ink); }

/* ----- Hero ----- */
.pf-hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.pf-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .pf-hero { padding: 56px 0 48px; }
  .pf-hero__inner { grid-template-columns: 1fr; gap: 36px; }
}

.pf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--pf-muted);
  margin-bottom: 22px;
}
.pf-hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--pf-accent-2);
  border-radius: 50%;
}

.pf-hero__title {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
@media (max-width: 860px) { .pf-hero__title { font-size: 32px; } }
@media (max-width: 380px) { .pf-hero__title { font-size: 28px; } }

.pf-hero__sub {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--pf-muted);
  margin-bottom: 32px;
}
@media (max-width: 480px) { .pf-hero__sub { font-size: 15.5px; } }

.pf-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero illustration mock */
.pf-hero__art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, #efe5d0 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, #d7c6a3 0%, transparent 50%),
    linear-gradient(135deg, #ede4d3, #c8b58c);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(60, 40, 20, 0.25);
}
.pf-hero__art-grid {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pf-hero__art-cell {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #5d4630;
  font-weight: 700;
  padding: 4px;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .pf-hero__art-grid { inset: 16px; gap: 10px; }
  .pf-hero__art-cell { font-size: 17px; border-radius: 10px; }
}
@media (max-width: 400px) {
  .pf-hero__art-cell { font-size: 15px; }
}
.pf-hero__art-cell--span-2 { grid-column: span 2; }
.pf-hero__art-cell--accent {
  background: linear-gradient(135deg, #3d2817, #1a1714);
  color: #f5ead5;
  border-color: transparent;
}
.pf-hero__art-cell--tone {
  background: linear-gradient(135deg, #c89968, #a07d4d);
  color: #fff;
  border-color: transparent;
}

/* ----- Category section ----- */
.pf-category { padding: 56px 0; }
.pf-category + .pf-category { padding-top: 0; }

.pf-category__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pf-category__title {
  font-size: 26px;
  letter-spacing: -0.01em;
}
.pf-category__count {
  font-size: 13px;
  color: var(--pf-muted);
  font-weight: 500;
}

/* ----- Card grid ----- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.pf-card {
  position: relative;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.16);
}

.pf-card__thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.pf-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18));
}

/* Thumbnail color schemes per sample */
.pf-card--legal    .pf-card__thumb { background: linear-gradient(135deg, #1c2a44, #0f1b34 60%, #c9a35e); }
.pf-card--finance  .pf-card__thumb { background: linear-gradient(135deg, #6d4a2a, #c2a979 60%, #335c43); }
.pf-card--repair   .pf-card__thumb { background: linear-gradient(135deg, #1d3a6e, #3a7bc8 60%, #ff9a3c); }
.pf-card--class    .pf-card__thumb { background: linear-gradient(135deg, #6c8cff, #b5c3ff 50%, #fff); }
.pf-card--rental   .pf-card__thumb { background: linear-gradient(135deg, #143e3a, #1f6b5a 55%, #0a0a0a); }
.pf-card--local    .pf-card__thumb { background: linear-gradient(135deg, #c9b48a, #f1e6ce 55%, #6b7a3a); }
.pf-card--dessert  .pf-card__thumb { background: linear-gradient(135deg, #ffe1e1, #ffb3b3 55%, #c97a5a); }
.pf-card--roastery .pf-card__thumb { background: linear-gradient(135deg, #1a1714, #3d2817 55%, #c89968); }

.pf-card__thumb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pf-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1714;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 1;
}
.pf-card__badge--featured {
  background: #c89968;
  color: #fff;
}
.pf-card__badge--coming {
  background: rgba(255, 255, 255, 0.92);
  color: #6b6b6b;
}

.pf-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pf-card__title {
  font-size: 19px;
  margin-bottom: 8px;
}

.pf-card__desc {
  font-size: 14.5px;
  color: var(--pf-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.pf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.pf-card__tag {
  font-size: 12px;
  padding: 4px 10px;
  background: #f1ede5;
  color: #6c604e;
  border-radius: 6px;
  font-weight: 500;
}

.pf-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: var(--pf-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.pf-card__btn::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.2s;
}
.pf-card__btn:hover { background: #000; }
.pf-card:hover .pf-card__btn::after { transform: translateX(4px); }

.pf-card__btn--disabled {
  background: #e8e5dd;
  color: #8c8579;
  cursor: not-allowed;
  pointer-events: none;
}
.pf-card__btn--disabled::after { content: '준비 중'; font-size: 13px; }

/* ----- Bottom notice ----- */
.pf-bottom-notice {
  margin: 56px auto 0;
  max-width: 760px;
  padding: 32px 28px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  text-align: center;
  font-size: 14.5px;
  color: var(--pf-muted);
  line-height: 1.85;
}
.pf-bottom-notice strong {
  color: var(--pf-ink);
  font-weight: 700;
}

@media (max-width: 768px) {
  .pf-bottom-notice { padding: 24px 20px; font-size: 13.5px; }
}
