/* =========================================================
   FESTIKAF — DESIGN FILE
   This file controls how the page LOOKS.
   It contains NO Hebrew text — all wording lives in js/content.js
   ========================================================= */


:root {
  --green: #659E4A;
  --green-dark: #3f6b30;
  --ink: #14140f;
  --cream: #F7F6F1;
  --mint: #cfe0bf;
  --page: #e9e7e0;
}

.red_bold {
  color: red;
  font-weight: bold;
}

* {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Assistant, system-ui, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%
}

a {
  color: var(--green-dark);
  text-decoration: none
}

a:hover {
  color: var(--green)
}

h1,
h2,
h3,
p,
ol {
  margin: 0
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--green);
  overflow: hidden;
  min-height: 420px;
}

.hero-circle {
  position: absolute;
  top: 64px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--green-dark);
}

.hero-srulik {
  position: absolute;
  left: 0;
  top: 120px;
  height: 270px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.hero-title {
  width: 172px
}

.hero-meta {
  margin-top: 34px;
  max-width: 232px
}

.hero-eyebrow {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  opacity: .72;
  margin-bottom: 7px
}

.hero-date {
  font-family: Heebo, sans-serif;
  font-weight: 900;
  font-size: 27px;
  line-height: 1.25
}

.hero-rule {
  margin-top: 16px;
  width: 52px;
  height: 3px;
  background: var(--ink)
}

.hero-place {
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
  color: rgba(20, 20, 15, .72)
}

.hero-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  font: 700 17px/1 Assistant, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 20, 15, .28);
  display: none;
}

.hero-cta:hover {
  background: #000
}

/* ---------- LAYOUT ---------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 22px 60px
}

.intro {
  padding: 26px 0 6px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(20, 20, 15, .85);
  text-wrap: pretty;
}

/* ---------- DAY ACCORDIONS ---------- */
.days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 4px
}

.day-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden
}

.day-card--green {
  background: var(--green);
  color: #fff
}

.day-head {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  color: inherit;
  font-family: inherit;
}

.day-num {
  flex: none;
  width: 52px;
  text-align: center
}

.day-num b {
  display: block;
  font: 800 22px/1 Heebo, sans-serif
}

.day-num span {
  display: block;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  color: var(--green)
}

.day-card--green .day-num span {
  color: #e2f0d6
}

.day-sep {
  flex: none;
  width: 3px;
  align-self: stretch;
  background: var(--mint);
  border-radius: 2px
}

.day-card--green .day-sep {
  background: rgba(255, 255, 255, .45)
}

.day-titles {
  flex: 1;
  min-width: 0
}

.day-t {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3
}

.day-s {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(20, 20, 15, .6)
}

.day-card--green .day-s {
  color: rgba(255, 255, 255, .85)
}

.day-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1)
}

.day-card--green .day-arrow {
  color: #fff
}

.day-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round
}

.day-card.open .day-arrow {
  transform: rotate(180deg)
}

.day-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1)
}

.day-card.open .day-panel {
  grid-template-rows: 1fr
}

.day-panel-inner {
  overflow: hidden;
  min-height: 0
}

.day-panel-inner {
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20, 20, 15, .72);
  text-wrap: pretty
}

.day-card--green .day-panel-inner {
  color: rgba(255, 255, 255, .92)
}

.day-card.open .day-panel-inner {
  padding: 2px 16px 18px
}

.day-line {
  display: block;
  height: 1px;
  background: rgba(20, 20, 15, .1);
  margin: 0 0 14px
}

.day-card--green .day-line {
  background: rgba(255, 255, 255, .3)
}

/* ---------- SECONDARY (IN-CARD) REGISTRATION BUTTON + FORM ----------
   Used for a day card that has its own extra sign-up, e.g. קדם פסטיכף */
.day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px
}

.day-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 160px;
  height: 44px;
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font: 700 14px/1.2 Assistant, sans-serif;
  cursor: pointer;
  text-align: center;
}

.day-form-btn:hover {
  background: #000
}

.day-card--green .day-form-btn {
  background: #fff;
  color: var(--green-dark)
}

.day-card--green .day-form-btn:hover {
  background: #eef7e6
}

.day-form-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1)
}

.day-form-panel.open {
  grid-template-rows: 1fr
}

.day-form-panel-inner {
  overflow: hidden;
  min-height: 0
}

.day-form-frame {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 15, .12);
  background: #fff
}

.day-form-frame iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block
}

/* ---------- PRE-FESTIVAL GALLERY (hidden until opened from the day card) ---------- */
.gallery-toggle-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1)
}

.gallery-toggle-panel.open {
  grid-template-rows: 1fr
}

.gallery-toggle-panel-inner {
  overflow: hidden;
  min-height: 0
}

.gallery {
  padding: 26px 0 4px
}

.gallery h2 {
  font: 800 20px/1.2 Heebo, sans-serif;
  margin-bottom: 14px
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.gallery-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover
}

.gallery-card-text {
  padding: 10px 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(20, 20, 15, .72)
}

/* ---------- REGISTER + FORM ---------- */
.register {
  padding: 26px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch
}

.register-btn {
  height: 56px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 14px;
  font: 700 18px/1 Assistant, sans-serif;
  cursor: pointer;
}

.register-btn:hover {
  background: #000
}

.register-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--mint);
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #2d4d1f;
}

.form-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1)
}

.form-panel.open {
  grid-template-rows: 1fr
}

.form-panel-inner {
  overflow: hidden;
  min-height: 0
}

.form-frame {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 15, .12);
  background: #fff
}

.form-frame iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block
}

/* ---------- INFO ---------- */
.info {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.info h2 {
  font: 800 20px/1.2 Heebo, sans-serif
}

.info-main {
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px
}

.info-main h2 {
  font-size: 24px;
  margin-bottom: 14px
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.info-grid h3 {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3
}

.info-grid p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(20, 20, 15, .62)
}

.info-grid strong {
  font-weight: 700;
  white-space: nowrap
}

.info-signup {
  background: var(--mint);
  border-radius: 18px;
  padding: 22px 20px
}

.info-signup ol {
  margin-top: 6px;
  padding-inline-start: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(20, 20, 15, .78)
}

.info-directions {
  border: 1.5px solid rgba(20, 20, 15, .12);
  border-radius: 18px;
  padding: 20px
}

.info-directions p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20, 20, 15, .7)
}

.info-maps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px
}

.info-maps a {
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px solid rgba(20, 20, 15, .14);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink)
}

.info-maps a:hover {
  background: #eceae3
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 38px 0 8px;
  text-align: center
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  direction: ltr
}

.footer-logos img:first-child {
  height: 120px;
  opacity: .85
}

.footer-logos img:last-child {
  width: 150px;
  opacity: .9
}

.site-footer p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20, 20, 15, .6)
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ---------- DESKTOP ---------- */
@media (min-width:900px) {
  .hero {
    min-height: 400px
  }

  .hero-circle {
    top: 40px;
    left: 130px;
    width: 320px;
    height: 320px
  }

  .hero-srulik {
    left: 150px;
    top: 74px;
    height: 340px
  }

  .hero-content {
    padding: 52px 80px 40px;
    min-height: 400px
  }

  .hero-title {
    width: 300px
  }

  .hero-meta {
    margin-top: 0;
    position: absolute;
    top: 172px;
    right: 80px;
    max-width: none
  }

  .hero-eyebrow {
    font-size: 18px
  }

  .hero-date {
    font-size: 40px;
    line-height: 1.15
  }

  .hero-rule {
    margin-top: 18px;
    width: 64px
  }

  .hero-place {
    margin-top: 18px;
    font-size: 18px
  }

  .hero-cta {
    display: inline-flex;
    margin-top: 26px;
    padding: 15px 32px;
    font-size: 18px
  }

  main {
    padding: 44px 40px 60px
  }

  .intro {
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
    padding: 0
  }

  .days {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: stretch
  }

  .day-card {
    border-radius: 16px
  }

  .day-head {
    padding: 20px
  }

  .day-num b {
    font-size: 24px
  }

  .day-num span {
    font-size: 12px
  }

  .day-t {
    font-size: 17px
  }

  .day-panel-inner {
    padding: 0 20px
  }

  .day-card.open .day-panel-inner {
    padding: 2px 20px 20px
  }

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

  .register {
    margin-top: 40px;
    align-items: center
  }

  .register-btn {
    width: 100%;
    max-width: 440px;
    height: 60px;
    font-size: 20px
  }

  .register-note {
    padding: 12px 20px;
    font-size: 15px
  }

  .form-panel {
    width: 100%;
    max-width: 680px
  }

  .form-frame {
    border-radius: 16px
  }

  .form-frame iframe {
    height: 620px
  }

  .info {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    align-items: start
  }

  .info-side {
    display: flex;
    flex-direction: column;
    gap: 16px
  }

  .info-main {
    padding: 28px 26px
  }

  .info-main h2 {
    font-size: 26px;
    margin-bottom: 18px
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px
  }

  .site-footer {
    margin-top: 48px
  }
}