:root {
  --border: rgba(255, 255, 255, 0.14);
  --card: rgba(0, 0, 0, 0.32);
  --text: #fff;
}

@font-face {
  font-family: 'Amatic SC';
  src: url('assets/fonts/Amatic_SC/AmaticSC-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Amatic SC';
  src: url('assets/fonts/Amatic_SC/AmaticSC-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Rubik ExtraBold';
  src: url('assets/fonts/Rubik/static/Rubik-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: Heebo, system-ui, -apple-system;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-video,
.bg-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-video {
  object-fit: cover;
  z-index: 0;
}

.bg-overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.3)
  );
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  height: 56px;
  background: rgba(0, 0, 0, 0.46);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  direction: ltr;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 52px;
  width: auto;
}

.topbar__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  font-size: 13px;
}

.topbar__links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

header,
main,
footer {
  position: relative;
  z-index: 5;
}

body {
  padding-top: 0;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  padding: 0 0 40px;
  text-align: center;
  z-index: 5;
}

.hero__inner {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  font-family: 'Rubik ExtraBold', Heebo, system-ui, -apple-system;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero__quote {
  margin: 0 0 8px;
  font-size: 1.8rem;
  opacity: 0.9;
  min-height: 2.2em;
  font-weight: 400;
  font-family: 'Amatic SC', Heebo, system-ui, -apple-system;
}

.hero__desc {
  margin: 0;
  opacity: 0.85;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 5;
  animation: scrollHint 1.6s infinite ease-in-out;
}

.arrow {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  opacity: 0.85;
}

@keyframes scrollHint {
  0% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
  100% { transform: translate(-50%, 0); }
}

.hero__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s;
}

.hero__platform:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero__platform-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.section {
  padding: 52px 0;
  scroll-margin-top: 80px;
}

.section .container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.section__title {
  margin: 0 0 10px;
  font-size: 20px;
}

.section__lead {
  margin: 0 0 18px;
  opacity: 0.75;
  font-size: 14px;
}

.contact__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__block {
  margin: 0;
  opacity: 0.95;
  font-size: 15px;
  line-height: 1.7;
}

.contact__block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__block a:hover {
  opacity: 0.85;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.button span {
  display: inline-block;
}

.button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon__img {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.grid {
  display: grid;
  gap: 16px;
}

/* Songs grid: desktop 3 columns */
@media (min-width: 769px) {
  #songs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
  }

  #songs .song {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

.song {
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.song__content {
  flex: 1;
  min-height: 0;
}

.song__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.song__cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.song h3 {
  margin: 0 0 8px;
}

.note {
  margin: 0 0 12px;
  opacity: 0.9;
  font-size: 13px;
}

.song__links {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery__wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  transform: none !important;
}

.grid.gallery,
.gallery-track {
  display: flex;
  gap: 20px;
  scrollbar-width: none;
  padding-left: 0;
  margin-left: 0;
  transform: none !important;
}

.gallery-track {
  direction: ltr;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.gallery-track,
.gallery-track > *,
.gallery-track img {
  transform: none !important;
  scale: 1 !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

.grid.gallery {
  padding: 4px 2px 8px;
}

.grid.gallery::-webkit-scrollbar {
  display: none;
}

.grid.gallery .gallery-item {
  flex: 0 0 40%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transform: none !important;
  transition: none !important;
}

@media (min-width: 700px) {
  .grid.gallery .gallery-item {
    /* טאבלט: ~3 תמונות בשורה */
    flex: 0 0 32%;
  }
}

@media (min-width: 1000px) {
  .grid.gallery .gallery-item {
    /* דסקטופ: 4–5 תמונות בשורה */
    flex: 0 0 22%;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none !important;
  transition: none !important;
}

.gallery__arrow {
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.gallery-prev,
.gallery-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  outline: none;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(20, 20, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.65);
}

.gallery-prev:active,
.gallery-next:active,
.gallery-prev:focus,
.gallery-next:focus,
.gallery-prev:focus-visible,
.gallery-next:focus-visible {
  transform: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.gallery-prev svg,
.gallery-next svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.footer {
  padding: 25px 0 45px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* כפתור דילוג לתוכן */
.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 10px;
}

/* כפתור ופאנל נגישות */
.accessibility-toggle {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
}

.accessibility-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.accessibility-panel {
  position: fixed;
  bottom: 70px;
  left: 16px;
  width: 240px;
  max-width: 80vw;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: none;
}

.accessibility-panel__title {
  margin: 0 0 10px;
  font-size: 15px;
}

.accessibility-panel__button {
  display: block;
  width: 100%;
  text-align: right;
  margin-bottom: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.accessibility-panel__button:last-child {
  margin-bottom: 0;
}

.accessibility-panel__button:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* מצבי נגישות בגוף הדף */
body.a11y-large-text {
  font-size: 150%;
}

body.a11y-large-text .hero__title {
  font-size: clamp(3.2rem, 9vw, 5rem);
}

body.a11y-large-text .hero__quote {
  font-size: 2.1rem;
}

body.a11y-large-text .topbar__links a {
  font-size: 15px;
  padding: 10px 14px;
}

body.a11y-large-text .section__title {
  font-size: 24px;
}

body.a11y-large-text .song h3 {
  font-size: 19px;
}

body.a11y-large-text .note,
body.a11y-large-text .section__lead,
body.a11y-large-text .footer {
  font-size: 16px;
}

body.a11y-high-contrast {
  background: #000;
  color: #fff;
}

body.a11y-high-contrast .section .container,
body.a11y-high-contrast .song,
body.a11y-high-contrast .gallery-item {
  background: #000;
  border-color: rgba(255, 255, 255, 0.6);
}

body.a11y-no-video .bg-video {
  display: none;
}

body.a11y-no-video .bg-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)),
    url('assets/background/fallback-bg.png') center center / cover no-repeat
      fixed;
}

/* מצב גלילה – החלפת וידאו לתמונה */
body.scrolled-bg .bg-video {
  display: none;
}

body.scrolled-bg .bg-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)),
    url('assets/background/fallback-bg.png') center center / cover no-repeat
      fixed;
}

/* מובייל */
@media (max-width: 768px) {
  /* וידאו במובייל – ממלא את המסך גם במצב אנכי (לאורך) */
  .bg-video {
    object-fit: cover;
    object-position: center center;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
  }

  /* תמונת רקע במובייל – רק במצב גלילה או כיבוי וידאו */
  body.a11y-no-video .bg-overlay,
  body.scrolled-bg .bg-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)),
      url('assets/background/fallback-bg.png') center 28% / cover no-repeat;
    background-attachment: scroll;
  }

  .topbar {
    position: relative;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px 14px;
  }

  .brand {
    order: 1;
    margin: 0 auto;
    text-align: center;
  }

  .brand__logo {
    height: 44px;
  }

  .topbar__links {
    order: 2;
    display: none; /* hide desktop nav on mobile */
  }

  .topbar__links a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(8, 8, 8, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .mobile-menu a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
  }

  .close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body {
    padding-top: 72px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  #songs {
    display: grid;
    grid-template-columns: 1fr;
  }
}
