/* =========================
   PORTFOLIO PAGE (with photos)
========================= */

:root{
  --bg: #ffffff;
  --bg-alt: #f6f3ee;
  --text: rgba(15,23,42,.92);
  --muted: rgba(15,23,42,.66);
  --accent: #ff8a2a;

  --card: rgba(255,255,255,.92);
  --stroke: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow2: 0 22px 70px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

.pfPage{
  background: var(--bg);
  color: var(--text);
}

/* HERO */
.pfHero{
  padding: clamp(44px, 6vw, 86px) 0 clamp(28px, 4vw, 56px);
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255, 138, 42, 0.18), transparent 55%),
    radial-gradient(800px 420px at 92% 10%, rgba(255, 179, 106, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, #fff 78%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pfHero__inner{
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.pfHero__title{
  margin: 6px 0 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pfHero__lead{
  margin: 0;
  max-width: 760px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
}

/* Breadcrumbs */
.pfCrumbs{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.pfCrumbs__link{
  color: rgba(15,23,42,.82);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.pfCrumbs__link:hover{ text-decoration: underline; }
.pfCrumbs__sep{ opacity: .4; }
.pfCrumbs__current{
  font-weight: 700;
  font-size: 13px;
  color: rgba(15,23,42,.62);
}

/* SECTION */
.pfSection{
  padding: clamp(34px, 5vw, 72px) 0;
}

.pfGrid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

/* CARD (with image) */
.pfCard{
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;

  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 150px;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pfCard::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(800px 260px at 10% 0%, rgba(255, 138, 42, 0.16), transparent 60%),
    radial-gradient(700px 260px at 90% 30%, rgba(255, 179, 106, 0.14), transparent 62%);
  pointer-events:none;
  opacity:.55;
}

.pfCard__media{
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.pfCard__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease;
  filter: saturate(1.05) contrast(1.02);
}

.pfCard__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 55%);
  opacity: .35;
  pointer-events:none;
}

.pfCard__content{
  position: relative;
  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.pfCard__title{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.pfCard__text{
  margin: 0;
  color: rgba(15,23,42,.64);
  font-size: 14px;
  line-height: 1.45;
  max-width: 52ch;
}

/* CTA inside card */
.pfCard__cta{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(15,23,42,.82);
}

.pfCard__cta i{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 138, 42, 0.14);
  border: 1px solid rgba(255, 138, 42, 0.28);
  font-style: normal;
  transition: transform .18s ease, background .18s ease;
}

.pfCard:hover{
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: var(--shadow2);
}

.pfCard:hover .pfCard__img{
  transform: scale(1.08);
}

.pfCard:hover .pfCard__cta i{
  transform: translateX(3px);
  background: rgba(255, 138, 42, 0.18);
}

.pfCard:focus-visible{
  outline: 3px solid rgba(255, 138, 42, 0.35);
  outline-offset: 3px;
}

/* SEO block */
.pfSeo{
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(246,243,238,.75);
}

.pfSeo__title{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.pfSeo__text{
  margin: 0;
  color: rgba(15,23,42,.64);
  font-size: 14px;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 980px){
  .pfCard{ grid-column: span 12; }
  .pfHero__inner{ justify-items: start; text-align: left; }
  .pfCrumbs{ justify-self: start; }
}

@media (max-width: 640px){
  .pfCard{
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .pfCard__media{
    height: 170px;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .pfCard__media::after{
    background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 70%);
    opacity: .30;
  }
}

@media (prefers-reduced-motion: reduce){
  .pfCard, .pfCard__img, .pfCard__cta i{ transition: none; }
}
