/* =====================================================
   responsive-desktop.css
   Desktop layout — min-width: 1024px
   Built exactly for the HTML structure provided.
   Link AFTER style.css
   ===================================================== */

@media (min-width: 1024px) {

  .hero-banner {
    order: 1;
    flex: 0 0 calc(100% - 280px);
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    border-radius: 0;
    height: 143px;
    min-height: 1px;
    padding: 0 56px;
    margin-bottom: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .hero-banner-inner{
    max-width: 1215px;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }
  
  .hero-banner__header {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-banner__title {
    font-size: 36px;
    line-height: 46px;
    text-align: right;
    margin: 12px 0 12px 0;
    position: absolute;
    top: 0;
    top: 0;
    right: 130px;
  }
  
  .hero-banner__subtitle {
    font-size: 17px;
    max-width: 600px;
    text-align: right;
    position: absolute;
    right: 130px;
    top: 70px;
  }

  /* -----------------------------------------------
     PAGE SHELL
     body has: .card → .main-content-wrapper → footer.city-footer → .fixed-action-bar
     On desktop we put the sidebar (.fixed-action-bar) on the right,
     and stack card + content + footer on the left.
  ----------------------------------------------- */
  body {
    /* display: flex; */
    /* flex-direction: row; */        /* sidebar right, main left */
    /* align-items: flex-start; */
    /* min-height: 100vh; */
    /* background-color: #f5f7fb; */
  }

  /* -----------------------------------------------
     RIGHT SIDEBAR — was fixed bottom bar
  ----------------------------------------------- */
  .fixed-action-bar {
    /* override mobile fixed positioning */
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    right: 0;

    /* sizing */
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    height: 100vh;

    /* layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 48px 24px;

    /* style */
    background: #1E3C98;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    flex-shrink: 0;
    order: 2; /* push to the right */
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: none;
  }

  .bar-promo-text {
    font-size: 15px;
    line-height: 24px;
    white-space: normal;
    text-align: center;
  }

  /* Stack buttons vertically */
  .bar-buttons-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 400px;
  }

  .bar-btn {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    justify-content: center;
    gap: 8px;
  }

  .bar-btn-text {
    font-size: 15px !important;
    line-height: 20px !important;
  }


  /* -----------------------------------------------
     LEFT MAIN COLUMN
     Wraps: .card + .main-content-wrapper + footer
     We create a flex column wrapper using a pseudo-wrapper trick —
     since all three are siblings in body, we use order + flex to group them.
  ----------------------------------------------- */

  /* .card, .main-content-wrapper, footer are order 1 — sidebar is order 2 */
  .card {
    order: 1;
  }
  .main-content-wrapper {
    order: 1;
  }
  .city-footer {
    order: 1;
  }

  /* The left column takes all remaining width */
  /* We use a wrapper via body's flex + flex-wrap on the left items */
  body {
    /* flex-wrap: wrap; */
  }

  .card,
  .main-content-wrapper,
  .city-footer {
    flex: 0 0 calc(100% - 280px);
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    box-sizing: border-box;
  }


  /* -----------------------------------------------
     TOP CARD — full width of left column
  ----------------------------------------------- */
  .card {
    border-radius: 0 0 32px 32px;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    min-height: 260px;
    padding: 40px 56px;
    margin-bottom: 0;
    align-items: flex-start; /* align content to the right (RTL) */
  }

  .card-header {
    width: 100%;
  }

  .card-title {
    font-size: 36px;
    line-height: 46px;
    text-align: right;
    margin: 20px 0 12px 0;
  }

  .card-subtitle {
    font-size: 17px;
    max-width: 600px;
    text-align: right;
  }

  .button-group {
    gap: 12px;
    margin: 16px 0;
    justify-content: flex-start;
    max-width: 440px;
    display: none;
  }

  .join-text {
    display: none;
  }

  .btn-blue {
    width: 200px;
    height: 42px;
    font-size: 15px;
    width: 50%;
  }

  .btn-orange {
    max-width: 440px;
    height: 46px;
    font-size: 16px;
    width: 200px;
    position: absolute;
    left: 0;
    top: 24px;
    left: 60px;
  }


  /* -----------------------------------------------
     MAIN CONTENT WRAPPER
     Dashboard grid: 3 equal columns
  ----------------------------------------------- */
  .main-content-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 24px;
    padding: 32px 40px 60px 40px;
    margin: 0;
    /* no padding-bottom needed — no fixed bar anymore */
    display: flex;
    flex-flow: row;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    padding: 50px 0;
    width: 1215px;
    justify-content: space-between;
  }

  /* First accordion block (no category wrapper) — column 1 */
  .main-content-wrapper > .accordion-container {
    grid-column: 1;
    grid-row: 1 / 3; /* tall column — spans rows */
    width: 25%;
  }

  /* Category section (הסבר על צריכת המים) — column 1 row 2 */
  .main-content-wrapper > .category-section {
    /* grid-column: 1; */
    width: 25%;
  }

  /* Digital services — column 2 */
  .digital-services-section {
    /* grid-column: 2; */
    width: 25%;
  }

  /* Contact — column 3 */
  .contact-section {
    /* grid-column: 3; */
    width: 25%;
  }

  /* Footer inside grid — spans all 3 columns */
  /* (footer is outside main-content-wrapper so handled separately below) */


  /* -----------------------------------------------
     ACCORDIONS
  ----------------------------------------------- */
  .accordion-container {
    gap: 10px;
    width: auto;
  }

  .accordion-header {
    padding: 14px 18px;
  }

  .accordion-title {
    font-size: 15px;
  }

  .accordion-content {
    padding: 0 18px 18px 18px;
  }

  .content-list li,
  .content-text {
    font-size: 13px;
    line-height: 22px;
  }


  /* -----------------------------------------------
     DIGITAL SERVICES GRID — 2 columns inside panel
  ----------------------------------------------- */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    width: 100%;
    height: 100px;
    padding: 16px 12px;
  }

  .service-label {
    font-size: 13px;
  }


  /* -----------------------------------------------
     CONTACT SECTION
  ----------------------------------------------- */
  .contact-wrapper {
    border-radius: 16px;
  }

  .contact-item {
    height: 76px;
    padding: 16px 20px;
  }

  .item-title {
    font-size: 15px;
  }

  .item-subtitle {
    font-size: 12px;
  }

  .item-text-group {
    padding-right: 14px;
  }


  /* -----------------------------------------------
     SECTION TITLES
  ----------------------------------------------- */
  .category-title {
    font-size: 18px;
    line-height: 28px;
  }


  /* -----------------------------------------------
     FOOTER SKYLINE — full width of left column
  ----------------------------------------------- */
  .city-footer {
    height: auto;
    margin-bottom: 0;
    padding: 0;
    margin-top: -30%;
    width: 100%;
    max-width: 100%;
  }

  .footer-skyline-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }


  /* -----------------------------------------------
     MISC
  ----------------------------------------------- */
  .account-btn {
    width: 44px;
    height: 44px;
  }

  .logo-container {
    width: 95px;
    height: 95px;
  }

} /* end @media (min-width: 1024px) */


@media (min-width: 1024px) {

  .main-accordions{
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-flow: column;
    gap: 40px;
  }

  .main-contact {
      width: 384px;
      max-width: 100%;
      display: flex;
      flex-flow: column;
      gap: 40px;
  }

  .main-accordions .category-section,
  .main-contact .digital-services-section,
  .main-contact .contact-section{
    width: 100%;
  }
  
}