/* Bowen Island Judo Club — page-Contact.css
   Page-only rules for Contact.html, linked after site.css. Scoped to <main class="page-contact">.
   Owned by the Contact page builder; shared rules live in site.css (read-only, see STYLEGUIDE.md). */

/* ---------- Hero ---------- */
/* Sun: right of the default 30% spot, eased further right below ~1240px, so its rim stays
   well clear of the "Bowen Island Judo Club" kicker; never past the title column's right edge,
   so it can't run under the address list beside it (900-1000px) */
@media (min-width: 900px) {
  .page-contact .page-hero__sun {
    --sun-size: clamp(240px, 34vw, 480px);   /* the shared default, named so --sun-x can use it */
    --sun-x: min(calc(34% + max(0px, (1240px - 100vw) * .25)), calc(100% - var(--sun-size)));
  }
}
@media (min-width: 900px) and (max-width: 999px) {
  .page-contact .page-hero__sun { --sun-size: 31vw; }
}

/* Side: where + how, drawn like the Classes "on this page" list */
.page-contact .reach { display: grid; border-top: 3px solid var(--ink); }
.page-contact .reach__address {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: start;
  padding: 14px 0 16px; border-bottom: 1px solid var(--ink);
}
.page-contact .reach__address svg { color: var(--red-ink); margin-top: 1px; }
.page-contact .reach__lines { display: grid; font-weight: 500; line-height: 1.45; }
.page-contact .reach__lines strong {
  font-weight: 800; font-size: .9375rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
}
.page-contact .reach__links { gap: 0; }
.page-contact .reach__links li { border-bottom: 1px solid var(--ink); }
.page-contact .reach__links a { display: flex; min-height: 64px; }
.page-contact .reach__links a:focus-visible { outline-offset: -3px; } /* ring inside the row, clear of the hairlines */

/* ---------- Photo band ---------- */
/* Full-bleed, black and white, flush under the hero where its sun sets. The two kneeling judoka span roughly
   16-92% of the frame's width and the lower half of its height, so the band is always wide (2:1 on phones,
   5:2 on tablets, ~2.5:1 and wider on desktop, max 600px tall) and the crop sits low: both people stay whole
   from 320px to 2560px. */
.page-contact .contact-band { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ink); }
.page-contact .contact-band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 54% 72%;
}
@media (min-width: 600px) { .page-contact .contact-band { aspect-ratio: 5 / 2; } }
@media (min-width: 900px) { .page-contact .contact-band { aspect-ratio: auto; height: clamp(340px, 40vw, 600px); } }

/* ---------- Registration: the sentence beside the form ---------- */
.page-contact .reg { padding-block: clamp(44px, 8vw, 64px) var(--sec); }
.page-contact .reg__intro .lead { margin-top: 18px; max-width: 40ch; }
.page-contact .reg .form { margin-top: clamp(28px, 3vw, 40px); }
@media (min-width: 900px) {
  /* 5/7 columns: "Registration" + the sentence on the left (riding beside the form as it scrolls),
     the form on the right, both starting on one top line under a 3px ink rule (as the hero's address list). */
  .page-contact .reg { padding-top: clamp(56px, 6vw, 96px); }
  .page-contact .reg__grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 104px); align-items: start;
  }
  .page-contact .reg__intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .page-contact .reg__intro, .page-contact .reg .form { border-top: 3px solid var(--ink); padding-top: 26px; }
  .page-contact .reg .form { margin-top: 0; max-width: none; }
}
