/* =========================================================
   MONTAGE: LAYOUT
   Split from the child theme style.css for maintainability.
   ========================================================= */

/* Montage Theatre Arts - Elementor footer skeleton
 * Add this to the child theme's style.css after importing the template.
 */

.e-5c482e9a-3ecdca4 {
  --montage-footer-bg: #c7def7;
  --montage-footer-text: #090909;
  --montage-footer-accent: #1088f7;
  --montage-footer-content-width: 1800px;
  background: var(--montage-footer-bg);
  color: var(--montage-footer-text);
  padding: clamp(2rem, 3.5vw, 4.5rem) clamp(1.25rem, 2.5vw, 3rem) 2rem;
}

.e-5c482e9a-3ecdca4,
.e-5c482e9a-3ecdca4 a {
  color: var(--montage-footer-text);
}

.e-5c482e9a-3ecdca4 a:focus-visible {
  outline: 3px solid var(--montage-footer-accent);
  outline-offset: 4px;
}

.e-d7f0a101-91bc2d0,
.e-d7f0a102-92bc2d1 {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--montage-footer-content-width);
  width: 100%;
}

.e-d7f0a101-91bc2d0 {
  display: grid !important;
  grid-template-columns: minmax(22rem, 1.15fr) minmax(18rem, 0.9fr) minmax(16rem, 0.75fr);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: start;
}

.e-c01a0001-10fc901,
.e-c02a0002-20fc902,
.e-c03a0003-30fc903 {
  min-width: 0;
}

.montage-footer__heading .elementor-heading-title {
  color: var(--montage-footer-text);
  font-size: clamp(1.35rem, 1.6vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.montage-footer__subheading {
  margin-top: clamp(1.75rem, 3vw, 3rem);
}

.montage-footer__contact-links p,
.montage-footer__policy-links p {
  margin: 0 0 1.25rem;
}

.montage-footer__contact-links a,
.montage-footer__policy-links a,
.montage-footer__locations strong {
  font-size: clamp(1.1rem, 1.45vw, 1.65rem);
  line-height: 1.35;
  text-decoration: none;
}

.montage-footer__contact-links a:hover,
.montage-footer__policy-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.montage-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.montage-footer__social-links a {
  font-weight: 700;
}

.montage-footer__location {
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.montage-footer__location p {
  margin: 0;
}

.montage-footer__newsletter-heading {
  text-align: center;
}

.montage-footer__newsletter-button .elementor-button {
  background: var(--montage-footer-accent);
  border-radius: 999px;
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.4rem);
  font-weight: 700;
  padding: 0.8em 2em;
  width: 100%;
}

.montage-footer__newsletter-button .elementor-button:hover,
.montage-footer__newsletter-button .elementor-button:focus-visible {
  filter: brightness(0.9);
}

.e-d7f0a102-92bc2d1 {
  display: grid !important;
  grid-template-columns: minmax(12rem, 1fr) minmax(30rem, 2fr) minmax(12rem, 1fr);
  gap: 2rem;
  align-items: end;
  margin-top: clamp(4rem, 9vw, 9rem);
}

.montage-footer__legal-copy {
  font-size: clamp(0.78rem, 1vw, 1rem);
  line-height: 1.4;
  text-align: center;
}

.montage-footer__legal-copy p,
.montage-footer__partner-logos p {
  margin: 0;
}

.montage-footer__partner-logos {
  text-align: right;
}

.montage-footer__logo-placeholder {
  border: 1px dashed currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.5rem;
  margin-left: 0.5rem;
  font-size: 0.7rem;
}

@media (max-width: 1024px) {
  .e-d7f0a101-91bc2d0 {
    grid-template-columns: minmax(18rem, 1fr) minmax(16rem, 1fr);
    gap: 3rem;
  }

  .e-c02a0002-20fc902 {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 34rem;
    width: 100%;
  }

  .e-c01a0001-10fc901,
  .e-c03a0003-30fc903 {
    grid-row: 2;
  }

  .e-d7f0a102-92bc2d1 {
    grid-template-columns: 1fr auto;
  }

  .e-b1010001-40fc904 {
    display: none;
  }

  .montage-footer__legal-copy {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .e-d7f0a101-91bc2d0,
  .e-d7f0a102-92bc2d1 {
    display: flex !important;
    flex-direction: column;
    gap: 2.25rem;
  }

  .e-c02a0002-20fc902 {
    order: -1;
  }

  .montage-footer__newsletter-heading,
  .montage-footer__legal-copy,
  .montage-footer__partner-logos {
    text-align: left;
  }

  .e-d7f0a102-92bc2d1 {
    align-items: flex-start;
    margin-top: 3rem;
  }

  .montage-footer__logo-placeholder {
    margin: 0.5rem 0.5rem 0 0;
  }
}

/* Import-safe responsive rules.
 * Elementor regenerates Atomic local-style IDs when a template is imported.
 * These selectors identify the rows by their stable widget classes instead.
 */
@media (max-width: 1024px) {
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> [data-element_type="e-flexbox"] > .montage-footer__contact-links):has(> [data-element_type="e-flexbox"] > .montage-footer__newsletter-button):has(> [data-element_type="e-flexbox"] > .montage-footer__policy-links) {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 3rem !important;
  }

  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__newsletter-button) {
    flex: 0 0 100% !important;
    order: -1;
    max-width: 34rem;
  }

  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__contact-links),
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__policy-links) {
    flex: 1 1 18rem !important;
  }
}

@media (max-width: 767px) {
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> [data-element_type="e-flexbox"] > .montage-footer__contact-links):has(> [data-element_type="e-flexbox"] > .montage-footer__newsletter-button):has(> [data-element_type="e-flexbox"] > .montage-footer__policy-links),
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> [data-element_type="e-flexbox"] > .montage-footer__legal-copy):has(> [data-element_type="e-flexbox"] > .montage-footer__partner-logos) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 2.25rem !important;
  }

  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__contact-links),
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__newsletter-button),
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__policy-links),
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__legal-copy),
  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__partner-logos) {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: 100% !important;
  }

  .elementor-location-footer [data-element_type="e-flexbox"]:has(> .montage-footer__newsletter-button) {
    order: -1;
  }

  .elementor-location-footer [data-element_type="e-flexbox"]:empty {
    display: none !important;
  }
}

/* COUNTER ANIMATED TITLE OVERRIDE TO ENSURE CENTRE */

.elementor-counter-title {
    text-align: center;
}