/* ==========================================================================
   Storage Station — private-storage.css
   Page: "עמודי שירות - אחסון פרטי" (Figma node 175:266)
   Depends on css/base.css (tokens, buttons, lead form, header, footer).
   Class prefix: ps- (private storage).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared bits for this page
   -------------------------------------------------------------------------- */

/* Figma service-page buttons: 46px high, 22px text, 8.8px radius */
.ps-btn {
  min-height: 46px;
  padding: 13px 26px;
  border-radius: 8.76px;
  font-size: clamp(18px, 1.15vw, 22.15px);
  gap: 11px;
}
.ps-btn .btn__icon { width: 1.19em; height: 0.99em; }

/* 68px dark-blue section titles */
.ps-title-lg {
  font-size: clamp(32px, 3.54vw, 68px);
  line-height: 1;
  letter-spacing: normal;
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.ps-hero { position: relative; }
.ps-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 39.8vw, 764px);   /* 154 → 918 in Figma */
}
.ps-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 566px);
  margin-inline-start: clamp(0px, 3.96vw, 76px);  /* text column is inset 76px from the gutter */
  margin-top: clamp(0px, 0.73vw, 14px);
}
.ps-hero__title {
  color: var(--color-blue-dark);
  line-height: 0.81;                           /* 69px on 85px type */
}
.ps-hero__text {
  margin-top: clamp(16px, 1.56vw, 30px);
  max-width: 553px;
  font-size: clamp(18px, 1.4vw, 26.9px);
  font-weight: var(--fw-bold);
  line-height: 1.22;
  color: var(--color-gray);
}
.ps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: clamp(16px, 1.1vw, 21px);
}
.ps-hero__actions .ps-btn { min-width: min(241px, 100%); }

/* Sloth + shelf illustration: bleeds to the left page edge, overlaps under the header */
.ps-hero__image {
  position: absolute;
  top: clamp(-52px, -2.7vw, 0px);
  left: calc(0.47vw - max(0px, (100vw - var(--container-max)) / 2));
  width: 66vw;
  max-width: 1268px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. "מתי זה מתאים?" — rounded light panel with offset dark-blue shadow
   -------------------------------------------------------------------------- */
.ps-when {
  padding-inline: clamp(16px, 2.8vw, 54px) clamp(16px, 2.6vw, 50px);
  padding-block: clamp(40px, 6.1vw, 117px) clamp(64px, 6.77vw, 130px);
}
.ps-when__panel {
  max-width: 1816px;
  margin-inline: auto;
  padding: clamp(40px, 4.4vw, 85px) clamp(20px, 3.4vw, 65px) clamp(48px, 6.1vw, 117px);
  background: var(--color-bg-tint);
  border-radius: clamp(40px, 6.9vw, 132px);
  box-shadow: -15px 23px 0 var(--color-blue-dark);
}
.ps-when__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 3.8vw, 72px);
}
.ps-when__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 16px;
  text-align: center;
}
/* 3px dark-blue divider between columns (319px tall, starts ~70px under the image top) */
.ps-when__item + .ps-when__item { position: relative; }
.ps-when__item + .ps-when__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: clamp(30px, 3.6vw, 70px);
  width: 3px;
  height: clamp(200px, 16.6vw, 319px);
  background: var(--color-blue-dark);
}
.ps-when__img {
  width: clamp(120px, 10.2vw, 196px);
  height: clamp(160px, 13.6vw, 262px);
  object-fit: contain;
  object-position: bottom center;
}
.ps-when__title {
  margin-top: clamp(10px, 0.55vw, 10px);
  font-size: clamp(26px, 2.45vw, 47px);
  font-weight: var(--fw-bold);
  line-height: 0.88;
  color: var(--color-blue-dark);
}
.ps-when__text {
  max-width: 330px;
  margin-top: clamp(8px, 0.4vw, 8px);
  font-size: clamp(16px, 1.22vw, 23.4px);
  font-weight: var(--fw-bold);
  line-height: 1.22;
  color: var(--color-gray);
}

/* --------------------------------------------------------------------------
   3. Steps — "מאחסנים ב - 3 צעדים"
   -------------------------------------------------------------------------- */
.ps-steps { padding-bottom: clamp(56px, 6.1vw, 116px); }
.ps-steps__list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 1.9vw, 36px) clamp(16px, 2.6vw, 50px);
  margin-top: clamp(40px, 5.2vw, 100px);
}
.ps-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--color-blue-dark);
  font-weight: var(--fw-bold);
}
.ps-step__num {
  font-size: clamp(64px, 6.21vw, 119.3px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.ps-step__text {
  margin-top: 6px;
  font-size: clamp(24px, 2.23vw, 42.9px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.ps-steps__arrow {
  flex: none;
  padding-top: clamp(28px, 3.1vw, 60px);
}
.ps-steps__arrow img {
  width: clamp(56px, 6.7vw, 128.833px);
  height: auto;
  transform: rotate(180deg);                  /* points left = forward in RTL */
}

/* --------------------------------------------------------------------------
   4. Size band — image (left) + gradient panel (right)
   -------------------------------------------------------------------------- */
.ps-size {
  display: grid;
  grid-template-columns: minmax(0, 852fr) minmax(0, 1068fr);   /* RTL: panel right, image left */
  min-height: clamp(434px, 37.34vw, 717px);   /* 14px line + 703px band */
  border-top: 14px solid var(--color-blue-dark);
}
.ps-size__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px var(--gutter) 48px 32px;
  background: linear-gradient(84deg, #064A88 20.381%, #0F528E 36.18%, #117BBC 97.342%);
  color: var(--color-white);
}
.ps-size__title {
  max-width: 566px;
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 0.81;
  letter-spacing: -0.03em;
}
.ps-size__text {
  max-width: 519px;
  margin-top: clamp(16px, 1.15vw, 22px);
  font-size: clamp(18px, 1.4vw, 26.9px);
  font-weight: var(--fw-bold);
  line-height: 1.19;
  color: var(--color-secondary);
}
.ps-size__btn {
  width: min(372px, 100%);
  margin-top: clamp(20px, 1.6vw, 30px);
}
.ps-size__media { position: relative; overflow: hidden; }
.ps-size__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.236);                    /* Figma crop: image zoomed, anchored top-left */
  transform-origin: left top;
}

/* --------------------------------------------------------------------------
   5. Share gallery — collage (absolute layout reproduces the Figma composition)
   -------------------------------------------------------------------------- */
.ps-share {
  padding-top: clamp(56px, 8.8vw, 169px);
  overflow: hidden;
}
.ps-share__head {
  position: relative;
  z-index: 1;
  padding-inline: var(--gutter);
  text-align: center;
}
.ps-share__title {
  margin-top: 9px;
  font-size: clamp(30px, 3.125vw, 60px);
  letter-spacing: normal;
  line-height: 1.2;
}
.ps-collage {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: clamp(-50px, -2.6vw, 0px) auto 0;
  aspect-ratio: 1920 / 769;
}
.ps-collage__item {
  position: absolute;
  overflow: hidden;
  border-radius: clamp(12px, 1.25vw, 24px);
}
.ps-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-collage__item--stack    { left: -4.38%; top: 0;      width: 20.05%; height: 52.93%; }
.ps-collage__item--man      { left: 16.59%; top: 9.70%;  width: 25.44%; height: 43.27%; }
.ps-collage__item--dolly    { left: 42.93%; top: 21.63%; width: 16.64%; height: 54.37%; }
.ps-collage__item--living   { left: 22.64%; top: 55.14%; width: 19.41%; height: 33.56%; }
.ps-collage__item--bubble   { left: 60.48%; top: 64.20%; width: 10.04%; height: 33.56%; }
.ps-collage__item--plant    { left: 71.42%; top: 64.20%; width: 14.56%; height: 27.18%; }
.ps-collage__item--corridor { left: 60.48%; top: 13.72%; width: 16.36%; height: 48.27%; }
.ps-collage__item--tape     { left: 78.02%; top: 1.82%;  width: 25.21%; height: 60.08%; }
.ps-collage__item--units    { left: 0.23%;  top: 55.19%; width: 21.49%; height: 44.80%; }

/* Figma custom crops */
.ps-collage__item--bubble img,
.ps-collage__item--tape img {
  position: absolute;
  max-width: none;
  object-fit: fill;
}
.ps-collage__item--bubble img { left: -75.17%; top: -64.75%; width: 183.01%; height: 170.82%; }
.ps-collage__item--tape img   { left: -26.15%; top: -50.21%; width: 138.54%; height: 190.65%; }

/* --------------------------------------------------------------------------
   6. Contact — lead form (right) + sloth with phone (left)
   -------------------------------------------------------------------------- */
.ps-contact { padding-block: clamp(56px, 7.2vw, 139px) clamp(40px, 3.7vw, 71px); }
.ps-contact__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.ps-contact .lead-form { flex: 1 1 auto; margin-top: clamp(0px, 5vw, 97px); }
.ps-contact .lead-form__title { line-height: 1.2; }
.ps-contact__media {
  flex: none;
  width: clamp(240px, 26.5vw, 509px);
  aspect-ratio: 509 / 1005;
  position: relative;
  overflow: hidden;
  margin-inline-end: -17px;                  /* sloth starts at x=103 (gutter 120) */
}
.ps-contact__media img {
  position: absolute;
  top: 0;
  left: 0;                                    /* Figma crop: left part of the image (right side is empty) */
  width: 158.97%;
  height: 100%;
  max-width: none;
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .ps-hero__content { width: min(100%, 46vw); margin-inline-start: 0; }
  .ps-hero__image { width: 50vw; top: 40px; }
  .ps-when__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .ps-when__item:nth-child(3)::before { display: none; }
}

/* 769–900px (tablet): simple stacked layout */
@media (min-width: 769px) and (max-width: 900px) {
  /* Hero: text first, illustration below */
  .ps-hero__inner { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 24px 0; }
  .ps-hero__content { width: 100%; margin: 0; }
  .ps-hero__image { position: static; width: calc(100% + var(--gutter)); max-width: none; margin-inline: 0 calc(var(--gutter) * -1); margin-top: 24px; }

  /* Steps: vertical */
  .ps-steps__list { flex-direction: column; align-items: center; text-align: center; }
  .ps-step { align-items: center; }
  .ps-steps__arrow { padding-top: 0; }
  .ps-steps__arrow img { transform: rotate(90deg); width: 48px; }

  /* Size band: image on top, panel below */
  .ps-size { grid-template-columns: 1fr; }
  .ps-size__media { order: -1; aspect-ratio: 16 / 10; }
  .ps-size__panel { padding: 48px var(--gutter); }

  /* Collage → simple grid */
  .ps-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    aspect-ratio: auto;
    margin-top: 24px;
    padding-inline: var(--gutter);
  }
  .ps-collage__item { position: relative; inset: auto; width: auto; height: auto; aspect-ratio: 4 / 5; }
  .ps-collage__item--tape,
  .ps-collage__item--living,
  .ps-collage__item--units { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .ps-collage__item--bubble img,
  .ps-collage__item--tape img { position: static; width: 100%; height: 100%; object-fit: cover; }

  /* Contact: hide decorative sloth next to form */
  .ps-contact__media { display: none; }
  .ps-contact .lead-form { margin-top: 0; }
}

/* ==========================================================================
   ≤768px — MOBILE (Figma mobile frame 327:1009, 400px wide)
   ========================================================================== */
@media (max-width: 768px) {
  /* Buttons: Figma mobile size (368 × 40.6), full width */
  .ps-btn {
    width: 100%;
    min-height: 40.58px;
    padding: 9.44px 18.87px;
    gap: 7.86px;
    border-radius: 6.29px;
    font-size: 15.9px;
  }
  .ps-btn .btn__icon { width: 18.87px; height: 15.73px; }
  .ps-btn.btn--secondary { border: 1.2px solid var(--color-blue-dark); }

  /* ---- Hero: title, text, sloth + shelf, 2 stacked buttons ---- */
  .ps-hero { overflow-x: clip; }
  .ps-hero__inner {
    flex-direction: column;
    align-items: center;                /* also centers the over-wide illustration */
    min-height: 0;
    padding-top: 9px;
    text-align: center;
  }
  .ps-hero__content { display: contents; }
  .ps-hero__title { font-size: 42px; line-height: 36px; letter-spacing: -0.03em; }
  .ps-hero__text {
    max-width: 332px;
    margin-top: 13px;
    font-size: 16px;
    line-height: 22px;
  }
  .ps-hero__image {
    position: relative;
    top: auto;
    left: auto;
    width: min(124.29vw, 620px);          /* 497px @ 400 — bleeds past both edges */
    max-width: none;
    margin-top: -18px;
    transform: translateX(2.01%);         /* Figma: 10px right of center */
  }
  .ps-hero__actions {
    order: 1;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 36px;
  }
  .ps-hero__actions .ps-btn { min-width: 0; }

  /* ---- "מתי זה מתאים?" — title above a 2×2 panel that bleeds to the right edge ---- */
  .ps-when { padding: 36px 0 0; }
  .ps-when__panel { padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .ps-when .ps-title-lg { font-size: 34px; line-height: 49.79px; letter-spacing: normal; }
  .ps-when__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 38px;
    margin: 7px 0 0 11px;
    padding: 28px 0 40px;
    background: var(--color-bg-tint);
    border-radius: 67px;
    box-shadow: -7px 6px 0 var(--color-blue-dark);
  }
  .ps-when__item { position: relative; padding-inline: 8px; }
  .ps-when__item + .ps-when__item::before { display: none; }
  /* vertical divider between the two columns */
  .ps-when__item:nth-child(odd)::before {
    content: "";
    display: block;
    position: absolute;
    top: 27.6px;
    inset-inline-start: auto;
    inset-inline-end: 0;
    width: 1.31px;
    height: 139.72px;
    background: var(--color-blue-dark);
    transform: none;
  }
  /* horizontal divider under the first row */
  .ps-when__item:nth-child(-n+2)::after {
    content: "";
    position: absolute;
    bottom: -21px;
    left: 50%;
    width: 139.72px;
    height: 1.31px;
    background: var(--color-blue-dark);
    transform: translateX(-50%);
  }
  .ps-when__img { width: auto; height: 99.6px; margin-top: auto; }
  .ps-when__item:nth-child(2) .ps-when__img { height: 111.39px; }
  .ps-when__item:nth-child(4) .ps-when__img { height: 114.86px; }
  .ps-when__item:nth-child(-n+2) .ps-when__img { margin-bottom: 11px; }
  .ps-when__item:nth-child(n+3) .ps-when__img { margin-bottom: 10.7px; }
  .ps-when__item { justify-content: flex-end; }
  .ps-when__title { margin-top: 0; font-size: 20.57px; line-height: 18.16px; }
  .ps-when__text {
    max-width: 146px;
    margin-top: 4.4px;
    font-size: 10.26px;
    line-height: 12.5px;
  }
  .ps-when__item:nth-child(n+3) .ps-when__title { margin-bottom: 0; }

  /* ---- Steps: vertical, thin light-blue down arrows ---- */
  .ps-steps { padding: 37px 0 45px; }
  .ps-steps .ps-title-lg { max-width: 317px; margin-inline: auto; font-size: 42px; line-height: 40px; }
  .ps-steps__list { flex-direction: column; align-items: center; gap: 0; margin-top: 40px; text-align: center; }
  .ps-step { align-items: center; }
  .ps-step__num { font-size: 59.65px; line-height: 48px; }
  .ps-step__text { margin-top: 0; font-size: 21.45px; line-height: 21.87px; }
  .ps-steps__arrow { display: flex; align-items: center; justify-content: center; height: 34px; margin: 20px 0 14px; padding: 0; }
  .ps-steps__arrow img { width: 34px; height: 19px; transform: rotate(90deg); }   /* points down */

  /* ---- Size band: gradient text box, image, button overlapping the image ---- */
  .ps-size { position: relative; display: block; min-height: 0; border-top: 0; overflow-x: clip; }
  .ps-size__panel {
    align-items: center;
    padding: 17px 16px 16px;
    background: linear-gradient(180deg, #0D518D 0%, #1179BA 100%);
    text-align: center;
  }
  .ps-size__title { max-width: none; font-size: min(36.73px, 9.4vw); line-height: 34.28px; }
  .ps-size__text { max-width: 326px; margin-top: 9px; font-size: 12.24px; line-height: 15.51px; }
  .ps-size__btn {
    position: absolute;
    z-index: 1;
    bottom: -21.6px;
    inset-inline: var(--gutter);
    width: auto;
    margin: 0;
  }
  .ps-size__media { aspect-ratio: 419.35 / 276.03; margin: -6px -2.42% 0; }

  /* ---- Share gallery: 5-photo mobile collage ---- */
  .ps-share { padding-top: 78px; }
  .ps-share .eyebrow { font-size: 14.37px; line-height: 1.5; }
  .ps-share__title { margin-top: -3.5px; font-size: 26.96px; line-height: 1.2; }
  .ps-collage { margin-top: 19.3px; aspect-ratio: 400 / 436.52; }
  .ps-collage__item { border-radius: 11.67px; }
  .ps-collage__item--stack,
  .ps-collage__item--man,
  .ps-collage__item--living,
  .ps-collage__item--units { display: none; }
  .ps-collage__item--tape     { left: 41.19%; top: 0;      width: 58.82%; height: 51.45%; }
  .ps-collage__item--corridor { left: 0.26%;  top: 10.19%; width: 38.17%; height: 41.33%; }
  .ps-collage__item--bubble   { left: 0.24%;  top: 53.42%; width: 23.5%;  height: 35.05%; }
  .ps-collage__item--plant    { left: 25.74%; top: 53.42%; width: 34%;    height: 35.05%; }
  .ps-collage__item--dolly    { left: 62.45%; top: 53.45%; width: 37.55%; height: 46.55%; }

  /* ---- Contact: form + sloth peeking in from the right edge ---- */
  .ps-contact { padding-block: 88px 68px; overflow-x: clip; }
  .ps-contact__inner { position: relative; display: block; }
  .ps-contact .lead-form { margin-top: 0; }
  .ps-contact .lead-form__title { max-width: 309px; margin-inline: auto; line-height: 29px; }
  .ps-contact__media {
    position: absolute;
    z-index: 1;
    top: 528.6px;
    right: -73.7px;
    width: 129.48px;
    height: 161.85px;
    aspect-ratio: auto;
    margin: 0;
    pointer-events: none;
    transform: rotate(162.26deg) scaleY(-1);
  }
  .ps-contact__media img { left: 3.06%; top: -10.41%; width: 158.97%; height: 157.97%; }
}
