/* ==========================================================
   Inner pages (About, Services, Media, Contact, legal)
   Loaded after styles.css by every page except index.html.
   All rules use the pg- prefix so the homepage is untouched.
   ========================================================== */

/* Header: mark the current section */
.site-nav a.is-current::after { transform: scaleX(1); }
.site-nav .nav-drop-menu a[aria-current="page"] { color: var(--red); }

/* ---------- Page hero ---------- */
.pg-hero { background: var(--paper); padding: clamp(48px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pg-hero--text .pg-hero-grid { grid-template-columns: minmax(0, 860px); }
.pg-crumbs {
  display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 1.6rem;
  font-family: var(--f-display); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.pg-crumbs li + li::before { content: "/"; color: var(--red); margin-right: .5em; }
.pg-crumbs a { text-decoration: none; }
.pg-crumbs a:hover { color: var(--red); }
.pg-title { font-size: clamp(2.6rem, 6vw, 5.25rem); margin-bottom: .45em; }
.pg-title .outline { display: inline-block; }
.pg-hero .pg-lede { color: var(--ink); }
.pg-hero .btn { margin-top: 8px; }
.pg-date { font-family: var(--f-display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--black); }

/* Credentials line on About */
.pg-creds {
  margin: 0 0 1.6rem; max-width: 44em;
  font-family: var(--f-display); font-size: .74rem; font-weight: 600; line-height: 1.9; letter-spacing: .1em; text-transform: uppercase;
  color: var(--black);
}
.pg-creds .sep { color: var(--red); padding: 0 .35em; }

/* Image with the red registration bar used on the homepage */
.pg-figure { position: relative; margin: 0; }
.pg-figure::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--red); z-index: 1; }
.pg-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pg-figure--wide img { aspect-ratio: 4 / 3; }
/* 500px sources: shown at or below native size */
.pg-figure--small { max-width: 440px; justify-self: end; width: 100%; }
.pg-figure--tux { max-width: 320px; justify-self: center; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.pg-figure--tux img { aspect-ratio: 448 / 780; }
.pg-figure--bw img { filter: grayscale(1); }

/* ---------- Bands ---------- */
.pg-band { padding: var(--section-y) 0; }
.pg-band--paper { background: var(--paper); }
.pg-band--rule { border-top: 1px solid var(--line); }
.pg-band--dark { background: var(--black); }
.pg-band--dark .h2, .pg-band--dark .h3 { color: var(--white); }
.pg-band--dark p, .pg-band--dark li { color: var(--c-body-dark); }
.pg-band--dark .pg-prose a:not(.btn) { color: var(--white); }

.pg-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pg-split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.pg-split .btn { margin-top: 8px; }

/* Inline links inside copy */
.pg-prose a:not(.btn), .pg-article p a:not(.btn) {
  color: var(--black); text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s var(--ease);
}
.pg-prose a:not(.btn):hover, .pg-article p a:not(.btn):hover { color: var(--red); }

/* Lists with the red square marker from the ticker */
.pg-list { margin: 0 0 1em; }
.pg-list li { position: relative; padding-left: 22px; margin-bottom: .55em; max-width: 36em; color: var(--c-body); line-height: var(--t-body-lh); }
.pg-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--red); }

/* Numbered steps */
.pg-steps { counter-reset: step; margin: 0 0 1.2em; border-top: 2px solid var(--black); }
.pg-steps li {
  counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--c-body); line-height: var(--t-body-lh);
}
.pg-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-display); font-weight: 800; font-size: .9rem; color: var(--red); padding-top: .2em; }
.pg-steps strong { color: var(--black); font-weight: 600; }

/* ---------- Service article ---------- */
.pg-body { padding: var(--section-y) 0; }
.pg-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pg-aside-label { font-family: var(--f-display); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.pg-aside-list { border-top: 2px solid var(--black); }
.pg-aside-list a {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--f-display); font-size: 1rem; font-weight: 700; font-stretch: 85%; line-height: 1.2; color: var(--black);
  transition: color .2s var(--ease);
}
.pg-aside-list img { width: 28px; height: 28px; object-fit: contain; opacity: .55; transition: opacity .2s var(--ease); }
.pg-aside-list a:hover, .pg-aside-list a[aria-current="page"] { color: var(--red); }
.pg-aside-list a:hover img, .pg-aside-list a[aria-current="page"] img { opacity: 1; }
/* Sidebar: enquiry form on top, service list below */
/* Sticky below the 76px header; kept compact so it fits most laptop windows without scrolling */
.pg-layout > .pg-aside { position: sticky; top: 96px; }
.pg-aside .pg-form + .pg-aside-label { margin-top: 28px; }
.pg-form { margin: 0; padding: clamp(24px, 2.5vw, 32px); border-top: 3px solid var(--red); }
.pg-form-title { color: var(--white); font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 750; font-stretch: 85%; line-height: 1.15; margin: 0 0 16px; }
.pg-form .field { margin-bottom: 10px; }
.pg-aside-list a { padding: 7px 0; font-size: .95rem; }
.pg-aside-list img { width: 22px; height: 22px; }
.pg-form .field input, .pg-form .field textarea { padding: 10px 12px; }
.pg-form textarea { resize: vertical; min-height: 64px; }
.pg-form .btn { margin-top: 4px; }
.pg-form .btn:disabled { opacity: .6; cursor: default; }
.pg-form .btn-red:hover { background: var(--white); color: var(--black); }
.pg-form .form-status:empty { display: none; }
.pg-form .form-status { margin: 12px 0 0; font-size: .88rem; line-height: 1.5; max-width: none; color: var(--muted-dark); }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pg-sec { padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); }
.pg-sec:first-child { padding-top: 0; border-top: 0; }
.pg-sec > :last-child { margin-bottom: 0; }
.pg-sec-title {
  font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 750; font-stretch: 85%;
  line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .6em;
}
.pg-intro p { color: var(--ink); }

/* Closing call to action */
.pg-cta { margin-top: clamp(28px, 3.5vw, 44px); padding: clamp(28px, 4vw, 48px); background: var(--black); border-left: 8px solid var(--red); }
.pg-cta p { color: var(--c-body-dark); }
.pg-cta .btn { margin-top: 8px; }
.pg-cta .btn-red:hover { background: var(--white); color: var(--black); }

/* ---------- Services overview ---------- */
.pg-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pg-svc-card a {
  display: flex; flex-direction: column; height: 100%; padding: 24px; text-decoration: none;
  background: var(--white); border-top: 3px solid var(--black); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pg-svc-card a:hover { border-color: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.pg-svc-card img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 20px; }
.pg-svc-card .h3 { transition: color .3s var(--ease); }
.pg-svc-card a:hover .h3 { color: var(--red); }
.pg-svc-card p { font-size: .95rem; flex: 1; }
.pg-svc-card .svc-more { opacity: 1; grid-column: auto; grid-row: auto; align-self: flex-start; }

/* ---------- Media ---------- */
.pg-shows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(8px, 2vw, 24px); }
.pg-show { border-top: 3px solid var(--red); padding-top: 24px; }
.pg-show .h3 { color: var(--white); }
.pg-timeline { margin: 0 0 1.4em; border-top: 2px solid var(--black); max-width: 36em; }
.pg-timeline li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pg-tl-station { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.1rem; color: var(--black); }
.pg-tl-years { font-family: var(--f-display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .25em; text-align: right; }
.pg-timeline li:last-child .pg-tl-years { color: var(--red); }

/* ---------- Contact ---------- */
.pg-contact .contact-list { margin-top: 0; }
.pg-contact .contact-list div:first-child { border-top: 2px solid var(--black); }
.pg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.pg-card { background: var(--white); padding: clamp(24px, 3vw, 40px); border-top: 3px solid var(--black); }
.pg-card--alert { border-top-color: var(--red); }
.pg-card > :last-child { margin-bottom: 0; }

/* ---------- Legal ---------- */
.pg-legal { max-width: 800px; }
.pg-legal .pg-sec-title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.pg-legal p, .pg-legal li { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pg-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-hero-grid, .pg-split, .pg-split--rev, .pg-layout, .pg-shows, .pg-cards { grid-template-columns: 1fr; }
  .pg-hero .pg-figure { max-width: 560px; }
  .pg-hero .pg-figure img, .pg-split .pg-figure:not(.pg-figure--tux) img { aspect-ratio: 4 / 3; }
  .pg-figure--small { justify-self: start; }
  .pg-figure--tux { justify-self: start; max-width: 260px; }
  .pg-layout > .pg-aside { position: static; }
  .pg-split--rev .pg-figure { order: 2; }
}
@media (max-width: 560px) {
  .pg-hero .btn, .pg-split .btn, .pg-cta .btn { width: 100%; }
  .pg-svc-grid { grid-template-columns: 1fr; }
  .pg-timeline li { flex-direction: column; gap: 2px; }
  .pg-tl-years { text-align: left; padding-top: 0; }
  .pg-steps li { grid-template-columns: 2.2rem 1fr; }
}

/* ---------- Service hero: photo as section background (follows homepage hero) ---------- */
.pg-hero--bg { position: relative; isolation: isolate; overflow: hidden; background: var(--white); padding: clamp(48px, 5.5vw, 80px) 0; }
.pg-hero--bg .pg-hero-grid { grid-template-columns: minmax(0, 620px); }
.pg-hero--bg .pg-title { font-size: clamp(2.4rem, 4.8vw, 4.25rem); }
.pg-hero--bg .pg-crumbs { margin-bottom: 1.2rem; }
.pg-hero-bg { position: absolute; inset: 0; z-index: -1; }
.pg-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.pg-hero-bg::after {
  /* white wash under the text column (620px from the wrap edge); eased fade so it melts into the photo */
  --text-end: calc(max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter)) + 620px);
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .9) 0,
    rgba(255, 255, 255, .82) calc(var(--text-end) - 240px),
    rgba(255, 255, 255, .68) calc(var(--text-end) - 120px),
    rgba(255, 255, 255, .5) var(--text-end),
    rgba(255, 255, 255, .3) calc(var(--text-end) + 60px),
    rgba(255, 255, 255, .14) calc(var(--text-end) + 120px),
    rgba(255, 255, 255, .04) calc(var(--text-end) + 180px),
    rgba(255, 255, 255, 0) calc(var(--text-end) + 240px));
}
@media (max-width: 900px) {
  .pg-hero-bg::after { background: rgba(255, 255, 255, .85); }
}

/* ---------- Contact: details + team photo beside the booking form ---------- */
.pg-contact .pg-split { align-items: start; }
.pg-form--contact { padding: clamp(28px, 3.5vw, 44px); }
.pg-form select {
  font: inherit; font-size: 1rem; color: var(--white); background: var(--ink); border: 1px solid #3A3A3A; border-radius: 0;
  padding: 10px 12px; width: 100%;
}
.pg-form select:focus { outline: none; border-color: var(--red); }

/* About: images above their text on tablet and mobile */
@media (max-width: 900px) {
  .pg-img-first .pg-figure, .pg-img-first.pg-split--rev .pg-figure { order: -1; }
}
