/* ═══════════════════════════════ FONTS ═══════════════════════════════ */
@font-face {
  font-family: 'Matricsa';
  src: url('fonts/FbMatritsa-Bold.eot');
  src: url('fonts/FbMatritsa-Bold.eot?#iefix')          format('embedded-opentype'),
       url('fonts/fbmatritsa-boldwebfont.ttf')           format('truetype'),
       url('fonts/fbmatritsa-boldwebfont.svg#fb_matritsabold') format('svg');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════ TOKENS ══════════════════════════════ */
:root {
  /* Brand core */
  --navy:        #00364B;
  --gold:        #F6B31C;
  --cyan:        #00B0D9;
  --hero-grey:   #413F44;
  --bg-grey:     #EDF1F2;
  --white:       #FFFFFF;

  /* Card — BLUE */
  --blue-title:  #00638A;
  --blue-strong: #00B1DB;
  --blue-soft:   #6ACCE5;

  /* Card — ORANGE */
  --orange-title:  #E98E23;
  --orange-strong: #F3B735;
  --orange-soft:   #F8CF7D;

  /* Card — GREEN */
  --green-title:  #7F983C;
  --green-strong: #C2D351;
  --green-soft:   #D5E18B;

  /* Layout */
  --max-width: 1280px;
  --section-pad-v-sm: 40px;
  --section-pad-v-lg: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Matricsa', 'Heebo', 'Arial Hebrew', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  background: var(--white);
  color: var(--navy);
}

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

/* ═══════════════════════════════ 1. HEADER ═══════════════════════════ */
.site-header {
  background: var(--navy);
  padding-block: 32px 44px;
  padding-inline: 20px;
  text-align: center;
}

.site-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.site-header__logo {
  width: 190px;
  height: auto;
}

.site-header__subhead {
  color: var(--white);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3.6vw, 29px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.site-header__hero {
  color: var(--gold);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Desktop */
@media (min-width: 768px) {
  .site-header {
    padding-block: 44px 60px;
    padding-inline: 40px;
  }

  .site-header__logo {
    width: 270px;
  }

  .site-header__inner {
    gap: 18px;
  }
}

/* ═══════════════════════════════ 2. HERO ════════════════════════════════ */
.hero {
  position: relative;
  background: var(--hero-grey); /* fallback while images load */
}

/* ── Carousel container — defines height, clips overflow ── */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
}

/* ── Individual slides — stacked absolutely ── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ── Keyframes ── */
@keyframes heroBgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroFrontIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroQuoteIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1);    }
}

/* ── Default non-active child state ── */
.hero-slide .hero-slide__bg  { opacity: 0; }
.hero-slide .hero__photo      { opacity: 0; transform: translateY(40px); }
.hero-slide .hero__quote      { opacity: 0; transform: scale(0.88); }

/* ── Entry animations (trigger when slide becomes active) ── */
.hero-slide.is-active .hero-slide__bg {
  animation: heroBgIn    0.8s ease                            forwards;
}
.hero-slide.is-active .hero__photo {
  animation: heroFrontIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.hero-slide.is-active .hero__quote {
  animation: heroQuoteIn 0.65s ease                            0.35s forwards;
}

/* ── Slide background image ── */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.7);
}

/* ── Inner flex row (right: front image, left: quote) — sits above bg ── */
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

/* RIGHT column (start in RTL) — transparent foreground PNG */
.hero__photo {
  flex: 0 0 100%;
  margin: 0;
  margin-right: -8vw;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Front PNG: contain so the full figure is always visible over the bg */
.hero-slide__front {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  display: block;
}

/* ── Arrow buttons ── */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  transition: filter 0.2s, opacity 0.2s;
}
.hero-carousel__arrow:hover {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.75));
  opacity: 0.85;
}
.hero-carousel__arrow svg { width: 32px; height: 32px; }

.hero-carousel__arrow--prev { left: 14px; }
.hero-carousel__arrow--next { right: 14px; }

/* ── Dot indicators ── */
.hero-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.hero-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.25);
  border-color: #fff;
}

/* LEFT column (end in RTL) — quote text */
.hero__content {
  position: absolute;
  bottom: 17%;
  left: 12%;
  right: 8%;
  display: flex;
  align-items: center;
  padding-inline: 37% 0%;
}

.hero__quote-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.hero__quote-attr {
  font-style: normal;
  font-weight: 700;
  font-family: 'Assistant', sans-serif;
  font-size: clamp(12px, 1.4vw, 16px);
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__quote {
  color: var(--white);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  /* Fluid: ~38px at 1600px (20% smaller than original 48px), scales down below */
  font-size: clamp(15px, 2.4vw, 38px);
  line-height: 1.3;
  quotes: none;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 4px 18px rgba(0, 0, 0, 0.35);
}


/* ── Floating CTA pill ── */
.hero__cta {
  position: fixed;
  bottom: 28px;
  right: 40px;
  z-index: 200;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;

  background-color: var(--cyan);
  color: var(--white);
  text-decoration: none;
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 21px);
  white-space: nowrap;

  padding-block: 11px;
  padding-inline-start: 16px;
  padding-inline-end: 28px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgb(0 0 0 / 0.28);
  transition: opacity 0.35s ease;
}

.hero__cta.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__cta-text {
  transform: translateY(0.1em);
}

.hero__cta-arrow {
  width: 18px;
  height: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .hero-carousel {
    height: 430px;
  }

  .hero__photo {
    flex: 0 0 44%;
    margin-right: 0;
  }

  .hero-slide__front {
    object-position: left bottom;
  }

  .hero__content {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    flex: 1;
    padding-block: 28px;
    padding-inline: 4% 8%;
  }

  .hero__quote {
    line-height: 1.45;
  }

  .hero__cta-arrow {
    width: 21px;
  }
}

/* ═══════════════════════════════ 3. CARDS ════════════════════════════════ */

/*
  z-index: 1 keeps this section below the floating CTA (z-index: 10)
  so the pill overlaps visually without being hidden.
  padding-block-start accounts for the CTA pill hanging 28px below the hero.
*/
.cards {
  background: var(--bg-grey);
  position: relative;
  z-index: 1;
  padding-block-start: 52px;
  padding-block-end: 56px;
  padding-inline: 20px;
}

.cards__grid {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;   /* mobile: single column */
  gap: 24px;
}

/* ── Card shell ── */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Thumbnail + centered play overlay ──
   Grid stacking trick: both children share area 1/1, no absolute needed.  */
.card__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.card__thumb-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__play-overlay {
  grid-area: 1 / 1;   /* stacks over the image via grid */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.card__play-overlay img {
  width: clamp(48px, 8vw, 72px);
  height: auto;
  display: block;
  /* Play.svg is white — it reads well on any photo */
}

/* ── Name bar ── */
.card__name {
  margin: 0;
  margin-top: -2px;
  color: var(--white);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 21px);
  text-align: center;
  padding-block: 13px;
  padding-inline: 16px;
  line-height: 1.2;
}

.card--green  .card__name { background: var(--green-title);  }
.card--orange .card__name { background: var(--orange-title); }
.card--blue   .card__name { background: var(--blue-title);   }

/* ── Action buttons area ── */
/*
  padding-inline: 0 so buttons span the exact same width as the name bar.
  A small gap keeps bg-grey visible between the square-edged buttons.
*/
.card__actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 6px 0;
  padding-inline: 0;
  background: var(--bg-grey);
}

/* ── Shared button style ── */
.card__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  padding-block: 15px;
  padding-inline: 16px;
  border-radius: 0;
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 21px);
  text-decoration: none;
  color: var(--navy);
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.card__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.card__btn:active {
  filter: brightness(0.95);
  transform: translateY(0);
}

.card__btn-text {
  transform: translateY(0.1em);
}

/* Icon sits at visual LEFT (end in RTL) — last child in flex row */
.card__btn-icon {
  width: clamp(18px, 2.2vw, 26px);
  height: auto;
  flex-shrink: 0;
}

/* Recolour white Play.svg to var(--navy) ≈ #00364B.
   Chain: white → black (brightness 0) → grey (invert 29%) →
   sepia + hue-rotate to ~198° → saturate to 100% → darken to L≈15% */
.card__btn-icon--play {
  filter: brightness(0) invert(29%) sepia(100%) hue-rotate(159deg) saturate(600%) brightness(44%);
}

/* ── STRONG button (watch / צפו) ── */
.card--green  .card__btn--strong { background: var(--green-strong);  }
.card--orange .card__btn--strong { background: var(--orange-strong); }
.card--blue   .card__btn--strong { background: var(--blue-strong);   }

/* ── SOFT buttons (discover / גלו) ── */
.card--green  .card__btn--soft { background: var(--green-soft);  }
.card--orange .card__btn--soft { background: var(--orange-soft); }
.card--blue   .card__btn--soft { background: var(--blue-soft);   }

/* ── Desktop: 3-column grid ── */
@media (min-width: 768px) {
  .cards {
    padding-inline: 40px;
    padding-block-start: 56px;
  }

  .cards__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .card__thumb {
    aspect-ratio: 16 / 9;
  }

  .card__actions {
    padding-inline: 0;
    gap: 8px;
  }

  .card__btn {
    padding-block: 12px;
  }
}

/* ── Mobile: CTA fixed centre-bottom; quote stays one line ── */
@media (max-width: 767px) {
  .hero__cta {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }

}

/* ═══════════════════════════ VIDEO MODAL ════════════════════════════ */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__inner {
  position: relative;
  width: min(92vw, 960px);
  aspect-ratio: 16 / 9;
}

.video-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 4px;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.video-modal__close:hover {
  opacity: 1;
}

/* Thumbnail is now interactive */
.card__thumb {
  cursor: pointer;
}

.card__thumb:hover .card__play-overlay img {
  transform: scale(1.12);
  transition: transform 0.18s ease;
}

.card__play-overlay img {
  transition: transform 0.18s ease;
}

/* ═══════════════════════════════ 4. FORM ════════════════════════════════ */
.form-section {
  /*
    Gradient: bright cyan on the visual-right (start in RTL) →
    deep teal on the visual-left (end in RTL).
    Using physical `to left` so it's independent of writing direction.
  */
  background: linear-gradient(to left, #13c5e8, #046882);
  position: relative;
  overflow: hidden;
  padding-block: 28px 68px;
  padding-inline: 24px;
}

/* ── Plus decorations ── */
.form-section__plus {
  position: absolute;
  pointer-events: none;
  /* SVG already has internal white fill + 0.24 opacity */
}

/* Large plus — visual LEFT (inline-end), vertically centred */
.form-section__plus--large {
  width: 160px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  inset-inline-end: -45px;   /* visual LEFT in RTL */
}

/* Small plus — visual RIGHT (inline-start), upper area */
.form-section__plus--small {
  width: 90px;
  inset-block-start: 12%;
  inset-inline-start: -14px; /* visual RIGHT in RTL */
}

/* ── Inner wrapper ── */
.form-section__inner {
  position: relative;   /* sits above the pseudo-element decorations */
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Heading ── */
.form-section__heading {
  color: var(--white);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 38px);
  text-align: center;
  line-height: 1.3;
}

/* ── Form ── */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/*
  Mobile-first: 2-col grid.
  First 4 fields span both columns (full width).
  Last 2 (עיר + בית ספר) each occupy one column → side-by-side pair.
*/
.form__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* Wrappers are the grid items; first 4 span full width on mobile */
.form__field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form__field-wrap:nth-child(-n+4) {
  grid-column: 1 / -1;
}

/* ── Field shared style ── */
.form__field {
  background: var(--white);
  border: none;
  border-radius: 8px;
  padding-block: 13px;
  padding-inline: 22px;
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--navy);
  width: 100%;
  outline: none;
  direction: rtl;
}

.form__field::placeholder {
  color: #7a9aaa;
}

.form__field:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
  outline: none;
}

.form__field.is-invalid {
  border: 2px solid #e05252;
  box-shadow: none;
}

.form__field.is-valid {
  border: 2px solid rgba(0, 176, 100, 0.55);
}

/* Inline error message */
.form__error {
  display: inline-block;
  align-self: flex-start;
  color: #e51b25;
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.form__error:empty {
  display: none;
}

/* Shake keyframe for invalid fields on submit */
@keyframes field-shake {
  0%,  100% { transform: translateX(0);    }
  20%        { transform: translateX(-7px); }
  40%        { transform: translateX( 7px); }
  60%        { transform: translateX(-4px); }
  80%        { transform: translateX( 4px); }
}

.form__field-wrap.shake {
  animation: field-shake 0.35s ease;
}

/* ── Disclaimer ── */
.form__disclaimer {
  width: 100%;
  color: var(--white);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.form__disclaimer a {
  color: var(--white);
  text-decoration: underline;
}

.form__disclaimer a:hover {
  color: var(--green-strong);
}


/* ── Select fields ── */
.form__field--select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2300364B' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;  /* visual left = end in RTL */
  background-size: 20px;
  padding-inline-end: 40px;
}

/* ── Submit button ── */
.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  background: var(--green-strong);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  padding-block: 13px;
  padding-inline: 44px;
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 22px);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.form__submit:hover  { filter: brightness(1.08); transform: translateY(-2px); }
.form__submit:active { filter: brightness(0.95); transform: translateY(0); }

.form__submit-text {
  transform: translateY(0.1em);
}

.form__submit-icon {
  width: 22px;
  height: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(29%) sepia(100%) hue-rotate(159deg) saturate(600%) brightness(44%);
}

/* ── Desktop: switch to 3-col grid, reset full-width overrides ── */
@media (min-width: 768px) {
  .form-section {
    padding-block: 40px 80px;
    padding-inline: 40px;
  }

  .form__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .form__field-wrap:nth-child(-n+4) {
    grid-column: auto;  /* let all 6 fill the 3×2 grid naturally */
  }

  .form-section__inner {
    gap: 24px;
  }
}

/* ═══════════════════════════ INFO PANEL ════════════════════════════ */

/* Dark backdrop */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.panel-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel shell */
.info-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 75vw;
  max-width: 860px;
  height: 100vh;
  background: var(--white);
  z-index: 401;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 6px 0 40px rgba(0,0,0,0.18);

  --panel-accent: var(--green-title);
  --panel-q:      var(--green-title);
}
.info-panel[data-theme="orange"] {
  --panel-accent: var(--orange-title);
  --panel-q:      var(--orange-title);
}
.info-panel[data-theme="blue"] {
  --panel-accent: var(--blue-title);
  --panel-q:      var(--blue-title);
}
.info-panel.is-open {
  transform: translateX(0);
}

/* Close button — fixed, just outside the panel's right edge, no background */
.info-panel__close {
  position: fixed;
  top: 24px;
  left: calc(min(75vw, 860px) + 14px);
  width: 52px;
  height: 52px;
  background: none;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  border: none;
  cursor: pointer;
  z-index: 402;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.15s ease;
}
.info-panel__close.is-open {
  opacity: 1;
  pointer-events: auto;
}
.info-panel__close:hover  { transform: scale(1.1); }
.info-panel__close:active { transform: scale(0.95); }

@media (max-width: 767px) {
  .info-panel__close {
    left: calc(88vw + 4px);
    width: 36px;
    height: 36px;
    font-size: 18px;
    top: 16px;
  }
}

/* ── Interview layout (pi = panel interview) ── */
.pi {
  padding: 48px 40px 64px;
}

.pi__header {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--panel-accent);
}

.pi__role {
  display: block;
  font-family: 'Assistant', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--panel-q);
  margin-bottom: 10px;
}

.pi__name {
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
}

/* Each Q&A block */
.pi__item {
  margin-bottom: 44px;
}

.pi__q {
  font-family: 'Assistant', sans-serif;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--panel-q);
  margin-bottom: 16px;
  line-height: 1.45;
}

.pi__a {
  margin: 0;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--panel-accent);
  color: #2a3a44;
  font-family: 'Assistant', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 1.95;
}

.pi__a p {
  margin: 0 0 12px;
}
.pi__a p:last-child { margin-bottom: 0; }

/* Placeholder for panels without content yet */
.pi__placeholder {
  color: rgba(0,0,0,0.25);
  font-family: 'Matricsa', 'Heebo', sans-serif;
  font-size: 18px;
  text-align: center;
  padding: 80px 0;
  font-style: italic;
}

/* Mobile */
@media (max-width: 767px) {
  .info-panel { width: 88vw; }
  .pi { padding: 36px 24px calc(48px + env(safe-area-inset-bottom, 0px) + 80px); }
}

/* ═══════════════════════════════ 5. FOOTER ══════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding-block: 72px;
  padding-inline: 40px;
}

.site-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo — start (right) side */
.site-footer__logo {
  width: 240px;
  height: auto;
}

/* End (left) side — icons stacked above URL, both center-aligned */
.site-footer__end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Social icons row */
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s;
}
.social-icon:hover  { transform: translateY(-3px); opacity: 0.88; }
.social-icon:active { transform: translateY(0); }

.social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.social-icon--fb     { background: #e88e24; }
.social-icon--tiktok { background: #f3b633; }
.social-icon--ig     { background: #c1d24f; }
.social-icon--yt     { background: #00b2db; }

/* URL — centered below icons */
.site-footer__url {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.site-footer__url:hover { color: var(--white); }

/* Mobile */
@media (max-width: 767px) {
  .site-footer {
    padding-block: 48px;
    padding-inline: 24px;
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }
  .site-footer__logo { width: 200px; }
}

/* ══════════════ ACCESSIBILITY WIDGET ══════════════ */

.a11y-widget {
  position: fixed;
  left: 0;
  top: 70%;
  transform: translateY(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.a11y-toggle {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
  transition: background 0.2s;
}
.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  background: #9f1e2e;
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.a11y-panel {
  background: #fff;
  border: 1px solid #d0d4e0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 4px 18px rgba(0,0,0,0.18);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  direction: rtl;
}
.a11y-panel[hidden] { display: none; }

.a11y-panel-title {
  font-size: 12px;
  font-weight: 700;
  font-family: 'Assistant', sans-serif;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e4ef;
  margin-bottom: 2px;
}

.a11y-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  background: #f5f6fa;
  border: 1px solid #dde1ef;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Assistant', sans-serif;
  color: #333;
  text-align: right;
  direction: rtl;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}
.a11y-btn:hover,
.a11y-btn:focus-visible {
  background: #e8ecf8;
  border-color: var(--navy);
  outline: none;
}
.a11y-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.a11y-btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-btn-icon svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.a11y-btn-label {
  transform: translateY(0.1em);
}

.a11y-reset {
  margin-top: 4px;
  background: none;
  border: 1px solid #bec1c8;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'Assistant', sans-serif;
  color: #717379;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.a11y-reset:hover,
.a11y-reset:focus-visible {
  border-color: #9f1e2e;
  color: #9f1e2e;
  outline: none;
}

/* ── accessibility mode overrides ──
   Widget lives on <html>; all overrides target body so it's never affected. */

.a11y-font-lg body { zoom: 1.12; }
.a11y-font-xl body { zoom: 1.25; }

.a11y-contrast body *:not(img):not(video):not(canvas) {
  background:   #000 !important;
  color:        #ff0 !important;
  border-color: #ff0 !important;
  text-shadow:  none !important;
  box-shadow:   none !important;
}
.a11y-contrast body svg { fill: #ff0 !important; }
.a11y-contrast body a   { color: #0ff !important; }
.a11y-contrast body img { filter: grayscale(1) contrast(1.2); opacity: .9; }

.a11y-negative body             { filter: invert(1); }
.a11y-negative body img,
.a11y-negative body video       { filter: invert(1); }
.a11y-negative .a11y-widget     { filter: invert(1); }

.a11y-grayscale body            { filter: grayscale(1); }
.a11y-grayscale .a11y-widget    { filter: grayscale(1); }

.a11y-links body a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.a11y-readable body,
.a11y-readable body * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.02em !important;
}
