/* CANAL PASS — site footer.
   Self-contained: the theme supplies nothing here but the font. The
   layout follows the four-column reference footer (identity / links /
   latest updates / contact over a legal bar), in the site's own navy and
   gold rather than the reference's cyan. */

.cpf-footer {
  --cpf-bg: #0b1b2b;
  --cpf-accent: #c9a86a;
  --cpf-text: #c8d3de;
  --cpf-muted: #8ea0b2;
  --cpf-heading: #ffffff;
  --cpf-hairline: rgba(255, 255, 255, .09);

  background: var(--cpf-bg);
  color: var(--cpf-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  /* Jumped to via #contact, the footer would otherwise start underneath
     the sticky header. */
  scroll-margin-top: 96px;
}
.cpf-footer *,
.cpf-footer *::before,
.cpf-footer *::after { box-sizing: border-box; }

.cpf-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(16px, 3vw, 32px) 0;
}

.cpf-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.5fr 1.4fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

/* ---- Column 1: identity ---- */
.cpf-logo { display: inline-block; }
.cpf-logo-img {
  width: 250px;
  max-width: 100%;
  height: auto;
  /* The logo artwork is navy on transparent, which would disappear on a
     navy footer. Flattening it to white keeps one asset in the library
     instead of a second, near-identical file to maintain. */
  filter: brightness(0) invert(1);
  opacity: .92;
}
.cpf-wordmark {
  margin: 0;
  color: var(--cpf-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.cpf-tagline {
  margin: 18px 0 0;
  color: var(--cpf-muted);
  font-size: 14.5px;
  max-width: 34ch;
}

.cpf-social { display: flex; gap: 10px; margin-top: 22px; }
.cpf-social-link {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--cpf-muted);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.cpf-social-link:hover,
.cpf-social-link:focus-visible {
  background: var(--cpf-accent);
  color: var(--cpf-bg);
}
.cpf-social-link .cpf-icon { width: 19px; height: 19px; }

/* ---- Headings ---- */
.cpf-heading {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 12px;
  /* Blocksy styles headings by element, so inheritance alone loses. */
  font-family: inherit;
  color: var(--cpf-heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}
.cpf-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 2px;
  background: var(--cpf-accent);
}

.cpf-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- Column 2: quick links ---- */
.cpf-list { list-style: none; margin: 0; padding: 0; }
.cpf-list li + li { margin-top: 6px; }
.cpf-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cpf-muted);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.cpf-list a:hover,
.cpf-list a:focus-visible {
  color: var(--cpf-accent);
  transform: translateX(3px);
}
.cpf-list .cpf-icon--chevron { width: 14px; height: 14px; opacity: .7; }

/* ---- Column 3: latest updates ---- */
.cpf-updates { list-style: none; margin: 0; padding: 0; }
.cpf-updates li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cpf-hairline);
}
.cpf-updates a {
  color: var(--cpf-text);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.55;
  display: block;
  transition: color .2s ease;
}
.cpf-updates a:hover,
.cpf-updates a:focus-visible { color: var(--cpf-accent); }
.cpf-update-date {
  display: block;
  margin-top: 4px;
  color: var(--cpf-muted);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---- Column 4: contact ---- */
.cpf-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cpf-contact-row + .cpf-contact-row { margin-top: 16px; }
.cpf-contact-row .cpf-icon { margin-top: 5px; color: var(--cpf-accent); }
.cpf-contact-row p { margin: 0; }

.cpf-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
}
.cpf-phones p + p { margin-top: 2px; }
.cpf-phones strong { color: var(--cpf-heading); font-weight: 600; }

.cpf-footer a[href^="tel:"],
.cpf-footer a[href^="mailto:"] {
  color: var(--cpf-text);
  text-decoration: none;
  transition: color .2s ease;
}
.cpf-footer a[href^="tel:"]:hover,
.cpf-footer a[href^="mailto:"]:hover { color: var(--cpf-accent); }

/* ---- Email: click copies, so it must read as an action ---- */
.cpf-email {
  position: relative;
  border-bottom: 1px dashed rgba(201, 168, 106, .5);
  cursor: pointer;
}
.cpf-email.is-copied { color: var(--cpf-accent); }
/* A quiet hint on hover, so the click is not a surprise. */
.cpf-email::after {
  content: "Click to copy";
  position: absolute;
  left: 0; bottom: calc(100% + 8px);
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  color: #0b1b2b;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.cpf-email:hover::after,
.cpf-email:focus-visible::after { opacity: 1; }

/* ---- Copy confirmation ---- */
.cpf-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9999;
  transform: translate(-50%, 12px);
  max-width: min(92vw, 420px);
  padding: 13px 20px;
  border-radius: 8px;
  background: #0b1b2b;
  border: 1px solid rgba(201, 168, 106, .45);
  color: #f2f6fa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 34px rgba(11, 27, 43, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.cpf-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .cpf-toast { transition: opacity .22s ease, visibility .22s; transform: translate(-50%, 0); }
}

/* ---- Legal bar ---- */
.cpf-bar {
  border-top: 1px solid var(--cpf-hairline);
  padding: 20px 0 24px;
  text-align: center;
  color: var(--cpf-muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.cpf-bar p { margin: 0; }
.cpf-registration span + span { margin-left: 18px; }
.cpf-credit { margin-left: 6px; }
.cpf-credit strong { color: var(--cpf-text); font-weight: 600; }
.cpf-credit a { color: var(--cpf-text); text-decoration: none; }
.cpf-credit a:hover { color: var(--cpf-accent); }
.cpf-legal-links { margin-top: 6px; }
.cpf-legal-links a {
  color: var(--cpf-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.cpf-legal-links a + a { margin-left: 18px; }
.cpf-legal-links a:hover,
.cpf-legal-links a:focus-visible {
  color: var(--cpf-accent);
  border-bottom-color: currentColor;
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .cpf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cpf-grid { grid-template-columns: 1fr; gap: 34px; }
  .cpf-tagline { max-width: none; }
  .cpf-registration span { display: block; margin-left: 0; }
  .cpf-registration span + span { margin-left: 0; }
}

/* A printed page gains nothing from navigation or social links. */
@media print {
  .cpf-social,
  .cpf-col--links,
  .cpf-col--updates { display: none; }
  .cpf-footer { background: none; color: #000; }
}
