/*
 * Stumap — page chrome per Figma "מסך ראשי" (1440 × 1438 frame).
 * Header positions are percentages of the 1440 × 176 header box so it scales.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fffbf6;
  color: #4f3689;
  font-family: "Alef", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  border-radius: 12px;
  background: #fff;
  color: #4f3689;
  font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 5;
  background: #fff5e8 var(--stumap-header-texture) center bottom / cover no-repeat;
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1440 / 176;
  direction: ltr; /* positions below are measured from the Figma's left edge */
}

.site-header__inner > * {
  position: absolute;
  display: block;
  margin: 0;
}

.site-header__title {
  top: 2.84%;
  left: 50%;
  width: 40.41%;
  transform: translateX(-50%);
  line-height: 0;
}

.site-header__title img {
  width: 100%;
  height: auto;
}

.site-header__logo--municipality {
  top: 38.64%;
  left: 6.667%;
  width: 6.995%;
  aspect-ratio: 100.72 / 50.38;
}

.logo-part {
  position: absolute;
  height: auto;
}

.logo-part--a {
  top: 0;
  left: 33.36%;
  width: 66.64%;
}

.logo-part--b {
  top: 89.1%;
  left: 36.93%;
  width: 61.48%;
}

.logo-part--c {
  top: 13.1%;
  left: 0;
  width: 28.89%;
}

.site-header__logo--youth {
  top: 39.77%;
  left: 86.25%;
  width: 7.068%;
  height: auto;
}

.site-header__window--shutters {
  top: 26.7%;
  left: 18.4%;
  width: 8.82%;
  height: auto;
}

.site-header__window--wisteria {
  top: 19.89%;
  left: 74.51%;
  width: 4.861%;
  height: auto;
}

@media (max-width: 700px) {
  .site-header__inner {
    aspect-ratio: auto;
    height: 150px;
  }

  .site-header__title {
    top: 46px;
    width: 86%;
  }

  .site-header__logo--municipality {
    top: 12px;
    left: 16px;
    width: 64px;
  }

  .site-header__logo--youth {
    top: 12px;
    left: auto;
    right: 16px;
    width: 66px;
  }

  .site-header__window {
    display: none;
  }
}

/* ------------------------------------------------------------------ *
 * Main
 * ------------------------------------------------------------------ */

.site-main {
  position: relative;
  background: #fffbf5;
}

.site-main--page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-size: 17px;
  line-height: 1.6;
}

.page-content__title {
  margin: 0 0 24px;
  color: #ff49b0;
  font-size: 32px;
}

/* Paper grain over the whole page (Figma "Rectangle 11": overlay blend). */
.site-grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--stumap-grain) center / cover;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
