/* Location pages /calgary and /canmore (2026-11-17), the landing pages for the two Google
   Business Profiles. Layered on preview/home-redesign.css (tokens, .btn) and css/info-pages.css
   (.info-hero, .info-section, .qa, .info-cta).
   Type scale (px): 13 / 16 / 20 / 25 / 31 / 39 / 49 / 61
   Spacing scale (px): 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128
   Teal only on the primary button, text links and the closing CTA band. */

/* Hero: headline, subhead, one primary button and a text link on the left, a photo on the right. */
.loc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 48px;
  align-items: center;
}

.loc-hero h1 {
  max-width: 18ch;
  text-wrap: balance;
}

.loc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.info-hero .loc-trust {
  margin-top: 24px;
  color: var(--ink);
  font-size: 16px;
}

.loc-hero__photo {
  margin: 0;
}

.loc-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  object-fit: cover;
}

/* /calgary: the storefront crop is 320 x 400 at source, shown at its own size, never upscaled. */
.loc-hero__photo--store {
  justify-self: end;
  width: 100%;
  max-width: 320px;
}

.loc-hero__photo--store img {
  aspect-ratio: 4 / 5;
}

/* Hours line, then a row of two 44px links: Call and Get directions. */
.info-hero .loc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.loc-hero__photo--tall img {
  aspect-ratio: 4 / 5;
  object-position: 50% 30%;
}

/* Text links: teal, underlined, 44px tall. */
.loc-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease-out;
}

.loc-link:hover {
  color: var(--red-dark, #014f4a);
}

.loc-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* What you can do here: one card per job, each ending in its one link. */
.loc-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.loc-cards .qa {
  display: flex;
  flex-direction: column;
}

.loc-cards .qa p {
  flex: 1 0 auto;
}

.loc-cards .loc-link {
  margin-top: 16px;
}

/* Two columns: copy (and an optional photo) beside the facts or the map. */
.loc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.loc-split p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.loc-split p + p {
  margin-top: 16px;
}

.loc-split strong {
  color: var(--ink);
}

.loc-photo {
  margin: 0;
}

.loc-split > .loc-photo {
  max-width: 480px;
}

.loc-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.loc-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Visit block: address, hours and contact as a definition list, then directions. */
.loc-facts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.loc-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.loc-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.85;
  text-transform: uppercase;
}

.loc-facts dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.loc-facts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -12px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.loc-facts--spaced {
  margin-top: 24px;
}

.loc-visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}

.loc-map {
  margin: 0;
  border-radius: var(--radius);
  background: #eef3f2; /* tint while the map loads, not an empty white box */
}

/* Visit block on /calgary: facts full width, then photos and map in two equal columns. */
.loc-facts--wide {
  max-width: 800px;
  margin-top: 32px;
}

.loc-split--even {
  align-items: stretch;
}

.loc-split--even .loc-map iframe {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
}

.loc-photo--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.loc-photo--pair img {
  aspect-ratio: 9 / 16;
  max-width: 320px;
}

.loc-photo--pair figcaption {
  grid-column: 1 / -1;
  margin-top: 0;
}

.loc-map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.loc-steps-link {
  margin-top: 24px;
}

/* /canmore #visit (2026-11-20): three 3D renderings of the planned Kästle National Demo
   Centre. The interior leads at two thirds width; storefront and boot wall stack beside it.
   Every image keeps its own "3D rendering" caption. */
.loc-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 48px;
}

.loc-gallery__lead {
  grid-row: span 2;
}

#visit .eyebrow + h2 {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .loc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .loc-hero,
  .loc-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .loc-hero__photo,
  .loc-split .loc-photo {
    max-width: 560px;
  }

  .loc-hero__photo--store {
    justify-self: start;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .loc-cards,
  .loc-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .loc-gallery__lead {
    grid-row: auto;
  }

  .loc-hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .loc-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loc-link {
    transition: none;
  }
}
