﻿/* image Block Styles */

/* Edge-to-edge image block overrides */
.block-section.image-block--edge {
  padding-top: 0;
  padding-bottom: 0;
}

.image-block--edge .image-block__edge-shell {
  overflow: visible !important;
}

.image-block--edge .image-block__edge-shell img {
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.image-block__edge-shell {
  position: relative;
}

@supports (width: 1cqw) {
  .image-block__edge-shell {
    container-type: inline-size;
  }
}

.image-block__edge-overlay {
  position: absolute;
  inset: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.image-block__edge-content {
  width: 100%;
  min-height: 100%;
  color: #ffffff;
}

.image-block__edge-copy {
  margin-top: 0;
  max-width: min(760px, calc(100% - clamp(3rem, 10vw, 8rem)));
  text-align: center;
  pointer-events: auto;
}

.image-block__edge-content h4,
.image-block__edge-content h5 {
  color: inherit;
  font-size: 5vw;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.image-block__edge-content > div:not(.image-block__actions) {
  color: inherit;
  font-size: 2vw;
  line-height: 1.6;
  max-width: 640px;
}

@supports (font-size: 1cqw) {
  .image-block__edge-content h4,
  .image-block__edge-content h5 {
    font-size: 5cqw;
  }
  .image-block__edge-content > div:not(.image-block__actions) {
    font-size: 2cqw;
  }
}

.image-block__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.image-block__edge-content .image-block__actions,
.image-block__overlay-content .image-block__actions {
  margin-top: 0;
  pointer-events: none;
}

.image-block__edge-content .image-block__actions .image-block__btn,
.image-block__overlay-content .image-block__actions .image-block__btn {
  pointer-events: auto;
}

.image-block__overlay-content {
  width: 100%;
  height: 100%;
  padding: 0;
  pointer-events: none;
}

.image-block__overlay-content .image-block__copy {
  max-width: min(760px, calc(100% - 3rem));
  pointer-events: auto;
}

.image-block__btn {
  min-width: 180px;
}

.image-gallery-block {
  background: #0f1115;
  color: #ffffff;
}

.block-section.image-gallery-block--edge {
  padding-top: 0;
  padding-bottom: 0;
}

.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.image-gallery-tile {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  width: 100%;
  background: #090b0f;
  overflow: hidden;
  cursor: pointer;
}

.image-gallery-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.05), rgba(4, 6, 10, 0.32));
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-gallery-tile:hover::after,
.image-gallery-tile:focus-visible::after {
  opacity: 1;
}

.image-gallery-tile:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: -3px;
}

.image-gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.image-gallery-tile:hover img,
.image-gallery-tile:focus-visible img {
  transform: scale(1.04);
}

.image-gallery-tile.is-hidden {
  display: none;
}

.image-gallery-footer {
  display: flex;
  justify-content: center;
  padding: 1.9rem 1rem 2.5rem;
  background: #0f1115;
}

.image-gallery-load-more {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #f5f2ec;
  color: #1c2230;
  padding: 0.9rem 2.4rem;
  min-width: 180px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.image-gallery-load-more:hover,
.image-gallery-load-more:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
}

.image-gallery-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

#page-gallery-lightbox,
#global-gallery-lightbox,
.gallery-lightbox-modal,
.page-popup-modal {
  z-index: 4000 !important;
}

.gallery-lightbox-slider {
  will-change: transform;
  touch-action: pan-y;
}

body.modal-open .modal-backdrop.show {
  z-index: 3990 !important;
}

#page-gallery-lightbox .btn-close,
#global-gallery-lightbox .btn-close,
.gallery-lightbox-modal .btn-close,
.page-popup-modal .popup-close-btn {
  z-index: 4010;
}

#page-gallery-lightbox .modal-dialog,
#global-gallery-lightbox .modal-dialog,
.gallery-lightbox-modal .modal-dialog,
.page-popup-modal .modal-dialog {
  width: min(96vw, 1400px);
  max-width: min(96vw, 1400px);
  margin: 1rem auto;
}

#page-gallery-lightbox .modal-content,
#global-gallery-lightbox .modal-content,
.gallery-lightbox-modal .modal-content,
.page-popup-modal .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

#page-gallery-lightbox .gallery-lightbox-body,
#global-gallery-lightbox .gallery-lightbox-body,
.gallery-lightbox-modal .gallery-lightbox-body,
.page-popup-modal .modal-body {
  min-height: min(60vh, 720px);
  max-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#page-gallery-lightbox .gallery-lightbox-image,
#global-gallery-lightbox .gallery-lightbox-image,
.gallery-lightbox-modal .gallery-lightbox-image,
.page-popup-modal .popup-modal-image,
.page-popup-modal video,
.page-popup-modal iframe {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

#page-gallery-lightbox .modal-dialog,
#global-gallery-lightbox .modal-dialog,
.gallery-lightbox-modal .modal-dialog,
.page-popup-modal--image .modal-dialog {
  width: fit-content;
  max-width: calc(100vw - 2rem);
}

#page-gallery-lightbox .modal-content,
#global-gallery-lightbox .modal-content,
.gallery-lightbox-modal .modal-content,
.page-popup-modal--image .modal-content {
  background: transparent !important;
  box-shadow: none !important;
}

#page-gallery-lightbox .gallery-lightbox-body,
#global-gallery-lightbox .gallery-lightbox-body,
.gallery-lightbox-modal .gallery-lightbox-body,
.page-popup-modal--image .modal-body {
  min-height: 0;
  background: transparent;
}

.page-popup-modal--image .popup-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

#page-gallery-lightbox .gallery-lightbox-image,
#global-gallery-lightbox .gallery-lightbox-image,
.gallery-lightbox-modal .gallery-lightbox-image,
.page-popup-modal--image .popup-modal-image {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
}

@media (max-width: 991.98px) {
  .image-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .image-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .image-gallery-load-more {
    min-width: 0;
    width: 100%;
    max-width: 260px;
  }
}

.video-block .ratio,
.video-block__frame {
  border-radius: var(--app-radius);
}

.video-block__frame {
  overflow: hidden;
}

.video-block__frame video,
.video-block__frame iframe {
  border-radius: inherit;
}

.video-block__media {
  position: relative;
}

/* ── Phone Popup (image edge-to-edge button) ────────────────────────────── */
.phone-popup {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.phone-popup__dialog {
  position: relative;
  width: min(92vw, 420px);
  max-height: 80vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid #eef0f2;
}

.phone-popup__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c2230;
}

.phone-popup__close {
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 120ms ease;
}

.phone-popup__close:hover {
  color: #1c2230;
}

.phone-popup__body {
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.phone-popup__item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef0f2;
}

.phone-popup__item:last-child {
  border-bottom: 0;
}

.phone-popup__number {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c2230;
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.phone-popup__number:hover {
  color: #c81f34;
}

.phone-popup__actions {
  display: flex;
  gap: 0.5rem;
}

.phone-popup__action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.phone-popup__action--call {
  background: #e8f5e9;
  color: #2e7d32;
}

.phone-popup__action--call:hover {
  background: #c8e6c9;
  color: #1b5e20;
}

.phone-popup__action--wa {
  background: #e0f2f1;
  color: #00796b;
}

.phone-popup__action--wa:hover {
  background: #b2dfdb;
  color: #004d40;
}

body.phone-popup-open {
  overflow: hidden;
}

.image-block__btn-phone-popup {
  cursor: pointer;
}

@media (max-width: 575.98px) {
  .phone-popup__dialog {
    width: 94vw;
    border-radius: 16px;
  }

  .phone-popup__header {
    padding: 1rem 1.25rem 0.6rem;
  }

  .phone-popup__body {
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .phone-popup__number {
    font-size: 1rem;
  }
}


.video-block__media .ratio {
  overflow: hidden;
}

.video-block__media--overlay .ratio {
  box-shadow: var(--shadow-lg, var(--shadow-md));
}

.video-block__overlay {
  inset: 0;
  display: flex;
  padding: clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
  z-index: 2;
}

.video-block__overlay-content {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
  border-radius: var(--app-radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.4vw, 1rem);
  max-width: min(680px, 92%);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  text-shadow: 0 18px 38px rgba(8, 13, 23, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-block__overlay-content--transparent {
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-block__overlay[data-position="center"] {
  justify-content: center;
  align-items: center;
}

.video-block__overlay[data-position="top-left"] {
  justify-content: flex-start;
  align-items: flex-start;
}

.video-block__overlay[data-position="top-right"] {
  justify-content: flex-end;
  align-items: flex-start;
}

.video-block__overlay[data-position="bottom-left"] {
  justify-content: flex-start;
  align-items: flex-end;
}

.video-block__overlay[data-position="bottom-right"] {
  justify-content: flex-end;
  align-items: flex-end;
}

.video-block__overlay[data-position="center"] .video-block__overlay-content {
  text-align: center;
  align-items: center;
}

.video-block__overlay[data-position="top-left"] .video-block__overlay-content,
.video-block__overlay[data-position="bottom-left"] .video-block__overlay-content {
  text-align: left;
  align-items: flex-start;
}

.video-block__overlay[data-position="top-right"] .video-block__overlay-content,
.video-block__overlay[data-position="bottom-right"] .video-block__overlay-content {
  text-align: right;
  align-items: flex-end;
}

.video-block__text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-block__title {
  letter-spacing: 0.01em;
}

.video-block__description > :last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .video-block__overlay {
    padding: clamp(1rem, 6vw, 1.75rem);
  }
  .video-block__overlay-content {
    padding: clamp(1rem, 5vw, 2rem);
    max-width: 100%;
  }
}

.card-grid-block .card {
  border: 1px solid var(--surface-elevated-border);
  border-radius: var(--app-radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-grid-block .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.card-grid-block .card-grid-card {
  display: flex;
  flex-direction: column;
}

.card-grid-block .card a {
  height: 100%;
}

.card-grid-block .card-grid-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--color-surface-muted);
}

.card-grid-block .card-grid-image-frame {
  width: 100%;
  margin: 0 auto;
}

.card-grid-block .card-grid-image--square {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.card-grid-block .card-grid-image--ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.card-grid-block .card-grid-image--ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.card-grid-block .card-grid-image--ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.card-grid-block .card-grid-overlay-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.card-grid-block .card-grid-caption {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1rem 1.1rem;
}

.card-grid-block .card-grid-caption--side {
  justify-content: center;
  min-height: 100%;
}

.card-grid-block .card-grid-title {
  letter-spacing: 0.01em;
}

.card-grid-block .card-grid-title:not(.text-white) {
  color: var(--color-text);
}

.card-grid-block .card-grid-title > * {
  margin-bottom: 0;
}

.card-grid-block .card-grid-text:not(.text-white):not(.text-white-50) {
  color: var(--color-text-muted);
}

.card-grid-block .card-grid-text > :last-child {
  margin-bottom: 0;
}

.card-grid-block .card-grid-card-side > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* Card grid show all / toggle button */
.card-grid-collapse {
  width: 100%;
}

.card-grid-toggle {
  min-width: 180px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.card-grid-toggle:hover {
  transform: translateY(-2px);
}

.card-grid-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.card-grid-toggle.btn-outline-secondary {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text-muted);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card-grid-toggle.btn-outline-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

@media (max-width: 575.98px) {
  .card-grid-toggle {
    min-width: 0;
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 767.98px) {
  .card-grid-block .card-grid-card-side {
    flex-direction: column;
  }

  .card-grid-block .card-grid-card-side > .col-6 {
    width: 100%;
  }
}

.staff-block .h-100 {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--surface-elevated-border);
  box-shadow: var(--shadow-xs);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.staff-block .h-100:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.accordion-block .accordion {
  background: rgba(255, 255, 255, 0.92);
}

.carousel-block .carousel {
  margin-bottom: 0;
}

/* legacy frame removed */
.spin-block .spin360-shell {
  background: transparent;
}
:root {
  /* Typography */
  --font-sans: 'Avenir LT Pro', 'Avenir', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --theme-font-weight: 500;


/* image Block Styles */

/* ===== Image Block Aspect Ratio ===== */
.block-image--ratio-1x1 { aspect-ratio: 1 / 1; }
.block-image--ratio-4x3 { aspect-ratio: 4 / 3; }
.block-image--ratio-16x9 { aspect-ratio: 16 / 9; }
.block-image--ratio-3x2 { aspect-ratio: 3 / 2; }
.block-image--ratio-2x3 { aspect-ratio: 2 / 3; }
.block-image--ratio-9x16 { aspect-ratio: 9 / 16; }
.block-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

