:root {
  --bg: #f8f4ec;
  --bg-cream: #efe5d5;
  --surface: #fffdf8;
  --surface-soft: #faf6ef;
  --green: #5f8d75;
  --green-strong: #2f6b54;
  --green-deep: #173f31;
  --ink: #17231c;
  --muted: #657166;
  --line: rgba(34, 48, 39, 0.13);
  --shadow: 0 18px 46px rgba(59, 45, 28, 0.12);
  --radius: 8px;
  --shell: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    "Assistant",
    "Rubik",
    "Heebo",
    Arial,
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 30;
  translate: 0 -160%;
  border-radius: 999px;
  background: var(--green-deep);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  translate: 0;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 20;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--green-deep);
  box-shadow: 0 16px 42px rgba(28, 35, 27, 0.14);
  backdrop-filter: blur(18px);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  padding-inline: 16px;
  color: rgba(23, 63, 49, 0.74);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-inline-start: auto;
}

.header-cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--green-strong);
  color: white;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.header-cta--soft {
  background: rgba(47, 107, 84, 0.12);
  color: var(--green-deep);
}

.hero {
  position: relative;
  min-height: 90svh;
  overflow: clip;
  display: grid;
  align-items: center;
  padding: 118px 0 118px;
  color: white;
  isolation: isolate;
}

.hero__media,
.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  background: var(--bg-cream);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(20, 30, 25, 0.38), rgba(20, 30, 25, 0.12) 42%, rgba(20, 30, 25, 0.56)),
    linear-gradient(90deg, rgba(20, 30, 25, 0.04), rgba(20, 30, 25, 0.52));
}

.hero__content {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  transform: translateY(-34px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 9vw, 5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p {
  max-width: 660px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.08rem, 3.8vw, 1.38rem);
  line-height: 1.72;
  text-wrap: balance;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button svg,
.icon-button svg {
  width: 1.12em;
  height: 1.12em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button--primary {
  background: var(--green-strong);
  color: white;
  box-shadow: 0 18px 34px rgba(23, 63, 49, 0.28);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(12px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--green-deep);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.hero__facts {
  position: absolute;
  inset: auto 0 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: rgba(255, 255, 255, 0.94);
}

.hero__facts span {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.9rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.section {
  padding: clamp(54px, 7vw, 88px) 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 24px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green-strong);
  font-size: 0.92rem;
  font-weight: 950;
}

.section-heading h2,
.final-contact h2 {
  margin: 0;
  font-size: clamp(2.05rem, 7vw, 4.3rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p:not(.section-kicker),
.final-contact p {
  max-width: 700px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
}

.gallery-section {
  background:
    radial-gradient(circle at 90% 5%, rgba(95, 141, 117, 0.13), transparent 28rem),
    var(--surface);
  padding-bottom: 60px;
}

.gallery-shell {
  display: grid;
  gap: 14px;
}

.gallery-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-stage__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-cream);
}

.gallery-stage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
}

.gallery-stage__bar p {
  margin: 0;
  font-weight: 950;
  line-height: 1.25;
}

.gallery-stage__bar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-controls {
  display: inline-flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--green-deep);
  cursor: pointer;
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 34%);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.thumb-button {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(43, 33, 23, 0.1);
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.thumb-button:hover,
.thumb-button:focus-visible {
  transform: translateY(-2px);
}

.thumb-button[aria-current="true"] {
  border-color: var(--green-strong);
}

.thumb-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-cream);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-button span {
  display: block;
  overflow: hidden;
  padding: 9px 10px 11px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-divider {
  height: 44px;
  background: var(--bg);
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
}

.v-divider--cream {
  background: var(--bg);
}

.includes-section {
  margin-top: -1px;
  background:
    radial-gradient(circle at 10% 12%, rgba(95, 141, 117, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, #fbf8f1 100%);
}

.includes-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.include-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(48, 38, 25, 0.07);
}

.include-card:nth-child(even) {
  background: rgba(242, 234, 221, 0.72);
  border-color: rgba(47, 107, 84, 0.15);
}

.include-card h3 {
  margin: 0 0 13px;
  color: var(--green-deep);
  font-size: 1.22rem;
  line-height: 1.25;
}

.include-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.include-card li {
  position: relative;
  padding-inline-start: 20px;
  color: #314239;
  font-size: 0.99rem;
  line-height: 1.55;
}

.include-card li::before {
  position: absolute;
  inset-block-start: 0.7em;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.final-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 9vw, 96px) 0;
  background:
    radial-gradient(circle at 84% 20%, rgba(95, 141, 117, 0.15), transparent 26rem),
    linear-gradient(180deg, #fffdf8 0%, #f0e6d7 100%);
  text-align: center;
}

.final-contact::before {
  position: absolute;
  inset: 0 0 auto;
  height: 36px;
  background: var(--surface);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  content: "";
}

.final-contact__inner {
  display: grid;
  justify-items: center;
  padding-top: 14px;
}

.contact-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.contact-pill {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(47, 107, 84, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-deep);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(48, 38, 25, 0.08);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px);
  background: rgba(95, 141, 117, 0.12);
}

.site-footer {
  padding: 22px 0;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer span {
  color: var(--green-deep);
  font-weight: 900;
}

.photo-frame.is-missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(95, 141, 117, 0.12), rgba(183, 121, 85, 0.1)),
    var(--bg-cream);
}

.photo-frame.is-missing img {
  display: none;
}

.photo-frame.is-missing::before {
  content: "נדרש קובץ תמונה מקורי";
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 850;
}

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

@media (min-width: 680px) {
  :root {
    --shell: min(1120px, calc(100% - 56px));
  }

  .nav-links {
    display: flex;
  }

  .hero__facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-stage__image {
    aspect-ratio: 16 / 10;
  }

  .gallery-thumbs {
    grid-auto-columns: minmax(132px, 1fr);
  }

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

@media (min-width: 920px) {
  .hero {
    min-height: 92svh;
  }

  .hero__content {
    margin-inline: auto;
    text-align: right;
  }

  .hero h1 {
    max-width: 780px;
  }

  .hero p {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .gallery-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: stretch;
  }

  .gallery-thumbs {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    padding: 0;
  }

  .thumb-media {
    aspect-ratio: 4 / 3;
  }

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

@media (max-width: 430px) {
  :root {
    --shell: min(100% - 24px, 1120px);
  }

  .site-header {
    inset-block-start: 10px;
    justify-content: center;
    padding: 7px;
  }

  .header-actions {
    width: 100%;
  }

  .header-cta {
    flex: 1;
    min-height: 35px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 92svh;
    padding: 96px 0 154px;
  }

  .hero__content {
    transform: translateY(-22px);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

  .button,
  .contact-pill {
    width: 100%;
  }

  .hero__facts {
    bottom: 16px;
  }

  .hero__facts span {
    min-height: 36px;
    font-size: 0.82rem;
  }

  .gallery-stage__bar {
    align-items: flex-start;
  }
}
