@charset "UTF-8";

/* =========================================================
   RESPONSIVE
   עקרון: כל שינוי כאן משפיע רק על טאבלט ומטה
   קובץ נקי בלי כפילויות
========================================================= */

/* =========================
   עד 992px טאבלט
========================= */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media {
    order: -1;
  }

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

  .contact {
    grid-template-columns: 1fr;
  }

  /* TikTok: לרדת ל-2 בעמודה בטאבלט */
  #videos .tiktok-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   עד 820px טאבלט צר (iPad mini)
========================= */
@media (max-width: 820px) {
  #videos .tiktok-item {
    flex: 0 0 46%;
  }

  #videos .tiktok-thumb {
    max-height: 520px;
  }
}

/* =========================
   עד 768px מובייל רוחב
========================= */
@media (max-width: 768px) {
  .reels {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 10px;
  }

  .reel {
    flex: 0 0 85%;
    opacity: 1 !important;
    transform: none !important;
    scroll-snap-align: center;
    width: 150px;
  }

  .carousel-dots {
    display: none;
  }

  .tiktok-btn {
    font-size: 0.95rem;
    padding: 12px 22px;
  }

  /* TikTok: במובייל רוחב 1 בעמודה */
  #videos .tiktok-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* להקטין את המסגרת הלבנה */
  #videos .tiktok-thumb {
    border-width: 6px;
  }
}

/* =========================
   עד 600px מובייל קטן
========================= */
@media (max-width: 600px) {
  /* Services */
  #services .card {
    padding: 18px;
  }

  #services .icon-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  /* Hero */
  .hero-card p.sub {
    margin-top: 12px;
    text-align: center;
  }

  .hero-card p.sub span.sub-bullet_1 {
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
  }

  .hero-card p.sub span.sub-bullet_2 {
    margin-top: 20px;
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
  }

  .hero-card .hero-title {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero-card .hero-role {
    margin-bottom: 20px;
    margin-top: -10px;
    display: block;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.35;
  }

  .hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .hero-actions .btn {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 999px;
  }

  /* Swiper arrows */
  .mySwiperServices .swiper-button-next,
  .mySwiperServices .swiper-button-prev {
    width: 34px;
    height: 34px;
  }

  .mySwiperServices .swiper-button-next::after,
  .mySwiperServices .swiper-button-prev::after {
    font-size: 14px;
  }

  /* TikTok polish */
  #videos .tiktok-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }

  #videos .tiktok-thumb {
    border-width: 6px;
    border-radius: 20px;
  }

  #videos .tiktok-play-badge::before {
    width: 70px;
    height: 70px;
  }

  .video-modal-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    margin: 0 12px;
  }
}

/* =========================
   TikTok carousel - מתחת ל-992px
   (הופך את הגריד לקרוסלה אופקית)
========================= */
@media (max-width: 992px) {
  #videos .tiktok-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 12px;
  }

  #videos .tiktok-item {
    scroll-snap-align: center;
  }

  #videos .tiktok-thumb {
    aspect-ratio: 9 / 16;
  }

  #videos .tiktok-thumb video,
  #videos .tiktok-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================
   iPhone 14 (390px)
========================= */
@media (max-width: 480px) {
  #videos .tiktok-item {
    flex: 0 0 66%;
  }

  #videos .tiktok-thumb {
    max-height: 440px;
  }
}

/* =========================
   מסכים ממש קטנים
========================= */
@media (max-width: 360px) {
  #videos .tiktok-item {
    flex: 0 0 72%;
  }
}

/* =========================
   About page קטן
========================= */
@media (max-width: 860px) {
  .aboutx-title {
    font-size: 32px;
  }

  .aboutx-grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-item--dropdown .submenu {
    right: auto;
    left: 0;
    min-width: 200px;
  }
}

/* =========================
   MOBILE HEADER FIX (עד 900px)
   - לוגו באמצע
   - המבורגר מימין
   - תפריט נפתח כפאנל עם is-open
========================= */
@media (max-width: 900px) {
  header.site-header .nav {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0;
    padding: 12px 0;
  }

  header.site-header .brand {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  header.site-header .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    border: none;
    outline: none;
  }

  header.site-header .menu-toggle .hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Hamburger to X animation when menu is open */
  header.site-header .menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  header.site-header .menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  header.site-header .menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  header.site-header .cta {
    display: none;
  }

  header.site-header .menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;

    display: none;
    flex-direction: column;
    gap: 8px;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 1200;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  header.site-header .menu.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  header.site-header .menu a {
    padding: 12px 12px;
    border-radius: 12px;
  }

  header.site-header .nav-item--dropdown .submenu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0;
    display: none;

    opacity: 1;
    visibility: visible;
    transform: none;
  }

  header.site-header .nav-item--dropdown.is-open .submenu {
    display: block;
  }
}


@media (max-width: 768px) {
  .tiktok-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 900px){
  .hero-media .frame{ max-height: 420px; }
  .hero-media .frame img{ height: 420px; }
}