/* ============================================================
   Page-specific components — Richard Gleeson portfolio
   Extends the Shoreditch design system (styles.css).
   Keep the core system in styles.css; page-only pieces live here.
   ============================================================ */

/* ---------- Interior page hero ---------- */
.page-hero { padding-top: 150px; padding-bottom: 48px; }
.page-hero__kicker {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: 24px;
}
.page-hero__title { font-size: clamp(40px, 7vw, 80px); line-height: 1; margin-bottom: 24px; max-width: 14ch; }
.page-hero__lede { font-size: 20px; line-height: 1.55; color: var(--color-text-muted); max-width: 680px; }
/* hero with a CTA aside on the right */
.page-hero--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.page-hero--split .page-hero__main { flex: 1 1 480px; }
.page-hero--split .page-hero__aside { flex: 0 0 auto; padding-bottom: 6px; }
.page-hero--split .btn { text-decoration: none; }
.page-hero--split .btn .arrow {
  width: 26px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none;
  transition: transform var(--dur-md) var(--ease-spring);
}
.page-hero--split .btn:hover .arrow { transform: translateX(6px); }

/* ---------- Editorial prose ---------- */
.prose { max-width: 760px; }
.prose > p { font-size: 18px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 22px; }
.prose strong { color: var(--color-text); font-weight: 600; }
.prose a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-secondary-hover); }
.prose ul { margin: 0 0 22px; padding: 0; }
.prose li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 18px; line-height: 1.6; color: var(--color-text-muted);
}
.prose li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; background: var(--color-secondary); border-radius: 2px;
}
.prose li strong { color: var(--color-text); }

/* ---------- Tag clouds (about / skills) ---------- */
.tag-group { margin-bottom: 40px; }
.tag-group__title {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-subtle);
  margin-bottom: 18px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: 100px;
  background: var(--color-surface-subtle); border: 1px solid var(--color-border); color: var(--color-text);
  transition: border-color var(--dur-sm) ease, color var(--dur-sm) ease, transform var(--dur-sm) ease;
}
.tag:hover { border-color: var(--color-secondary); color: var(--color-secondary); transform: translateY(-2px); }

/* ---------- Two-column intro (about) ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.split__aside { position: sticky; top: 110px; }

/* ---------- Case study ---------- */
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px;
  padding: 36px 0; margin-bottom: 12px;
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.case-meta__item { display: flex; flex-direction: column; gap: 6px; }
.case-meta__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-text-subtle);
}
.case-meta__value { font-size: 16px; line-height: 1.4; color: var(--color-text); }

.case-figma { margin: 28px 0 0; }
.case-cta {
  margin: 28px 0 0; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.case-cta .btn { text-decoration: none; }
.case-cta .btn .arrow {
  width: 26px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none;
  transition: transform var(--dur-md) var(--ease-spring);
}
.case-cta .btn:hover .arrow { transform: translateX(6px); }
.case-section .case-cta { margin-top: 28px; }

.case-section { margin-top: 72px; max-width: 100%; }
.case-section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.case-section .prose { max-width: 760px; }

/* full-bleed-ish hero image for a case */
.case-figure {
  margin: 32px 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface-subtle); border: 1px solid var(--color-border);
}
.case-figure img { width: 100%; display: block; }

/* bare figure — no background or border */
.case-figure--bare { background: none; border: 0; }

/* clean logo — no background or outline, centered */
.case-logo {
  margin: 36px 0 0; padding: 12px 0;
  display: flex; justify-content: center; align-items: center;
  background: none; border: 0;
}
.case-logo img { width: auto; max-width: 300px; max-height: 130px; display: block; }

/* image gallery — grid with top-aligned items so figures hug their image
   instead of stretching to the tallest cell (no empty boxes / huge gaps) */
.case-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin: 32px 0; align-items: start;
}
.case-gallery--wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.case-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.case-gallery figure {
  margin: 0; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-surface-subtle); border: 1px solid var(--color-border);
}
.case-gallery img { width: 100%; display: block; }
/* bare gallery — no background or border on figures */
.case-gallery--bare figure { background: none; border: 0; }

/* ---------- Specialist skills (services page) ---------- */
.specialisms { display: flex; flex-direction: column; }
.specialism {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  padding: 36px 0; border-top: 1px solid var(--color-border);
}
.specialism:last-child { border-bottom: 1px solid var(--color-border); }
.specialism__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; margin: 0;
}
.specialism__desc { font-size: 18px; line-height: 1.7; color: var(--color-text-muted); max-width: 760px; margin: 0; }
@media (max-width: 768px) {
  .specialism { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
}

/* back / next nav for case studies */
.case-pager { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-layout .hero__form { flex-basis: auto; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .case-gallery--cols-3 { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding-top: 120px; }
}
@media (max-width: 600px) {
  .case-gallery, .case-gallery--wide, .case-gallery--cols-3 { grid-template-columns: 1fr; }
  .case-section { margin-top: 52px; }
}
