/* ==========================================================================
   Simpi Weddings — styles for the parts that used to be WordPress plugins.
   Everything else is styled by the original Elementor/Astra CSS files.
   ========================================================================== */

/* ---------- Sticky header (Elementor Pro "sticky: top") ---------- */
.elementor-3812 .sw-sticky-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100% !important;
  margin: 0 !important;
}
.admin-bar .elementor-3812 .sw-sticky-header { top: 0; }

/* ---------- Hero slider (replaces Slider Revolution) ----------
   Sizes follow the old slider's 4 responsive "grids":
     width >= 1024px : 1240 x 900 grid   |  778-1023px : 1024 x 950 grid
     480-777px       : 778 x 560 grid    |  < 480px    : 480 x 400 grid
   Everything scales with the screen width (never above 100%), like Slider Revolution.
   --u = 1px of the grid on this screen (= min(1px, screen width / grid width)).                                     */
.sw-hero {
  --k: 0.0806452vw;  --gh: 900;
  --fs: 80; --lh: 35; --ls: 5; --cy: -60;                   /* caption  */
  --bfs: 17; --blh: 40; --bpy: 15; --bpx: 35; --by: 180; --bls: 1; /* button */
  --u: min(1px, var(--k));
  position: relative;
  width: 100%;
  height: calc(var(--gh) * var(--u));
  margin-top: -20px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
@media (max-width: 1023px) { .sw-hero { --k: 0.0976563vw; --gh: 950; --fs: 70; --lh: 30; } }
@media (max-width: 777px)  { .sw-hero { --k: 0.1285347vw; --gh: 560; } }
@media (max-width: 479px)  { .sw-hero { --k: 0.2083333vw; --gh: 400; --fs: 35; --lh: 16; --ls: 2; --cy: -10; --bfs: 15; --bpy: 20; --bpx: 25; --by: 110; --bls: 0; } }

.sw-hero__slide { position: absolute; inset: 0; visibility: hidden; z-index: 1; }
.sw-hero__slide.is-current, .sw-hero__slide.is-leaving { visibility: visible; }
.sw-hero__slide.is-current { z-index: 3; }
.sw-hero__slide.is-leaving { z-index: 2; }
.sw-hero__bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.sw-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }

/* "Sliding overlay" transition: new slide slides in from the right */
.sw-hero__slide.is-entering { animation: sw-slide-in 2000ms cubic-bezier(0.45, 0, 0.55, 1) both; }
.sw-hero__slide.is-leaving .sw-hero__bg { animation: sw-slide-out 2000ms cubic-bezier(0.45, 0, 0.55, 1) both; }
.sw-hero__slide.is-first .sw-hero__bg, .sw-hero__slide.is-first .sw-hero__overlay { animation: sw-fade 300ms ease both; }
@keyframes sw-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes sw-slide-out { from { transform: translateX(0); filter: brightness(1); } to { transform: translateX(-30%); filter: brightness(0.4); } }
@keyframes sw-fade { from { opacity: 0; } to { opacity: 1; } }

.sw-hero__caption {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + var(--cy) * var(--u)));
  font-family: butler, serif;
  font-weight: 400;
  font-size: calc(var(--fs) * var(--u));
  letter-spacing: calc(var(--ls) * var(--u));
  /* the old slider put an empty line between the two lines of text */
  line-height: calc(var(--lh) * 2 * var(--u));
  text-align: center;
  white-space: nowrap;
  color: #fff;
  z-index: 5;
}
.sw-hero__line { display: block; }
.sw-hero__char { display: inline-block; opacity: 0; transform: translateX(calc(50 * var(--u))); animation: sw-char 500ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes sw-char { to { opacity: 1; transform: none; } }
.sw-hero__caption.is-still .sw-hero__char { animation: none; opacity: 1; transform: none; }

.sw-hero__btn {
  position: absolute; left: 50%; top: 50%; z-index: 10;
  transform: translate(-50%, calc(-50% + calc(var(--by) * var(--u))));
  font-family: Montserrat, sans-serif; font-weight: 500;
  font-size: calc(var(--bfs) * var(--u));
  line-height: calc(var(--blh) * var(--u));
  letter-spacing: calc(var(--bls) * var(--u));
  text-transform: uppercase;
  padding: calc(var(--bpy) * var(--u)) calc(var(--bpx) * var(--u));
  border: 1px solid #fff;
  color: #fff !important;
  background: transparent;
  white-space: nowrap;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
  animation: sw-fade 300ms ease both;
}
.sw-hero__btn:hover, .sw-hero__btn:focus { background: #fff; color: #000 !important; border-color: transparent; }

/* ---------- Album masonry gallery ---------- */
.sw-masonry { position: relative; width: 100%; }
.sw-masonry .e-gallery-item { display: block; overflow: hidden; }
.sw-masonry .e-gallery-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 350ms ease, transform 0.8s;
}
.sw-masonry .e-gallery-image.e-gallery-image-loaded { opacity: 1; }
.sw-masonry .elementor-gallery-item__overlay { position: absolute; inset: 0; transition: background-color 0.8s, opacity 0.8s; }
.sw-masonry.sw-hover-grow .e-gallery-item:hover .e-gallery-image { transform: scale(1.1); }

/* ---------- Lightbox (replaces Elementor lightbox) ---------- */
.sw-noscroll, .sw-noscroll body { overflow: hidden !important; }
.sw-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, 0.8);
  display: flex; align-items: center; justify-content: center;
  font-family: Montserrat, sans-serif; color: #fff;
  user-select: none;
}
.sw-lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 50px 60px; overflow: hidden; }
.sw-lightbox__img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; animation: sw-zoomin 0.35s ease both; cursor: zoom-in; box-shadow: 0 0 30px rgba(0,0,0,.3); transition: transform .3s; }
.sw-lightbox__img.is-zoomed { transform: scale(2); cursor: zoom-out; }
@keyframes sw-zoomin { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
.sw-lightbox__counter { position: absolute; top: 0; left: 0; padding: 15px 20px; font-size: 11px; color: #9a9a9a; z-index: 2; }
.sw-lightbox__tools { position: absolute; top: 0; right: 0; display: flex; gap: 0; padding: 10px 10px; z-index: 2; }
.sw-lightbox button { background: none; border: 0; padding: 10px; cursor: pointer; line-height: 0; }
.sw-lightbox button:hover { background: none; }
.sw-lightbox svg { width: 19px; height: 19px; fill: #9a9a9a; transition: fill .3s; }
.sw-lightbox button:hover svg { fill: #fff; }
.sw-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.sw-lightbox__nav svg { width: 25px; height: 25px; }
.sw-lightbox__nav--prev { left: 10px; }
.sw-lightbox__nav--next { right: 10px; }

/* ---------- Booking form: "Select Services" dropdown ----------
   Values measured from the select2 dropdown on the live site; a real <select>
   sits invisibly on top so it works with touch, keyboard and screen readers. */
.sw-select { position: relative; display: block !important; width: 100%; height: 39px; }
.sw-select .select2-selection--single { display: flex; align-items: center; position: relative; height: 39px; padding: 0; border: 0; border-bottom: 1px solid #777771; border-radius: 0; background: transparent; cursor: pointer; }
.sw-select .select2-selection__rendered { display: block; flex: 1 1 0%; height: 38px; padding: 8px 5px 8px 0; font-family: Montserrat; font-size: 16px; font-weight: 400; line-height: 22px; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-select .select2-selection__arrow { display: flex; flex: 0 0 auto; align-items: center; width: 12px; height: 38px; color: #777771; }
.sw-select .forminator-icon-chevron-down { display: block; width: 12px; height: 12px; font-size: 12px; }
.sw-select__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.forminator-error-message { display: block; color: #e04562; font-size: 12px; margin-top: 4px; }
.forminator-response-message.forminator-show { display: block !important; padding: 12px 16px; margin-bottom: 20px; }
.forminator-response-message.forminator-success { background: #d7f5e5; color: #333; }
.forminator-response-message.forminator-error { background: #fbe4e8; color: #333; }

/* ---------- Not found ---------- */
.sw-404 { min-height: 60vh; padding: 160px 20px 80px; text-align: center; font-family: Montserrat, sans-serif; }
.sw-404 h1 { font-family: Megalky, serif; font-size: 48px; color: #212121; }
