/* ============================================================
   Elementor compensation layer.

   Elementor wraps our content in its own DOM and its default kit loads AFTER
   the theme inside the editor iframe. Every rule here is prefixed with
   `body .elementor` so it sits at (0,3,1): above the kit's (0,3,0) defaults,
   below a client's own per-widget setting at (0,4,0). Never !important - that
   would win against the kit but also silently break the style controls.
   ============================================================ */

/* ---------- containers ---------- */
body .elementor .elementor-section > .elementor-container {
  max-width: 1480px;
  margin-inline: auto;
}
body .elementor .st-divider-row,
body .elementor .st-divider-row > .elementor-container { max-width: none; padding: 0; }
body .elementor .st-divider-row .elementor-widget:not(:last-child) { margin-bottom: 0; }
body .elementor .st-divider-row .elementor-widget-container { line-height: 0; }

/* Elementor gives widgets a 20px bottom margin; our sections manage their own
   rhythm, so only keep it where it reads as a paragraph gap. */
body .elementor .elementor-widget:not(:last-child) { margin-bottom: 0; }
body .elementor .elementor-widget-text-editor:not(:last-child) { margin-bottom: 14px; }

/* ---------- headings: let the wrapper class drive the look ---------- */
body .elementor .elementor-widget-heading .elementor-heading-title {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  margin: 0;
}
body .elementor .elementor-widget-heading.headline,
body .elementor .elementor-widget-heading.headline-md { color: inherit; }
body .elementor .section--char .elementor-widget-heading.headline-md,
body .elementor .section--red .elementor-widget-heading.headline-md { color: var(--st-cream); }

/* eyebrow + script keep their own spacing from site.css */
body .elementor .elementor-widget-heading.eyebrow { margin-bottom: 14px; }
/* the script face has a 0.9 line-height and long descenders, so its glyphs
   overflow the line box - reserve room or the next widget collides with it */
body .elementor .elementor-widget-heading.script { margin-bottom: 30px; }

/* ---------- text ---------- */
body .elementor .elementor-widget-text-editor { color: inherit; }
body .elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body .elementor .elementor-widget-text-editor.body-lg { margin-top: 20px; }
/* A max-width on the widget WRAPPER leaves room in the flex row for the next
   widget to float up beside the paragraph; constrain the container instead. */
body .elementor .elementor-widget-text-editor.body-lg { max-width: none; }
body .elementor .elementor-widget-text-editor.body-lg .elementor-widget-container { max-width: 56ch; }

/* ---------- buttons ---------- */
body .elementor .st-btn { width: auto; margin-bottom: 0; margin-top: 32px; margin-right: 16px; }
body .elementor .st-head-aside .st-btn { margin-top: 0; }
body .elementor .st-btn .elementor-button {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
  padding: 14px 26px;
  border: 2px solid var(--st-char);
  border-radius: 4px;
  background: var(--st-cream);
  color: var(--st-char);
  box-shadow: 5px 5px 0 0 var(--st-char);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
body .elementor .is-red .elementor-button {
  background: var(--st-red);
  color: var(--st-cream);
  box-shadow: 5px 5px 0 0 var(--st-char);
}
body .elementor .is-cream .elementor-button {
  background: var(--st-cream);
  color: var(--st-char);
}
body .elementor .is-outline-dark .elementor-button {
  background: transparent;
  color: var(--st-cream);
  border-color: var(--st-cream);
  box-shadow: 5px 5px 0 0 var(--st-red);
}
body .elementor .st-btn .elementor-button:hover { transform: translate(-1px, -1px); }
body .elementor .st-btn .elementor-button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 0 var(--st-char); }

/* ---------- hero: Elementor renders the video as a section background ---------- */
body .elementor .st-hero { position: relative; overflow: hidden; }
body .elementor .st-hero .elementor-background-video-container { z-index: 0; }
body .elementor .st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(27, 21, 18, 0.90) 0%,
    rgba(27, 21, 18, 0.66) 48%,
    rgba(27, 21, 18, 0.28) 100%);
  pointer-events: none;
}
body .elementor .st-hero > .elementor-container { position: relative; z-index: 2; }
body .elementor .st-hero .elementor-widget-heading.headline .elementor-heading-title { max-width: 14ch; }

/* ---------- two-column splits ---------- */
body .elementor .st-split > .elementor-container { gap: 56px; align-items: center; }
body .elementor .st-split--flip > .elementor-container { flex-direction: row-reverse; }
body .elementor .st-split > .elementor-container > .elementor-column { width: calc(50% - 28px); }

/* ---------- section head (title left, button right) ---------- */
body .elementor .st-head-row > .elementor-container { align-items: flex-end; gap: 24px; }
body .elementor .st-head-aside > .elementor-widget-wrap { justify-content: flex-end; align-items: flex-end; }
body .elementor .st-head-row { margin-bottom: 48px; }

/* ---------- images in the postcard frame ---------- */
body .elementor .st-photo .elementor-widget-container {
  position: relative;
  border: var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: 12px 12px 0 0 var(--st-red);
  overflow: hidden;
  background: var(--st-paper);
}
body .elementor .st-photo--char .elementor-widget-container { box-shadow: 10px 10px 0 0 var(--st-ink); }
body .elementor .st-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body .elementor .st-photo--169 .elementor-widget-container { aspect-ratio: 16 / 9; }
body .elementor .st-photo--43 .elementor-widget-container { aspect-ratio: 4 / 3; }
body .elementor .st-photo--45 .elementor-widget-container { aspect-ratio: 4 / 5; }
body .elementor .st-photo .elementor-widget-container::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 90px;
  height: 22px;
  background: rgba(210, 35, 42, 0.55);
  border: 1px solid rgba(27, 21, 18, 0.25);
  transform: rotate(-3deg);
}

/* ---------- menu lists (icon-list repeater) ---------- */
body .elementor .mi-list .elementor-icon-list-items {
  column-count: 2;
  column-gap: 56px;
  list-style: none;
  padding: 0;
  margin: 0;
}
body .elementor .mi-list--single .elementor-icon-list-items { column-count: 1; max-width: 760px; }
body .elementor .mi-list .elementor-icon-list-item {
  display: block;
  break-inside: avoid;
  padding: 14px 0;
  border-bottom: 1.5px dashed var(--rule);
}
body .elementor .mi-list .elementor-icon-list-icon { display: none; }
body .elementor .mi-list .elementor-icon-list-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: baseline;
  color: inherit;
  padding: 0;
}
body .elementor .mi-list .mi-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
body .elementor .mi-list .mi-price {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--st-red);
  white-space: nowrap;
}
body .elementor .mi-list .mi-desc {
  grid-column: 1 / -1;
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0.9;
}
body .elementor .section--red .mi-list .elementor-icon-list-item { border-bottom-color: rgba(250, 240, 220, 0.4); }
body .elementor .section--red .mi-list .mi-price { color: var(--st-cream); }
body .elementor .section--char .mi-list .elementor-icon-list-item { border-bottom-color: rgba(250, 240, 220, 0.25); }
body .elementor .section--char .mi-list .mi-price { color: var(--st-amber); }

/* ---------- decorative dot overlays, reproduced without a widget ---------- */
body .elementor .has-dots { position: relative; }
body .elementor .has-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--st-char) 2px, transparent 2.5px);
  background-size: 22px 22px;
  opacity: 0.07;
}
body .elementor .has-dots > .elementor-container { position: relative; z-index: 1; }

/* ---------- editor safety: never let content hide behind JS ---------- */
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal.in,
body.elementor-editor-active .page-fade-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ---------- mobile ---------- */
@media (max-width: 1024px) {
  body .elementor .st-split > .elementor-container { gap: 32px; }
  body .elementor .st-split > .elementor-container > .elementor-column { width: calc(50% - 16px); }
}

@media (max-width: 768px) {
  body .elementor .elementor-section > .elementor-container { flex-wrap: wrap; }
  body .elementor .st-split > .elementor-container,
  body .elementor .st-head-row > .elementor-container { gap: 28px; }
  body .elementor .st-split > .elementor-container > .elementor-column,
  body .elementor .st-head-row > .elementor-container > .elementor-column { width: 100%; }
  body .elementor .st-split--flip > .elementor-container { flex-direction: column; }
  body .elementor .st-head-aside > .elementor-widget-wrap { justify-content: flex-start; }
  body .elementor .st-head-row { margin-bottom: 32px; }

  body .elementor .mi-list .elementor-icon-list-items { column-count: 1; }

  body .elementor .st-photo .elementor-widget-container { box-shadow: 6px 6px 0 0 var(--st-red); }
  body .elementor .st-photo--char .elementor-widget-container { box-shadow: 6px 6px 0 0 var(--st-ink); }

  body .elementor .st-btn { margin-right: 12px; }
  body .elementor .st-btn .elementor-button { padding: 12px 18px; font-size: 14px; }

  body .elementor .st-hero::before {
    background: linear-gradient(180deg,
      rgba(27, 21, 18, 0.86) 0%,
      rgba(27, 21, 18, 0.72) 100%);
  }
}
