/* ═══════════════════════════════════════════════════════════════
   HOME MOBILE — COMPACT CARDS + CONTENT MODAL SYSTEM
   Elements are gated via md:hidden in HTML; CSS here is global
   but in practice only fires on narrow viewports.
   ═══════════════════════════════════════════════════════════════ */

/* ── Compact card list — hidden on desktop, shown on mobile ── */
.hmr-compact-cards {
  display: none;
}

@media (max-width: 767px) {
  .hmr-compact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 6px;
  }
}

/* ── Base card ── */
.hmr-compact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(231, 233, 239, 0.85);
  border-radius: 20px;
  padding: 15px 18px;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
  box-shadow: 0 2px 10px rgba(14, 26, 60, 0.04);
}

.hmr-compact-card:active {
  transform: scale(0.99);
  background: #FFF8F5;
  border-color: rgba(208, 89, 39, 0.22);
}

/* ── Card icon ── */
.hmr-cc-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(240, 216, 204, 0.8);
  background: #fffbf9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D05927;
  flex-shrink: 0;
}

/* ── Card text block ── */
.hmr-cc-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.hmr-cc-subtitle {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7A8496;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
}

.hmr-cc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0E1A3C;
  line-height: 1.2;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ── Card arrow (Task 5: enhanced nudge) ── */
.hmr-cc-arrow {
  color: rgba(208, 89, 39, 0.7);
  flex-shrink: 0;
  align-self: center;
  animation: hmrArrowNudge 1.8s ease-in-out infinite;
}

@keyframes hmrArrowNudge {
  0%, 100% { transform: translateX(0);   opacity: 1;   }
  45%       { transform: translateX(8px); opacity: 0.65; }
  55%       { transform: translateX(8px); opacity: 0.65; }
}

/* ── "Μάθετε περισσότερα" link after card list ── */
.hmr-compact-cards__footer {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hmr-compact-cards__learn-more {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A8496;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  transition: color 0.16s;
  -webkit-tap-highlight-color: transparent;
}

.hmr-compact-cards__learn-more:active { color: #D05927; }


/* ══════════════════════════════════════════════
   APPROACH SECTION — premium warm variant (Task 3)
   ══════════════════════════════════════════════ */

.home-approach-delivered .hmr-compact-card {
  background: linear-gradient(135deg, #fffdf9 0%, #fff8f2 100%);
  border: 1px solid rgba(208, 89, 39, 0.13);
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(208, 89, 39, 0.07),
    0 1px 4px rgba(14, 26, 60, 0.04);
}

.home-approach-delivered .hmr-compact-card:active {
  background: linear-gradient(135deg, #fff4ed 0%, #ffeedd 100%);
  border-color: rgba(208, 89, 39, 0.28);
  box-shadow:
    0 2px 12px rgba(208, 89, 39, 0.10),
    0 1px 3px rgba(14, 26, 60, 0.04);
}

.home-approach-delivered .hmr-cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4ec 0%, #ffe8d6 100%);
  border: 1px solid rgba(208, 89, 39, 0.18);
  box-shadow: 0 2px 8px rgba(208, 89, 39, 0.10);
}

.home-approach-delivered .hmr-cc-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.home-approach-delivered .hmr-cc-subtitle {
  color: rgba(208, 89, 39, 0.6);
  letter-spacing: 0.18em;
}

.home-approach-delivered .hmr-cc-arrow {
  color: rgba(208, 89, 39, 0.85);
}


/* ══════════════════════════════════════════════
   NOUSGYM SECTION — tech/digital variant (Task 4)
   ══════════════════════════════════════════════ */

.home-nousgym-app-delivered .hmr-compact-card {
  background: linear-gradient(135deg, #f8faff 0%, #f2f6ff 100%);
  border: 1px solid rgba(14, 26, 60, 0.10);
  border-radius: 20px;
  box-shadow:
    0 4px 20px rgba(14, 26, 60, 0.07),
    0 1px 3px rgba(14, 26, 60, 0.04);
}

.home-nousgym-app-delivered .hmr-compact-card:active {
  background: linear-gradient(135deg, #eef3ff 0%, #e6edff 100%);
  border-color: rgba(14, 26, 60, 0.18);
}

.home-nousgym-app-delivered .hmr-cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #D05927 0%, #b9471f 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(208, 89, 39, 0.28);
}

.home-nousgym-app-delivered .hmr-cc-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0E1A3C;
}

.home-nousgym-app-delivered .hmr-cc-arrow {
  color: rgba(14, 26, 60, 0.45);
}

.home-nousgym-app-delivered .hmr-cc-arrow {
  animation: hmrArrowNudge 1.8s ease-in-out infinite;
}


/* ══════════════════════════════════════════════
   CONTENT MODAL
   ══════════════════════════════════════════════ */

.hmr-cmodal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.hmr-cmodal[hidden] { display: none !important; }

.hmr-cmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 60, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.hmr-cmodal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 28px 72px rgba(14, 26, 60, 0.22),
    0 8px 24px rgba(14, 26, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: hmrCmodalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hmrCmodalIn {
  from { opacity: 0; transform: scale(0.93) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.hmr-cmodal--closing .hmr-cmodal__panel {
  animation: hmrCmodalOut 0.16s ease-in both;
}

@keyframes hmrCmodalOut {
  from { opacity: 1; transform: scale(1);    }
  to   { opacity: 0; transform: scale(0.95); }
}

/* Close button — top-right inside panel */
.hmr-cmodal__close {
  position: absolute;
  top: 34px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(231, 233, 239, 0.75);
  color: #0E1A3C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s;
  flex-shrink: 0;
}

.hmr-cmodal__close:active {
  background: rgba(208, 89, 39, 0.12);
  color: #D05927;
}

.hmr-cmodal__content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 26px 24px 28px;
  flex: 1;
}

/* ── Modal inner layout ── */
.hmr-cmodal-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hmr-cmodal-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(240, 216, 204, 0.8);
  background: #FFF8F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D05927;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.hmr-cmodal-subtitle {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7A8496;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.hmr-cmodal-divider {
  width: 36px;
  height: 2px;
  background: rgba(208, 89, 39, 0.28);
  border-radius: 1px;
  margin: 2px 0;
}

.hmr-cmodal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0E1A3C;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.12;
  font-family: 'Outfit', sans-serif;
}

.hmr-cmodal-body {
  font-size: 0.9375rem;
  line-height: 1.68;
  color: rgba(14, 26, 60, 0.68);
  font-family: 'Outfit', sans-serif;
  margin-top: 4px;
}

.hmr-cmodal-body strong {
  color: #D05927;
  font-weight: 600;
}

.hmr-cmodal-body em {
  color: #0E1A3C;
  font-style: normal;
  font-weight: 600;
}
