/* ============================================================
   MAR.Z Atelier — WordPress integration layer
   Loaded after the original visual system. Keep WP-only fixes here.
   ============================================================ */

html {
  scroll-padding-top: var(--header-height, 7.25rem);
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar.nav-is-open .site-header,
body.admin-bar.nav-is-open .site-header.is-scrolled {
  height: calc(100dvh - 32px);
}

.site-logo .custom-logo {
  width: auto;
  max-width: none;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  display: block;
  padding: 0.75rem 1rem;
  background: var(--v3-paper, #f2f0ec);
  color: var(--text-on-light, #3a3936);
}

/* Dynamic collection-card back images replace old hard-coded PHP paths. */

.works-card::before {
  background-image: var(--marz-card-left, none) !important;
}

.works-card::after {
  background-image: var(--marz-card-right, none) !important;
}

.works-card > picture:empty,
.collection-hero__image:empty,
.commissions-hero:empty,
.process-hero:empty,
.portrait__image:empty,
.object-moment__image:empty {
  min-height: 14rem;
  background: rgba(58, 57, 54, 0.06);
}

.collection-hero__statement > :first-child,
.commissions-intro > :first-child,
.process-intro > :first-child,
.object-intro__copy > :first-child,
.process-step__body > :first-child,
.object-moment__text > :first-child,
.about-bio > :first-child,
.enquiries-intro > :first-child {
  margin-top: 0;
}

.collection-hero__statement > :last-child,
.commissions-intro > :last-child,
.process-intro > :last-child,
.object-intro__copy > :last-child,
.process-step__body > :last-child,
.object-moment__text > :last-child,
.about-bio > :last-child,
.enquiries-intro > :last-child {
  margin-bottom: 0;
}

.marz-generic-page,
.elementor-page-shell:not(.elementor) {
  width: min(100% - 2 * var(--page-gutter), 72rem);
  min-height: 70svh;
  margin: 0 auto;
  padding-top: calc(var(--header-height) + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.marz-generic-page h1,
.marz-404 h1 {
  max-width: 18ch;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marz-generic-page article + article {
  margin-top: 4rem;
}

.marz-empty-state {
  grid-column: 1 / -1;
  align-self: center;
  text-align: center;
}

/* WordPress-generated form messages. */

.marz-form-notice {
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid currentColor;
  font-size: 0.92rem;
}

.marz-form-notice--success {
  color: #2f5a43;
}

.marz-form-notice--error {
  color: #7b3434;
}

.enquiries-form .topic-row label {
  cursor: pointer;
}

.enquiries-form .topic-row input {
  accent-color: var(--text-on-light);
}

.enquiries-contact a {
  color: inherit;
}

/* Elementor may own the whole page body while the theme keeps global chrome. */

.elementor-page-shell .elementor {
  min-height: 70svh;
}

.elementor-editor-active .has-js [data-reveal],
.elementor-editor-preview .has-js [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar.nav-is-open .site-header,
  body.admin-bar.nav-is-open .site-header.is-scrolled {
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 600px) {
  body.admin-bar.scrolled .site-header {
    top: 0;
  }
}

