/* ============================================
   Shared inner-page styles (Services / Portfolio / Contact)
   ============================================ */

.page-hero {
  padding-top: 150px;
  padding-bottom: 60px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset-block: 0; inset-inline: calc(50% - 50vw); z-index: -1;
  background: radial-gradient(45% 70% at 80% 0%, rgba(232,40,63,.2), transparent 70%);
}
.page-hero .tag {
  color: var(--red-bright); font-weight: 700; font-size: .95rem; margin-bottom: 14px; display:block;
}
.page-hero h1 { max-width: 16ch; }
.page-hero p.lead { margin-top: 18px; max-width: 56ch; }

/* ---------- Services list ---------- */
.service-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--grey-line);
}
.service-row:last-child { border-bottom: 1px solid var(--grey-line); }
.service-row h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.service-row .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.service-row .tags span {
  font-size: .8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--grey-line); color: var(--grey);
}
.service-num {
  font-size: .85rem; color: var(--grey); font-weight: 700; letter-spacing: .04em;
}

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; }
}

/* ---------- Process steps (genuine sequence) ---------- */
.process-list {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  counter-reset: step;
}
.process-item {
  position: relative;
  padding: 26px 20px 20px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--black-soft);
}
.process-item::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  font-weight: 800; margin-bottom: 16px;
}
.process-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-item p { font-size: .9rem; }

@media (max-width: 980px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ---------- Portfolio grid ---------- */
.portfolio-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.portfolio-filter button {
  border: 1px solid var(--grey-line); background: transparent; color: var(--grey);
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.portfolio-filter button.is-active,
.portfolio-filter button:hover { border-color: var(--red-bright); color: var(--off-white); background: rgba(232,40,63,.1); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.portfolio-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-line);
  background: var(--black-soft);
}
.portfolio-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--black-card), var(--red-deep) 180%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem; color: rgba(243,239,233,.5);
}
.portfolio-card .meta { padding: 20px; }
.portfolio-card .meta span { font-size: .8rem; color: var(--red-bright); font-weight: 700; }
.portfolio-card .meta h3 { margin-top: 8px; font-size: 1.15rem; }

@media (max-width: 980px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-info-card {
  border: 1px solid var(--grey-line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  background: var(--black-soft);
  margin-bottom: 18px;
}
.contact-info-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-info-card a, .contact-info-card p { font-size: .95rem; }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--grey-line); background: var(--black-card); color: var(--off-white);
  font-family: var(--font); font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255,59,82,.28);
}
.field textarea { resize: vertical; min-height: 130px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
