/* Page sections: hero, ticker, cards, workshops, Art Box, contact */

/* Tagline bar: a thin pink strip under the header. It is sticky inside .hero-wrap, so it stays put
   only while the hero is on screen and leaves together with it. */
.hero-wrap {
  --tagline-height: 28px;
  position: relative
}

.tagline-bar {
  position: sticky;
  top: var(--sticky-header-height, 0px);
  z-index: 50;
  height: var(--tagline-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--pink);
  color: var(--on-pink);
  font: 800 .75rem/1 Assistant, Arial, sans-serif;
  letter-spacing: .16em;
  white-space: nowrap;
  overflow: hidden;
  direction: ltr
}

/* Hero: the copy sits on a blurred photo backdrop on every screen size.
   Desktop — a strip of five works (img/hero-strip.webp: whole photos at one height, never cropped,
   pre-blurred) drifts slowly sideways; three copies of the strip make the loop seamless.
   Mobile — a single pre-blurred photo (img/rose-concept-mobile.webp). */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100vh - var(--sticky-header-height, 77px) - var(--tagline-height)), 900px);
  /* --app-height: screen height frozen by js/header.js (does not change when a phone toolbar hides) */
  min-height: clamp(600px, calc(var(--app-height, 100svh) - var(--sticky-header-height, 77px) - var(--tagline-height)), 900px);
  overflow: hidden;
  isolation: isolate
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: auto;
  padding: clamp(45px, 7vw, 110px) var(--gutter);
  text-shadow: 0 1px 18px #000000b3
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .94;
  letter-spacing: -.045em;
  margin: 27px 0;
  overflow-wrap: anywhere
}

.hero h1 em {
  font-style: normal;
  color: var(--pink)
}

.hero p {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.4;
  max-width: 580px;
  margin: 0 0 38px
}

.hero .button {
  text-shadow: none
}

.hero .button.secondary {
  background: #111113a6
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #141215
}

/* Darkest where the text is (the right side in RTL), fading into the page at the bottom */
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, #111113f2 0%, #111113cc 34%, #1111138c 62%, #11111366 100%),
    linear-gradient(to bottom, #11111340 0%, transparent 25%, transparent 72%, #111113 100%)
}

.hero-photo {
  display: none
}

.hero-strip {
  position: absolute;
  inset: 0;
  direction: ltr
}

.hero-strip-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: heroDrift 150s linear infinite;
  will-change: transform
}

.hero-strip-track span {
  flex: none;
  height: 100%;
  aspect-ratio: 2683/720;
  background: url(../img/hero-strip.webp?v=3) center/100% 100% no-repeat
}

@keyframes heroDrift {
  to {
    transform: translate3d(-33.3333%, 0, 0)
  }
}

.caption {
  position: absolute;
  bottom: 18px;
  inset-inline-end: 18px;
  z-index: 1;
  background: #111111b3;
  padding: 6px 12px;
  font-size: .8125rem;
  color: #ffffffd9
}

/* Desktop: the strip mixes illustrations and real photos; mobile shows only the illustration */
.caption-mobile {
  display: none
}

/* Desktop scroll cue (as on by-shop) */
.hero-scroll {
  position: absolute;
  bottom: 22px;
  inset-inline: 0;
  margin: auto;
  width: max-content;
  display: flex;
  color: #ffffffb3;
  font-size: 28px;
  transition: color .2s
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    background: #232228;
    transform: translateY(-3px)
  }

  .contact .button:hover {
    background: #000
  }
}

.hero-scroll:hover {
  color: var(--pink)
}

.hero-scroll .icon {
  stroke-width: 2;
  animation: softBounce 1.6s ease-in-out infinite
}

/* Ticker: an endless marquee (two identical groups, the track moves by one group) */
.ticker {
  border-block: 1px solid #3b3439;
  padding: 17px 0;
  color: #e9c5d7;
  font-size: .9375rem;
  letter-spacing: .05em;
  overflow: hidden;
  direction: ltr
}

.ticker-track {
  display: flex;
  width: max-content;
  /* js/ticker.js sets the duration from the group width so the speed is constant */
  animation: ticker var(--ticker-duration, 32s) linear infinite
}

.ticker-group {
  --ticker-gap: clamp(28px, 4vw, 56px);
  display: flex;
  flex: none;
  gap: var(--ticker-gap);
  padding-inline-end: var(--ticker-gap);
  white-space: nowrap
}

.ticker-group span {
  display: flex;
  align-items: center;
  gap: var(--ticker-gap)
}

.ticker-group span::after {
  content: '✦';
  color: var(--pink);
  font-size: .8em
}

@keyframes ticker {
  to {
    transform: translateX(-50%)
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    width: auto;
    justify-content: center;
    animation: none
  }

  .ticker-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 40px;
    padding: 0 16px
  }

  .ticker-group[aria-hidden] {
    display: none
  }
}

/* Sections */
.section {
  padding: 100px var(--gutter);
  max-width: 1500px;
  margin: auto
}

.section-heading {
  margin-bottom: 24px
}

.section h2,
.workshop h2,
.box h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  overflow-wrap: anywhere
}

.section h2 {
  margin: 0;
  letter-spacing: -.035em
}

/* Pink note: under the "יצירה שלובשים" heading and in the workshop block */
.intro {
  margin: 0 0 24px;
  padding: 18px 24px;
  background: var(--pink);
  color: var(--on-pink);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.card {
  background: var(--panel);
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top: 3px solid var(--pink);
  border-radius: var(--radius);
  transition: background-color .3s, transform .3s
}



.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pink);
  font-size: 30px
}

.card .num {
  color: var(--pink);
  font: 700 .9375rem 'Space Grotesk', sans-serif
}

.card h3 {
  font-size: 2rem;
  line-height: 1.12;
  margin: 22px 0 14px
}

.card p {
  color: #cfc8cd;
  margin: 0 0 24px;
  font-size: 1.25rem
}

/* Titles and texts start right under the icon line (same level in every card); the link stays at the bottom */
.card>a {
  margin-top: auto
}

/* Workshops */
.workshop {
  background: #f5ecf0;
  color: #151315;
  padding: 90px var(--gutter)
}

.workshop .inner {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center
}

.workshop .workshop-copy {
  min-width: 0
}

/* The pink note and the benefit tiles share one width so their edges line up */
.workshop p.intro,
.workshop .workshop-benefits {
  max-width: 720px
}

.workshop p.intro {
  font-size: 1.25rem
}

.workshop h2,
.box h2 {
  margin: 10px 0 25px
}

.workshop h2 .accent {
  color: #d61f73
}

.workshop p {
  font-size: 1.3125rem;
  max-width: 580px
}

.workshop ul {
  padding: 0;
  list-style: none
}

.workshop li {
  padding: 18px 0;
  border-bottom: 1px solid #bbb;
  font-size: 1.25rem
}

/* Benefits: square tiles with a pink border — one row of four on desktop, 2×2 on phones */
.workshop .workshop-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0
}

/* Each tile: a pre-blurred photo on the theme (img/workshops/tiles/) under dark shading, white text */
.workshop .workshop-benefits li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border: 1.5px solid var(--pink);
  border-radius: var(--radius);
  background: #211b20 center/cover no-repeat;
  color: #fff;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 10px #000;
  text-wrap: balance
}

.workshop .workshop-benefits li::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, #111113d9 0%, #1111139e 55%, #11111373 100%)
}

.workshop .workshop-benefits li:nth-child(1) {
  background-image: url(../img/workshops/tiles/benefit-couples.webp)
}

.workshop .workshop-benefits li:nth-child(2) {
  background-image: url(../img/workshops/tiles/benefit-groups.webp)
}

.workshop .workshop-benefits li:nth-child(3) {
  background-image: url(../img/workshops/tiles/benefit-kids.webp)
}

.workshop .workshop-benefits li:nth-child(4) {
  background-image: url(../img/workshops/tiles/benefit-events.webp)
}

/* Narrower desktop column (1101–1300px): slightly smaller text so the tiles stay square */
@media(min-width:1101px) and (max-width:1300px) {
  .workshop .workshop-benefits li {
    padding: 10px 8px;
    font-size: .9375rem
  }
}

.workshop .eyebrow {
  color: #a21358
}

.workshop .button {
  margin-top: 18px
}


.workshop-player {
  margin: 0;
  max-width: 430px;
  justify-self: center;
  width: 100%
}

.workshop-player video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  aspect-ratio: 512/910;
  background: #151315;
  border-radius: var(--radius);
  box-shadow: 18px 18px 0 #e5c5d5
}

.workshop-player figcaption {
  font-size: 1rem;
  color: #4d3542;
  margin-top: 28px;
  text-align: center
}

.workshop-feature {
  max-width: 1350px;
  margin: 75px auto 0;
  background: #211b20;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius)
}

.workshop-feature-copy {
  padding: clamp(28px, 5vw, 65px);
  align-self: center
}

.workshop-feature .eyebrow {
  color: #ff96c4
}

.workshop-feature h3 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
  margin: 14px 0 20px
}

.workshop-feature p {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 0 20px
}

.workshop-feature ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 26px
}

.workshop-feature li {
  font-size: 1rem;
  border: 1px solid #b27a97;
  padding: 6px 12px;
  border-radius: var(--radius)
}

.workshop-feature .button {
  margin: 0
}

.workshop-feature img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 590px;
  object-fit: cover;
  object-position: center 28%;
  display: block
}

/* Art Box */
.box {
  padding: 100px var(--gutter);
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center
}

.box-art {
  background: #ed9fc4;
  color: #191014;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transform: rotate(-2deg);
  box-shadow: 18px 18px 0 #3a2732;
  text-align: center;
  font: 700 clamp(3.875rem, 9vw, 8.125rem)/.9 'Space Grotesk', sans-serif;
  letter-spacing: -.08em;
  direction: ltr
}

.box p {
  color: var(--muted);
  font-size: 1.3125rem
}

/* Contact */
.contact {
  background: var(--pink);
  color: #1b1018;
  padding: 90px var(--gutter);
  text-align: center
}

.contact h2 {
  font-size: clamp(2.5rem, 6vw, 5.125rem);
  line-height: 1;
  margin: 0 0 20px;
  overflow-wrap: anywhere
}

.contact-copy p {
  font-size: 1.375rem;
  margin: 0 auto;
  max-width: 34rem
}

/* Desktop: copy and social buttons on the right, the lead form on the left */
.contact-inner {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(32px, 6vw, 90px);
  align-items: center
}

.contact-copy {
  text-align: right
}

.contact-copy p {
  margin: 0
}

.contact-copy .social-actions {
  flex-direction: column;
  align-items: flex-start;
  max-width: 360px
}

.contact-copy .social-actions .button {
  width: 100%;
  justify-content: flex-start
}

/* Lead form (js/lead-form.js): dark panel, right-to-left fields */
.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: #171316;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 #0000002e;
  text-align: right
}

.lead-form .field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0
}

.lead-form label,
.lead-form legend {
  padding: 0;
  font-weight: 700;
  font-size: 1rem
}

.lead-form legend {
  margin-bottom: 8px
}

.lead-form .optional {
  font-weight: 500;
  color: var(--muted)
}

.lead-form input:not([type="radio"]),
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #4a3a44;
  border-radius: var(--radius);
  background: #0f0d10;
  color: var(--ink);
  /* 16px: iOS does not zoom into the field on focus */
  font: 500 1rem/1.4 Assistant, Arial, sans-serif;
  direction: rtl;
  text-align: right;
  transition: border-color .2s, box-shadow .2s
}

.lead-form textarea {
  min-height: 110px;
  resize: vertical
}

/* Phone and e-mail stay right-aligned and right-to-left, but their digits/address keep their own order
   (otherwise "050-123 4567" would be shown as "4567 050-123") */
.lead-form input[type="tel"],
.lead-form input[type="email"] {
  unicode-bidi: plaintext
}

.lead-form ::placeholder {
  color: #8f868c;
  opacity: 1;
  direction: rtl;
  text-align: right
}

.lead-form input:not([type="radio"]):focus,
.lead-form textarea:focus {
  outline: 0;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px #fb4c9c40
}

.lead-form [aria-invalid="true"] {
  border-color: #ff7a9c
}

.lead-form .choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.lead-form .choice {
  position: relative;
  display: flex
}

.lead-form .choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.lead-form .choice span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 8px;
  border: 1.5px solid var(--pink);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .2s, color .2s
}

.lead-form .choice input:checked+span {
  background: var(--pink);
  color: var(--on-pink)
}

.lead-form .choice input:focus-visible+span {
  outline: 3px solid #fff;
  outline-offset: 2px
}

.lead-form .field-error {
  margin: 0;
  color: #ff8fae;
  font-size: .875rem;
  font-weight: 700
}

.contact .lead-form .lead-submit {
  width: 100%;
  min-height: 54px;
  gap: 10px;
  background: var(--pink);
  color: var(--on-pink);
  font-size: 1.0625rem
}

.contact .lead-form .lead-submit .icon {
  color: var(--on-pink);
  font-size: 22px
}

/* Turnstile widget: space reserved so the form does not jump when it appears; it fills the field width
   ("flexible" size) and the compact one on narrow phones hugs the right edge */
.lead-form .turnstile-field {
  display: grid;
  gap: 8px
}

.lead-form .lead-turnstile {
  display: flex;
  justify-content: flex-start;
  min-height: 65px;
  width: 100%
}

.lead-form .lead-turnstile>* {
  flex: 1 1 auto;
  max-width: 100%
}

/* Until Turnstile passes the button is disabled */
.contact .lead-form .lead-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none
}

@media (hover: hover) and (pointer: fine) {
  .lead-form .choice span:hover {
    background: #fb4c9c26
  }

  .lead-form .choice input:checked+span:hover {
    background: var(--pink-hover)
  }

  .contact .lead-form .lead-submit:not(:disabled):hover {
    background: var(--pink-hover)
  }

  .contact .lead-form .lead-submit:disabled:hover {
    background: var(--pink);
    transform: none
  }
}

/* Tablets and phones: one column — the copy centred above the form */
@media(max-width:1000px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px
  }

  .contact-copy {
    text-align: center
  }

  .contact-copy p {
    margin: 0 auto
  }

  .contact-copy .social-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none
  }

  .contact-copy .social-actions .button {
    width: auto;
    justify-content: center
  }
}

.social-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px
}

.contact .button {
  min-width: 220px;
  background: #171316;
  color: #fff
}

.label-short {
  display: none
}

.contact .button .icon {
  color: var(--pink)
}

/* Shown by js/contact.js once a valid link is configured */
.social-actions [hidden],
.footer-contacts [hidden] {
  display: none
}

@media(max-width:1100px) {

  .workshop .inner,
  .box {
    grid-template-columns: 1fr
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr))
  }
}

/* Mobile: one pre-blurred photo instead of the strip (the strip background is never downloaded) */
@media(max-width:800px) {
  .hero {
    min-height: calc(100vh - var(--sticky-header-height, 64px) - var(--tagline-height));
    min-height: calc(var(--app-height, 100svh) - var(--sticky-header-height, 64px) - var(--tagline-height))
  }

  .hero-copy {
    padding: 56px 20px 84px;
    text-shadow: 0 1px 14px #000c
  }

  .hero-strip,
  .hero-scroll {
    display: none
  }

  .hero-photo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%
  }

  .hero-visual::after {
    background:
      linear-gradient(to bottom, #111113b3 0%, #11111399 40%, #111113cc 78%, #111113 100%),
      radial-gradient(120% 80% at 50% 45%, transparent 30%, #0000008c 100%)
  }

  .caption-desktop {
    display: none
  }

  .caption-mobile {
    display: inline
  }

  .caption {
    inset-inline-end: auto;
    right: 50%;
    bottom: 16px;
    transform: translateX(50%);
    white-space: nowrap;
    font-size: .75rem
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 5rem);
    margin: 18px 0 20px
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 30px
  }

  .hero .buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .hero .buttons .button {
    min-height: 50px;
    padding: 10px 12px
  }

  .hero .buttons .button:first-child {
    grid-column: 1/-1
  }

  .ticker {
    padding-block: 14px;
    font-size: .875rem
  }


  .section {
    padding-block: 64px
  }

  .section-heading {
    margin-bottom: 20px
  }

  .section h2,
  .workshop h2,
  .box h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem)
  }

  .intro {
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 1.0625rem
  }

  .card {
    min-height: 0;
    padding: 24px;
    gap: 18px
  }

  .card h3 {
    font-size: 1.6rem;
    margin: 0 0 10px
  }

  .card p {
    font-size: 1.0625rem;
    margin: 0
  }

  .workshop,
  .box {
    padding-block: 64px
  }

  .workshop p,
  .box p {
    font-size: 1.125rem
  }

  .workshop .workshop-benefits {
    gap: 10px;
    margin-top: 22px
  }

  .workshop .workshop-benefits li {
    padding: 10px 8px;
    gap: 8px;
    font-size: .9375rem
  }

  .workshop .button {
    width: 100%
  }

  .workshop-player {
    max-width: 210px
  }

  .workshop-player video {
    max-height: 70vh;
    max-height: calc(var(--app-height, 100svh) * .7);
    box-shadow: 12px 12px 0 #e5c5d5
  }

  .workshop-player figcaption {
    margin-top: 22px
  }

  .workshop-feature {
    grid-template-columns: 1fr;
    margin-top: 56px
  }

  .workshop-feature img {
    min-height: 145px;
    max-height: 205px;
    order: -1
  }

  .workshop-feature-copy {
    padding: 26px 22px 28px
  }

  .workshop-feature .eyebrow {
    font-size: .8125rem
  }

  .workshop-feature p {
    font-size: 1.0625rem
  }

  .workshop-feature li {
    font-size: .9375rem
  }

  .workshop-feature .button {
    width: 100%
  }

  .box {
    gap: 48px
  }

  .box-art {
    min-height: 220px;
    width: calc(100% - 14px);
    box-shadow: 12px 12px 0 #3a2732;
    font-size: clamp(3.25rem, 17vw, 5rem);
    order: 2
  }

  .contact {
    padding-block: 64px
  }

  .contact h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem)
  }

  .contact-copy p {
    font-size: 1.125rem
  }

  /* Phones: the lead form takes the place of the social buttons */
  .contact-copy .social-actions {
    display: none
  }

  .contact-inner {
    gap: 28px
  }
}

/* Phones: benefits as a 2×2 grid */
@media(max-width:600px) {
  .workshop .workshop-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .workshop p.intro,
  .workshop .workshop-benefits {
    max-width: 420px
  }

  .workshop .workshop-benefits li {
    padding: 12px 10px;
    font-size: 1rem
  }
}

/* Phones: the three interest options are squares in one row */
@media(max-width:600px) {
  .lead-form .choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px
  }

  .lead-form .choice span {
    aspect-ratio: 1;
    min-height: 0;
    padding: 6px;
    font-size: .875rem;
    line-height: 1.2;
    text-wrap: balance
  }
}

@media(max-width:360px) {
  .lead-form .choice span {
    font-size: .8125rem
  }
}
