/* =========================================================
   Blocks for main-site pages (v0.1): PAGE INTRO, TEAM,
   CREDENTIALS, CTA BAND. One file, loaded only when a page
   uses one of them.
   ========================================================= */

/* ---------- Page intro: a smaller top section than the hero ---------- */
.intro { padding: var(--space-7) 0; }
.intro__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 64rem) {
  .intro { padding: var(--space-8) 0; }
  .intro__grid { grid-template-columns: 6fr 5fr; gap: var(--space-8); }
}
.intro__title { font-size: var(--text-h1); max-width: 14ch; }
.intro__lead { margin-top: var(--space-4); font-size: var(--text-lead); color: var(--colour-text-muted); max-width: 46ch; }
.intro__action { margin-top: var(--space-5); }
.intro__photo { margin: 0; }
.intro__photo img { width: 100%; aspect-ratio: var(--ratio-card); object-fit: cover; border-radius: var(--radius-large); background: var(--colour-border); }
.intro__credit { margin-top: var(--space-2); font-size: var(--text-small); color: var(--colour-text-muted); }
.intro__credit a { color: inherit; }

/* ---------- Team ---------- */
.team__title { font-size: var(--text-h2); }
.team__lead { margin-top: var(--space-4); color: var(--colour-text-muted); max-width: 52ch; }
.team__list {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; gap: var(--space-5);
}
@media (min-width: 40rem) { .team__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .team__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.member { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4); align-items: center; align-content: start; }
@media (min-width: 64rem) { .member { grid-template-columns: 1fr; align-items: start; } }
.member__photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius-large); overflow: hidden;
  background: var(--colour-tag); display: grid; place-items: center;
}
@media (min-width: 64rem) { .member__photo { width: 10rem; } }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__initials { font-family: var(--font-heading); font-size: 2rem; color: var(--colour-on-tag); }
.member__name { font-size: var(--text-h3); }
.member__role { font-weight: var(--weight-strong); color: var(--colour-accent); margin-top: var(--space-1); }
.member__line { color: var(--colour-text-muted); margin-top: var(--space-2); max-width: 36ch; }

/* ---------- Credentials ---------- */
.credentials { background: var(--colour-surface); }
.credentials__grid { display: grid; gap: var(--space-6); }
@media (min-width: 64rem) { .credentials__grid { grid-template-columns: 5fr 7fr; gap: var(--space-8); } }
.credentials__title { font-size: var(--text-h2); max-width: 16ch; }
.credentials__lead { margin-top: var(--space-4); color: var(--colour-text-muted); max-width: 40ch; }
.credentials__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--colour-border); }
.cred {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-5); align-items: center;
  padding: var(--space-5) 0; border-bottom: 1px solid var(--colour-border);
}
.cred__logo img { width: 7rem; height: auto; }
.cred__logo .cred__logo--etravel { width: 5rem; }
.cred__logo .cred__logo--a2b { width: 4.5rem; }
.cred__mark {
  display: inline-grid; place-items: center; min-width: 4.5rem; height: 3rem; padding: 0 var(--space-3);
  border: 2px solid var(--colour-text); border-radius: var(--radius-small);
  font-weight: 700; letter-spacing: 0.06em; justify-self: start;
}
.cred__mark svg { width: 1.5rem; height: 1.5rem; color: var(--colour-action); }
.cred__name { font-weight: var(--weight-strong); }
.cred__text { color: var(--colour-text-muted); margin-top: var(--space-1); }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--colour-action); color: var(--colour-on-action); padding: var(--space-7) 0; }
.cta-band__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 64rem) { .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--space-7); } }
.cta-band__title { font-size: var(--text-h2); }
.cta-band__text { margin-top: var(--space-3); opacity: 0.9; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn--light { background: var(--colour-surface); color: var(--colour-text); }
.btn--light:hover { background: var(--colour-background); }
.btn--light svg { color: var(--colour-action); }
.cta-band :focus-visible { outline-color: var(--colour-on-action); }
.cred__sub {
  display: inline-block; margin-left: var(--space-2); padding: 0 var(--space-2);
  border-radius: var(--radius-pill); background: var(--colour-tag); color: var(--colour-on-tag);
  font-size: var(--text-small); vertical-align: middle;
}
.cred__link { display: inline-block; margin-top: var(--space-2); font-size: var(--text-small); font-weight: var(--weight-strong); }
/* Phones: logo above the text, so the text gets the full width */
@media (max-width: 39.99rem) {
  .cred { grid-template-columns: 1fr; gap: var(--space-3); align-items: start; }
  .cred__logo img { width: 6rem; }
  .cred__mark { min-width: 4rem; height: 2.5rem; }
  .cred__sub { margin-left: 0; margin-top: var(--space-1); }
  .cred__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
}
