/* =============================================
   Mitgabrim Home — Responsive Design System
   Font: Heebo | Direction: RTL
   ============================================= */

:root {
  --color-primary: #082b5b;
  --color-secondary: #0f9c9f;
  --color-teal: #008f9b;
  --color-nav: #123962;
  --color-text: #212121;
  --color-white: #ffffff;
  --color-support: #16597b;
  --color-card-border: #d1e4e7;
  --color-header-border: rgba(8, 43, 91, 0.15);
  --max-content-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Heebo", sans-serif;
  background: var(--color-white);
  color: var(--color-text);
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-white);
  overflow-x: hidden;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1440px;
  height: 96px;
  z-index: 1000;
  transition: transform 0.3s ease, top 0.3s ease;
}

.header__inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-header-border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header__logo {
  flex-shrink: 0;
  width: 180px;
  height: 66px;
  display: flex;
  align-items: center;
}

.header__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.header__nav-link {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  color: var(--color-nav);
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__nav-link:hover {
  color: var(--color-teal);
}

.header__nav-link--active {
  font-weight: 800;
  color: var(--color-teal);
}

.header__nav-link--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3.5px;
  background: var(--color-teal);
  border-radius: 9999px;
}

.header__whatsapp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  background: var(--color-teal);
  border-radius: 9999px;
  padding: 10px 22px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__hamburger {
  display: none;
}

.header__whatsapp-text {
  display: inline;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 1113px;
  padding: 160px 20px 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: url('../assets/hero-bg-composite.png') no-repeat center bottom;
  background-size: cover;
  overflow: hidden;
}

/* ---- Floating Hero Layer Icons (Exact Figma Coordinates) ---- */
.hero__decor {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.hero__decor--dots-left {
  top: 150px;
  left: 0;
  width: clamp(80px, 7vw, 135px);
  opacity: 0.85;
}

.hero__decor--planet-left {
  top: 400px;
  left: 0;
  width: clamp(85px, 8vw, 130px);
  transform: none;
}

.hero__decor--book-right {
  top: 200px;
  right: 0;
  width: clamp(65px, 6vw, 95px);
  transform: none;
}

.hero__decor--dots-right {
  top: 480px;
  right: 0;
  width: clamp(80px, 7vw, 135px);
  opacity: 0.85;
}

.hero__tagline,
.hero__title,
.hero__description,
.hero__actions {
  position: relative;
  z-index: 3;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__tagline-text {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.hero__pencil {
  width: 26px;
  height: 36px;
  flex-shrink: 0;
}

.hero__pencil--right {
  transform: scaleX(-1);
}

.hero__title {
  max-width: 980px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.15;
}

.hero__title-navy {
  color: var(--color-primary);
}

.hero__title-teal {
  color: var(--color-secondary);
}

.hero__description {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.btn--primary {
  min-width: 240px;
  height: 54px;
  background: var(--color-teal);
  border-radius: 9999px;
  gap: 10px;
  padding: 12px 28px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
}

.btn--primary img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn--outline {
  min-width: 240px;
  height: 54px;
  border: 1.5px solid var(--color-primary);
  border-radius: 100px;
  padding: 12px 28px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  position: relative;
  width: 100%;
  /* max-width: 1300px; */
  margin: 0 auto;
  padding: 60px 24px 100px;
  text-align: center;
}

/* ---- Floating Icons (Figma: Protractor on right, Purple planet on left) ---- */
.about__decor--protractor {
  position: absolute;
  top: -10px;
  right: 0;
  width: clamp(90px, 9vw, 142px);
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.about__decor--planet {
  position: absolute;
  bottom: 10px;
  left: clamp(-10px, 3.5vw, 55px);
  width: clamp(75px, 7.5vw, 114px);
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.section-divider {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 356px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

.section-divider img {
  width: 100%;
  height: auto;
}

.about__title {
  position: relative;
  z-index: 2;
  font-size: clamp(32px, 4vw, 55px);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 14px;
  margin-bottom: 75px;
}

.about__cards {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  width: 100%;
}

/* ---- Feature Cards (Exact Figma Colors & Shapes) ---- */
.feature-card {
  position: relative;
  width: 360px;
  max-width: 100%;
  height: 160px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 20px 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.feature-card--groups {
  background: #f0effc;
  border: 1px solid #e2e0fb;
}

.feature-card--heart {
  background: #e9f7f5;
  border: 1px solid #d4f0ec;
}

.feature-card--location {
  background: #fef0e6;
  border: 1px solid #fae2d0;
}

.feature-card__icon-wrap {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon {
  width: auto;
  height: 46px;
}

.feature-card__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

/* =============================================
   PROBLEM / SOLUTION SECTION
   ============================================= */
.problem {
  position: relative;
  width: 100%;
  padding: 150px 24px 140px;
  overflow: hidden;
}

.problem__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  object-position: top center;
}

.problem__decor {
  pointer-events: none;
}

.problem__decor--cloud {
  position: absolute;
  top: 40px;
  right: 14%;
  width: clamp(90px, 9vw, 149px);
  height: auto;
  opacity: 0.9;
  z-index: 1;
}

.problem__title {
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  max-width: 1200px;
  margin: 16px auto 50px;
  line-height: 1.2;
  white-space: nowrap;
}

.problem__cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  max-width: var(--max-content-width);
  margin: 0 auto 50px;
}

.problem-card {
  width: 370px;
  max-width: 100%;
  display: flex;
}

.problem-card__box {
  position: relative;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card__box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.problem-card__photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.problem-card__text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
  text-align: center;
  padding: 0 8px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem__footer {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
  text-align: center;
}

/* ---- Floating Icons (Figma: Rocket on bottom right, Paper plane on bottom left) ---- */
.problem__decor--rocket {
  position: absolute;
  bottom: -10px;
  right: 0;
  width: clamp(200px, 22vw, 360px);
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.problem__decor--paper-plane {
  position: absolute;
  bottom: 10px;
  left: clamp(10px, 4vw, 50px);
  width: clamp(120px, 13vw, 190px);
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* ---- Bottom Bar ---- */
.home__bottom-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background: var(--color-primary);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 1600px) {
  .problem__decor--rocket {
    position: absolute;
    bottom: -10px;
    right: 0;
    width: clamp(160px, 10vw, 300px);
    height: auto;
    z-index: 10;
    pointer-events: none;
  }

  .contact__decor--paper-plane,
  .recs__decor--paper-plane,
  .courses__decor--paper-plane,
  .method__decor--paper-plane,
  .problem__decor--paper-plane {
    width: clamp(120px, 9vw, 190px) !important;
  }
}

@media (max-width: 900px) {
  .header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    height: 60px;
    z-index: 1000;
  }

  .header__inner {
    border-radius: 100px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(8, 43, 91, 0.12);
    box-shadow: 0 6px 22px rgba(8, 43, 91, 0.1);
    position: relative;
  }

  .header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
  }

  .header__hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .header.is-open .header__hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .header.is-open .header__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .header.is-open .header__hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__logo img {
    max-height: 40px;
    width: auto;
  }

  .header__whatsapp {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-teal);
    box-shadow: 0 3px 10px rgba(0, 143, 155, 0.25);
  }

  .header__whatsapp-icon {
    width: 20px;
    height: 20px;
  }

  .header__whatsapp-text {
    display: none;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 14px;
    box-shadow: 0 12px 36px rgba(8, 43, 91, 0.16);
    border: 1.5px solid rgba(8, 43, 91, 0.1);
    flex-direction: column;
    gap: 8px;
    text-align: center;
    z-index: 10;
  }

  .header.is-open .header__nav {
    display: flex;
    animation: navDropdown 0.25s ease forwards;
  }

  @keyframes navDropdown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header__nav-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 10px 16px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .header__nav-link:hover,
  .header__nav-link--active {
    background: rgba(0, 143, 155, 0.08);
    color: var(--color-teal);
  }

  .header__nav-link--active::after {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 240px;
  }
}

.recs__divider.recs__divider--cta {
  position: relative;
}

@media (max-width: 900px) {
  .hero {
    padding: 110px 16px 200px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn--primary,
  .btn--outline {
    width: 100%;
  }

  .problem {
    overflow-x: clip;
    overflow-y: visible;
    padding-left: 0;
    padding-right: 0;
  }

  .problem__cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    gap: 16px;
    padding: 16px 20px 28px;
    margin: 0 0 10px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .problem__cards::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .problem-card {
    flex: 0 0 85%;
    width: 85%;
    max-width: 320px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .problem__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: -5px 0 35px;
    position: relative;
    z-index: 5;
  }

  .problem__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cce8e8;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .problem__dot--active {
    background: var(--color-teal);
    width: 24px;
    border-radius: 10px;
  }

  .problem__title {
    white-space: normal;
    font-size: 26px;
  }

  .problem__decor--rocket {
    width: 140px;
    opacity: 0.6;
  }

  .problem__decor--paper-plane {
    width: 80px;
    opacity: 0.6;
  }

  .contact__decor--paper-plane,
  .recs__decor--paper-plane,
  .courses__decor--paper-plane,
  .method__decor--paper-plane,
  .problem__decor--paper-plane {
    width: clamp(90px, 9vw, 190px) !important;
  }

  img.courses__cloud.courses__cloud--cards,
  img.courses__cloud.courses__cloud--cta-1,
  img.courses__cloud.courses__cloud--cta-2,
  img.courses__cloud.courses__cloud--cta-3,
  img.courses__cloud.courses__cloud--cta-4,
  img.method__cloud.method__cloud--cta-1,
  img.method__cloud.method__cloud--cta-2,
  img.method__cloud.method__cloud--cta-3,
  img.method__cloud.method__cloud--cta-4,
  .method__cloud--principles-1,
  .method__cloud--principles-2,
  .method__cloud--principles-3,
  .recs__cloud--success-1,
  .recs__cloud--success-2,
  .recs__cloud--success-3 {
    display: none;
  }

  img.recs__success-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 370px;
    object-fit: fill;
    pointer-events: none;
    z-index: 0;
  }

  .about__cards {
    gap: clamp(56px, 3vw, 36px);
  }

  .hero {
    background: url('../assets/mobile-banner-img.png') no-repeat center bottom;
    background-size: cover;
    padding: 110px 40px 200px;
  }

  .hero__tagline-text {
    font-size: clamp(12px, 2vw, 25px);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
  }

  .hero__decor--planet-left,
  .hero__decor--dots-left,
  .hero__decor--book-right,
  img.hero__decor.hero__decor--dots-right {
    display: none;
  }

  .section-divider {
    max-width: 156px;
  }
}