/* Static-site repair layer for èSTE Studio. Keeps the recovered Astra 4.0.2 theme,
   while making static-only content resilient and responsive. */
:root {
  --este-accent: #be574b;
  --este-accent-dark: #934238;
  --este-ink: #272322;
  --este-paper: #fffaf8;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  display: block;
  border: 0;
}

.wp-block-cover.este-hero {
  min-height: clamp(28rem, 72vh, 46rem);
  isolation: isolate;
}

.este-hero .este-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.este-hero .wp-block-cover__background {
  z-index: 1;
  background: linear-gradient(90deg, rgba(24, 15, 13, .66), rgba(24, 15, 13, .3)) !important;
  opacity: 1 !important;
}

.este-hero .wp-block-cover__inner-container {
  z-index: 2;
  width: min(92%, 72rem);
}

.este-hero-title {
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.wp-block-cover .wp-block-button__link {
  color: #fff !important;
}

.este-static-media {
  margin-block: 2rem;
}

.este-static-media img {
  display: block;
  width: 100%;
  max-height: 40rem;
  object-fit: cover;
  border-radius: .25rem;
}

.este-static-contact {
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(190, 87, 75, .28);
  border-radius: .5rem;
  background: var(--este-paper);
  text-align: center;
}

.este-static-contact h2 {
  margin-top: 0;
}

.este-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.este-actions a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border: 2px solid var(--este-accent);
  border-radius: .25rem;
  background: var(--este-accent);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.este-actions a:hover,
.este-actions a:focus-visible {
  border-color: var(--este-accent-dark);
  background: var(--este-accent-dark);
  color: #fff;
}

.este-location-link {
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid rgba(190, 87, 75, .28);
  border-radius: .5rem;
  background: var(--este-paper);
  text-align: center;
}

.este-location-link a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: .25rem;
  background: var(--este-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.este-footer-details {
  margin-top: .75rem;
  color: inherit;
  text-align: center;
}

.este-footer-details p,
.este-footer-details address {
  margin: .25rem 0;
}

.este-footer-details address {
  font-style: normal;
}

.este-footer-details a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.wp-block-table {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
  width: 100%;
}

.entry-content > .alignwide {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

@media (max-width: 781px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
  }

  .wp-block-media-text.is-stacked-on-mobile {
    display: block;
  }

  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding: 1.5rem 0 0;
  }

  .wp-block-spacer {
    max-height: 3rem;
  }

  .este-hero-title {
    font-size: clamp(2rem, 11vw, 3.25rem);
  }
}

@media (max-width: 480px) {
  .ast-container,
  .site-content .ast-container {
    padding-inline: 1rem;
  }

  .wp-block-cover.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .este-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .este-actions a {
    width: 100%;
  }

  .wp-block-table table {
    min-width: 31rem;
  }
}
