/* =========================================================
   WA Cushion — Polish pack 20260729
   Hero CTA position · contact form redesign · premium buttons
   · transform-based entrance · stronger paper grain
   Load LAST after atelier-motion-lux.
   ========================================================= */

/* ---------- Stronger paper grain ---------- */
html body::after {
  opacity: 0.52 !important;
  background-size: 160px 160px !important;
  mix-blend-mode: multiply !important;
  filter: contrast(1.28) brightness(0.98) !important;
}

html body::before {
  background-image:
    radial-gradient(ellipse 70% 48% at 10% 6%, rgba(255, 250, 242, 0.62) 0%, transparent 58%),
    radial-gradient(ellipse 50% 38% at 94% 14%, rgba(198, 176, 148, 0.26) 0%, transparent 55%),
    radial-gradient(ellipse 65% 42% at 48% 100%, rgba(150, 120, 90, 0.14) 0%, transparent 52%) !important;
}

/* ---------- Home hero CTA: tuck under copy, ink on cream (never cream-on-cream) ---------- */
html body.page-home .home-hero .home-hero__copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: flex-start !important;
}

html body.page-home .home-hero .hero-line {
  margin-bottom: 0 !important;
}

html body.page-home .home-hero a.hero-cta,
html body.page-home .home-hero .hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  margin-top: 1.15rem !important;
  padding: 0.95rem 1.45rem !important;
  background: #F5EFE4 !important;
  background-color: #F5EFE4 !important;
  background-image: none !important;
  color: #1A1510 !important;
  -webkit-text-fill-color: #1A1510 !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body.page-home .home-hero a.hero-cta span,
html body.page-home .home-hero a.hero-cta *,
html body.page-home .home-hero .hero-cta span,
html body.page-home .home-hero .hero-cta *,
html body.page-home .home-hero a.hero-cta .hero-cta__arrow {
  color: #1A1510 !important;
  -webkit-text-fill-color: #1A1510 !important;
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.page-home .home-hero a.hero-cta:hover,
  html body.page-home .home-hero .hero-cta:hover {
    background: #E8DFD0 !important;
    background-color: #E8DFD0 !important;
    color: #1A1510 !important;
    -webkit-text-fill-color: #1A1510 !important;
  }

  html body.page-home .home-hero a.hero-cta:hover span,
  html body.page-home .home-hero a.hero-cta:hover *,
  html body.page-home .home-hero .hero-cta:hover span,
  html body.page-home .home-hero .hero-cta:hover * {
    color: #1A1510 !important;
    -webkit-text-fill-color: #1A1510 !important;
  }
}

/* ---------- Fix weird hero CTA position (keep inside hero) ---------- */
.page-contact .contact-hero,
.page-about .about-hero,
.page-products-catalog .product-hero,
.page-craftsmanship .craft-hero,
.page-news .news-hero,
.page-faq .faq-hero,
.page-download .dl-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: min(86vh, 44rem) !important;
  align-items: end !important;
}

.page-contact .contact-hero__content,
.page-about .about-hero__content,
.page-products-catalog .product-hero__content,
.page-craftsmanship .craft-hero__content,
.page-news .news-hero__content,
.page-faq .faq-hero__content,
.page-download .dl-hero__content {
  position: relative !important;
  z-index: 3 !important;
  max-width: min(40rem, calc(100% - 2.5rem)) !important;
  padding-top: calc(var(--lang-bar-h, 2rem) + var(--header-h, 4.5rem) + clamp(2rem, 5vh, 3.5rem)) !important;
  padding-bottom: clamp(2.75rem, 7vh, 4.5rem) !important;
  padding-left: clamp(1.5rem, 5vw, 4.5rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4.5rem) !important;
  margin-bottom: 0 !important;
  transform: none !important;
}

.page-contact .contact-hero__cta,
.page-about .about-hero__cta,
.page-products-catalog .product-hero__cta,
a.contact-hero__cta {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  margin-top: 1.35rem !important;
  position: relative !important;
  overflow: hidden !important;
}

/* ---------- Transform-only entrance (beats opacity:1 locks) ---------- */
html.has-motion:not(.nofx) .reveal:not(.is-visible),
html.has-motion:not(.nofx) a.col-item.reveal:not(.is-visible),
html.has-motion:not(.nofx) a.pcat-cat.reveal:not(.is-visible),
html.has-motion:not(.nofx) .feat-card.reveal:not(.is-visible),
html.has-motion:not(.nofx) .pcat-card.reveal:not(.is-visible),
html.has-motion:not(.nofx) .pcat-feat-card.reveal:not(.is-visible),
html.has-motion:not(.nofx) .gallery-item.reveal:not(.is-visible),
html.has-motion:not(.nofx) .pcat-gallery__item.reveal:not(.is-visible),
html.has-motion:not(.nofx) .craft-flow__node:not(.is-pop):not(.is-visible),
html.has-motion:not(.nofx) .why-strip__item.reveal:not(.is-visible),
html.has-motion:not(.nofx) .contact-why__item:not(.is-visible),
html.has-motion:not(.nofx) h2.reveal:not(.is-visible),
html.has-motion:not(.nofx) .home-about__copy > *:not(.is-visible) {
  transform: translate3d(0, 3rem, 0) !important;
  clip-path: inset(0 0 42% 0) !important;
  filter: none !important;
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1.05s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-delay: var(--delay, 0ms) !important;
}

html.has-motion:not(.nofx) .reveal.is-visible,
html.has-motion:not(.nofx) a.col-item.reveal.is-visible,
html.has-motion:not(.nofx) a.pcat-cat.reveal.is-visible,
html.has-motion:not(.nofx) .feat-card.reveal.is-visible,
html.has-motion:not(.nofx) .pcat-card.reveal.is-visible,
html.has-motion:not(.nofx) .pcat-feat-card.reveal.is-visible,
html.has-motion:not(.nofx) .gallery-item.reveal.is-visible,
html.has-motion:not(.nofx) .pcat-gallery__item.reveal.is-visible,
html.has-motion:not(.nofx) .craft-flow__node.is-pop,
html.has-motion:not(.nofx) .craft-flow__node.is-visible,
html.has-motion:not(.nofx) .why-strip__item.reveal.is-visible,
html.has-motion:not(.nofx) .contact-why__item.is-visible,
html.has-motion:not(.nofx) h2.reveal.is-visible,
html.has-motion:not(.nofx) .home-about__copy > *.is-visible {
  transform: none !important;
  clip-path: inset(0 0 0 0) !important;
}

html.has-motion:not(.nofx) .reveal--clip:not(.is-visible),
html.has-motion:not(.nofx) [data-reveal-media]:not(.is-in):not(.is-visible) {
  transform: scale(1.1) !important;
  clip-path: inset(14% 10% 14% 10%) !important;
}

html.has-motion:not(.nofx) .reveal--clip.is-visible,
html.has-motion:not(.nofx) [data-reveal-media].is-in,
html.has-motion:not(.nofx) [data-reveal-media].is-visible {
  transform: none !important;
  clip-path: inset(0 0 0 0) !important;
}

/* Craft process timeline draw + stagger */
.page-craftsmanship .craft-flow {
  position: relative !important;
}

.page-craftsmanship .craft-flow::before {
  content: "" !important;
  position: absolute !important;
  left: 0.35rem !important;
  right: 0.35rem !important;
  top: 1.15rem !important;
  height: 1px !important;
  background: rgba(26, 21, 16, 0.18) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

html.has-motion:not(.nofx) .craft-flow.is-in::before,
.page-craftsmanship .craft-flow.is-in::before {
  transform: scaleX(1) !important;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.page-craftsmanship .craft-flow__num,
.page-craftsmanship .craft-flow__node {
  position: relative !important;
  z-index: 1 !important;
}

/* ---------- Premium buttons ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn--dark,
  a.btn--dark,
  .contact-form__submit,
  .hero-cta,
  a.hero-cta,
  .contact-hero__cta,
  a.contact-hero__cta,
  .product-hero__cta,
  .about-hero__cta,
  .dl-feat-card__btn,
  a.pcat-card__cta,
  a.gallery-item__cta,
  a.pcat-gallery__cta {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    transition:
      color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      letter-spacing 0.4s ease !important;
  }

  .btn--dark::before,
  a.btn--dark::before,
  .contact-form__submit::before,
  .hero-cta::before,
  a.hero-cta::before,
  .contact-hero__cta::before,
  a.pcat-card__cta::before,
  a.gallery-item__cta::before,
  a.pcat-gallery__cta::before,
  .dl-feat-card__btn::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 248, 236, 0.18) 42%,
      transparent 68%
    ) !important;
    transform: translateX(-120%) !important;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
    pointer-events: none !important;
  }

  .btn--dark > *,
  a.btn--dark > *,
  .contact-form__submit > *,
  .hero-cta > *,
  a.hero-cta > *,
  .contact-hero__cta > *,
  a.pcat-card__cta > *,
  a.gallery-item__cta > *,
  a.pcat-gallery__cta > *,
  .dl-feat-card__btn > * {
    position: relative !important;
    z-index: 1 !important;
  }

  .btn--dark:hover,
  a.btn--dark:hover,
  .contact-form__submit:hover,
  a.pcat-card__cta:hover,
  a.gallery-item__cta:hover,
  a.pcat-gallery__cta:hover,
  .dl-feat-card__btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 34px rgba(26, 21, 16, 0.28) !important;
    letter-spacing: 0.16em !important;
  }

  .btn--dark:hover::before,
  a.btn--dark:hover::before,
  .contact-form__submit:hover::before,
  .hero-cta:hover::before,
  a.hero-cta:hover::before,
  .contact-hero__cta:hover::before,
  a.pcat-card__cta:hover::before,
  a.gallery-item__cta:hover::before,
  a.pcat-gallery__cta:hover::before,
  .dl-feat-card__btn:hover::before {
    transform: translateX(120%) !important;
  }

  .btn--line:hover,
  a.btn--line:hover,
  .contact-hero__cta:hover,
  a.contact-hero__cta:hover,
  .hero-cta:hover,
  a.hero-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  }

  .hero-cta:hover .hero-cta__arrow,
  a.hero-cta:hover .hero-cta__arrow,
  .contact-hero__cta:hover .contact-hero__cta-arrow,
  a.pcat-card__cta:hover .pcat-card__cta-arrow,
  a.gallery-item__cta:hover .gallery-item__cta-arrow {
    transform: translateX(6px) !important;
  }

  /* Interest chips — refined select */
  .page-contact .contact-chip span {
    position: relative !important;
    overflow: hidden !important;
    transition:
      color 0.35s ease,
      background-color 0.35s ease,
      border-color 0.35s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.35s ease !important;
  }

  .page-contact .contact-chip:hover span {
    transform: translateY(-2px) !important;
    border-color: #1A1510 !important;
    box-shadow: 0 8px 20px rgba(26, 21, 16, 0.1) !important;
  }

  .page-contact .contact-chip input:checked + span {
    box-shadow: 0 10px 24px rgba(26, 21, 16, 0.2) !important;
  }
}

/* ---------- Contact form redesign ---------- */
.page-contact .contact-form-section {
  background: var(--wa-cream, #E5E2D9) !important;
  padding-block: clamp(4rem, 9vw, 7rem) !important;
}

.page-contact .contact-form-section__inner {
  display: grid !important;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr) !important;
  gap: clamp(1.75rem, 3.5vw, 3rem) !important;
  align-items: start !important;
  max-width: 70rem !important;
}

.page-contact .contact-form-section__head {
  position: sticky !important;
  top: 6.5rem !important;
  margin: 0 !important;
  padding: 0.15rem 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  align-self: start !important;
}

.page-contact .contact-form-section__head .eyebrow {
  color: #8F7358 !important;
  -webkit-text-fill-color: #8F7358 !important;
  letter-spacing: 0.16em !important;
}

.page-contact .contact-form-section__head h2 {
  margin: 0.7rem 0 0.9rem !important;
  font-family: var(--wa-font-display, "Instrument Serif", Georgia, serif) !important;
  font-size: clamp(2.6rem, 5vw, 4rem) !important;
  font-weight: 400 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.02em !important;
  color: #1A1510 !important;
  -webkit-text-fill-color: #1A1510 !important;
  max-width: 11ch !important;
}

.page-contact .contact-form-section__head p {
  margin: 0 !important;
  max-width: 34ch !important;
  color: #5A4E42 !important;
  -webkit-text-fill-color: #5A4E42 !important;
  line-height: 1.65 !important;
}

.page-contact .contact-form-section__desk {
  min-width: 0 !important;
}

.page-contact .contact-form--full {
  display: grid !important;
  gap: 1.45rem !important;
  padding: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}

.page-contact .contact-interest {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-contact .contact-interest legend {
  margin: 0 0 0.85rem !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #8F7358 !important;
  -webkit-text-fill-color: #8F7358 !important;
}

.page-contact .contact-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
}

.page-contact .contact-chip span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 2.55rem !important;
  padding: 0.65rem 1.05rem !important;
  border: 1px solid rgba(26, 21, 16, 0.18) !important;
  background: rgba(255, 252, 246, 0.55) !important;
  color: #1A1510 !important;
  -webkit-text-fill-color: #1A1510 !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  border-radius: 0 !important;
}

.page-contact .contact-chip input:checked + span {
  background: #1A1510 !important;
  border-color: #1A1510 !important;
  color: #F5EFE4 !important;
  -webkit-text-fill-color: #F5EFE4 !important;
}

.page-contact .contact-form__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.25rem 1.35rem !important;
}

.page-contact .contact-form .field label {
  display: block !important;
  margin-bottom: 0.45rem !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8F7358 !important;
  -webkit-text-fill-color: #8F7358 !important;
}

.page-contact .contact-form .field input,
.page-contact .contact-form .field textarea,
.page-contact .contact-form .field select {
  width: 100% !important;
  margin: 0 !important;
  padding: 0.7rem 0.2rem 0.75rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(26, 21, 16, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1A1510 !important;
  -webkit-text-fill-color: #1A1510 !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 0.96rem !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  vertical-align: top !important;
  transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

.page-contact .contact-form .field input:focus,
.page-contact .contact-form .field textarea:focus,
.page-contact .contact-form .field select:focus {
  outline: none !important;
  border-bottom-color: #1A1510 !important;
  background: rgba(255, 252, 246, 0.35) !important;
}

.page-contact .contact-form .field textarea {
  min-height: 6.5rem !important;
  max-height: 14rem !important;
  resize: vertical !important;
  padding-top: 0.55rem !important;
}

.page-contact .contact-file {
  display: grid !important;
  gap: 0.35rem !important;
}

.page-contact .contact-file input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-contact .contact-file__pick {
  display: flex !important;
  align-items: center !important;
  gap: 0.9rem !important;
  cursor: pointer !important;
  padding: 0.95rem 0 !important;
  border-bottom: 1px solid rgba(26, 21, 16, 0.22) !important;
}

.page-contact .contact-file__btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.65rem 1rem !important;
  background: #1A1510 !important;
  color: #F5EFE4 !important;
  -webkit-text-fill-color: #F5EFE4 !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.page-contact .contact-file__name {
  color: #5A4E42 !important;
  -webkit-text-fill-color: #5A4E42 !important;
  font-size: 0.86rem !important;
  line-height: 1.4 !important;
}

.page-contact .contact-form__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1rem 1.5rem !important;
  padding-top: 0.35rem !important;
}

.page-contact .contact-form__submit {
  min-width: 12rem !important;
  padding: 1rem 1.6rem !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.16em !important;
}

.page-contact .contact-form__note {
  margin: 0 !important;
  max-width: 34ch !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  color: #5A4E42 !important;
  -webkit-text-fill-color: #5A4E42 !important;
}

@media (max-width: 900px) {
  .page-contact .contact-form-section__inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .page-contact .contact-form-section__head {
    position: static !important;
  }

  .page-contact .contact-form-section__head h2 {
    max-width: none !important;
  }

  .page-contact .contact-form__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-motion:not(.fx-force) .reveal:not(.is-visible),
  html.has-motion:not(.fx-force) .reveal.is-visible {
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
