/* ─── Homepage showcase — 2026-09-19 ──────────────────────────────────────────────────────
   Darrin: the service-card and portfolio layout of phoenixcreativeworks.com, then testimonials.
   Loads after digital-theme.css. Every colour is the existing token set; the reference site's
   blue never enters. Markup comes from source/home-v3.py. */

/* 1. Services: three photo cards in one row, middle card dropped 40px so the row reads as a
   composition (the reference site's signature). Whole card is the link. */
.page-home .service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.page-home .service-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem; min-height: 100%;
  padding: 28px; color: inherit; text-decoration: none;
  background: rgba(24,18,8,.34); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(22px); box-shadow: 0 24px 60px -12px rgba(30,22,10,.25);
}
.page-home .service-card h3 { font-size: clamp(1.55rem, 2vw, 1.9rem); line-height: 1.15; margin: 0; padding-right: 68px; }
.page-home .service-card p { font-size: 1rem; line-height: 1.55; color: var(--muted); margin: 0 0 .5rem; max-width: 34ch; }
.page-home .service-card-photo { display: block; margin-top: auto; border-radius: 12px; overflow: hidden; }
.page-home .service-card-photo img { width: 100%; height: auto; aspect-ratio: 2.19 / 1; object-fit: cover; }
.page-home .service-card-arrow {
  position: absolute; top: 24px; right: 24px; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--accent); color: var(--bg);
  font-size: 1.45rem; line-height: 1; transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.page-home .service-card:hover .service-card-arrow { transform: translate(3px, -3px); }
.page-home .service-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.page-home .services .section-intro { margin-bottom: 2.75rem; }
@media (min-width: 901px) { .page-home .service-cards > .service-card:nth-child(2) { margin-top: 40px; } }
@media (max-width: 900px) { .page-home .service-cards { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 600px) { .page-home .service-card { padding: 20px; } .page-home .service-card-arrow { top: 16px; right: 16px; width: 44px; height: 44px; } }

/* 2. Portfolio: centred header, pill filter bar, flat screenshot tiles with the copy BELOW the
   image (never over it), three across. The tiles do not move on hover; the frame just marks
   itself as a link. */
.portfolio-head { text-align: center; max-width: 780px; margin: 0 auto 2.25rem; }
.portfolio-head h2 { max-width: none; margin-bottom: 1.3rem; }
.portfolio-head .section-intro { margin: 0 auto; max-width: 58ch; }
.portfolio-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; max-width: 960px;
  margin: 0 auto 2.5rem; padding: 8px; border-radius: 999px;
  border: 2px solid rgba(184,134,59,.55); background: rgba(184,134,59,.10);
}
.portfolio-tabs button {
  font: 500 .9rem/1.2 var(--font); color: var(--text); background: none; border: 0;
  border-radius: 999px; padding: .7rem 1.25rem; min-height: 44px; cursor: pointer;
}
.portfolio-tabs button:hover { background: rgba(246,242,234,.08); }
.portfolio-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 600; }
.portfolio-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.portfolio-tile { min-width: 0; }
.portfolio-link { display: block; color: inherit; text-decoration: none; }
.portfolio-frame {
  display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(24,18,8,.34);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 7px rgba(0,0,0,.14), 0 12px 22px rgba(0,0,0,.2);
}
.portfolio-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.portfolio-link:hover .portfolio-frame { border-color: var(--accent); }
.portfolio-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 12px; }
.portfolio-copy { display: block; padding: 1.1rem .15rem 0; }
.portfolio-category { display: block; font: 500 .72rem/1.4 'IBM Plex Mono', monospace; letter-spacing: .04em; color: var(--accent); margin-bottom: .45rem; }
.portfolio-copy h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .4rem; }
.portfolio-copy p { font-size: .92rem; line-height: 1.55; color: var(--muted); margin: 0; }
.portfolio-caption { display: block; font-size: .78rem; line-height: 1.5; color: var(--faint); margin-top: .5rem; }
.portfolio-empty { text-align: center; color: var(--faint); }
.actions--center { justify-content: center; margin-top: 2.75rem; }
.actions--center .button, .actions--center .quiet-button { margin: 0; }
@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .portfolio-tabs { border-radius: 24px; padding: 6px; gap: .2rem; }
  .portfolio-tabs button { padding: .6rem .9rem; font-size: .82rem; }
}

/* 3. Testimonials: three cards across; below 900px a scroll-snap row with the prev/next
   buttons that showcase-v1.js reveals only when the row actually overflows. */
.testimonial-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonial-scroller::-webkit-scrollbar { display: none; }
.testimonial-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial-card {
  position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: 28px;
  background: rgba(24,18,8,.34); border: 1px solid rgba(184,134,59,.55); border-radius: 20px;
}
.testimonial-card blockquote { margin: 0; flex: 1; }
.testimonial-card blockquote p { font-size: 1.05rem; line-height: 1.6; color: var(--text); margin: 0; max-width: none; }
.testimonial-card footer { display: flex; flex-direction: column; gap: .15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.testimonial-card footer b { font-weight: 600; color: var(--text); }
.testimonial-card footer span { font-size: .88rem; color: var(--faint); }
.testimonial-sample {
  align-self: flex-start; font: 500 .72rem/1.3 'IBM Plex Mono', monospace; letter-spacing: .03em;
  color: var(--bg); background: var(--accent); padding: .35rem .6rem; border-radius: 6px;
}
.testimonial-nav { display: flex; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.testimonial-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.testimonial-nav button:hover:not(:disabled) { border-color: var(--accent); }
.testimonial-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) {
  .testimonial-grid { display: flex; }
  .testimonial-card { flex: 0 0 min(86%, 420px); scroll-snap-align: start; }
}
@media (max-width: 600px) { .testimonial-card { padding: 20px; } }

/* 4. The audit panel, now that it sits below the portfolio (2026-09-19).
   `.audit-layout` is a 1.4fr/1fr grid in digital-theme.css, but site-refinement.py gives it
   exactly ONE child, so the right-hand column has always been empty. Under the hero nobody
   noticed; mid-page it reads as a missing element. Homepage only, so /web and /audit keep
   the layout they already have. The input keeps a readable measure rather than stretching
   the full panel width. */
.page-home .home-audit .audit-layout { grid-template-columns: 1fr; }
.page-home .home-audit .audit-form { max-width: none; }
.page-home .home-audit .audit-entry { max-width: 720px; }
.page-home .home-audit .score-grid { max-width: none; }
