:root {
  --bg: #f5fbf9;
  --surface: #ffffff;
  --surface-soft: #e6f4f1;
  --ink: #17333b;
  --muted: #587077;
  --teal: #0f766e;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --mint: #9de3cf;
  --line: #c9ddd9;
  --shadow: 0 24px 60px rgba(23, 51, 59, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.68), rgba(245, 251, 249, 0) 460px),
    var(--bg);
  color: var(--ink);
}

body[dir="rtl"] {
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 251, 249, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 221, 217, 0.8);
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 750;
  text-decoration: none;
  max-width: 62vw;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(15, 118, 110, 0.92)),
    radial-gradient(circle at 70% 30%, #fff 0 13%, transparent 14%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-panel a,
.language-picker select,
.button {
  border-radius: var(--radius);
  min-height: 42px;
}

.nav-panel a {
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-panel a:hover,
.nav-panel a:focus {
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}

.language-picker select {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 0.8rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.6rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: min(720px, calc(100vh - 72px));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.final-icon-button {
  display: grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--teal);
  text-decoration: none;
}

.final-icon-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.final-whatsapp {
  color: #1f9d58;
}

.final-email {
  color: var(--blue);
}

.final-icon-button:hover svg,
.final-icon-button:focus svg {
  transform: scale(1.07);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.8rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.art-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(23, 51, 59, 0.08);
}

.art-image-button {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  text-decoration: none;
}

.art-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.art-card-body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.art-card-body p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  min-height: 4.8rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 760;
  line-height: 1.15;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.card-action.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.card-action.secondary {
  background: #fff;
  color: var(--ink);
}

.card-action:disabled,
.card-action.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1e40af;
  font-size: 0.86rem;
  font-weight: 720;
}

.about-band,
.contact-band {
  border-top: 1px solid var(--line);
}

.text-column,
.contact-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.text-column p {
  margin: 0 0 1rem;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.art-dialog {
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.art-dialog::backdrop {
  background: rgba(11, 31, 37, 0.62);
}

.dialog-close {
  position: sticky;
  top: 0.75rem;
  inset-inline-start: calc(100% - 3.25rem);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
}

body[dir="rtl"] .dialog-close {
  inset-inline-start: 0.75rem;
}

.art-detail {
  padding: clamp(1rem, 3vw, 2rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1.25rem, 4vw, 2.4rem);
  align-items: start;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

body[dir="rtl"] .detail-list div {
  grid-template-columns: minmax(86px, auto) 1fr;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 720;
}

.detail-list dd {
  margin: 0;
  font-weight: 720;
}

.pieces-section {
  margin-top: 2rem;
}

.pieces-section h3 {
  margin-bottom: 0.9rem;
}

.pieces-grid {
  display: grid;
  grid-template-columns: repeat(var(--piece-count), minmax(0, 1fr));
  gap: clamp(0.35rem, 1vw, 0.7rem);
  align-items: start;
}

.pieces-grid figure {
  margin: 0;
}

.pieces-grid img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.pieces-grid figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.history-section {
  margin-top: 2rem;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.history-controls {
  display: flex;
  gap: 0.45rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.history-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 34%);
  gap: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.8rem;
  direction: ltr;
}

.history-track figure {
  margin: 0;
  scroll-snap-align: start;
}

body[dir="rtl"] .history-track figure {
  direction: rtl;
}

.history-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.history-track figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: start;
}

@media (max-width: 860px) {
  .topbar {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-panel {
    position: absolute;
    inset-inline: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-panel a,
  .language-picker select {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .history-track {
    grid-auto-columns: minmax(205px, 72%);
  }

  .pieces-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 42%);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
    direction: ltr;
  }

  .pieces-grid figure {
    scroll-snap-align: start;
  }

  body[dir="rtl"] .pieces-grid figure {
    direction: rtl;
  }
}

@media (max-width: 560px) {
  .brand {
    max-width: calc(100vw - 96px);
  }

  .hero,
  .section,
  .topbar,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

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

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .art-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }

  .art-detail {
    padding: 0.85rem;
  }

  .history-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
