/* Matt the Thresher v1.5.5 - unified shared shell and V11 homepage.
 * This stylesheet only runs on the static homepage. It does not change
 * approved venue pages, menus, forms or other shared theme templates.
 */
body.home {
  --mtt-shared-header-height: 94px;
}
body.home #mtt-approved-header.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}
body.home footer.site-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.home .mtt-home-content,
body.home .mtt-home-content > main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home #main-content.mtt-home-content {
  display: block;
}
body.home .mtt-home-content > p:empty,
body.home .mtt-home-content > p:has(> br:only-child),
body.home .mtt-home-content > br {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
}
/* A backup safeguard only. Legacy header/footer are removed by PHP before
 * render; they must never reappear if old CSS is restored. */
body.home .mtt-home-content header.header#header,
body.home .mtt-home-content footer.section-dark,
body.home .mtt-home-content .drawer-wrap#drawerWrap,
body.home .mtt-home-content .mobile-menu#mobileMenu {
  display: none !important;
}
/* The prototype's fixed transparent header overlaid a 100svh hero. Now the
 * actual approved header is in normal document flow, so use the remaining
 * viewport height. The scroll cue stays inside the first visible screen. */
body.home .mtt-home-content #mapJourney,
body.home .mtt-home-content #mapJourney > .hero {
  margin: 0 !important;
  padding: 0 !important;
}
body.home .mtt-home-content #mapJourney > .hero {
  position: sticky !important;
  top: var(--mtt-shared-header-height) !important;
  height: calc(100svh - var(--mtt-shared-header-height)) !important;
  min-height: 0 !important;
  max-height: none !important;
}
body.home .mtt-home-content #mapJourney .map-scroll-cue {
  bottom: 26px !important;
  z-index: 6;
  visibility: visible;
}
body.home .mtt-home-content #locations {
  scroll-margin-top: calc(var(--mtt-shared-header-height) + 12px);
}
/* Avoid the prototype's base .drawer-close style overriding the real X. */
body.mtt-site.home #drawer.mobile-drawer #closeDrawer.drawer-close {
  display: grid !important;
  place-items: center !important;
  width: 43px !important;
  height: 43px !important;
  border: 1px solid #60766a !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #f4ecde !important;
  -webkit-text-fill-color: #f4ecde !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.mtt-site.home #drawer.mobile-drawer #closeDrawer.drawer-close svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}
/* The original V11 map CSS uses .container/.brand/.nav-link. Keep its
 * homepage styles from moving or concealing the approved shared header. */
body.mtt-site.home #mtt-approved-header .header-inner,
body.mtt-site.home #mtt-approved-header .mega-inner {
  height: auto;
}
body.mtt-site.home #mtt-approved-header .header-inner {
  height: 100%;
}
body.mtt-site.home #mtt-approved-header .brand {
  text-align: left !important;
  display: flex !important;
  align-items: flex-start !important;
  color: #f4ecde !important;
}
body.mtt-site.home #mtt-approved-header .brand .brand-main {
  color: #f4ecde !important;
}
body.mtt-site.home #mtt-approved-header .desktop-nav .nav-link {
  color: #e9eee8 !important;
  opacity: 1 !important;
}
/* v1.5.4 - homepage hero finish. Keep the map/photo experience independent
 * of the approved navigation and leave all restaurant pages untouched. */
/* The Ireland curtain remains bright while the map is on screen; once the
 * animated reveal reaches the photograph, a layered shade gives white copy
 * readable contrast over glasses, tableware and the pale serving plate. */
body.home .mtt-home-content #mapJourney > .hero::after {
  background: linear-gradient(90deg,
      rgba(5, 18, 12, .67) 0%,
      rgba(5, 18, 12, .48) 48%,
      rgba(5, 18, 12, .30) 100%),
    linear-gradient(0deg,
      rgba(3, 14, 9, .65) 0%,
      rgba(3, 14, 9, .13) 50%,
      rgba(3, 14, 9, .25) 100%);
  opacity: 0;
  transition: opacity .42s ease;
  pointer-events: none;
  z-index: 1;
}
body.home .mtt-home-content #mapJourney.is-photo-revealed > .hero::after {
  opacity: 1;
}
/* Improve the small labels against the final photo. */
body.home .mtt-home-content #mapJourney .hero-kicker {
  opacity: .98;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
body.home .mtt-home-content #mapJourney .hero-meta-inner {
  color: rgba(255,255,255,.93);
  text-shadow: 0 1px 7px rgba(0,0,0,.25);
}
/* On phone screens the legacy layout put .hero-meta AFTER a 100%-height
 * .hero-inner, then clipped it with overflow:hidden. The hero remains sticky
 * for the Ireland animation; reserve room INSIDE it for bottom metadata. */
@media (max-width: 720px) {
  body.home .mtt-home-content #mapJourney > .hero .hero-inner {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: clamp(27px, 4.2svh, 48px) 0 96px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-kicker {
    margin-bottom: 14px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero h1 {
    font-size: clamp(62px, 17vw, 83px) !important;
    line-height: .85 !important;
  }
  body.home .mtt-home-content #mapJourney > .hero p {
    font-size: clamp(18px, 5vw, 21px) !important;
    line-height: 1.3 !important;
    margin-top: 13px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-actions {
    margin-top: 19px !important;
    gap: 10px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-actions .btn,
  body.home .mtt-home-content #mapJourney > .hero .hero-actions .btn-ghost {
    height: 46px !important;
    min-height: 46px !important;
    width: min(245px, 100%) !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-meta {
    position: absolute !important;
    inset: auto 0 22px !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-meta-inner {
    width: var(--container) !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 8px !important;
    line-height: 1.5 !important;
    letter-spacing: .12em !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-locations {
    column-gap: 14px !important;
    row-gap: 4px !important;
  }
}
/* Short screens get a more compact layout to keep both the booking CTA and
 * the location line away from the lower edge of the photo. */
@media (max-width: 720px) and (max-height: 720px) {
  body.home .mtt-home-content #mapJourney > .hero .hero-inner {
    padding-top: 17px !important;
    padding-bottom: 82px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero h1 {
    font-size: clamp(53px, 15.5vw, 70px) !important;
  }
  body.home .mtt-home-content #mapJourney > .hero p {
    font-size: 18px !important;
    line-height: 1.23 !important;
    margin-top: 10px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-actions {
    margin-top: 14px !important;
    gap: 8px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-actions .btn,
  body.home .mtt-home-content #mapJourney > .hero .hero-actions .btn-ghost {
    height: 41px !important;
    min-height: 41px !important;
  }
  body.home .mtt-home-content #mapJourney > .hero .hero-meta {
    bottom: 13px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home .mtt-home-content #mapJourney > .hero::after {
    opacity: 1 !important;
    transition: none !important;
  }
}
/* Ensure modern off-canvas menu sits above the map & its SVG curtain. */
body.mtt-site.home #drawer.mobile-drawer { z-index: 1200 !important; }
body.mtt-site.home #backdrop.mobile-backdrop { z-index: 1190 !important; }
@media (max-width: 1060px) {
  body.home { --mtt-shared-header-height: 84px; }
}
@media (max-width: 720px) {
  body.home { --mtt-shared-header-height: 80px; }
  body.home .mtt-home-content #mapJourney .map-scroll-cue {
    bottom: 19px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home .mtt-home-content #mapJourney {
    height: calc(100svh - var(--mtt-shared-header-height)) !important;
  }
}

/* v1.5.5 - mobile-only Ireland map opening typography.
 * Reconciles the approved phone preview with the V11 WordPress homepage.
 * Scoped to the OPENING map copy, never the full-photo hero or desktop.
 * Higher specificity and !important prevent legacy inline homepage styles,
 * WordPress formatting and browser text inflation from enlarging this copy. */
@media (max-width: 700px) {
  body.home .mtt-home-content #mapJourney .map-opening {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  body.home .mtt-home-content #mapJourney .map-opening-copy {
    width: 270px !important;
    max-width: 78vw !important;
  }
  body.home .mtt-home-content #mapJourney .map-opening small {
    font-size: 8px !important;
    line-height: 1.45 !important;
    letter-spacing: .16em !important;
  }
  body.home .mtt-home-content #mapJourney .map-opening h2 {
    font-size: 35px !important;
    line-height: .94 !important;
    margin: 15px 0 14px !important;
  }
  body.home .mtt-home-content #mapJourney .map-opening p {
    width: auto !important;
    max-width: 260px !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }
}
