/* ============================================
   VARIABLES
   ============================================ */
:root {
  --font: "Montserrat", "Open Sans", sans-serif;
  --font-hebrew: "Open Sans", sans-serif;
  --bg: #f7f0e1;
  --skeleton-bg: #e0d8c0;
  --skeleton-shine: #ece5cc;
  --skeleton-animation: shimmer 1.4s ease-in-out infinite;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: 200;
}

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

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

ul {
  list-style: none;
}

/* ============================================
   HERO  (homepage only)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
}

.hero img,
.hero video {
  width: 100%;
  height: auto;
  display: block;
}

/* Hebrew content — Open Sans, RTL */
body#page-workshop {
  font-family: var(--font-hebrew);
}

body#page-workshop h1,
body#page-workshop h2,
body#page-workshop h3,
body#page-workshop h4,
body#page-workshop h5,
body#page-workshop h6 {
  font-family: var(--font-hebrew);
}

#workshops .workshop-card,
#workshops .workshop-card h3 {
  font-family: var(--font-hebrew);
  font-size: 1.2rem;
}

#workshops h2 {
  direction: ltr;
  text-align: left;
}

/* ============================================
   NAVBAR
   Always visible at the top — sticky on all pages.
   Logo on the left, nav links on the right.
   ============================================ */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid #eee;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.always-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  display: block;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  color: #111;
}

/* Logo image — fixed height for horizontal bar */
.navbar .logo img {
  height: 60px;
  width: auto;
  display: block;
}

.navbar nav {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.navbar nav a {
  font-weight: normal;
  position: relative;
}

/* Reserve the bold width invisibly so the layout never shifts.
   The ::after pseudo-element holds the bold text at zero height,
   making the link always as wide as its bold version. */
.navbar nav a::after {
  content: attr(data-text);
  display: block;
  font-weight: bold;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.navbar nav a:hover {
  font-weight: bold;
}

/* Active section link — set by JS */
.navbar nav a.active {
  font-weight: bold;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 50px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

/* ============================================
   PROJECT CARDS  (3 per row, 2 on mobile, square)
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  border-radius: 12px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.3s,
    opacity 0.3s;
}

.project-card:hover img {
  filter: blur(3px);
  opacity: 0.75;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.project-card:hover::after {
  background: rgba(247, 240, 225, 0.7);
}

.project-card .card-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #111;
  font-size: 1.3rem;
  font-weight: 500;
  font-family: "Montserrat", "Open Sans", sans-serif;
  text-align: center;
  padding: 16px;
  z-index: 1;
}

.project-card:hover .card-title {
  opacity: 1;
}

/* ============================================
   TAGS BAR  (homepage, below projects title)
   ============================================ */
.tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tag-btn {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
  transition:
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}

.tag-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.tag-btn.dimmed {
  opacity: 0.35;
}

.tag-btn:not(.active):hover {
  border-color: #111;
  color: #111;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   WORKSHOP CARDS  (3 per row, 2 on mobile)
   ============================================ */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding-top: 30px;
}

.workshop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  gap: 12px;
}

.workshop-card .circle-img {
  transition: transform 0.3s ease;
}

.workshop-card:hover .circle-img {
  transform: translateY(-8px);
}

.workshop-card .circle-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

.workshop-card .circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-card h3 {
  font-size: 1rem;
}

.workshop-card .meta {
  font-size: 0.85rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.about-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bg);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid #eee;
  padding: 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

footer address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  color: #111;
  display: block;
  line-height: 0;
  transition: color 0.2s;
}

.footer-instagram:hover {
  color: #c13584;
}

.footer-whatsapp:hover {
  color: #25d366;
}


/* ============================================
   PAGE HERO  (project / workshop pages)
   ============================================ */
.page-hero {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: var(--bg);
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-hero .hero-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.page-hero .hero-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   PAGE BODY
   Order: title → meta → description
   ============================================ */
.page-body {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}

.page-body h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-body .meta {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.page-body p {
  margin-bottom: 16px;
  color: #333;
}

/* ============================================
   MASONRY GRID
   ============================================ */
.masonry-section {
  padding: 10px 40px;
  background: var(--bg);
}

.masonry-grid {
  max-width: 1200px;
  margin: 0 auto;
  columns: 3;
  column-gap: 12px;
}

.masonry-grid img {
  width: 100%;
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  cursor: pointer;
  border-radius: 12px;
}

.masonry-grid .gallery-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 4px;
  background: var(--bg);
}

.masonry-grid .gallery-video-wrap iframe,
.masonry-grid .gallery-video-wrap > div {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
}

/* ============================================
   IMAGE MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

.modal-prev,
.modal-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  opacity: 0.5;
  line-height: 1;
}

.modal-prev {
  left: 12px;
}
.modal-next {
  right: 12px;
}

.modal-prev:hover,
.modal-next:hover {
  opacity: 1;
}

/* ============================================
   TESTIMONIALS CAROUSEL
   One testimonial visible at a time,
   auto-advances every 5 seconds.
   ============================================ */
.testimonials-section {
  padding: 60px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-carousel .arrow {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #111;
  padding: 8px;
  flex-shrink: 0;
  line-height: 1;
}

.testimonial-carousel .arrow:hover {
  color: #555;
}

.testimonial-track {
  flex: 1;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 0 8px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide blockquote {
  font-size: 0.82rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonial-slide cite {
  font-size: 0.65rem;
  color: #888;
  font-style: normal;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.testimonial-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
}

.testimonial-dots .dot.active {
  background: #111;
}

/* ============================================
   MORE PROJECTS / WORKSHOPS
   Small, square, compact, centred.
   ============================================ */
.see-also {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.see-also h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  text-align: center;
}

.see-also-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.card-small {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  flex-shrink: 0;
  border-radius: 12px;
}

.card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s, opacity 0.3s;
}

.card-small:hover img {
  filter: blur(3px);
  opacity: 0.75;
}

.card-small::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 240, 225, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.card-small:hover::after {
  background: rgba(247, 240, 225, 0.7);
}

.card-small .card-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #111;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: "Montserrat", "Open Sans", sans-serif;
  text-align: center;
  padding: 8px;
  z-index: 1;
}

.card-small:hover .card-title {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  /* ── Navbar: hamburger menu ── */
  .navbar {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid #eee;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    z-index: 99;
  }

  .navbar nav.open {
    display: flex;
  }

  .navbar nav a {
    padding: 10px 0;
  }

  /* ── Hide hero ── */
  .hero {
    display: none;
  }

  /* ── Projects: single column, edge-to-edge ── */
  #projects {
    padding-left: 0;
    padding-right: 0;
  }

  #projects h2,
  #projects .tags-bar {
    padding: 0 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    border-radius: 0;
  }

  /* ── Workshops: single column ── */
  .workshops-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .workshop-card .circle-img {
    width: 240px;
    height: 240px;
  }

  /* ── Masonry: single column, edge-to-edge ── */
  .masonry-section {
    padding: 40px 0;
  }

  .masonry-grid {
    columns: 1;
  }

  .masonry-grid img,
  .masonry-grid .gallery-video-wrap {
    border-radius: 0;
    margin-bottom: 8px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer {
    padding: 40px 20px;
  }

  .page-body {
    padding: 0 20px;
    margin: 40px auto;
  }

  .testimonials-section {
    padding: 40px 20px;
  }

  .see-also {
    padding: 40px 20px;
  }

  .card-small {
    width: 90px;
    height: 90px;
  }
}

/* ================================================
   SKELETON LOADING
   To swap animation: change --skeleton-animation,
   or replace the .is-loading rule block entirely.
   ================================================ */

@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}

.is-loading {
  background: linear-gradient(
    90deg,
    var(--skeleton-bg) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-bg) 75%
  );
  background-size: 600px 100%;
  animation: var(--skeleton-animation);
}

.is-loading > img {
  opacity: 0;
}

.skel-line {
  height: 1em;
  margin-bottom: 12px;
  border-radius: 3px;
}
.skel-line--title {
  height: 2rem;
  width: 55%;
  margin-bottom: 20px;
}
.skel-line--wide {
  width: 100%;
}
.skel-line--medium {
  width: 75%;
}
.skel-line--narrow {
  width: 40%;
}

.masonry-item {
  width: 100%;
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  min-height: 120px;
}
.masonry-item img {
  width: 100%;
  display: block;
}

/* ============================================
   SCROLL-ENTRY ANIMATIONS
   ============================================ */

.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.will-animate.did-animate {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .will-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
