/* ============================================
   YOTAM OLMER — Artist Landing Page
   Standalone design. No framework dependency.
   Hebrew RTL. Editorial + warm + bold.
   ============================================ */

/* --- Custom Hebrew Fonts --- */
@font-face {
  font-family: 'Migdal Haemeq';
  src: url('fonts/MigdalFontwin.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yarden';
  src: url('fonts/yarden-regular-alefalefalef.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Yarden';
  src: url('fonts/yarden-bold-alefalefalef.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Heshbon';
  src: url('fonts/heshbon-regular-alefalefalef.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Heshbon';
  src: url('fonts/heshbon-bold-alefalefalef.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Yarden', 'Heebo', sans-serif;
  color: #1a1a1a;
  background: #f4efe6;
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection {
  background: #1a1a1a;
  color: #f4efe6;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 48px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 101;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: #f4efe6;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
}
.nav.scrolled .nav-burger span { background: #1a1a1a; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Links */
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.26rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f4efe6;
  position: relative;
  padding: 4px 0;
  transition: color 0.4s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: #f4efe6;
  transition: width 0.3s ease, background 0.4s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Nav colors switch to dark when scrolled */
.nav.scrolled .nav-links a { color: #1a1a1a; }
.nav.scrolled .nav-links a::after { background: #1a1a1a; }

/* Nav socials */
.nav-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #f4efe6;
  transition: fill 0.4s ease;
}
.nav.scrolled .social-icon svg { fill: #1a1a1a; }
.social-icon:hover {
  opacity: 0.5;
  transform: translateY(-1px);
}


/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Decorative stars */
.hero-deco-star {
  position: absolute;
  font-size: 2rem;
  color: #f4efe6;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.hero-deco-star-1 {
  top: -40px;
  right: -80px;
  font-size: 3rem;
  animation-delay: 0s;
}
.hero-deco-star-2 {
  bottom: 20px;
  left: -60px;
  font-size: 1.5rem;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-name-he {
  font-family: 'Migdal Haemeq', 'Frank Ruhl Libre', serif;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: normal;
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: #f4efe6;
  display: block;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(244, 239, 230, 0.8);
  margin-top: 32px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 48px;
  background: #f4efe6;
  color: #1a1a1a;
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 2px solid #f4efe6;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: transparent;
  color: #f4efe6;
  transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: #f4efe6;
  opacity: 0.5;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ============================================
   SECTIONS (shared)
   ============================================ */

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-title {
  font-family: 'Migdal Haemeq', 'Frank Ruhl Libre', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: #1a1a1a;
  margin-top: 20px;
}

[dir="rtl"] .section-title::after {
  margin-right: 0;
}

/* ============================================
   MUSIC — ALBUM FEATURE
   ============================================ */

.section-music {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.album-name {
  font-family: 'Migdal Haemeq', 'Frank Ruhl Libre', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.album-desc {
  font-size: 1rem;
  color: #6b6356;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

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

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid rgba(0,0,0,0.15);
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.19rem;
  font-weight: 400;
  color: #1a1a1a;
  transition: all 0.25s ease;
  background: transparent;
}
.platform-btn svg {
  fill: #1a1a1a;
  flex-shrink: 0;
}
.platform-btn:hover {
  background: #1a1a1a;
  color: #f4efe6;
  border-color: #1a1a1a;
}
.platform-btn:hover svg { fill: #f4efe6; }

/* Icon-only platform buttons */
.platform-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  transition: all 0.25s ease;
  background: transparent;
}
.platform-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: #1a1a1a;
}
.platform-icon-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}
.platform-icon-btn:hover svg { fill: #f4efe6; }


/* --- Album Info (no art) --- */
.album-info {
  margin-bottom: 32px;
  text-align: center;
}

.album-info .album-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
}

.section-music .album-platforms {
  justify-content: center;
}

.section-music .section-title {
  text-align: center;
}
.section-music .section-title::after {
  margin: 20px auto 0;
}

/* --- Spotify Embed --- */
.spotify-embed {
  margin-top: 0;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

/* ============================================
   VIDEO
   ============================================ */

.section-video {
  background: #1a1a1a;
  color: #f4efe6;
}

.section-video .section-title {
  color: #f4efe6;
}
.section-video .section-title::after {
  background: #f4efe6;
}

.video-feature {
  margin-bottom: 48px;
}

.video-embed-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  position: relative;
}

.video-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  padding: 20px 0;
}
.video-caption h3 {
  font-family: 'Migdal Haemeq', 'Frank Ruhl Libre', serif;
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.video-caption p {
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.26rem;
  color: rgba(244,239,230,0.5);
}

/* --- Clips Grid (embedded videos) --- */
.clips-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.clip-item .video-embed-wrap {
  margin-bottom: 0;
}

.clip-item .video-caption {
  padding: 16px 0 0;
}

.clip-item .video-caption p {
  color: rgba(244,239,230,0.5);
}


/* ============================================
   AUDITION
   ============================================ */

.section-audition {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.audition-feature {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.audition-player-wrap {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
}

.audition-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.audition-info {
  text-align: center;
}

.audition-song {
  font-family: 'Migdal Haemeq', 'Frank Ruhl Libre', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.audition-credit {
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.26rem;
  color: #8a7d6b;
  margin-bottom: 16px;
}

.audition-desc {
  font-size: 1rem;
  color: #6b6356;
  line-height: 1.7;
  margin-bottom: 24px;
}


/* ============================================
   ABOUT
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4439;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-notable {
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 8px;
}


/* ============================================
   GALLERY
   ============================================ */

.section-gallery {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}
.gallery-item:hover::after {
  background: rgba(0,0,0,0.08);
}

.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: 'Migdal Haemeq', 'Frank Ruhl Libre', serif;
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.footer-contact {
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.19rem;
  color: #6b6356;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.footer-contact a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  display: flex;
  width: 22px;
  height: 22px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-links svg {
  width: 100%;
  height: 100%;
  fill: #1a1a1a;
}
.footer-links a:hover {
  opacity: 0.5;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: #a09585;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .album-desc { margin-left: auto; margin-right: auto; }
  .album-platforms { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .audition-feature {
    gap: 24px;
  }

  .about-photo {
    max-width: 400px;
    margin: 0 auto;
    order: -1;
  }
  .about-text .section-title {
    text-align: center;
  }
  .about-text .section-title::after {
    margin: 16px auto 0;
  }
  .about-text p { text-align: center; }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gi-wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  /* Nav */
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #f4efe6;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    background: #f4efe6;
  }
  .nav-links.open a {
    color: #1a1a1a;
  }
  .nav-links.open a::after {
    background: #1a1a1a;
  }
  .nav-burger.open span {
    background: #1a1a1a;
  }
  .nav-links a {
    font-size: 1.96rem;
    font-weight: 700;
  }
  .nav-socials { display: none; }

  /* Hero */
  .hero-name-he {
    font-size: clamp(3rem, 18vw, 6rem);
  }
  .hero-deco-star-1 { right: -20px; font-size: 2rem; }
  .hero-deco-star-2 { left: -10px; }

  /* Gallery */
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gi-tall { grid-row: span 1; }
  .gi-wide { grid-column: span 1; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* ============================================
   SHOWS
   ============================================ */

.section-shows {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.shows-content {
  text-align: center;
}

.shows-image {
  max-width: 700px;
  margin: 0 auto 32px;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.shows-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shows-coming-text {
  font-size: 1.05rem;
  color: #6b6356;
  line-height: 1.8;
}


/* ============================================
   NEWSLETTER
   ============================================ */

.section-newsletter {
  background: #1a1a1a;
  color: #f4efe6;
  position: relative;
  overflow: hidden;
}

.section-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nl-bg, url('images/piano-dark.jpg')) left center / cover no-repeat;
  opacity: 0.45;
  z-index: 0;
}

.section-newsletter .container {
  position: relative;
  z-index: 1;
}

.section-newsletter .section-title {
  color: #f4efe6;
  text-align: center;
}
.section-newsletter .section-title::after {
  background: #f4efe6;
  margin: 20px auto 0;
}

.newsletter-inner {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-desc {
  color: rgba(244, 239, 230, 0.7);
  margin-bottom: 32px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.newsletter-input {
  padding: 12px 20px;
  border: 1.5px solid rgba(244, 239, 230, 0.3);
  background: transparent;
  color: #f4efe6;
  font-family: 'Yarden', 'Heebo', sans-serif;
  font-size: 0.9rem;
  flex: 1;
  max-width: 300px;
  outline: none;
  transition: border-color 0.3s ease;
}
.newsletter-input:focus {
  border-color: rgba(244, 239, 230, 0.7);
}
.newsletter-input::placeholder {
  color: rgba(244, 239, 230, 0.4);
}

.newsletter-btn {
  padding: 12px 32px;
  background: #f4efe6;
  color: #1a1a1a;
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  border: 2px solid #f4efe6;
  cursor: pointer;
  transition: all 0.3s ease;
}
.newsletter-btn:hover {
  background: transparent;
  color: #f4efe6;
}

.newsletter-success {
  color: rgba(244, 239, 230, 0.8);
  font-family: 'Heshbon', 'Heebo', sans-serif;
  font-size: 1.4rem;
  margin-top: 16px;
  display: none;
}
.newsletter-success.show {
  display: block;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-input {
    max-width: 100%;
    width: 100%;
  }
}


/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #f4efe6;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #f4efe6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  z-index: 201;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }


/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #1a1a1a;
  color: #f4efe6;
  padding: 12px 24px;
  z-index: 200;
  font-family: 'Heshbon', 'Heebo', sans-serif;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}


/* --- Fade-in on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
