/* ============================================================
   MOBILE APP DOWNLOAD SECTION  (.mobile-app-section + .mas-* classes)
   Template part: template-parts/sections/section-mobile-app.php
   ============================================================ */

.mobile-app-section {
  background: #F6F7F9;
  padding: 100px 0;
}

.mas-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 144px;
  width: 100%;
}

/* ── Two-column layout ── */
.mas-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/* ── LEFT: Content ── */
.mas-content {
  flex: 0 0 auto;
  width: 100%;
  max-width: 520px;
  margin-left: 112px;
}

/* Heading */
.mas-title {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 54px;
  margin: 0 0 24px;
}

.mas-title__line1 {
  display: block;
  color: #1B2033;
  margin-bottom: 10px;
}

.mas-title__highlight {
  display: block;
  color: #D6B54A;
}

/* Description */
.mas-desc {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: #111111;
  max-width: 520px;
  margin: 0 0 24px;
}

/* ── Download buttons ── */
.mas-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mas-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #111111;
  border-radius: 10px;
  height: 64px;
  padding: 12px 24px;
  text-decoration: none;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.mas-store-btn:hover {
  transform: translateY(-2px);
  opacity: 0.88;
  color: #FFFFFF;
}

.mas-store-btn__icon {
  flex-shrink: 0;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
}

.mas-store-btn__text {
  display: flex;
  flex-direction: column;
}

.mas-store-btn__label {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
  display: block;
}

.mas-store-btn__name {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  color: #FFFFFF;
  display: block;
}

/* ── RIGHT: QR Card Wrapper ── */
.mas-qr-wrap {
  position: relative;
  flex-shrink: 0;
  margin-right: 112px;
}

/* Layer 1: Rotated blurred backdrop shape (sits behind card) */
.kk-app-card-backdrop {
  position: absolute;
  width: 194px;
  height: 322px;
  background: linear-gradient(45deg, rgba(7,27,46,0.15) 0%, rgba(7,27,46,0.30) 100%);
  border: 1px solid rgba(7,27,46,0.10);
  opacity: 0.50;
  border-radius: 32px;
  right: -40px;
  bottom: -40px;
  transform: rotate(12deg);
  filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

/* Layer 2: Main card */
.kk-app-card {
  width: 340px;
  height: 406px;
  background: #071B2E;
  border: 1px solid #D6B54A4D;
  border-radius: 32px;
  box-shadow: 0px 30px 60px 0px #00000080;
  backdrop-filter: blur(40px);
  position: relative;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 41px 0 0;
}

/* Very subtle center glow */
.kk-app-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 208px;
  height: 208px;
  background: radial-gradient(circle, rgba(214,181,74,0.12) 0%, rgba(214,181,74,0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Top label */
.mas-qr-card__label {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 4px;
  color: #D6B54A;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* QR code panel */
.mas-qr-card__code-wrap {
  width: 208px;
  height: 208px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 32px;
  box-shadow: 0px 0px 30px 0px rgba(214,181,74,0.15);
  position: relative;
  z-index: 1;
}

.mas-qr-card__code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mas-qr-card__code-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom footer (absolutely positioned) */
.mas-qr-card__footer {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.mas-qr-card__footer-icon {
  color: #FFFFFF;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* Corner accents */
.kk-app-card__corners {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  z-index: 3;
}

.kk-app-card__corners::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(214,181,74,0.20);
  border-left: 2px solid rgba(214,181,74,0.20);
  border-radius: 32px 0 0 0;
}

.kk-app-card__corners::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-bottom: 2px solid rgba(214,181,74,0.20);
  border-right: 2px solid rgba(214,181,74,0.20);
  border-radius: 0 0 32px 0;
}

.mas-qr-card__avail {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
}

/* ── Tablet (991px): stack vertically ── */
@media (max-width: 991px) {
  .mobile-app-section {
    padding: 80px 0;
  }

  .mas-container {
    padding: 0 40px;
  }

  .mas-grid {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  .mas-content {
    max-width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .mas-desc {
    max-width: 100%;
  }

  .mas-buttons {
    justify-content: center;
  }

  .mas-qr-wrap {
    flex: 0 0 auto;
    margin-right: 0;
  }

  .kk-app-card {
    width: 320px;
    height: 380px;
  }

  .mas-qr-card__code-wrap {
    width: 194px;
    height: 194px;
    margin-top: 26px;
  }
}

/* ── Mobile (767px) ── */
@media (max-width: 767px) {
  .mobile-app-section {
    padding: 70px 0;
  }

  .mas-container {
    padding: 0 20px;
  }

  .mas-grid {
    gap: 48px;
  }

  .mas-title {
    font-size: 32px;
    line-height: 42px;
  }

  .mas-title__line1 {
    margin-bottom: 6px;
  }

  .mas-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .mas-store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .mas-store-btn__icon {
    width: 28px;
    height: 28px;
  }

  .mas-store-btn__name {
    font-size: 20px;
    line-height: 26px;
  }

  .mas-qr-wrap {
    width: 100%;
    max-width: 340px;
  }

  .kk-app-card {
    width: 100%;
    height: 370px;
    padding: 36px 0 0;
    border-radius: 28px;
  }

  .kk-app-card-backdrop {
    display: none;
  }

  .kk-app-card__corners {
    border-radius: 28px;
  }

  .kk-app-card__corners::before {
    border-radius: 28px 0 0 0;
  }

  .kk-app-card__corners::after {
    border-radius: 0 0 28px 0;
  }

  .mas-qr-card__code-wrap {
    width: 178px;
    height: 178px;
    margin-top: 22px;
  }

  .mas-qr-card__label {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .mas-qr-card__footer {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }

  .mas-qr-card__footer-icon {
    width: 26px;
    height: 26px;
  }
}
