/* Shared styles for the portfolio hub and case-study template pages. */

.portfolio-hero {
  padding-top: 9rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #08111f 0%, #10233a 62%, #0d3140 100%);
  color: #fff;
}

.portfolio-hero .container { max-width: 820px; }

.portfolio-hero h1 {
  margin: .6rem 0 1rem;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

.portfolio-hero p {
  max-width: 680px;
  color: #c9d7e7;
  font-size: 1.1rem;
  line-height: 1.7;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 2.4rem 0 2.6rem;
}

.portfolio-filter {
  border: 1px solid #cdd8e4;
  border-radius: 999px;
  background: #fff;
  color: #263b52;
  padding: .7rem 1.05rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
  background: #0d3041;
  color: #fff;
  border-color: #0d3041;
}

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

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe4ed;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 45, 68, .07);
  transition: transform .22s ease, box-shadow .22s ease;
  text-decoration: none;
  color: inherit;
}

a.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(23, 45, 68, .12);
}

.portfolio-card.is-hidden { display: none; }

.portfolio-card--soon {
  opacity: .62;
  cursor: default;
}

.portfolio-card-media {
  aspect-ratio: 16 / 10;
  background: #eef3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9db0c4;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.portfolio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .8rem;
}

.portfolio-type-tag,
.portfolio-status-tag {
  border-radius: 999px;
  padding: .32rem .6rem;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.portfolio-type-tag { background: #e7f8f4; color: #126c62; }
.portfolio-status-tag { background: #eef3f7; color: #42566a; }

.portfolio-card h3 { margin: 0 0 .55rem; font-size: 1.2rem; }

.portfolio-card p {
  margin: 0 0 1rem;
  color: #5a6b7c;
  line-height: 1.6;
  font-size: .94rem;
}

.portfolio-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
}

.portfolio-card-tags span {
  border-radius: 999px;
  background: #f1f5f8;
  color: #42566a;
  padding: .3rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}

/* Case-study template */

.case-hero {
  padding-top: 9rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(135deg, #08111f 0%, #10233a 62%, #0d3140 100%);
  color: #fff;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 3rem;
  align-items: center;
}

.case-hero-copy h1 {
  margin: .6rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.case-hero-copy p {
  color: #c9d7e7;
  font-size: 1.08rem;
  line-height: 1.7;
}

.case-hero-media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa3ba;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85rem;
  text-align: center;
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-guide-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: .9rem;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dbe4ed;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.case-facts div {
  padding: 1.2rem 1.3rem;
  border-right: 1px solid #e4eaf0;
}

.case-facts div:last-child { border-right: 0; }

.case-facts span {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8095ab;
  margin-bottom: .4rem;
}

.case-facts strong { font-size: 1rem; color: #1a2b3c; }

.case-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.case-feature-card {
  border: 1px solid #dbe4ed;
  border-radius: 18px;
  background: #fff;
  padding: 1.4rem;
}

.case-feature-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.case-feature-card p { margin: 0; color: #5a6b7c; line-height: 1.6; font-size: .94rem; }

.case-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.case-tech-list span {
  border-radius: 999px;
  background: #eef3f7;
  color: #263b52;
  padding: .5rem .9rem;
  font-size: .85rem;
  font-weight: 700;
}

.case-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.case-result-card {
  border-radius: 18px;
  background: #0b1726;
  color: #fff;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .1);
}

.case-result-card strong {
  display: block;
  font-size: 1.15rem;
  color: #78e4d4;
  margin-bottom: .4rem;
}

.case-result-card p { margin: 0; color: #b9c8d8; font-size: .9rem; line-height: 1.5; }

.case-status-note {
  border-radius: 14px;
  background: #fff7e6;
  border: 1px solid #f2dca4;
  color: #7a5b12;
  padding: 1rem 1.2rem;
  font-size: .92rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .case-hero-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature-grid,
  .case-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div { border-right: 0; border-bottom: 1px solid #e4eaf0; }
  .case-facts div:last-child { border-bottom: 0; }
}
